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
typedef QList<TextEntity*> Okular::TextEntity::List |
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 176 of file textpage.cpp.
TextEntity::~TextEntity | ( | ) |
Destroys the text entity.
Definition at line 181 of file textpage.cpp.
Member Function Documentation
NormalizedRect * TextEntity::area | ( | ) | const |
Returns the bounding area of the text entity.
Definition at line 191 of file textpage.cpp.
QString TextEntity::text | ( | ) | const |
Returns the text of the text entity.
Definition at line 186 of file textpage.cpp.
NormalizedRect TextEntity::transformedArea | ( | const QTransform & | matrix | ) | const |
Returns the transformed area of the text entity.
Definition at line 196 of file textpage.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.