mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
DocDiff application: detect moved pages
This commit is contained in:
@ -71,6 +71,9 @@ public:
|
||||
|
||||
}
|
||||
|
||||
/// Add text item
|
||||
void addItem(Item item) { m_items.emplace_back(std::move(item)); }
|
||||
|
||||
const Items& getItems() const { return m_items; }
|
||||
|
||||
/// Returns item at a given index
|
||||
@ -83,6 +86,11 @@ public:
|
||||
/// Returns true, if text flow is empty
|
||||
bool isEmpty() const { return m_items.empty(); }
|
||||
|
||||
/// Split text flow to pages using given mask. Items, which
|
||||
/// are masked out, are not added.
|
||||
/// \param mask Mask
|
||||
std::map<PDFInteger, PDFDocumentTextFlow> split(Flags mask) const;
|
||||
|
||||
private:
|
||||
Items m_items;
|
||||
};
|
||||
|
Reference in New Issue
Block a user