DocDiff application: detect moved pages

This commit is contained in:
Jakub Melka
2021-09-19 19:46:02 +02:00
parent 3e327f8201
commit c00939f536
6 changed files with 186 additions and 6 deletions

View File

@ -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;
};