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