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