mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
DocDiff application: save to xml
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user