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

okular

  • sources
  • kde-4.14
  • 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 QFile;
33 class QTimer;
34 class KTemporaryFile;
35 
36 struct AllocatedPixmap;
37 struct ArchiveData;
38 struct RunningSearch;
39 
40 namespace Okular {
41 class ConfigInterface;
42 class PageController;
43 class SaveInterface;
44 class Scripter;
45 class View;
46 }
47 
48 struct GeneratorInfo
49 {
50  GeneratorInfo( const KComponentData &_data )
51  : generator( 0 ), data( _data ),
52  config( 0 ), save( 0 ),
53  configChecked( false ), saveChecked( false )
54  {}
55 
56  Okular::Generator * generator;
57  KComponentData data;
58  QString catalogName;
59  Okular::ConfigInterface * config;
60  Okular::SaveInterface * save;
61  bool configChecked : 1;
62  bool saveChecked : 1;
63 };
64 
65 namespace Okular {
66 
67 class FontExtractionThread;
68 
69 struct DoContinueDirectionMatchSearchStruct
70 {
71  QSet< int > *pagesToNotify;
72  RegularAreaRect *match;
73  int currentPage;
74  int searchID;
75 };
76 
77 class DocumentPrivate
78 {
79  public:
80  DocumentPrivate( Document *parent )
81  : m_parent( parent ),
82  m_tempFile( 0 ),
83  m_docSize( -1 ),
84  m_allocatedPixmapsTotalMemory( 0 ),
85  m_maxAllocatedTextPages( 0 ),
86  m_warnedOutOfMemory( false ),
87  m_rotation( Rotation0 ),
88  m_exportCached( false ),
89  m_bookmarkManager( 0 ),
90  m_memCheckTimer( 0 ),
91  m_saveBookmarksTimer( 0 ),
92  m_generator( 0 ),
93  m_generatorsLoaded( false ),
94  m_pageController( 0 ),
95  m_closingLoop( 0 ),
96  m_scripter( 0 ),
97  m_archiveData( 0 ),
98  m_fontsCached( false ),
99  m_documentInfo( 0 ),
100  m_annotationEditingEnabled ( true ),
101  m_annotationBeingMoved( false )
102  {
103  calculateMaxTextPages();
104  }
105 
106  // private methods
107  QString pagesSizeString() const;
108  QString namePaperSize(double inchesWidth, double inchesHeight) const;
109  QString localizedSize(const QSizeF &size) const;
110  qulonglong calculateMemoryToFree();
111  void cleanupPixmapMemory();
112  void cleanupPixmapMemory( qulonglong memoryToFree );
113  AllocatedPixmap * searchLowestPriorityPixmap( bool unloadableOnly = false, bool thenRemoveIt = false, DocumentObserver *observer = 0 /* any */ );
114  void calculateMaxTextPages();
115  qulonglong getTotalMemory();
116  qulonglong getFreeMemory( qulonglong *freeSwap = 0 );
117  void loadDocumentInfo();
118  void loadDocumentInfo( QFile &infoFile );
119  void loadViewsInfo( View *view, const QDomElement &e );
120  void saveViewsInfo( View *view, QDomElement &e ) const;
121  QString giveAbsolutePath( const QString & fileName ) const;
122  bool openRelativeFile( const QString & fileName );
123  Generator * loadGeneratorLibrary( const KService::Ptr &service );
124  void loadAllGeneratorLibraries();
125  void loadServiceList( const KService::List& offers );
126  void unloadGenerator( const GeneratorInfo& info );
127  void cacheExportFormats();
128  void setRotationInternal( int r, bool notify );
129  ConfigInterface* generatorConfig( GeneratorInfo& info );
130  SaveInterface* generatorSave( GeneratorInfo& info );
131  Document::OpenResult openDocumentInternal( const KService::Ptr& offer, bool isstdin, const QString& docFile, const QByteArray& filedata, const QString& password );
132  bool savePageDocumentInfo( KTemporaryFile *infoFile, int what ) const;
133  DocumentViewport nextDocumentViewport() const;
134  void notifyAnnotationChanges( int page );
135  bool canAddAnnotationsNatively() const;
136  bool canModifyExternalAnnotations() const;
137  bool canRemoveExternalAnnotations() const;
138  void warnLimitedAnnotSupport();
139  OKULAR_EXPORT static QString docDataFileName(const KUrl &url, qint64 document_size);
140 
141  // Methods that implement functionality needed by undo commands
142  void performAddPageAnnotation( int page, Annotation *annotation );
143  void performRemovePageAnnotation( int page, Annotation * annotation );
144  void performModifyPageAnnotation( int page, Annotation * annotation, bool appearanceChanged );
145  void performSetAnnotationContents( const QString & newContents, Annotation *annot, int pageNumber );
146 
147  // private slots
148  void saveDocumentInfo() const;
149  void slotTimedMemoryCheck();
150  void sendGeneratorPixmapRequest();
151  void rotationFinished( int page, Okular::Page *okularPage );
152  void fontReadingProgress( int page );
153  void fontReadingGotFont( const Okular::FontInfo& font );
154  void slotGeneratorConfigChanged( const QString& );
155  void refreshPixmaps( int );
156  void _o_configChanged();
157  void doContinueDirectionMatchSearch(void *doContinueDirectionMatchSearchStruct);
158  void doContinueAllDocumentSearch(void *pagesToNotifySet, void *pageMatchesMap, int currentPage, int searchID);
159  void doContinueGooglesDocumentSearch(void *pagesToNotifySet, void *pageMatchesMap, int currentPage, int searchID, const QStringList & words);
160 
161  void doProcessSearchMatch( RegularAreaRect *match, RunningSearch *search, QSet< int > *pagesToNotify, int currentPage, int searchID, bool moveViewport, const QColor & color );
162 
163  // generators stuff
168  void requestDone( PixmapRequest * request );
169  void textGenerationDone( Page *page );
173  void setPageBoundingBox( int page, const NormalizedRect& boundingBox );
178  QVariant documentMetaData( const QString &key, const QVariant &option ) const;
179 
184  bool isNormalizedRectangleFullyVisible( const Okular::NormalizedRect & rectOfInterest, int rectPage );
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  bool m_searchCancelled;
193 
194  // needed because for remote documents docFileName is a local file and
195  // we want the remote url when the document refers to relativeNames
196  KUrl m_url;
197 
198  // cached stuff
199  QString m_docFileName;
200  QString m_xmlFileName;
201  KTemporaryFile *m_tempFile;
202  qint64 m_docSize;
203 
204  // viewport stuff
205  QLinkedList< DocumentViewport > m_viewportHistory;
206  QLinkedList< DocumentViewport >::iterator m_viewportIterator;
207  DocumentViewport m_nextDocumentViewport; // see Link::Goto for an explanation
208  QString m_nextDocumentDestination;
209 
210  // observers / requests / allocator stuff
211  QSet< DocumentObserver * > m_observers;
212  QLinkedList< PixmapRequest * > m_pixmapRequestsStack;
213  QLinkedList< PixmapRequest * > m_executingPixmapRequests;
214  QMutex m_pixmapRequestsMutex;
215  QLinkedList< AllocatedPixmap * > m_allocatedPixmaps;
216  qulonglong m_allocatedPixmapsTotalMemory;
217  QList< int > m_allocatedTextPagesFifo;
218  int m_maxAllocatedTextPages;
219  bool m_warnedOutOfMemory;
220 
221  // the rotation applied to the document
222  Rotation m_rotation;
223 
224  // the current size of the pages (if available), and the cache of the
225  // available page sizes
226  PageSize m_pageSize;
227  PageSize::List m_pageSizes;
228 
229  // cache of the export formats
230  bool m_exportCached;
231  ExportFormat::List m_exportFormats;
232  ExportFormat m_exportToText;
233 
234  // our bookmark manager
235  BookmarkManager *m_bookmarkManager;
236 
237  // timers (memory checking / info saver)
238  QTimer *m_memCheckTimer;
239  QTimer *m_saveBookmarksTimer;
240 
241  QHash<QString, GeneratorInfo> m_loadedGenerators;
242  Generator * m_generator;
243  QString m_generatorName;
244  bool m_generatorsLoaded;
245  QVector< Page * > m_pagesVector;
246  QVector< VisiblePageRect * > m_pageRects;
247 
248  // cache of the mimetype we support
249  QStringList m_supportedMimeTypes;
250 
251  PageController *m_pageController;
252  QEventLoop *m_closingLoop;
253 
254  Scripter *m_scripter;
255 
256  ArchiveData *m_archiveData;
257  QString m_archivedFileName;
258 
259  QPointer< FontExtractionThread > m_fontThread;
260  bool m_fontsCached;
261  DocumentInfo *m_documentInfo;
262  FontInfo::List m_fontsCache;
263 
264  QSet< View * > m_views;
265 
266  bool m_annotationEditingEnabled;
267  bool m_annotationsNeedSaveAs;
268  bool m_annotationBeingMoved; // is an annotation currently being moved?
269  bool m_showWarningLimitedAnnotSupport;
270 
271  QUndoStack *m_undoStack;
272  QDomNode m_prevPropsOfAnnotBeingModified;
273 };
274 
275 }
276 
277 #endif
278 
279 /* kate: replace-tabs on; indent-width 4; */
Okular::DocumentPrivate::savePageDocumentInfo
bool savePageDocumentInfo(KTemporaryFile *infoFile, int what) const
Definition: document.cpp:995
Okular::DocumentPrivate::loadGeneratorLibrary
Generator * loadGeneratorLibrary(const KService::Ptr &service)
Definition: document.cpp:816
generator.h
Okular::DocumentPrivate::m_documentInfo
DocumentInfo * m_documentInfo
Definition: document_p.h:261
Okular::DocumentPrivate::m_widget
QPointer< QWidget > m_widget
Definition: document_p.h:188
GeneratorInfo::generator
Okular::Generator * generator
Definition: document_p.h:56
QMutex
Okular::DocumentPrivate::slotTimedMemoryCheck
void slotTimedMemoryCheck()
Definition: document.cpp:1298
GeneratorInfo
Definition: document_p.h:48
Okular::Rotation
Rotation
A rotation.
Definition: global.h:44
Okular::DocumentPrivate::m_searchCancelled
bool m_searchCancelled
Definition: document_p.h:192
Okular::DocumentPrivate::m_pageSizes
PageSize::List m_pageSizes
Definition: document_p.h:227
Okular::DocumentPrivate::m_url
KUrl m_url
Definition: document_p.h:196
Okular::DocumentPrivate::m_nextDocumentViewport
DocumentViewport m_nextDocumentViewport
Definition: document_p.h:207
Okular::DocumentPrivate::performAddPageAnnotation
void performAddPageAnnotation(int page, Annotation *annotation)
Definition: document.cpp:1058
QEventLoop
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:4388
Okular::DocumentPrivate::notifyAnnotationChanges
void notifyAnnotationChanges(int page)
Definition: document.cpp:2957
Okular::DocumentPrivate::refreshPixmaps
void refreshPixmaps(int)
Definition: document.cpp:1569
Okular::DocumentPrivate::doProcessSearchMatch
void doProcessSearchMatch(RegularAreaRect *match, RunningSearch *search, QSet< int > *pagesToNotify, int currentPage, int searchID, bool moveViewport, const QColor &color)
Definition: document.cpp:1706
Okular::DocumentPrivate::sendGeneratorPixmapRequest
void sendGeneratorPixmapRequest()
Definition: document.cpp:1306
Okular::DocumentPrivate::m_warnedOutOfMemory
bool m_warnedOutOfMemory
Definition: document_p.h:219
Okular::DocumentPrivate::m_executingPixmapRequests
QLinkedList< PixmapRequest * > m_executingPixmapRequests
Definition: document_p.h:213
QByteArray
Okular::DocumentPrivate::loadServiceList
void loadServiceList(const KService::List &offers)
Definition: document.cpp:845
Okular::DocumentPrivate::cacheExportFormats
void cacheExportFormats()
Definition: document.cpp:869
fontinfo.h
Okular::DocumentPrivate::m_annotationBeingMoved
bool m_annotationBeingMoved
Definition: document_p.h:268
Okular::DocumentPrivate::m_archiveData
ArchiveData * m_archiveData
Definition: document_p.h:256
Okular::View
View on the document.
Definition: view.h:32
Okular::DocumentPrivate::_o_configChanged
void _o_configChanged()
Definition: document.cpp:1626
Okular::DocumentPrivate::m_fontsCached
bool m_fontsCached
Definition: document_p.h:260
Okular::DocumentPrivate::isNormalizedRectangleFullyVisible
bool isNormalizedRectangleFullyVisible(const Okular::NormalizedRect &rectOfInterest, int rectPage)
Return whether the normalized rectangle rectOfInterest on page number rectPage is fully visible...
Definition: document.cpp:2032
Okular::DocumentPrivate::loadAllGeneratorLibraries
void loadAllGeneratorLibraries()
Definition: document.cpp:833
QMap< int, RunningSearch * >
QPointer< QWidget >
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:205
GeneratorInfo::configChecked
bool configChecked
Definition: document_p.h:61
Okular::DocumentPrivate::m_generatorsLoaded
bool m_generatorsLoaded
Definition: document_p.h:244
Okular::DocumentPrivate::m_allocatedPixmapsTotalMemory
qulonglong m_allocatedPixmapsTotalMemory
Definition: document_p.h:216
Okular::DoContinueDirectionMatchSearchStruct::currentPage
int currentPage
Definition: document_p.h:73
Okular::DocumentPrivate::m_exportFormats
ExportFormat::List m_exportFormats
Definition: document_p.h:231
Okular::RegularAreaRect
Definition: area.h:860
Okular::DocumentPrivate::saveDocumentInfo
void saveDocumentInfo() const
Definition: document.cpp:1209
GeneratorInfo::catalogName
QString catalogName
Definition: document_p.h:58
QDomNode
Okular::DocumentPrivate::m_exportCached
bool m_exportCached
Definition: document_p.h:230
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:1968
QFile
Okular::DocumentPrivate::m_bookmarkManager
BookmarkManager * m_bookmarkManager
Definition: document_p.h:235
Okular::DocumentPrivate::docDataFileName
static OKULAR_EXPORT QString docDataFileName(const KUrl &url, qint64 document_size)
Definition: document.cpp:2108
Okular::DocumentPrivate::m_pagesVector
QVector< Page * > m_pagesVector
Definition: document_p.h:245
Okular::Document::OpenResult
OpenResult
Describes the result of an open document operation.
Definition: document.h:103
Okular::DocumentPrivate::m_generatorName
QString m_generatorName
Definition: document_p.h:243
Okular::DocumentPrivate::getFreeMemory
qulonglong getFreeMemory(qulonglong *freeSwap=0)
Definition: document.cpp:502
Okular::DocumentPrivate::m_fontThread
QPointer< FontExtractionThread > m_fontThread
Definition: document_p.h:259
Okular::DocumentPrivate::m_annotationEditingEnabled
bool m_annotationEditingEnabled
Definition: document_p.h:266
Okular::DocumentPrivate::m_archivedFileName
QString m_archivedFileName
Definition: document_p.h:257
Okular::PageController
Definition: pagecontroller_p.h:26
QLinkedList
Okular::DocumentPrivate::canAddAnnotationsNatively
bool canAddAnnotationsNatively() const
Definition: document.cpp:3090
Okular::DocumentPrivate::m_scripter
Scripter * m_scripter
Definition: document_p.h:254
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:770
Okular::DocumentPrivate::generatorSave
SaveInterface * generatorSave(GeneratorInfo &info)
Definition: document.cpp:896
Okular::ConfigInterface
Abstract interface for configuration control.
Definition: configinterface.h:38
Okular::DocumentPrivate::m_exportToText
ExportFormat m_exportToText
Definition: document_p.h:232
Okular::FontInfo
A small class that represents the information of a font.
Definition: fontinfo.h:27
QTimer
Okular::DocumentPrivate::performSetAnnotationContents
void performSetAnnotationContents(const QString &newContents, Annotation *annot, int pageNumber)
Definition: document.cpp:1173
Okular::DoContinueDirectionMatchSearchStruct::searchID
int searchID
Definition: document_p.h:74
QHash< QString, GeneratorInfo >
GeneratorInfo::saveChecked
bool saveChecked
Definition: document_p.h:62
Okular::DoContinueDirectionMatchSearchStruct::match
RegularAreaRect * match
Definition: document_p.h:72
GeneratorInfo::save
Okular::SaveInterface * save
Definition: document_p.h:60
Okular::DocumentPrivate::doContinueAllDocumentSearch
void doContinueAllDocumentSearch(void *pagesToNotifySet, void *pageMatchesMap, int currentPage, int searchID)
Definition: document.cpp:1760
Okular::DocumentPrivate::fontReadingGotFont
void fontReadingGotFont(const Okular::FontInfo &font)
Definition: document.cpp:1520
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:80
Okular::DocumentPrivate::openRelativeFile
bool openRelativeFile(const QString &fileName)
Definition: document.cpp:804
Okular::DocumentPrivate::m_observers
QSet< DocumentObserver * > m_observers
Definition: document_p.h:211
document.h
QSet< int >
Okular::DocumentPrivate::canModifyExternalAnnotations
bool canModifyExternalAnnotations() const
Definition: document.cpp:3101
Okular::DocumentPrivate::m_loadedGenerators
QHash< QString, GeneratorInfo > m_loadedGenerators
Definition: document_p.h:241
Okular::DocumentPrivate::m_prevPropsOfAnnotBeingModified
QDomNode m_prevPropsOfAnnotBeingModified
Definition: document_p.h:272
Okular::DocumentPrivate::getTotalMemory
qulonglong getTotalMemory()
Definition: document.cpp:466
Okular::SaveInterface
Abstract interface for saving.
Definition: saveinterface.h:39
QString
QList< int >
QColor
Okular::DocumentPrivate::m_docSize
qint64 m_docSize
Definition: document_p.h:202
Okular::DocumentPrivate::m_tempFile
KTemporaryFile * m_tempFile
Definition: document_p.h:201
Okular::DocumentPrivate::m_fontsCache
FontInfo::List m_fontsCache
Definition: document_p.h:262
Okular::DoContinueDirectionMatchSearchStruct::pagesToNotify
QSet< int > * pagesToNotify
Definition: document_p.h:71
Okular::DocumentPrivate::m_generator
Generator * m_generator
Definition: document_p.h:242
QStringList
Okular::DocumentPrivate::rotationFinished
void rotationFinished(int page, Okular::Page *okularPage)
Definition: document.cpp:1498
Okular::DocumentPrivate::m_pageSize
PageSize m_pageSize
Definition: document_p.h:226
Okular::DocumentPrivate::namePaperSize
QString namePaperSize(double inchesWidth, double inchesHeight) const
Definition: document.cpp:160
Okular::DocumentPrivate::nextDocumentViewport
DocumentViewport nextDocumentViewport() const
Definition: document.cpp:1025
Okular::DocumentPrivate::unloadGenerator
void unloadGenerator(const GeneratorInfo &info)
Definition: document.cpp:864
Okular::DocumentPrivate::doContinueGooglesDocumentSearch
void doContinueGooglesDocumentSearch(void *pagesToNotifySet, void *pageMatchesMap, int currentPage, int searchID, const QStringList &words)
Definition: document.cpp:1847
Okular::DocumentPrivate
Definition: document_p.h:77
Okular::DocumentInfo
A DOM tree containing information about the document.
Definition: document.h:1086
Okular::DocumentPrivate::localizedSize
QString localizedSize(const QSizeF &size) const
Definition: document.cpp:261
Okular::DocumentPrivate::m_showWarningLimitedAnnotSupport
bool m_showWarningLimitedAnnotSupport
Definition: document_p.h:269
Okular::DocumentPrivate::m_pageRects
QVector< VisiblePageRect * > m_pageRects
Definition: document_p.h:246
Okular::DocumentPrivate::m_viewportIterator
QLinkedList< DocumentViewport >::iterator m_viewportIterator
Definition: document_p.h:206
GeneratorInfo::GeneratorInfo
GeneratorInfo(const KComponentData &_data)
Definition: document_p.h:50
Okular::DocumentPrivate::performRemovePageAnnotation
void performRemovePageAnnotation(int page, Annotation *annotation)
Definition: document.cpp:1091
Okular::DocumentPrivate::m_undoStack
QUndoStack * m_undoStack
Definition: document_p.h:271
QVector
Okular::DocumentPrivate::giveAbsolutePath
QString giveAbsolutePath(const QString &fileName) const
Definition: document.cpp:793
Okular::DocumentPrivate::textGenerationDone
void textGenerationDone(Page *page)
Definition: document.cpp:4431
QSizeF
Okular::DocumentPrivate::calculateMaxTextPages
void calculateMaxTextPages()
Definition: document.cpp:4408
Okular::DocumentPrivate::m_views
QSet< View * > m_views
Definition: document_p.h:264
Okular::DocumentPrivate::canRemoveExternalAnnotations
bool canRemoveExternalAnnotations() const
Definition: document.cpp:3112
Okular::ExportFormat
Defines an entry for the export menu.
Definition: generator.h:76
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:239
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:215
Okular::DocumentPrivate::m_memCheckTimer
QTimer * m_memCheckTimer
Definition: document_p.h:238
Okular::DocumentPrivate::slotGeneratorConfigChanged
void slotGeneratorConfigChanged(const QString &)
Definition: document.cpp:1528
Okular::DocumentPrivate::m_xmlFileName
QString m_xmlFileName
Definition: document_p.h:200
Okular::DocumentPrivate::performModifyPageAnnotation
void performModifyPageAnnotation(int page, Annotation *annotation, bool appearanceChanged)
Definition: document.cpp:1129
Okular::DocumentPrivate::searchLowestPriorityPixmap
AllocatedPixmap * searchLowestPriorityPixmap(bool unloadableOnly=false, bool thenRemoveIt=false, DocumentObserver *observer=0)
Definition: document.cpp:431
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:4317
Okular::DoContinueDirectionMatchSearchStruct
Definition: document_p.h:69
Okular::DocumentObserver
Base class for objects being notified when something changes.
Definition: observer.h:28
QUndoStack
Okular::DocumentPrivate::warnLimitedAnnotSupport
void warnLimitedAnnotSupport()
Definition: document.cpp:1039
Okular::DocumentPrivate::m_pixmapRequestsMutex
QMutex m_pixmapRequestsMutex
Definition: document_p.h:214
OKULAR_EXPORT
#define OKULAR_EXPORT
Definition: okular_export.h:30
QLinkedList::iterator
Okular::DocumentPrivate::generatorConfig
ConfigInterface * generatorConfig(GeneratorInfo &info)
Definition: document.cpp:886
Okular::DocumentPrivate::m_rotation
Rotation m_rotation
Definition: document_p.h:222
Okular::DocumentPrivate::m_closingLoop
QEventLoop * m_closingLoop
Definition: document_p.h:252
Okular::DocumentPrivate::openDocumentInternal
Document::OpenResult openDocumentInternal(const KService::Ptr &offer, bool isstdin, const QString &docFile, const QByteArray &filedata, const QString &password)
Definition: document.cpp:906
Okular::DocumentPrivate::m_docFileName
QString m_docFileName
Definition: document_p.h:199
Okular::DocumentViewport
A view on the document.
Definition: document.h:1016
Okular::DocumentPrivate::pagesSizeString
QString pagesSizeString() const
Definition: document.cpp:145
GeneratorInfo::data
KComponentData data
Definition: document_p.h:57
Okular::DocumentPrivate::m_allocatedTextPagesFifo
QList< int > m_allocatedTextPagesFifo
Definition: document_p.h:217
Okular::DocumentPrivate::m_pageController
PageController * m_pageController
Definition: document_p.h:251
GeneratorInfo::config
Okular::ConfigInterface * config
Definition: document_p.h:59
QDomElement
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:208
Okular::DocumentPrivate::loadDocumentInfo
void loadDocumentInfo()
Definition: document.cpp:608
Okular::DocumentPrivate::cleanupPixmapMemory
void cleanupPixmapMemory()
Definition: document.cpp:335
Okular::DocumentPrivate::m_supportedMimeTypes
QStringList m_supportedMimeTypes
Definition: document_p.h:249
Okular::DocumentPrivate::fontReadingProgress
void fontReadingProgress(int page)
Definition: document.cpp:1508
Okular::DocumentPrivate::loadViewsInfo
void loadViewsInfo(View *view, const QDomElement &e)
Definition: document.cpp:737
Okular::BookmarkManager
Bookmarks manager utility.
Definition: bookmarkmanager.h:32
Okular::DocumentPrivate::doContinueDirectionMatchSearch
void doContinueDirectionMatchSearch(void *doContinueDirectionMatchSearchStruct)
Definition: document.cpp:1637
Okular::DocumentPrivate::m_pixmapRequestsStack
QLinkedList< PixmapRequest * > m_pixmapRequestsStack
Definition: document_p.h:212
Okular::PixmapRequest
Describes a pixmap type request.
Definition: generator.h:575
Okular::DocumentPrivate::setRotationInternal
void setRotationInternal(int r, bool notify)
Definition: document.cpp:4454
Okular::DocumentPrivate::m_annotationsNeedSaveAs
bool m_annotationsNeedSaveAs
Definition: document_p.h:267
Okular::Generator
[Abstract Class] The information generator.
Definition: generator.h:186
QVariant
Okular::DocumentPrivate::calculateMemoryToFree
qulonglong calculateMemoryToFree()
Definition: document.cpp:292
Okular::DocumentPrivate::m_maxAllocatedTextPages
int m_maxAllocatedTextPages
Definition: document_p.h:218
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:25 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