KParts

textextension.cpp
1 /*
2  This file is part of the KDE project
3  SPDX-FileCopyrightText: 2010 David Faure <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #include "textextension.h"
9 
10 #include "readonlypart.h"
11 
12 class KParts::TextExtensionPrivate
13 {
14 };
15 
16 KParts::TextExtension::TextExtension(KParts::ReadOnlyPart *parent)
17  : QObject(parent)
18  , d(nullptr)
19 {
20 }
21 
22 KParts::TextExtension::~TextExtension()
23 {
24 }
25 
27 {
28  return false;
29 }
30 
32 {
33  return QString();
34 }
35 
37 {
38  return QString();
39 }
40 
42 {
44 }
45 
47 {
48  return 0;
49 }
50 
52 {
53  return 0;
54 }
55 
57 {
58  return QString();
59 }
60 
62 {
63  return false;
64 }
virtual QString pageText(Format format) const
Returns the text in a given page, in the requested format.
static TextExtension * childObject(QObject *obj)
Queries obj for a child object which inherits from this TextExtension class.
virtual QString selectedText(Format format) const
Returns the selected text, in the requested format.
virtual QString completeText(Format format) const
Returns the complete text shown in the part, in the requested format.
An extension for KParts that allows to retrieve text from the part.
Definition: textextension.h:33
FindDirectChildrenOnly
T findChild(const QString &name, Qt::FindChildOptions options) const const
virtual bool findText(const QString &string, KFind::SearchOptions options) const
Returns true if string is found using the given options.
virtual bool hasSelection() const
Returns true if the user selected text in the part.
virtual int currentPage() const
Returns the current page (between 0 and pageCount()-1), for parts who support the concept of pages.
Base class for any "viewer" part.
Definition: readonlypart.h:51
virtual int pageCount() const
Returns the number of pages, for parts who support the concept of pages.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 9 2022 03:51:33 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.