AudioBook Plugin: Initial commit, document text flow adjustments

This commit is contained in:
Jakub Melka
2021-08-15 17:34:05 +02:00
parent 0559cd7c50
commit 354a93f4d6
12 changed files with 547 additions and 35 deletions

View File

@ -305,6 +305,9 @@ public:
/// Merge data from \p next flow (i.e. connect two consecutive flows)
void merge(const PDFTextFlow& next);
/// Returns bounding box of a text flow on the page
QRectF getBoundingBox() const { return m_boundingBox; }
/// Creates text flows from text layout, according to creation flags.
/// \param layout Layout, from which is text flow created
/// \param flags Flow creation flags
@ -325,6 +328,7 @@ private:
QString getContext(size_t index, size_t length) const;
QString m_text;
QRectF m_boundingBox;
std::vector<PDFCharacterPointer> m_characterPointers;
};