35 #include <QStringList> 135 virtual bool IsValid ()
const = 0;
225 virtual void navigateRequested (
const QString& filename,
int pageNum,
double x,
double y) = 0;
245 "org.LeechCraft.Monocle.IDocument/1.0")
virtual QList< ILink_ptr > GetPageLinks(int page)=0
Returns the links found at the given page.
QStringList Genres_
Genres of this document.
virtual bool IsValid() const =0
Returns whether this document is valid.
Basic interface for documents.
virtual void printRequested(const QList< int > &pages)=0
Emitted when printing is requested.
std::shared_ptr< IDocument > IDocument_ptr
Shared pointer to a document.
virtual ~IDocument()
Virtual destructor.
virtual QObject * GetBackendPlugin() const =0
Returns the parent backend plugin.
virtual QUrl GetDocURL() const =0
Returns the URL of the document.
QStringList Keywords_
Keywords corresponding to this document.
QString Author_
The author of the document.
QString Subject_
The subject line of this document.
virtual DocumentInfo GetDocumentInfo() const =0
Returns the document metadata.
virtual int GetNumPages() const =0
Returns the number of pages in this document.
virtual void navigateRequested(const QString &filename, int pageNum, double x, double y)=0
Emitted when navigation is requested.
QString Description_
Description of the document.
virtual QObject * GetQObject()=0
Returns this object as a QObject.
QString Title_
Document title.
QDateTime Date_
Date this document was created.
virtual QSize GetPageSize(int page) const =0
Returns the size in pixels of the given page.
virtual QFuture< QImage > RenderPage(int page, double xScale, double yScale)=0
Renders the given page at the given scale.