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

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • core
page_p.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2004 by Enrico Ros <eros.kde@email.it> *
3  * Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  ***************************************************************************/
10 
11 #ifndef _OKULAR_PAGE_PRIVATE_H_
12 #define _OKULAR_PAGE_PRIVATE_H_
13 
14 // qt/kde includes
15 #include <qlinkedlist.h>
16 #include <qmap.h>
17 #include <qtransform.h>
18 #include <qstring.h>
19 #include <qdom.h>
20 
21 // local includes
22 #include "global.h"
23 #include "area.h"
24 
25 class QColor;
26 
27 namespace Okular {
28 
29 class Action;
30 class Annotation;
31 class DocumentObserver;
32 class DocumentPrivate;
33 class FormField;
34 class HighlightAreaRect;
35 class Page;
36 class PageSize;
37 class PageTransition;
38 class RotationJob;
39 class TextPage;
40 class TilesManager;
41 
42 enum PageItem
43 {
44  None = 0,
45  AnnotationPageItems = 0x01,
46  FormFieldPageItems = 0x02,
47  AllPageItems = 0xff,
48 
49  /* If set along with AnnotationPageItems, tells saveLocalContents to save
50  * the original annotations (if any) instead of the modified ones */
51  OriginalAnnotationPageItems = 0x100
52 };
53 Q_DECLARE_FLAGS(PageItems, PageItem)
54 
55 class PagePrivate
56 {
57  public:
58  PagePrivate( Page *page, uint n, double w, double h, Rotation o );
59  ~PagePrivate();
60 
61  void imageRotationDone( RotationJob * job );
62  QTransform rotationMatrix() const;
63 
67  void restoreLocalContents( const QDomNode & pageNode );
68 
72  void saveLocalContents( QDomNode & parentNode, QDomDocument & document, PageItems what = AllPageItems ) const;
73 
77  void rotateAt( Rotation orientation );
78 
84  void changeSize( const PageSize &size );
85 
89  void setTextSelections( RegularAreaRect *areas, const QColor & color );
90 
95  void setHighlight( int id, RegularAreaRect *area, const QColor & color );
96 
100  void deleteHighlights( int id = -1 );
101 
105  void deleteTextSelections();
106 
110  TilesManager *tilesManager() const;
111  void setTilesManager( TilesManager *tm );
112 
113  class PixmapObject
114  {
115  public:
116  QPixmap *m_pixmap;
117  Rotation m_rotation;
118  };
119  QMap< DocumentObserver*, PixmapObject > m_pixmaps;
120  TilesManager* m_tilesManager;
121 
122  Page *m_page;
123  int m_number;
124  Rotation m_orientation;
125  double m_width, m_height;
126  DocumentPrivate *m_doc;
127  NormalizedRect m_boundingBox;
128  Rotation m_rotation;
129 
130  TextPage * m_text;
131  PageTransition * m_transition;
132  HighlightAreaRect *m_textSelections;
133  QLinkedList< FormField * > formfields;
134  Action * m_openingAction;
135  Action * m_closingAction;
136  double m_duration;
137  QString m_label;
138 
139  bool m_isBoundingBoxKnown : 1;
140  QDomDocument restoredLocalAnnotationList; // <annotationList>...</annotationList>
141 };
142 
143 }
144 
145 Q_DECLARE_OPERATORS_FOR_FLAGS(Okular::PageItems)
146 
147 #endif
Okular::FormFieldPageItems
Definition: page_p.h:46
Okular::PagePrivate::PixmapObject::m_pixmap
QPixmap * m_pixmap
Definition: page_p.h:116
Okular::PagePrivate::m_duration
double m_duration
Definition: page_p.h:136
Okular::None
Definition: page_p.h:44
Okular::PagePrivate::m_tilesManager
TilesManager * m_tilesManager
Definition: page_p.h:120
Okular::PagePrivate::m_label
QString m_label
Definition: page_p.h:137
Okular::Rotation
Rotation
A rotation.
Definition: global.h:44
Okular::PagePrivate
Definition: page_p.h:55
Okular::TextPage
The TextPage class represents the text of a page by providing.
Definition: textpage.h:90
Okular::PagePrivate::m_transition
PageTransition * m_transition
Definition: page_p.h:131
Okular::PagePrivate::m_page
Page * m_page
Definition: page_p.h:122
Okular::PagePrivate::formfields
QLinkedList< FormField * > formfields
Definition: page_p.h:133
Okular::NormalizedRect
NormalizedRect is a helper class which stores the coordinates of a normalized rect, which is a rectangle of.
Definition: area.h:105
area.h
Okular::RegularAreaRect
Definition: area.h:860
Okular::PagePrivate::PixmapObject::m_rotation
Rotation m_rotation
Definition: page_p.h:117
global.h
Okular::PagePrivate::m_rotation
Rotation m_rotation
Definition: page_p.h:128
Okular::PagePrivate::m_text
TextPage * m_text
Definition: page_p.h:130
Okular::PagePrivate::restoredLocalAnnotationList
QDomDocument restoredLocalAnnotationList
Definition: page_p.h:140
Okular::PagePrivate::m_openingAction
Action * m_openingAction
Definition: page_p.h:134
Okular::TilesManager
Tiles management.
Definition: tilesmanager_p.h:98
Okular::PagePrivate::m_pixmaps
QMap< DocumentObserver *, PixmapObject > m_pixmaps
Definition: page_p.h:119
Okular::Page
Collector for all the data belonging to a page.
Definition: page.h:49
Okular::AllPageItems
Definition: page_p.h:47
Okular::PagePrivate::m_doc
DocumentPrivate * m_doc
Definition: page_p.h:126
Okular::PagePrivate::m_textSelections
HighlightAreaRect * m_textSelections
Definition: page_p.h:132
Okular::PagePrivate::m_number
int m_number
Definition: page_p.h:123
Okular::DocumentPrivate
Definition: document_p.h:83
Okular::Action
Encapsulates data that describes an action.
Definition: action.h:43
Okular::PagePrivate::m_width
double m_width
Definition: page_p.h:125
Okular::PagePrivate::m_boundingBox
NormalizedRect m_boundingBox
Definition: page_p.h:127
Okular::PageSize
A small class that represents the size of a page.
Definition: pagesize.h:26
Okular::AnnotationPageItems
Definition: page_p.h:45
Okular::RotationJob
Definition: rotationjob_p.h:26
Okular::PagePrivate::m_closingAction
Action * m_closingAction
Definition: page_p.h:135
Okular::HighlightAreaRect
This class stores the coordinates of a highlighting area together with the id of the highlight owner ...
Definition: area.h:878
Okular::OriginalAnnotationPageItems
Definition: page_p.h:51
Okular::PageTransition
Information object for the transition effect of a page.
Definition: pagetransition.h:24
PageItem
Definition: pageitem.h:37
Okular::PagePrivate::m_orientation
Rotation m_orientation
Definition: page_p.h:124
Okular::PagePrivate::PixmapObject
Definition: page_p.h:113
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:02 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