![]() |
LeechCraft Monocle
0.6.70-6645-gcd10d7e
Modular document viewer for LeechCraft
|
Interface for documents supporting querying text contents. More...
#include "ihavetextcontent.h"
Public Member Functions | |
virtual | ~IHaveTextContent () |
Virtual destructor. More... | |
virtual QString | GetTextContent (int page, const QRect &rect)=0 |
Returns the text in the given rectangle. More... | |
Interface for documents supporting querying text contents.
This interface should be implemented by the documents of formats supporting obtaining the text contained in some page rectangle.
Definition at line 46 of file ihavetextcontent.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 51 of file ihavetextcontent.h.
References GetTextContent(), and Q_DECLARE_INTERFACE().
|
pure virtual |
Returns the text in the given rectangle.
This function should return the text contained in the given rect at the given page, or an empty string if there is no text in this rect or the document doesn't contain any text information.
The rect is expected to be in absolute page coordinates, that is, from 0 to page width and page height correspondingly as returned by IDocument::GetPageSize().
If rect is empty or null, the text from the whole page should be returned.
[in] | page | The index of the page to query. |
[in] | rect | The rectangle on the page to query. |
Referenced by ~IHaveTextContent().