KParts
textextension.cpp
Go to the documentation of this file.
an extension for KParts that allows to retrieve text from the part.
Definition: textextension.h:43
TextExtension(KParts::ReadOnlyPart *parent)
Definition: textextension.cpp:24
virtual bool hasSelection() const
Returns true if the user selected text in the part.
Definition: textextension.cpp:33
virtual QString pageText(Format format) const
Returns the text in a given page, in the requested format.
Definition: textextension.cpp:63
virtual QString selectedText(Format format) const
Returns the selected text, in the requested format.
Definition: textextension.cpp:38
virtual QString completeText(Format format) const
Returns the complete text shown in the part, in the requested format.
Definition: textextension.cpp:43
virtual int pageCount() const
Returns the number of pages, for parts who support the concept of pages.
Definition: textextension.cpp:53
virtual int currentPage() const
Returns the current page (between 0 and pageCount()-1), for parts who support the concept of pages.
Definition: textextension.cpp:58
static TextExtension * childObject(QObject *obj)
Queries obj for a child object which inherits from this TextExtension class.
Definition: textextension.cpp:48
virtual bool findText(const QString &string, KFind::SearchOptions options) const
Returns true if string is found using the given options.
Definition: textextension.cpp:68
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.