kdeveditorutil.cpp
20 bool KDevEditorUtil::currentPositionReal( unsigned int * line, unsigned int * col, KTextEditor::Document * doc, KTextEditor::View * view )
29 KTextEditor::ViewCursorInterface * cursorIface = dynamic_cast<KTextEditor::ViewCursorInterface*>( view );
43 KTextEditor::ViewCursorInterface * cursorIface = dynamic_cast<KTextEditor::ViewCursorInterface*>( view );
60 KTextEditor::ViewCursorInterface * cursorIface = dynamic_cast<KTextEditor::ViewCursorInterface*>( view );
72 while (startPos >= 0 && ( linestr[startPos].isLetterOrNumber() || linestr[startPos] == '_' || linestr[startPos] == '~') )
74 while (endPos < (int)linestr.length() && ( linestr[endPos].isLetterOrNumber() || linestr[endPos] == '_' ) )
83 KTextEditor::SelectionInterface * selectIface = dynamic_cast<KTextEditor::SelectionInterface*>( doc );
static TQString currentSelection(KTextEditor::Document *doc)
Call to get the selection in the currently active view.
Definition: kdeveditorutil.cpp:81
static TQString currentLine(KTextEditor::Document *doc, KTextEditor::View *view=0)
Definition: kdeveditorutil.cpp:36
static TQString currentWord(KTextEditor::Document *doc, KTextEditor::View *view=0)
Call to get the text under the cursor of the currently active view.
Definition: kdeveditorutil.cpp:53
static bool currentPositionReal(unsigned int *line, unsigned int *col, KTextEditor::Document *doc, KTextEditor::View *view=0)
Definition: kdeveditorutil.cpp:20