• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdegraphics
  • Sitemap
  • Contact Us
 

okular

Okular::TextEntity

Okular::TextEntity Class Reference

#include <textpage.h>

List of all members.


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 43 of file textpage.h.


Public Types

typedef QList< TextEntity * > List

Public Member Functions

 TextEntity (const QString &text, NormalizedRect *area)
 ~TextEntity ()
QString text () const
NormalizedRect * area () const
NormalizedRect transformedArea (const QMatrix &matrix) const

Member Typedef Documentation

typedef QList<TextEntity*> Okular::TextEntity::List

Definition at line 46 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 36 of file textpage.cpp.

TextEntity::~TextEntity (  ) 

Destroys the text entity.

Definition at line 41 of file textpage.cpp.


Member Function Documentation

QString TextEntity::text (  )  const

Returns the text of the text entity.

Definition at line 46 of file textpage.cpp.

NormalizedRect * TextEntity::area (  )  const

Returns the bounding area of the text entity.

Definition at line 51 of file textpage.cpp.

NormalizedRect TextEntity::transformedArea ( const QMatrix &  matrix  )  const

Returns the transformed area of the text entity.

Definition at line 56 of file textpage.cpp.


The documentation for this class was generated from the following files:
  • textpage.h
  • textpage.cpp

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdegraphics

Skip menu "kdegraphics"
  • okular
Generated for kdegraphics by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal