Okular
textdocumentgenerator.h
54 virtual Document::OpenResult convertWithPassword(const QString &fileName, const QString &password);
167 TextDocumentGenerator(TextDocumentConverter *converter, const QString &configName, QObject *parent, const QVariantList &args);
172 Document::OpenResult loadDocumentWithPassword(const QString &fileName, QVector<Okular::Page *> &pagesVector, const QString &password) override;
The DocumentInfo structure can be filled in by generators to display metadata about the currently ope...
Definition document.h:76
Generator(QObject *parent=nullptr, const QVariantList &args=QVariantList())
Creates a new generator.
Definition generator.cpp:174
bool reparseConfig() override
By default checks if the default font has changed or not.
Definition textdocumentgenerator.cpp:524
bool doCloseDocument() override
This method is called when the document is closed and not used any longer.
Definition textdocumentgenerator.cpp:350
const Okular::DocumentSynopsis * generateDocumentSynopsis() override
Returns the 'table of content' object of the document or 0 if no table of content is available.
Definition textdocumentgenerator.cpp:447
TextDocumentGenerator(TextDocumentConverter *converter, const QString &configName, QObject *parent, const QVariantList &args)
Creates a new generator that uses the specified converter.
Definition textdocumentgenerator.cpp:270
TextDocumentSettings * generalSettings()
Config skeleton for TextDocumentSettingsWidget.
Definition textdocumentgenerator.cpp:543
Okular::TextPage * textPage(Okular::TextRequest *request) override
Returns the text page for the given request.
Definition textdocumentgenerator.cpp:423
Okular::DocumentInfo generateDocumentInfo(const QSet< DocumentInfo::Key > &keys) const override
Returns the general information object of the document.
Definition textdocumentgenerator.cpp:441
void addPages(KConfigDialog *dlg) override
Does nothing by default. You need to reimplement it in your generator.
Definition textdocumentgenerator.cpp:537
Okular::ExportFormat::List exportFormats() const override
Returns the list of additional supported export formats.
Definition textdocumentgenerator.cpp:466
bool canGeneratePixmap() const override
This method returns whether the generator is ready to handle a new pixmap request.
Definition textdocumentgenerator.cpp:366
void generatePixmap(Okular::PixmapRequest *request) override
This method can be called to trigger the generation of a new pixmap as described by request.
Definition textdocumentgenerator.cpp:371
bool exportTo(const QString &fileName, const Okular::ExportFormat &format) override
This method is called to export the document in the given format and save it under the given fileName...
Definition textdocumentgenerator.cpp:483
Document::PrintError print(QPrinter &printer) override
This method is called to print the document to the given printer.
Definition textdocumentgenerator.cpp:429
Document::OpenResult loadDocumentWithPassword(const QString &fileName, QVector< Okular::Page * > &pagesVector, const QString &password) override
Loads the document with the given fileName and password and fills the pagesVector with the parsed pag...
Definition textdocumentgenerator.cpp:283
T convert(const QVariant &value)
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
QObject(QObject *parent)
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:33 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:33 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.