2 SPDX-FileCopyrightText: 2005 Piotr Szymanski <[email protected]>
16 class QTransform;
18 namespace Okular
29 * @short Represents a piece of text on a TextPage, containing its textual representation and its bounding box.
41 * the text entities are reordered to words, lines, and paragraphs, to optimize search and text selection.
45 * A TextEntity is the smallest piece of text, which the user can select, or which can be highlighted.
47 * It would not be possible to select a single glyph of the word, because its bounding box is not known.
70 QString text() const;
75 NormalizedRect *area() const;
83 QString m_text;
84 NormalizedRect *m_area;
96 * For every piece of text, a TextEntity is added, holding the string representation and the bounding box.
99 * A "glyph" is one character in the graphical representation, but the textual representation may consist of multiple characters (like diacritic modifiers).
101 * When the TextPage is added to the Page, the TextEntitys are restructured to optimize text selection.
108 friend class Page;
118 AnyPixelTextAreaInclusionBehaviour, ///< A character is included into text() result if any pixel of his bounding box is in the given area
119 CentralPixelTextAreaInclusionBehaviour ///< A character is included into text() result if the central pixel of his bounding box is in the given area
155 RegularAreaRect *findText(int searchID, const QString &query, SearchDirection direction, Qt::CaseSensitivity caseSensitivity, const RegularAreaRect *area);
NormalizedPoint is a helper class which stores the coordinates of a normalized point.
A NormalizedRect is a rectangle which can be defined by two NormalizedPoints.
This is a list of NormalizedRect, to describe an area consisting of multiple rectangles using normali...
Represents a piece of text on a TextPage, containing its textual representation and its bounding box...
A character is included into text() result if any pixel of his bounding box is in the given area...
Defines the behaviour of adding characters to text() result.