okular
#include <document_p.h>
Public Member Functions | |
DocumentPrivate (Document *parent) | |
void | _o_configChanged () |
void | cacheExportFormats () |
void | calculateMaxTextPages () |
qulonglong | calculateMemoryToFree () |
bool | canAddAnnotationsNatively () const |
bool | canModifyExternalAnnotations () const |
bool | canRemoveExternalAnnotations () const |
void | cleanupPixmapMemory () |
void | cleanupPixmapMemory (qulonglong memoryToFree) |
void | doContinueAllDocumentSearch (void *pagesToNotifySet, void *pageMatchesMap, int currentPage, int searchID) |
void | doContinueDirectionMatchSearch (void *doContinueDirectionMatchSearchStruct) |
void | doContinueGooglesDocumentSearch (void *pagesToNotifySet, void *pageMatchesMap, int currentPage, int searchID, const QStringList &words) |
QVariant | documentMetaData (const QString &key, const QVariant &option) const |
void | doProcessSearchMatch (RegularAreaRect *match, RunningSearch *search, QSet< int > *pagesToNotify, int currentPage, int searchID, bool moveViewport, const QColor &color) |
void | fontReadingGotFont (const Okular::FontInfo &font) |
void | fontReadingProgress (int page) |
ConfigInterface * | generatorConfig (GeneratorInfo &info) |
SaveInterface * | generatorSave (GeneratorInfo &info) |
qulonglong | getFreeMemory (qulonglong *freeSwap=0) |
qulonglong | getTotalMemory () |
QString | giveAbsolutePath (const QString &fileName) const |
bool | isNormalizedRectangleFullyVisible (const Okular::NormalizedRect &rectOfInterest, int rectPage) |
void | loadAllGeneratorLibraries () |
void | loadDocumentInfo () |
void | loadDocumentInfo (QFile &infoFile) |
Generator * | loadGeneratorLibrary (const KService::Ptr &service) |
void | loadServiceList (const KService::List &offers) |
void | loadViewsInfo (View *view, const QDomElement &e) |
QString | localizedSize (const QSizeF &size) const |
QString | namePaperSize (double inchesWidth, double inchesHeight) const |
DocumentViewport | nextDocumentViewport () const |
void | notifyAnnotationChanges (int page) |
Document::OpenResult | openDocumentInternal (const KService::Ptr &offer, bool isstdin, const QString &docFile, const QByteArray &filedata, const QString &password) |
bool | openRelativeFile (const QString &fileName) |
QString | pagesSizeString () const |
void | performAddPageAnnotation (int page, Annotation *annotation) |
void | performModifyPageAnnotation (int page, Annotation *annotation, bool appearanceChanged) |
void | performRemovePageAnnotation (int page, Annotation *annotation) |
void | performSetAnnotationContents (const QString &newContents, Annotation *annot, int pageNumber) |
void | refreshPixmaps (int) |
void | requestDone (PixmapRequest *request) |
void | rotationFinished (int page, Okular::Page *okularPage) |
void | saveDocumentInfo () const |
bool | savePageDocumentInfo (KTemporaryFile *infoFile, int what) const |
void | saveViewsInfo (View *view, QDomElement &e) const |
AllocatedPixmap * | searchLowestPriorityPixmap (bool unloadableOnly=false, bool thenRemoveIt=false, DocumentObserver *observer=0) |
void | sendGeneratorPixmapRequest () |
void | setPageBoundingBox (int page, const NormalizedRect &boundingBox) |
void | setRotationInternal (int r, bool notify) |
void | slotGeneratorConfigChanged (const QString &) |
void | slotTimedMemoryCheck () |
void | textGenerationDone (Page *page) |
void | unloadGenerator (const GeneratorInfo &info) |
void | warnLimitedAnnotSupport () |
Static Public Member Functions | |
static OKULAR_EXPORT QString | docDataFileName (const KUrl &url, qint64 document_size) |
Detailed Description
Definition at line 77 of file document_p.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 80 of file document_p.h.
Member Function Documentation
void DocumentPrivate::_o_configChanged | ( | ) |
Definition at line 1626 of file document.cpp.
void DocumentPrivate::cacheExportFormats | ( | ) |
Definition at line 869 of file document.cpp.
void DocumentPrivate::calculateMaxTextPages | ( | ) |
Definition at line 4408 of file document.cpp.
qulonglong DocumentPrivate::calculateMemoryToFree | ( | ) |
Definition at line 292 of file document.cpp.
bool DocumentPrivate::canAddAnnotationsNatively | ( | ) | const |
Definition at line 3090 of file document.cpp.
bool DocumentPrivate::canModifyExternalAnnotations | ( | ) | const |
Definition at line 3101 of file document.cpp.
bool DocumentPrivate::canRemoveExternalAnnotations | ( | ) | const |
Definition at line 3112 of file document.cpp.
void DocumentPrivate::cleanupPixmapMemory | ( | ) |
Definition at line 335 of file document.cpp.
void DocumentPrivate::cleanupPixmapMemory | ( | qulonglong | memoryToFree | ) |
Definition at line 340 of file document.cpp.
|
static |
Definition at line 2108 of file document.cpp.
void DocumentPrivate::doContinueAllDocumentSearch | ( | void * | pagesToNotifySet, |
void * | pageMatchesMap, | ||
int | currentPage, | ||
int | searchID | ||
) |
Definition at line 1760 of file document.cpp.
void DocumentPrivate::doContinueDirectionMatchSearch | ( | void * | doContinueDirectionMatchSearchStruct | ) |
Definition at line 1637 of file document.cpp.
void DocumentPrivate::doContinueGooglesDocumentSearch | ( | void * | pagesToNotifySet, |
void * | pageMatchesMap, | ||
int | currentPage, | ||
int | searchID, | ||
const QStringList & | words | ||
) |
Definition at line 1847 of file document.cpp.
Request a particular metadata of the Document itself (ie, not something depending on the document type/backend).
Definition at line 1968 of file document.cpp.
void DocumentPrivate::doProcessSearchMatch | ( | RegularAreaRect * | match, |
RunningSearch * | search, | ||
QSet< int > * | pagesToNotify, | ||
int | currentPage, | ||
int | searchID, | ||
bool | moveViewport, | ||
const QColor & | color | ||
) |
Definition at line 1706 of file document.cpp.
void DocumentPrivate::fontReadingGotFont | ( | const Okular::FontInfo & | font | ) |
Definition at line 1520 of file document.cpp.
void DocumentPrivate::fontReadingProgress | ( | int | page | ) |
Definition at line 1508 of file document.cpp.
ConfigInterface * DocumentPrivate::generatorConfig | ( | GeneratorInfo & | info | ) |
Definition at line 886 of file document.cpp.
SaveInterface * DocumentPrivate::generatorSave | ( | GeneratorInfo & | info | ) |
Definition at line 896 of file document.cpp.
qulonglong DocumentPrivate::getFreeMemory | ( | qulonglong * | freeSwap = 0 | ) |
Definition at line 502 of file document.cpp.
qulonglong DocumentPrivate::getTotalMemory | ( | ) |
Definition at line 466 of file document.cpp.
Definition at line 793 of file document.cpp.
bool DocumentPrivate::isNormalizedRectangleFullyVisible | ( | const Okular::NormalizedRect & | rectOfInterest, |
int | rectPage | ||
) |
Return whether the normalized rectangle rectOfInterest
on page number rectPage
is fully visible.
Definition at line 2032 of file document.cpp.
void DocumentPrivate::loadAllGeneratorLibraries | ( | ) |
Definition at line 833 of file document.cpp.
void DocumentPrivate::loadDocumentInfo | ( | ) |
Definition at line 608 of file document.cpp.
void DocumentPrivate::loadDocumentInfo | ( | QFile & | infoFile | ) |
Definition at line 620 of file document.cpp.
Generator * DocumentPrivate::loadGeneratorLibrary | ( | const KService::Ptr & | service | ) |
Definition at line 816 of file document.cpp.
void DocumentPrivate::loadServiceList | ( | const KService::List & | offers | ) |
Definition at line 845 of file document.cpp.
void DocumentPrivate::loadViewsInfo | ( | View * | view, |
const QDomElement & | e | ||
) |
Definition at line 737 of file document.cpp.
Definition at line 261 of file document.cpp.
QString DocumentPrivate::namePaperSize | ( | double | inchesWidth, |
double | inchesHeight | ||
) | const |
Ledger and Tabloid are the same, just rotated by 90 degrees
Definition at line 160 of file document.cpp.
DocumentViewport DocumentPrivate::nextDocumentViewport | ( | ) | const |
Definition at line 1025 of file document.cpp.
void DocumentPrivate::notifyAnnotationChanges | ( | int | page | ) |
Definition at line 2957 of file document.cpp.
Document::OpenResult DocumentPrivate::openDocumentInternal | ( | const KService::Ptr & | offer, |
bool | isstdin, | ||
const QString & | docFile, | ||
const QByteArray & | filedata, | ||
const QString & | password | ||
) |
Definition at line 906 of file document.cpp.
bool DocumentPrivate::openRelativeFile | ( | const QString & | fileName | ) |
Definition at line 804 of file document.cpp.
QString DocumentPrivate::pagesSizeString | ( | ) | const |
Definition at line 145 of file document.cpp.
void DocumentPrivate::performAddPageAnnotation | ( | int | page, |
Annotation * | annotation | ||
) |
Definition at line 1058 of file document.cpp.
void DocumentPrivate::performModifyPageAnnotation | ( | int | page, |
Annotation * | annotation, | ||
bool | appearanceChanged | ||
) |
Definition at line 1129 of file document.cpp.
void DocumentPrivate::performRemovePageAnnotation | ( | int | page, |
Annotation * | annotation | ||
) |
Definition at line 1091 of file document.cpp.
void DocumentPrivate::performSetAnnotationContents | ( | const QString & | newContents, |
Annotation * | annot, | ||
int | pageNumber | ||
) |
Definition at line 1173 of file document.cpp.
void DocumentPrivate::refreshPixmaps | ( | int | pageNumber | ) |
Definition at line 1569 of file document.cpp.
void DocumentPrivate::requestDone | ( | PixmapRequest * | request | ) |
This method is used by the generators to signal the finish of the pixmap generation request
.
Definition at line 4317 of file document.cpp.
void DocumentPrivate::rotationFinished | ( | int | page, |
Okular::Page * | okularPage | ||
) |
Definition at line 1498 of file document.cpp.
void DocumentPrivate::saveDocumentInfo | ( | ) | const |
Definition at line 1209 of file document.cpp.
bool DocumentPrivate::savePageDocumentInfo | ( | KTemporaryFile * | infoFile, |
int | what | ||
) | const |
Definition at line 995 of file document.cpp.
void DocumentPrivate::saveViewsInfo | ( | View * | view, |
QDomElement & | e | ||
) | const |
Definition at line 770 of file document.cpp.
AllocatedPixmap * DocumentPrivate::searchLowestPriorityPixmap | ( | bool | unloadableOnly = false , |
bool | thenRemoveIt = false , |
||
DocumentObserver * | observer = 0 |
||
) |
Definition at line 431 of file document.cpp.
void DocumentPrivate::sendGeneratorPixmapRequest | ( | ) |
Definition at line 1306 of file document.cpp.
void DocumentPrivate::setPageBoundingBox | ( | int | page, |
const NormalizedRect & | boundingBox | ||
) |
Sets the bounding box of the given page
(in terms of upright orientation, i.e., Rotation0).
Definition at line 4388 of file document.cpp.
void DocumentPrivate::setRotationInternal | ( | int | r, |
bool | notify | ||
) |
Definition at line 4454 of file document.cpp.
void DocumentPrivate::slotGeneratorConfigChanged | ( | const QString & | ) |
Definition at line 1528 of file document.cpp.
void DocumentPrivate::slotTimedMemoryCheck | ( | ) |
Definition at line 1298 of file document.cpp.
void DocumentPrivate::textGenerationDone | ( | Page * | page | ) |
Definition at line 4431 of file document.cpp.
void DocumentPrivate::unloadGenerator | ( | const GeneratorInfo & | info | ) |
Definition at line 864 of file document.cpp.
void DocumentPrivate::warnLimitedAnnotSupport | ( | ) |
Definition at line 1039 of file document.cpp.
Member Data Documentation
QLinkedList< AllocatedPixmap * > Okular::DocumentPrivate::m_allocatedPixmaps |
Definition at line 215 of file document_p.h.
qulonglong Okular::DocumentPrivate::m_allocatedPixmapsTotalMemory |
Definition at line 216 of file document_p.h.
QList< int > Okular::DocumentPrivate::m_allocatedTextPagesFifo |
Definition at line 217 of file document_p.h.
bool Okular::DocumentPrivate::m_annotationBeingMoved |
Definition at line 268 of file document_p.h.
bool Okular::DocumentPrivate::m_annotationEditingEnabled |
Definition at line 266 of file document_p.h.
bool Okular::DocumentPrivate::m_annotationsNeedSaveAs |
Definition at line 267 of file document_p.h.
ArchiveData* Okular::DocumentPrivate::m_archiveData |
Definition at line 256 of file document_p.h.
QString Okular::DocumentPrivate::m_archivedFileName |
Definition at line 257 of file document_p.h.
BookmarkManager* Okular::DocumentPrivate::m_bookmarkManager |
Definition at line 235 of file document_p.h.
QEventLoop* Okular::DocumentPrivate::m_closingLoop |
Definition at line 252 of file document_p.h.
QString Okular::DocumentPrivate::m_docFileName |
Definition at line 199 of file document_p.h.
qint64 Okular::DocumentPrivate::m_docSize |
Definition at line 202 of file document_p.h.
DocumentInfo* Okular::DocumentPrivate::m_documentInfo |
Definition at line 261 of file document_p.h.
QLinkedList< PixmapRequest * > Okular::DocumentPrivate::m_executingPixmapRequests |
Definition at line 213 of file document_p.h.
bool Okular::DocumentPrivate::m_exportCached |
Definition at line 230 of file document_p.h.
ExportFormat::List Okular::DocumentPrivate::m_exportFormats |
Definition at line 231 of file document_p.h.
ExportFormat Okular::DocumentPrivate::m_exportToText |
Definition at line 232 of file document_p.h.
FontInfo::List Okular::DocumentPrivate::m_fontsCache |
Definition at line 262 of file document_p.h.
bool Okular::DocumentPrivate::m_fontsCached |
Definition at line 260 of file document_p.h.
QPointer< FontExtractionThread > Okular::DocumentPrivate::m_fontThread |
Definition at line 259 of file document_p.h.
Generator* Okular::DocumentPrivate::m_generator |
Definition at line 242 of file document_p.h.
QString Okular::DocumentPrivate::m_generatorName |
Definition at line 243 of file document_p.h.
bool Okular::DocumentPrivate::m_generatorsLoaded |
Definition at line 244 of file document_p.h.
QHash<QString, GeneratorInfo> Okular::DocumentPrivate::m_loadedGenerators |
Definition at line 241 of file document_p.h.
int Okular::DocumentPrivate::m_maxAllocatedTextPages |
Definition at line 218 of file document_p.h.
QTimer* Okular::DocumentPrivate::m_memCheckTimer |
Definition at line 238 of file document_p.h.
QString Okular::DocumentPrivate::m_nextDocumentDestination |
Definition at line 208 of file document_p.h.
DocumentViewport Okular::DocumentPrivate::m_nextDocumentViewport |
Definition at line 207 of file document_p.h.
QSet< DocumentObserver * > Okular::DocumentPrivate::m_observers |
Definition at line 211 of file document_p.h.
PageController* Okular::DocumentPrivate::m_pageController |
Definition at line 251 of file document_p.h.
QVector< VisiblePageRect * > Okular::DocumentPrivate::m_pageRects |
Definition at line 246 of file document_p.h.
PageSize Okular::DocumentPrivate::m_pageSize |
Definition at line 226 of file document_p.h.
PageSize::List Okular::DocumentPrivate::m_pageSizes |
Definition at line 227 of file document_p.h.
Definition at line 245 of file document_p.h.
Document* Okular::DocumentPrivate::m_parent |
Definition at line 187 of file document_p.h.
QMutex Okular::DocumentPrivate::m_pixmapRequestsMutex |
Definition at line 214 of file document_p.h.
QLinkedList< PixmapRequest * > Okular::DocumentPrivate::m_pixmapRequestsStack |
Definition at line 212 of file document_p.h.
QDomNode Okular::DocumentPrivate::m_prevPropsOfAnnotBeingModified |
Definition at line 272 of file document_p.h.
Rotation Okular::DocumentPrivate::m_rotation |
Definition at line 222 of file document_p.h.
QTimer* Okular::DocumentPrivate::m_saveBookmarksTimer |
Definition at line 239 of file document_p.h.
Scripter* Okular::DocumentPrivate::m_scripter |
Definition at line 254 of file document_p.h.
bool Okular::DocumentPrivate::m_searchCancelled |
Definition at line 192 of file document_p.h.
QMap< int, RunningSearch * > Okular::DocumentPrivate::m_searches |
Definition at line 191 of file document_p.h.
bool Okular::DocumentPrivate::m_showWarningLimitedAnnotSupport |
Definition at line 269 of file document_p.h.
QStringList Okular::DocumentPrivate::m_supportedMimeTypes |
Definition at line 249 of file document_p.h.
KTemporaryFile* Okular::DocumentPrivate::m_tempFile |
Definition at line 201 of file document_p.h.
QUndoStack* Okular::DocumentPrivate::m_undoStack |
Definition at line 271 of file document_p.h.
KUrl Okular::DocumentPrivate::m_url |
Definition at line 196 of file document_p.h.
QLinkedList< DocumentViewport > Okular::DocumentPrivate::m_viewportHistory |
Definition at line 205 of file document_p.h.
QLinkedList< DocumentViewport >::iterator Okular::DocumentPrivate::m_viewportIterator |
Definition at line 206 of file document_p.h.
Definition at line 264 of file document_p.h.
bool Okular::DocumentPrivate::m_warnedOutOfMemory |
Definition at line 219 of file document_p.h.
Definition at line 188 of file document_p.h.
QString Okular::DocumentPrivate::m_xmlFileName |
Definition at line 200 of file document_p.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.