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