|
| Page (uint pageNumber, double width, double height, Rotation orientation) |
|
| ~Page () |
|
void | addAnnotation (Annotation *annotation) |
|
Annotation * | annotation (const QString &uniqueName) const |
|
QList< Annotation * > | annotations () const |
|
NormalizedRect | boundingBox () const |
|
void | deleteAnnotations () |
|
void | deletePixmap (DocumentObserver *observer) |
|
void | deletePixmaps () |
|
void | deleteRects () |
|
void | deleteSourceReferences () |
|
double | duration () const |
|
RegularAreaRect * | findText (int id, const QString &text, SearchDirection direction, Qt::CaseSensitivity caseSensitivity, const RegularAreaRect *lastRect=nullptr) const |
|
QList< FormField * > | formFields () const |
|
bool | hasAnnotations () const |
|
bool | hasHighlights (int id=-1) const |
|
bool | hasObjectRect (double x, double y, double xScale, double yScale) const |
|
bool | hasPixmap (DocumentObserver *observer, int width=-1, int height=-1, const NormalizedRect &rect=NormalizedRect()) const |
|
bool | hasTextPage () const |
|
bool | hasTilesManager (const DocumentObserver *observer) const |
|
bool | hasTransition () const |
|
double | height () const |
|
bool | isBoundingBoxKnown () const |
|
QString | label () const |
|
const ObjectRect * | nearestObjectRect (ObjectRect::ObjectType type, double x, double y, double xScale, double yScale, double *distance) const |
|
int | number () const |
|
const ObjectRect * | objectRect (ObjectRect::ObjectType type, double x, double y, double xScale, double yScale) const |
|
const QList< ObjectRect * > & | objectRects () const |
|
QList< const ObjectRect * > | objectRects (ObjectRect::ObjectType type, double x, double y, double xScale, double yScale) const |
|
Rotation | orientation () const |
|
const Action * | pageAction (PageAction action) const |
|
double | ratio () const |
|
bool | removeAnnotation (Annotation *annotation) |
|
Rotation | rotation () const |
|
void | setBoundingBox (const NormalizedRect &bbox) |
|
void | setDuration (double seconds) |
|
void | setFormFields (const QList< FormField * > &fields) |
|
void | setLabel (const QString &label) |
|
void | setObjectRects (const QList< ObjectRect * > &rects) |
|
void | setPageAction (PageAction action, Action *link) |
|
void | setPageSize (DocumentObserver *observer, int width, int height) |
|
void | setPixmap (DocumentObserver *observer, QPixmap *pixmap, const NormalizedRect &rect=NormalizedRect()) |
|
void | setSourceReferences (const QList< SourceRefObjectRect * > &rects) |
|
void | setTextPage (TextPage *text) |
|
void | setTransition (PageTransition *transition) |
|
QString | text (const RegularAreaRect *area, TextPage::TextAreaInclusionBehaviour b) const |
|
QString | text (const RegularAreaRect *area=nullptr) const |
|
std::unique_ptr< RegularAreaRect > | textArea (const TextSelection &selection) const |
|
const RegularAreaRect * | textSelection () const |
|
QColor | textSelectionColor () const |
|
QList< Tile > | tilesAt (const DocumentObserver *observer, const NormalizedRect &rect) const |
|
Rotation | totalOrientation () const |
|
const PageTransition * | transition () const |
|
double | width () const |
|
std::unique_ptr< RegularAreaRect > | wordAt (const NormalizedPoint &p) const |
|
TextEntity::List | words (const RegularAreaRect *area, TextPage::TextAreaInclusionBehaviour b) const |
|
Collector for all the data belonging to a page.
The Page class contains pixmaps (referenced using observers id as key), a search page (a class used internally for retrieving text), rect classes (that describe links or other active areas in the current page) and more.
All coordinates are normalized to the page, so {x,y} are valid in [0,1] range as long as NormalizedRect components.
Note: The class takes ownership of all objects.
Definition at line 47 of file page.h.
Returns the bounding box of the page content in normalized [0,1] coordinates, in terms of the upright orientation (Rotation0).
If it has not been computed yet, returns the full page (i.e., (0, 0, 1, 1)). Note that the bounding box may be null if the page is blank.
- Since
- 0.7 (KDE 4.1)
Definition at line 195 of file page.cpp.
Sets the bounding box of the page content in normalized [0,1] coordinates, in terms of the upright orientation (Rotation0).
(This does not inform the document's observers, call Document::SetPageBoundingBox instead if you want that.)
- Since
- 0.7 (KDE 4.1)
Definition at line 205 of file page.cpp.