KTextEditor
ktexteditor.cpp
virtual Document * document() const =0
Get the view's document, that means the view is a view of the returned document.
void setSimpleMode(bool on)
Switch editor to simple mode for average users.
Definition: ktexteditor.cpp:96
SessionConfigInterface()
Definition: ktexteditor.cpp:253
virtual ~TextHintInterface()
Definition: ktexteditor.cpp:277
virtual bool setSelection(const Range &range)=0
Set the view's selection to the range selection.
virtual View * activeView() const =0
Return the view which currently has user focus, if any.
Plugin * createPlugin(KService::Ptr service, QObject *parent)
Create a plugin represented by service with parent object parent.
Definition: ktexteditor.cpp:147
An object representing a section of text, from one Cursor to another.
Definition: range.h:54
virtual bool insertText(const Cursor &position, const QString &text, bool block=false)=0
Insert text at position.
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void setDefaultEncoding(const QString &defaultEncoding)
Set the current default encoding for this Editor part.
Definition: ktexteditor.cpp:111
bool isActiveView() const
Check whether this view is the document's active view.
Definition: ktexteditor.cpp:116
ParameterizedSessionConfigInterface()
Definition: ktexteditor.cpp:260
virtual bool cursorInText(const Cursor &cursor)
Checks whether the cursor specifies a valid position in a document.
Definition: document.cpp:173
virtual int lineLength(int line) const =0
Get the length of a given line in characters.
const QString & defaultEncoding() const
Get the current default encoding for this Editor part.
Definition: ktexteditor.cpp:106
KPluginFactory * factory()
virtual int line() const
Retrieve the line on which this cursor is situated.
Definition: cursor.cpp:62
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
LoadSaveFilterCheckPlugin(QObject *parent)
Definition: ktexteditor.cpp:293
Editor * editor(const char *libname)
Helper function for the EditorChooser.
Definition: ktexteditor.cpp:173
const KShortcut & end()
virtual ~TemplateInterface()
Definition: ktexteditor.cpp:270
virtual ~LoadSaveFilterCheckPlugin()
Definition: ktexteditor.cpp:297
virtual bool blockSelection() const =0
Get the status of the selection mode.
#define K_GLOBAL_STATIC(TYPE, NAME)
ModificationInterface()
Definition: ktexteditor.cpp:220
virtual bool insertText(const QString &text)
This is a convenience function which inserts text at the view's current cursor position.
Definition: ktexteditor.cpp:139
virtual Cursor cursorPosition() const =0
Get the view's current cursor position.
bool simpleMode() const
Query the editor whether simple mode is on or not.
Definition: ktexteditor.cpp:101
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jan 30 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jan 30 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.