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

okular

Okular::AnnotationUtils

Okular::AnnotationUtils Class Reference

#include <annotations.h>

List of all members.


Detailed Description

Helper class for (recursive) annotation retrieval/storage.

Definition at line 42 of file annotations.h.


Static Public Member Functions

static Annotation * createAnnotation (const QDomElement &element)
static void storeAnnotation (const Annotation *annotation, QDomElement &element, QDomDocument &document)
static QDomElement findChildElement (const QDomNode &parentNode, const QString &name)
static QRect annotationGeometry (const Annotation *annotation, double scaleX, double scaleY)

Member Function Documentation

Annotation * AnnotationUtils::createAnnotation ( const QDomElement &  element  )  [static]

Restore an annotation (with revisions if needed) from the dom element.

Returns a pointer to the complete annotation or 0 if element is invalid.

Definition at line 23 of file annotations.cpp.

void AnnotationUtils::storeAnnotation ( const Annotation *  annotation,
QDomElement &  element,
QDomDocument &  document 
) [static]

Saves the annotation as a child of element taking care of saving all revisions if it has any.

Definition at line 58 of file annotations.cpp.

QDomElement AnnotationUtils::findChildElement ( const QDomNode &  parentNode,
const QString &  name 
) [static]

Returns the child element with the given name from the direct children of parentNode or a null element if not found.

Definition at line 68 of file annotations.cpp.

QRect AnnotationUtils::annotationGeometry ( const Annotation *  annotation,
double  scaleX,
double  scaleY 
) [static]

Returns the geometry of the given annotation scaled by scaleX and scaleY.

Definition at line 84 of file annotations.cpp.


The documentation for this class was generated from the following files:
  • annotations.h
  • annotations.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