LeechCraft Monocle 0.6.70-17609-g3dde4097dd
Modular document viewer for LeechCraft
Loading...
Searching...
No Matches
LC::Monocle::IHaveTextContent Class Referenceabstract

Interface for documents supporting querying text contents. More...

#include "ihavetextcontent.h"

Public Member Functions

virtual QString GetTextContent (int page, const PageRelativeRectBase &rect)=0
 Returns the text in the given rectangle.
virtual QVector< TextBoxGetTextBoxes (int page)=0

Protected Member Functions

virtual ~IHaveTextContent ()=default

Detailed Description

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 40 of file ihavetextcontent.h.

Constructor & Destructor Documentation

◆ ~IHaveTextContent()

virtual LC::Monocle::IHaveTextContent::~IHaveTextContent ( )
protectedvirtualdefault

Member Function Documentation

◆ GetTextBoxes()

virtual QVector< TextBox > LC::Monocle::IHaveTextContent::GetTextBoxes ( int page)
pure virtual

◆ GetTextContent()

virtual QString LC::Monocle::IHaveTextContent::GetTextContent ( int page,
const PageRelativeRectBase & rect )
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.

Parameters
[in]pageThe index of the page to query.
[in]rectThe rectangle on the page to query.
Returns
The text in rect at page.

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/plugins/monocle/interfaces/monocle/ihavetextcontent.h