okular
#include <textpage.h>
Public Types | |
typedef QList< TextEntity * > | List |
Public Member Functions | |
TextEntity (const QString &text, NormalizedRect *area) | |
~TextEntity () | |
NormalizedRect * | area () const |
QString | text () const |
NormalizedRect | transformedArea (const QTransform &matrix) const |
Detailed Description
Abstract textentity of Okular.
- The context
- A document can provide different forms of information about textual representation of its contents. It can include information about positions of every character on the page, this is the best possibility.
But also it can provide information only about positions of every word on the page (not the character). Furthermore it can provide information only about the position of the whole page's text on the page.
Also some document types have glyphes - sets of characters rendered as one, so in search they should appear as a text but are only one character when drawn on screen. We need to allow this.
Definition at line 44 of file textpage.h.
Member Typedef Documentation
Definition at line 47 of file textpage.h.
Constructor & Destructor Documentation
TextEntity::TextEntity | ( | const QString & | text, |
NormalizedRect * | area | ||
) |
Creates a new text entity with the given text
and the given area
.
Definition at line 188 of file textpage.cpp.
TextEntity::~TextEntity | ( | ) |
Destroys the text entity.
Definition at line 193 of file textpage.cpp.
Member Function Documentation
NormalizedRect * TextEntity::area | ( | ) | const |
Returns the bounding area of the text entity.
Definition at line 203 of file textpage.cpp.
QString TextEntity::text | ( | ) | const |
Returns the text of the text entity.
Definition at line 198 of file textpage.cpp.
NormalizedRect TextEntity::transformedArea | ( | const QTransform & | matrix | ) | const |
Returns the transformed area of the text entity.
Definition at line 208 of file textpage.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.