• 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
document_p.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2004-2005 by Enrico Ros <eros.kde@email.it> *
3  * Copyright (C) 2004-2007 by Albert Astals Cid <aacid@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_DOCUMENT_P_H_
12 #define _OKULAR_DOCUMENT_P_H_
13 
14 #include "document.h"
15 
16 // qt/kde/system includes
17 #include <QtCore/QHash>
18 #include <QtCore/QLinkedList>
19 #include <QtCore/QMap>
20 #include <QtCore/QMutex>
21 #include <QtCore/QPointer>
22 
23 #include <kcomponentdata.h>
24 #include <kservicetypetrader.h>
25 
26 // local includes
27 #include "fontinfo.h"
28 #include "generator.h"
29 
30 class QUndoStack;
31 class QEventLoop;
32 class QTimer;
33 class KTemporaryFile;
34 
35 struct AllocatedPixmap;
36 struct ArchiveData;
37 struct RunningSearch;
38 
39 namespace Okular {
40 class ConfigInterface;
41 class PageController;
42 class SaveInterface;
43 class Scripter;
44 class View;
45 }
46 
47 struct GeneratorInfo
48 {
49  GeneratorInfo( const KComponentData &_data )
50  : generator( 0 ), data( _data ),
51  config( 0 ), save( 0 ),
52  configChecked( false ), saveChecked( false )
53  {}
54 
55  Okular::Generator * generator;
56  KComponentData data;
57  QString catalogName;
58  Okular::ConfigInterface * config;
59  Okular::SaveInterface * save;
60  bool configChecked : 1;
61  bool saveChecked : 1;
62 };
63 
64 namespace Okular {
65 
66 class FontExtractionThread;
67 
68 struct DoContinueDirectionMatchSearchStruct
69 {
70  bool forward;
71  QSet< int > *pagesToNotify;
72  RegularAreaRect *match;
73  int currentPage;
74  int searchID;
75  QString text;
76  Qt::CaseSensitivity caseSensitivity;
77  bool moveViewport;
78  QColor color;
79  bool noDialogs;
80  int pagesDone;
81 };
82 
83 class DocumentPrivate
84 {
85  public:
86  DocumentPrivate( Document *parent )
87  : m_parent( parent ),
88  m_lastSearchID( -1 ),
89  m_tempFile( 0 ),
90  m_docSize( -1 ),
91  m_allocatedPixmapsTotalMemory( 0 ),
92  m_maxAllocatedTextPages( 0 ),
93  m_warnedOutOfMemory( false ),
94  m_rotation( Rotation0 ),
95  m_exportCached( false ),
96  m_bookmarkManager( 0 ),
97  m_memCheckTimer( 0 ),
98  m_saveBookmarksTimer( 0 ),
99  m_generator( 0 ),
100  m_generatorsLoaded( false ),
101  m_pageController( 0 ),
102  m_closingLoop( 0 ),
103  m_scripter( 0 ),
104  m_archiveData( 0 ),
105  m_fontsCached( false ),
106  m_documentInfo( 0 ),
107  m_annotationEditingEnabled ( true ),
108  m_annotationBeingMoved( false )
109  {
110  calculateMaxTextPages();
111  }
112 
113  // private methods
114  QString pagesSizeString() const;
115  QString namePaperSize(double inchesWidth, double inchesHeight) const;
116  QString localizedSize(const QSizeF &size) const;
117  qulonglong calculateMemoryToFree();
118  void cleanupPixmapMemory();
119  void cleanupPixmapMemory( qulonglong memoryToFree );
120  AllocatedPixmap * searchLowestPriorityPixmap( bool unloadableOnly = false, bool thenRemoveIt = false, DocumentObserver *observer = 0 /* any */ );
121  void calculateMaxTextPages();
122  qulonglong getTotalMemory();
123  qulonglong getFreeMemory( qulonglong *freeSwap = 0 );
124  void loadDocumentInfo();
125  void loadDocumentInfo( const QString &fileName );
126  void loadViewsInfo( View *view, const QDomElement &e );
127  void saveViewsInfo( View *view, QDomElement &e ) const;
128  QString giveAbsolutePath( const QString & fileName ) const;
129  bool openRelativeFile( const QString & fileName );
130  Generator * loadGeneratorLibrary( const KService::Ptr &service );
131  void loadAllGeneratorLibraries();
132  void loadServiceList( const KService::List& offers );
133  void unloadGenerator( const GeneratorInfo& info );
134  void cacheExportFormats();
135  void setRotationInternal( int r, bool notify );
136  ConfigInterface* generatorConfig( GeneratorInfo& info );
137  SaveInterface* generatorSave( GeneratorInfo& info );
138  bool openDocumentInternal( const KService::Ptr& offer, bool isstdin, const QString& docFile, const QByteArray& filedata );
139  bool savePageDocumentInfo( KTemporaryFile *infoFile, int what ) const;
140  DocumentViewport nextDocumentViewport() const;
141  void notifyAnnotationChanges( int page );
142  bool canAddAnnotationsNatively() const;
143  bool canModifyExternalAnnotations() const;
144  bool canRemoveExternalAnnotations() const;
145  void warnLimitedAnnotSupport();
146 
147  // Methods that implement functionality needed by undo commands
148  void performAddPageAnnotation( int page, Annotation *annotation );
149  void performRemovePageAnnotation( int page, Annotation * annotation );
150  void performModifyPageAnnotation( int page, Annotation * annotation, bool appearanceChanged );
151  void performSetAnnotationContents( const QString & newContents, Annotation *annot, int pageNumber );
152 
153  // private slots
154  void saveDocumentInfo() const;
155  void slotTimedMemoryCheck();
156  void sendGeneratorPixmapRequest();
157  void rotationFinished( int page, Okular::Page *okularPage );
158  void fontReadingProgress( int page );
159  void fontReadingGotFont( const Okular::FontInfo& font );
160  void slotGeneratorConfigChanged( const QString& );
161  void refreshPixmaps( int );
162  void _o_configChanged();
163  void doContinueDirectionMatchSearch(void *doContinueDirectionMatchSearchStruct);
164  void doContinueAllDocumentSearch(void *pagesToNotifySet, void *pageMatchesMap, int currentPage, int searchID, const QString & text, int caseSensitivity, const QColor & color);
165  void doContinueGooglesDocumentSearch(void *pagesToNotifySet, void *pageMatchesMap, int currentPage, int searchID, const QStringList & words, int caseSensitivity, const QColor & color, bool matchAll);
166 
167  void doProcessSearchMatch( RegularAreaRect *match, RunningSearch *search, QSet< int > *pagesToNotify, int currentPage, int searchID, bool moveViewport, const QColor & color );
168 
169  // generators stuff
174  void requestDone( PixmapRequest * request );
175  void textGenerationDone( Page *page );
179  void setPageBoundingBox( int page, const NormalizedRect& boundingBox );
184  QVariant documentMetaData( const QString &key, const QVariant &option ) const;
185 
186  // member variables
187  Document *m_parent;
188  QPointer<QWidget> m_widget;
189 
190  // find descriptors, mapped by ID (we handle multiple searches)
191  QMap< int, RunningSearch * > m_searches;
192  int m_lastSearchID;
193  bool m_searchCancelled;
194 
195  // needed because for remote documents docFileName is a local file and
196  // we want the remote url when the document refers to relativeNames
197  KUrl m_url;
198 
199  // cached stuff
200  QString m_docFileName;
201  QString m_xmlFileName;
202  KTemporaryFile *m_tempFile;
203  qint64 m_docSize;
204 
205  // viewport stuff
206  QLinkedList< DocumentViewport > m_viewportHistory;
207  QLinkedList< DocumentViewport >::iterator m_viewportIterator;
208  DocumentViewport m_nextDocumentViewport; // see Link::Goto for an explanation
209  QString m_nextDocumentDestination;
210 
211  // observers / requests / allocator stuff
212  QSet< DocumentObserver * > m_observers;
213  // FIXME This is a hack, we need to support
214  // multiple tiled observers, but for the moment we only support one
215  DocumentObserver *m_tiledObserver;
216  QLinkedList< PixmapRequest * > m_pixmapRequestsStack;
217  QLinkedList< PixmapRequest * > m_executingPixmapRequests;
218  QMutex m_pixmapRequestsMutex;
219  QLinkedList< AllocatedPixmap * > m_allocatedPixmaps;
220  qulonglong m_allocatedPixmapsTotalMemory;
221  QList< int > m_allocatedTextPagesFifo;
222  int m_maxAllocatedTextPages;
223  bool m_warnedOutOfMemory;
224 
225  // the rotation applied to the document
226  Rotation m_rotation;
227 
228  // the current size of the pages (if available), and the cache of the
229  // available page sizes
230  PageSize m_pageSize;
231  PageSize::List m_pageSizes;
232 
233  // cache of the export formats
234  bool m_exportCached;
235  ExportFormat::List m_exportFormats;
236  ExportFormat m_exportToText;
237 
238  // our bookmark manager
239  BookmarkManager *m_bookmarkManager;
240 
241  // timers (memory checking / info saver)
242  QTimer *m_memCheckTimer;
243  QTimer *m_saveBookmarksTimer;
244 
245  QHash<QString, GeneratorInfo> m_loadedGenerators;
246  Generator * m_generator;
247  QString m_generatorName;
248  bool m_generatorsLoaded;
249  QVector< Page * > m_pagesVector;
250  QVector< VisiblePageRect * > m_pageRects;
251 
252  // cache of the mimetype we support
253  QStringList m_supportedMimeTypes;
254 
255  PageController *m_pageController;
256  QEventLoop *m_closingLoop;
257 
258  Scripter *m_scripter;
259 
260  ArchiveData *m_archiveData;
261  QString m_archivedFileName;
262 
263  QPointer< FontExtractionThread > m_fontThread;
264  bool m_fontsCached;
265  DocumentInfo *m_documentInfo;
266  FontInfo::List m_fontsCache;
267 
268  QSet< View * > m_views;
269 
270  bool m_annotationEditingEnabled;
271  bool m_annotationsNeedSaveAs;
272  bool m_annotationBeingMoved; // is an annotation currently being moved?
273  bool m_showWarningLimitedAnnotSupport;
274 
275  QUndoStack *m_undoStack;
276  QDomNode m_prevPropsOfAnnotBeingModified;
277 };
278 
279 }
280 
281 #endif
282 
283 /* kate: replace-tabs on; indent-width 4; */
Okular::DocumentPrivate::savePageDocumentInfo
bool savePageDocumentInfo(KTemporaryFile *infoFile, int what) const
Definition: document.cpp:972
Okular::DocumentPrivate::loadGeneratorLibrary
Generator * loadGeneratorLibrary(const KService::Ptr &service)
Definition: document.cpp:798
generator.h
Okular::DocumentPrivate::m_documentInfo
DocumentInfo * m_documentInfo
Definition: document_p.h:265
Okular::DocumentPrivate::m_widget
QPointer< QWidget > m_widget
Definition: document_p.h:188
GeneratorInfo::generator
Okular::Generator * generator
Definition: document_p.h:55
Okular::DocumentPrivate::slotTimedMemoryCheck
void slotTimedMemoryCheck()
Definition: document.cpp:1275
Okular::PageSize::List
QList< PageSize > List
Definition: pagesize.h:29
GeneratorInfo
Definition: document_p.h:47
Okular::Rotation
Rotation
A rotation.
Definition: global.h:44
Okular::DocumentPrivate::m_lastSearchID
int m_lastSearchID
Definition: document_p.h:192
Okular::DocumentPrivate::m_searchCancelled
bool m_searchCancelled
Definition: document_p.h:193
Okular::DocumentPrivate::m_pageSizes
PageSize::List m_pageSizes
Definition: document_p.h:231
Okular::DocumentPrivate::m_url
KUrl m_url
Definition: document_p.h:197
Okular::DocumentPrivate::m_nextDocumentViewport
DocumentViewport m_nextDocumentViewport
Definition: document_p.h:208
Okular::DocumentPrivate::performAddPageAnnotation
void performAddPageAnnotation(int page, Annotation *annotation)
Definition: document.cpp:1035
Okular::DocumentPrivate::setPageBoundingBox
void setPageBoundingBox(int page, const NormalizedRect &boundingBox)
Sets the bounding box of the given page (in terms of upright orientation, i.e., Rotation0).
Definition: document.cpp:4365
Okular::DocumentPrivate::notifyAnnotationChanges
void notifyAnnotationChanges(int page)
Definition: document.cpp:2909
Okular::DocumentPrivate::refreshPixmaps
void refreshPixmaps(int)
Definition: document.cpp:1546
Okular::DocumentPrivate::doProcessSearchMatch
void doProcessSearchMatch(RegularAreaRect *match, RunningSearch *search, QSet< int > *pagesToNotify, int currentPage, int searchID, bool moveViewport, const QColor &color)
Definition: document.cpp:1679
Okular::DocumentPrivate::sendGeneratorPixmapRequest
void sendGeneratorPixmapRequest()
Definition: document.cpp:1283
Okular::DocumentPrivate::m_warnedOutOfMemory
bool m_warnedOutOfMemory
Definition: document_p.h:223
Okular::DocumentPrivate::m_executingPixmapRequests
QLinkedList< PixmapRequest * > m_executingPixmapRequests
Definition: document_p.h:217
Okular::DocumentPrivate::loadServiceList
void loadServiceList(const KService::List &offers)
Definition: document.cpp:827
Okular::DocumentPrivate::cacheExportFormats
void cacheExportFormats()
Definition: document.cpp:851
fontinfo.h
Okular::DocumentPrivate::m_annotationBeingMoved
bool m_annotationBeingMoved
Definition: document_p.h:272
Okular::DocumentPrivate::m_archiveData
ArchiveData * m_archiveData
Definition: document_p.h:260
Okular::View
View on the document.
Definition: view.h:32
Okular::DocumentPrivate::_o_configChanged
void _o_configChanged()
Definition: document.cpp:1599
Okular::DocumentPrivate::m_fontsCached
bool m_fontsCached
Definition: document_p.h:264
Okular::DocumentPrivate::loadAllGeneratorLibraries
void loadAllGeneratorLibraries()
Definition: document.cpp:815
Okular::DoContinueDirectionMatchSearchStruct::caseSensitivity
Qt::CaseSensitivity caseSensitivity
Definition: document_p.h:76
Okular::NormalizedRect
NormalizedRect is a helper class which stores the coordinates of a normalized rect, which is a rectangle of.
Definition: area.h:105
Okular::DocumentPrivate::m_viewportHistory
QLinkedList< DocumentViewport > m_viewportHistory
Definition: document_p.h:206
GeneratorInfo::configChecked
bool configChecked
Definition: document_p.h:60
Okular::DocumentPrivate::m_generatorsLoaded
bool m_generatorsLoaded
Definition: document_p.h:248
Okular::DocumentPrivate::m_allocatedPixmapsTotalMemory
qulonglong m_allocatedPixmapsTotalMemory
Definition: document_p.h:220
Okular::DoContinueDirectionMatchSearchStruct::currentPage
int currentPage
Definition: document_p.h:73
Okular::DocumentPrivate::m_exportFormats
ExportFormat::List m_exportFormats
Definition: document_p.h:235
Okular::RegularAreaRect
Definition: area.h:860
Okular::DocumentPrivate::saveDocumentInfo
void saveDocumentInfo() const
Definition: document.cpp:1186
GeneratorInfo::catalogName
QString catalogName
Definition: document_p.h:57
Okular::DocumentPrivate::doContinueGooglesDocumentSearch
void doContinueGooglesDocumentSearch(void *pagesToNotifySet, void *pageMatchesMap, int currentPage, int searchID, const QStringList &words, int caseSensitivity, const QColor &color, bool matchAll)
Definition: document.cpp:1817
Okular::DocumentPrivate::m_exportCached
bool m_exportCached
Definition: document_p.h:234
Okular::Rotation0
Not rotated.
Definition: global.h:46
Okular::DocumentPrivate::documentMetaData
QVariant documentMetaData(const QString &key, const QVariant &option) const
Request a particular metadata of the Document itself (ie, not something depending on the document typ...
Definition: document.cpp:1938
Okular::DocumentPrivate::m_bookmarkManager
BookmarkManager * m_bookmarkManager
Definition: document_p.h:239
Okular::DocumentPrivate::m_pagesVector
QVector< Page * > m_pagesVector
Definition: document_p.h:249
Okular::DocumentPrivate::m_generatorName
QString m_generatorName
Definition: document_p.h:247
Okular::DocumentPrivate::getFreeMemory
qulonglong getFreeMemory(qulonglong *freeSwap=0)
Definition: document.cpp:484
Okular::DocumentPrivate::m_fontThread
QPointer< FontExtractionThread > m_fontThread
Definition: document_p.h:263
Okular::ExportFormat::List
QList< ExportFormat > List
Definition: generator.h:78
Okular::DocumentPrivate::m_annotationEditingEnabled
bool m_annotationEditingEnabled
Definition: document_p.h:270
Okular::DocumentPrivate::m_archivedFileName
QString m_archivedFileName
Definition: document_p.h:261
Okular::PageController
Definition: pagecontroller_p.h:26
Okular::DocumentPrivate::canAddAnnotationsNatively
bool canAddAnnotationsNatively() const
Definition: document.cpp:3042
Okular::DocumentPrivate::m_scripter
Scripter * m_scripter
Definition: document_p.h:258
Okular::DocumentPrivate::m_searches
QMap< int, RunningSearch * > m_searches
Definition: document_p.h:191
Okular::DocumentPrivate::saveViewsInfo
void saveViewsInfo(View *view, QDomElement &e) const
Definition: document.cpp:752
Okular::DocumentPrivate::generatorSave
SaveInterface * generatorSave(GeneratorInfo &info)
Definition: document.cpp:878
Okular::ConfigInterface
Abstract interface for configuration control.
Definition: configinterface.h:38
Okular::DocumentPrivate::m_exportToText
ExportFormat m_exportToText
Definition: document_p.h:236
Okular::FontInfo
A small class that represents the information of a font.
Definition: fontinfo.h:27
Okular::DocumentPrivate::performSetAnnotationContents
void performSetAnnotationContents(const QString &newContents, Annotation *annot, int pageNumber)
Definition: document.cpp:1150
Okular::DoContinueDirectionMatchSearchStruct::searchID
int searchID
Definition: document_p.h:74
GeneratorInfo::saveChecked
bool saveChecked
Definition: document_p.h:61
Okular::DoContinueDirectionMatchSearchStruct::match
RegularAreaRect * match
Definition: document_p.h:72
GeneratorInfo::save
Okular::SaveInterface * save
Definition: document_p.h:59
Okular::DocumentPrivate::fontReadingGotFont
void fontReadingGotFont(const Okular::FontInfo &font)
Definition: document.cpp:1497
Okular::Document
The Document.
Definition: document.h:84
Okular::Page
Collector for all the data belonging to a page.
Definition: page.h:49
Okular::DocumentPrivate::DocumentPrivate
DocumentPrivate(Document *parent)
Definition: document_p.h:86
Okular::DocumentPrivate::openRelativeFile
bool openRelativeFile(const QString &fileName)
Definition: document.cpp:786
Okular::DocumentPrivate::m_observers
QSet< DocumentObserver * > m_observers
Definition: document_p.h:212
document.h
Okular::DocumentPrivate::canModifyExternalAnnotations
bool canModifyExternalAnnotations() const
Definition: document.cpp:3053
Okular::DoContinueDirectionMatchSearchStruct::noDialogs
bool noDialogs
Definition: document_p.h:79
Okular::DocumentPrivate::m_loadedGenerators
QHash< QString, GeneratorInfo > m_loadedGenerators
Definition: document_p.h:245
Okular::DocumentPrivate::m_prevPropsOfAnnotBeingModified
QDomNode m_prevPropsOfAnnotBeingModified
Definition: document_p.h:276
Okular::DocumentPrivate::getTotalMemory
qulonglong getTotalMemory()
Definition: document.cpp:448
Okular::SaveInterface
Abstract interface for saving.
Definition: saveinterface.h:39
Okular::DocumentPrivate::openDocumentInternal
bool openDocumentInternal(const KService::Ptr &offer, bool isstdin, const QString &docFile, const QByteArray &filedata)
Definition: document.cpp:888
Okular::DocumentPrivate::m_docSize
qint64 m_docSize
Definition: document_p.h:203
Okular::DocumentPrivate::m_tempFile
KTemporaryFile * m_tempFile
Definition: document_p.h:202
Okular::DocumentPrivate::m_fontsCache
FontInfo::List m_fontsCache
Definition: document_p.h:266
Okular::DoContinueDirectionMatchSearchStruct::pagesToNotify
QSet< int > * pagesToNotify
Definition: document_p.h:71
Okular::DocumentPrivate::m_generator
Generator * m_generator
Definition: document_p.h:246
Okular::DocumentPrivate::rotationFinished
void rotationFinished(int page, Okular::Page *okularPage)
Definition: document.cpp:1475
Okular::DocumentPrivate::m_pageSize
PageSize m_pageSize
Definition: document_p.h:230
Okular::DocumentPrivate::namePaperSize
QString namePaperSize(double inchesWidth, double inchesHeight) const
Definition: document.cpp:159
Okular::DocumentPrivate::nextDocumentViewport
DocumentViewport nextDocumentViewport() const
Definition: document.cpp:1002
Okular::DocumentPrivate::unloadGenerator
void unloadGenerator(const GeneratorInfo &info)
Definition: document.cpp:846
Okular::DocumentPrivate
Definition: document_p.h:83
Okular::DocumentInfo
A DOM tree containing information about the document.
Definition: document.h:1073
Okular::DocumentPrivate::localizedSize
QString localizedSize(const QSizeF &size) const
Definition: document.cpp:260
Okular::DocumentPrivate::m_showWarningLimitedAnnotSupport
bool m_showWarningLimitedAnnotSupport
Definition: document_p.h:273
Okular::DoContinueDirectionMatchSearchStruct::color
QColor color
Definition: document_p.h:78
Okular::DoContinueDirectionMatchSearchStruct::pagesDone
int pagesDone
Definition: document_p.h:80
Okular::DocumentPrivate::m_pageRects
QVector< VisiblePageRect * > m_pageRects
Definition: document_p.h:250
Okular::DocumentPrivate::m_viewportIterator
QLinkedList< DocumentViewport >::iterator m_viewportIterator
Definition: document_p.h:207
GeneratorInfo::GeneratorInfo
GeneratorInfo(const KComponentData &_data)
Definition: document_p.h:49
Okular::DocumentPrivate::performRemovePageAnnotation
void performRemovePageAnnotation(int page, Annotation *annotation)
Definition: document.cpp:1068
Okular::DocumentPrivate::m_undoStack
QUndoStack * m_undoStack
Definition: document_p.h:275
Okular::DocumentPrivate::giveAbsolutePath
QString giveAbsolutePath(const QString &fileName) const
Definition: document.cpp:775
Okular::DocumentPrivate::textGenerationDone
void textGenerationDone(Page *page)
Definition: document.cpp:4408
Okular::DocumentPrivate::calculateMaxTextPages
void calculateMaxTextPages()
Definition: document.cpp:4385
Okular::DocumentPrivate::m_views
QSet< View * > m_views
Definition: document_p.h:268
Okular::DocumentPrivate::canRemoveExternalAnnotations
bool canRemoveExternalAnnotations() const
Definition: document.cpp:3064
Okular::ExportFormat
Defines an entry for the export menu.
Definition: generator.h:75
Okular::Annotation
Annotation struct holds properties shared by all annotations.
Definition: annotations.h:90
Okular::DocumentPrivate::m_saveBookmarksTimer
QTimer * m_saveBookmarksTimer
Definition: document_p.h:243
Okular::PageSize
A small class that represents the size of a page.
Definition: pagesize.h:26
Okular::DocumentPrivate::m_allocatedPixmaps
QLinkedList< AllocatedPixmap * > m_allocatedPixmaps
Definition: document_p.h:219
Okular::DocumentPrivate::m_memCheckTimer
QTimer * m_memCheckTimer
Definition: document_p.h:242
Okular::DocumentPrivate::slotGeneratorConfigChanged
void slotGeneratorConfigChanged(const QString &)
Definition: document.cpp:1505
Okular::DocumentPrivate::m_xmlFileName
QString m_xmlFileName
Definition: document_p.h:201
Okular::DocumentPrivate::performModifyPageAnnotation
void performModifyPageAnnotation(int page, Annotation *annotation, bool appearanceChanged)
Definition: document.cpp:1106
Okular::DocumentPrivate::searchLowestPriorityPixmap
AllocatedPixmap * searchLowestPriorityPixmap(bool unloadableOnly=false, bool thenRemoveIt=false, DocumentObserver *observer=0)
Definition: document.cpp:413
Okular::DocumentPrivate::requestDone
void requestDone(PixmapRequest *request)
This method is used by the generators to signal the finish of the pixmap generation request...
Definition: document.cpp:4294
Okular::DoContinueDirectionMatchSearchStruct
Definition: document_p.h:68
Okular::DocumentObserver
Base class for objects being notified when something changes.
Definition: observer.h:28
Okular::DocumentPrivate::warnLimitedAnnotSupport
void warnLimitedAnnotSupport()
Definition: document.cpp:1016
Okular::DocumentPrivate::m_pixmapRequestsMutex
QMutex m_pixmapRequestsMutex
Definition: document_p.h:218
Okular::DocumentPrivate::generatorConfig
ConfigInterface * generatorConfig(GeneratorInfo &info)
Definition: document.cpp:868
Okular::DocumentPrivate::m_rotation
Rotation m_rotation
Definition: document_p.h:226
Okular::DocumentPrivate::m_closingLoop
QEventLoop * m_closingLoop
Definition: document_p.h:256
Okular::DoContinueDirectionMatchSearchStruct::moveViewport
bool moveViewport
Definition: document_p.h:77
Okular::DocumentPrivate::m_docFileName
QString m_docFileName
Definition: document_p.h:200
Okular::DocumentViewport
A view on the document.
Definition: document.h:1003
Okular::DocumentPrivate::pagesSizeString
QString pagesSizeString() const
Definition: document.cpp:144
GeneratorInfo::data
KComponentData data
Definition: document_p.h:56
Okular::DocumentPrivate::m_allocatedTextPagesFifo
QList< int > m_allocatedTextPagesFifo
Definition: document_p.h:221
Okular::DocumentPrivate::m_pageController
PageController * m_pageController
Definition: document_p.h:255
Okular::DocumentPrivate::doContinueAllDocumentSearch
void doContinueAllDocumentSearch(void *pagesToNotifySet, void *pageMatchesMap, int currentPage, int searchID, const QString &text, int caseSensitivity, const QColor &color)
Definition: document.cpp:1729
GeneratorInfo::config
Okular::ConfigInterface * config
Definition: document_p.h:58
Okular::DocumentPrivate::m_tiledObserver
DocumentObserver * m_tiledObserver
Definition: document_p.h:215
Okular::Scripter
Definition: scripter.h:24
Okular::DocumentPrivate::m_parent
Document * m_parent
Definition: document_p.h:187
Okular::DocumentPrivate::m_nextDocumentDestination
QString m_nextDocumentDestination
Definition: document_p.h:209
Okular::DocumentPrivate::loadDocumentInfo
void loadDocumentInfo()
Definition: document.cpp:590
Okular::DocumentPrivate::cleanupPixmapMemory
void cleanupPixmapMemory()
Definition: document.cpp:326
Okular::DoContinueDirectionMatchSearchStruct::forward
bool forward
Definition: document_p.h:70
Okular::DocumentPrivate::m_supportedMimeTypes
QStringList m_supportedMimeTypes
Definition: document_p.h:253
Okular::DoContinueDirectionMatchSearchStruct::text
QString text
Definition: document_p.h:75
Okular::DocumentPrivate::fontReadingProgress
void fontReadingProgress(int page)
Definition: document.cpp:1485
Okular::DocumentPrivate::loadViewsInfo
void loadViewsInfo(View *view, const QDomElement &e)
Definition: document.cpp:719
Okular::BookmarkManager
Bookmarks manager utility.
Definition: bookmarkmanager.h:32
Okular::DocumentPrivate::doContinueDirectionMatchSearch
void doContinueDirectionMatchSearch(void *doContinueDirectionMatchSearchStruct)
Definition: document.cpp:1610
Okular::DocumentPrivate::m_pixmapRequestsStack
QLinkedList< PixmapRequest * > m_pixmapRequestsStack
Definition: document_p.h:216
Okular::PixmapRequest
Describes a pixmap type request.
Definition: generator.h:522
Okular::DocumentPrivate::setRotationInternal
void setRotationInternal(int r, bool notify)
Definition: document.cpp:4431
Okular::DocumentPrivate::m_annotationsNeedSaveAs
bool m_annotationsNeedSaveAs
Definition: document_p.h:271
Okular::Generator
[Abstract Class] The information generator.
Definition: generator.h:185
Okular::FontInfo::List
QList< FontInfo > List
Definition: fontinfo.h:30
Okular::DocumentPrivate::calculateMemoryToFree
qulonglong calculateMemoryToFree()
Definition: document.cpp:283
Okular::DocumentPrivate::m_maxAllocatedTextPages
int m_maxAllocatedTextPages
Definition: document_p.h:222
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