DocDiff application: save to xml

This commit is contained in:
Jakub Melka
2021-10-16 17:56:51 +02:00
parent 4243d6d9a9
commit 1f20a6efda
3 changed files with 183 additions and 0 deletions

View File

@ -30,6 +30,9 @@
#include <atomic>
class QIODevice;
class QXmlStreamWriter;
namespace pdf
{
@ -139,6 +142,19 @@ public:
const PageSequence& getPageSequence() const;
void setPageSequence(PageSequence pageSequence);
/// Saves all differences to a XML stream
/// represented by device
/// \param device Output device
void saveToXML(QIODevice* device) const;
/// Saves all differences to a byte array
/// \param byteArray Output byte array
void saveToXML(QByteArray* byteArray) const;
/// Saves all differences to a string
/// \param string Output string
void saveToXML(QString* string) const;
private:
friend class PDFDiff;
@ -177,6 +193,8 @@ private:
const RectInfos& rectInfos1,
const RectInfos& rectInfos2);
void saveToStream(QXmlStreamWriter* stream) const;
void finalize();
uint32_t getTypeFlags(size_t index) const;