Scribus
Open source desktop publishing at your fingertips
serializer.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 /***************************************************************************
8  serializer.h - description
9  -------------------
10  begin : Sat May 5 2001
11  copyright : (C) 2001 by Franz Schmid
12  email : Franz.Schmid@altmuehlnet.de
13  ***************************************************************************/
14 
15 /***************************************************************************
16  * *
17  * This program is free software; you can redistribute it and/or modify *
18  * it under the terms of the GNU General Public License as published by *
19  * the Free Software Foundation; either version 2 of the License, or *
20  * (at your option) any later version. *
21  * *
22  ***************************************************************************/
23 
24 #ifndef SERIALIZER_H
25 #define SERIALIZER_H
26 
27 #include <QString>
28 #include <QFile>
29 #include <QByteArray>
30 #include "scribusapi.h"
31 #include "selection.h"
32 #include "desaxe/saxio.h"
33 #include "desaxe/digester.h"
34 
46 class ScribusDoc;
47 class ColorList;
48 
49 class SCRIBUS_API Serializer : public desaxe::Digester {
50 public:
51 
56  Serializer(ScribusDoc& doc); //saxing notes needs doc
61 // static void serializeObjects(const Selection& objects, SaxHandler& handler);
66 // Selection deserializeObjects(const QByteArray & xml);
71 // Selection deserializeObjects(const QFile & xml);
72 
73 // Selection cloneObjects(const Selection& objects);
74 
76  static bool readWithEncoding(const QString& filename, const QString& encoding,
77  QString & txt);
79  static bool writeWithEncoding(const QString& filename, const QString& encoding,
80  const QString& txt);
81 
82 private:
83  ScribusDoc& m_Doc;
84  ColorList backUpColors;
85 // Selection importCollection();
86 // void updateGradientColors(const ColorList& colors);
87 };
88 
89 #endif
Definition: sccolor.h:155
the Document Class
Definition: scribusdoc.h:90
Definition: serializer.h:49
Definition: digester.h:100