Okular
generator.h
204 TextExtraction, ///< Whether the Generator can extract text from the document in the form of TextPage's
206 FontInfo, ///< Whether the Generator can provide information about the fonts used in the document
208 PrintNative, ///< Whether the Generator supports native cross-platform printing (QPainter-based).
252 * @note Do not implement this if your format doesn't support passwords, it'll cleanly call loadDocument()
258 virtual Document::OpenResult loadDocumentWithPassword(const QString &fileName, QVector<Page *> &pagesVector, const QString &password);
264 * @note Do not implement this if your format doesn't support passwords, it'll cleanly call loadDocumentFromData()
272 virtual Document::OpenResult loadDocumentFromDataWithPassword(const QByteArray &fileData, QVector<Page *> &pagesVector, const QString &password);
293 virtual SwapBackingFileResult swapBackingFile(const QString &newFileName, QVector<Okular::Page *> &newPagesVector);
453 virtual void walletDataForFile(const QString &fileName, QString *walletName, QString *walletFolder, QString *walletKey) const;
477 * Calls the backend to execute a BackendOpaqueAction @p action and returns BackendOpaqueAction result
479 virtual BackendOpaqueAction::OpaqueActionResult opaqueAction(const BackendOpaqueAction *action);
577 PaperColorMetaData, ///< Returns (QColor) the paper color if set in Settings or the default color (white) if option is true (otherwise returns a non initialized QColor)
579 GraphicsAntialiasMetaData, ///< Returns (bool)graphic antialias from Settings (option is not used)
664 PixmapRequest(DocumentObserver *observer, int pageNumber, int width, int height, qreal dpr, int priority, PixmapRequestFeatures features);
A helper class to store information about x509 certificate.
Definition signatureutils.h:520
The DocumentInfo structure can be filled in by generators to display metadata about the currently ope...
Definition document.h:76
Base class for objects being notified when something changes.
Definition observer.h:29
DocumentAdditionalActionType
Describes the additional actions available in the Document.
Definition document.h:775
QIcon icon() const
Returns the icon for GUI representations of the format.
Definition generator.cpp:760
ExportFormat & operator=(const ExportFormat &other)
Definition generator.cpp:739
void error(const QString &message, int duration)
This signal should be emitted whenever an error occurred in the generator.
Generator(QObject *parent=nullptr, const QVariantList &args=QVariantList())
Creates a new generator.
Definition generator.cpp:174
@ TextHintingMetaData
Returns (bool)text hinting from Settings (option is not used)
Definition generator.h:580
@ GraphicsAntialiasMetaData
Returns (bool)graphic antialias from Settings (option is not used)
Definition generator.h:579
@ TextAntialiasMetaData
Returns (bool) text antialias from Settings (option is not used)
Definition generator.h:578
@ PaperColorMetaData
Returns (QColor) the paper color if set in Settings or the default color (white) if option is true (o...
Definition generator.h:577
void notice(const QString &message, int duration)
This signal should be emitted whenever the user should be noticed.
void signalTextGenerationDone(Page *page, TextPage *textPage)
This method must be called when a text generation has been finished.
Definition generator.cpp:454
virtual TextPage * textPage(TextRequest *request)
Returns the text page for the given request.
Definition generator.cpp:339
GeneratorFeature
Describe the possible optional features that a Generator can provide.
Definition generator.h:202
@ Threaded
Whether the Generator supports asynchronous generation of pictures or text pages.
Definition generator.h:203
@ PrintToFile
Whether the Generator supports export to PDF & PS through the Print Dialog.
Definition generator.h:210
@ ReadRawData
Whether the Generator can read a document directly from its raw data.
Definition generator.h:205
@ TextExtraction
Whether the Generator can extract text from the document in the form of TextPage's.
Definition generator.h:204
@ SwapBackingFile
Whether the Generator can hot-swap the file it's reading from.
Definition generator.h:212
@ PrintNative
Whether the Generator supports native cross-platform printing (QPainter-based).
Definition generator.h:208
@ FontInfo
Whether the Generator can provide information about the fonts used in the document.
Definition generator.h:206
@ PageSizes
Whether the Generator can change the size of the document pages.
Definition generator.h:207
@ PrintPostscript
Whether the Generator supports postscript-based file printing.
Definition generator.h:209
void setFeature(GeneratorFeature feature, bool on=true)
Toggle the feature .
Definition generator.cpp:491
void signalPixmapRequestDone(PixmapRequest *request)
This method must be called when the pixmap request triggered by generatePixmap() has been finished.
Definition generator.cpp:444
@ TwoPageRight
Display the pages in two columns, with odd-numbered pages on the right.
Definition generator.h:374
@ TwoPageLeft
Display the pages in two columns, with odd-numbered pages on the left.
Definition generator.h:373
virtual bool doCloseDocument()=0
This method is called when the document is closed and not used any longer.
virtual QImage image(PixmapRequest *request)
Returns the image of the page as specified in the passed pixmap request.
Definition generator.cpp:333
void warning(const QString &message, int duration)
This signal should be emitted whenever the user should be warned.
A NormalizedRect is a rectangle which can be defined by two NormalizedPoints.
Definition area.h:189
bool preload() const
Returns whether the generation request is for a page that is not important i.e.
Definition generator.cpp:632
void setTile(bool tile)
Sets whether the generator should render only the given normalized rect or the entire page.
Definition generator.cpp:642
bool asynchronous() const
Returns whether the generation should be done synchronous or asynchronous.
Definition generator.cpp:627
bool shouldAbortRender() const
Should the request be aborted if possible?
Definition generator.cpp:676
PixmapRequest(DocumentObserver *observer, int pageNumber, int width, int height, qreal dpr, int priority, PixmapRequestFeatures features)
Creates a new pixmap request.
Definition generator.cpp:581
void setPartialUpdatesWanted(bool partialUpdatesWanted)
Sets whether the request should report back updates if possible.
Definition generator.cpp:666
int priority() const
Returns the priority (less it better, 0 is maximum) of the request.
Definition generator.cpp:622
const NormalizedRect & normalizedRect() const
Returns the normalized region of the page to request.
Definition generator.cpp:661
bool partialUpdatesWanted() const
Should the request report back updates if possible?
Definition generator.cpp:671
void setNormalizedRect(const NormalizedRect &rect)
Sets the region of the page to request.
Definition generator.cpp:652
Page * page() const
Returns a pointer to the page where the pixmap shall be generated for.
Definition generator.cpp:637
bool isTile() const
Returns whether the generator should render just the region given by normalizedRect() or the entire p...
Definition generator.cpp:647
bool shouldAbortExtraction() const
Should the request be aborted if possible?
Definition generator.cpp:571
Page * page() const
Returns a pointer to the page where the pixmap shall be generated for.
Definition generator.cpp:566
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:07:35 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:07:35 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.