Scribus
Open source desktop publishing at your fingertips
scribusXml.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  scribusXml.h the document xml library for scribus
9  -------------------
10  begin : Sam Jul 14 10:00:00 CEST 2001
11  copyright : (C) 2001 by Christian T�p
12  email : christian.toepp@mr-ct@gmx.de
13  ***************************************************************************/
14 
15 #ifndef _SCRIBUSXML_H
16 #define _SCRIBUSXML_H
17 
18 #include <QDomDocument>
19 #include <QDomElement>
20 #include <QList>
21 #include <QProgressBar>
22 
23 #include "scfonts.h"
24 #include "scribusapi.h"
25 #include "scribusstructs.h"
26 #include "styles/styleset.h"
27 
28 class PageItem;
29 class PrefsManager;
30 class SCFonts;
31 class ScribusDoc;
32 class ScElemMimeData;
33 class ScPattern;
34 class ScXmlStreamWriter;
35 class Selection;
36 
37 class SCRIBUS_API ScriXmlDoc
38 {
39 
40 public:
41  ScriXmlDoc();
42  ~ScriXmlDoc() {};
50  bool ReadElemHeader(QString file, bool isFile, double *x, double *y, double *w, double *h);
51  bool ReadElem(QString fileNameOrData, SCFonts &avail, ScribusDoc *doc, double xPos, double yPos, bool isDataFromFile, bool loc, QMap<QString,QString> &FontSub);
52  bool ReadElemToLayer(QString fileNameOrData, SCFonts &avail, ScribusDoc *doc, double xPos, double yPos, bool isDataFromFile, bool loc, QMap<QString,QString> &FontSub, int toLayer);
53 
54  static QString WriteElem(ScribusDoc *doc, Selection *selection);
55  static ScElemMimeData* WriteToMimeData(ScribusDoc *doc, Selection *selection);
56 };
57 
58 #endif // _SCRIBUS_CONFIG_
59 
60 
61 
62 
63 
Definition: scpattern.h:36
Definition: scribusXml.h:37
the Document Class
Definition: scribusdoc.h:90
Definition: scxmlstreamwriter.h:15
Definition: scmimedata.h:59
Definition: pageitem.h:92
Main class SCFonts. Subclass of QDict. This class replaces the previous SCFonts typedef...
Definition: scfonts.h:36
Manage Scribus preferences here, and here alone Start to move the preferences out of scribus...
Definition: prefsmanager.h:43
Definition: selection.h:34