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