56 class DocumentSignals;
202 "org.LeechCraft.Monocle.IDocument/1.0")
Basic interface for documents.
virtual ~IDocument()=default
Virtual destructor.
virtual QFuture< QImage > RenderPage(int page, double xScale, double yScale)=0
Renders the given page at the given scale.
virtual const DocumentSignals * GetDocumentSignals() const =0
Returns the type-safe connector for various document signals.
virtual int GetNumPages() const =0
Returns the number of pages in this document.
virtual bool IsValid() const =0
Returns whether this document is valid.
virtual QSize GetPageSize(int page) const =0
Returns the size in points of the given page.
virtual QObject * GetBackendPlugin() const =0
Returns the parent backend plugin.
virtual QObject * GetQObject()=0
Returns this object as a QObject.
virtual QUrl GetDocURL() const =0
Returns the URL of the document.
virtual DocumentInfo GetDocumentInfo() const =0
Returns the document metadata.
virtual QList< ILink_ptr > GetPageLinks(int page)=0
Returns the links found at the given page.
std::shared_ptr< IDocument > IDocument_ptr
Shared pointer to a document.
QString Author_
The author of the document.
QDateTime Date_
Date this document was created.
QStringList Keywords_
Keywords corresponding to this document.
QStringList Genres_
Genres of this document.
QString Subject_
The subject line of this document.
QString Title_
Document title.
QString Description_
Description of the document.