![]() |
LeechCraft Monocle 0.6.70-17335-ge406ffdcaf
Modular document viewer for LeechCraft
|
Interface for documents supporting searching for text. More...
#include "isearchabledocument.h"
Public Member Functions | |
virtual QMap< int, QList< PageRelativeRectBase > > | GetTextPositions (const QString &text, Qt::CaseSensitivity cs)=0 |
Returns the search results for the text. | |
Protected Member Functions | |
virtual | ~ISearchableDocument ()=default |
Interface for documents supporting searching for text.
If document represents a format that supports searching for text, the document should implement this interface.
Definition at line 26 of file isearchabledocument.h.
|
protectedvirtualdefault |
|
pure virtual |
Returns the search results for the text.
This function should return the map where keys are indexes of pages containing the given text and with each value corresponding to a key being a list of rectangles containing the text on the page.
If a page doesn't contain any occurrences of text it should better be omitted from the map for performance reasons.
[in] | text | The text to search for. |
[in] | cs | The case sensitivity of the search. |