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

okular

  • Okular
  • AnnotationUtils
Static Public Member Functions | List of all members
Okular::AnnotationUtils Class Reference

#include <annotations.h>

Static Public Member Functions

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

Detailed Description

Helper class for (recursive) annotation retrieval/storage.

Definition at line 52 of file annotations.h.

Member Function Documentation

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 154 of file annotations.cpp.

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 90 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 138 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 128 of file annotations.cpp.


The documentation for this class was generated from the following files:
  • annotations.h
  • annotations.cpp
This file is part of the KDE documentation.
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.

okular

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

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal