Back to index

scribus-ng  1.3.4.dfsg+svn20071115
scribusXml.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /***************************************************************************
00008                      scribusXml.h the document xml library for scribus
00009                              -------------------
00010     begin                : Sam Jul 14 10:00:00 CEST 2001
00011     copyright            : (C) 2001 by Christian T�p
00012     email                : christian.toepp@mr-ct@gmx.de
00013  ***************************************************************************/
00014 
00015 #ifndef _SCRIBUS_CONFIG_
00016 #define _SCRIBUS_CONFIG_
00017 
00018 #include "scribusapi.h"
00019 #include <qvaluelist.h>
00020 #include <qdom.h>
00021 #include <qprogressbar.h>
00022 
00023 #include "pageitem.h"
00024 #include "multiline.h"
00025 #include "scfonts.h"
00026 #include "scribusstructs.h"
00027 #include "selection.h"
00028 #include "styles/styleset.h"
00029 
00030 class PrefsManager;
00031 class ScribusView;
00032 class SCFonts;
00033 class ScribusDoc;
00034 
00035 class SCRIBUS_API ScriXmlDoc : public QObject
00036 {
00037 Q_OBJECT
00038 public:
00039        ScriXmlDoc();
00040        ~ScriXmlDoc() {};
00048        QString ReadDatei(QString fileName);
00049        void GetItemText(QDomElement *it, ScribusDoc *doc, bool VorLFound, bool impo, PageItem* obj = 0);
00050        void SetItemProps(QDomElement *ob, PageItem* item, bool newFormat);
00051        QString WriteElem(ScribusDoc *doc, ScribusView *view, Selection *selection);
00052        void WriteObject(ScribusDoc *doc, QDomDocument &docu, QDomElement &dc, QMap<int, int> &UsedMapped2Saved, PageItem *item);
00053        bool ReadElemHeader(QString file, bool isFile, double *x, double *y, double *w, double *h);
00054        bool ReadElem(QString fileName, SCFonts &avail, ScribusDoc *doc, double Xp, double Yp, bool Fi, bool loc, QMap<QString,QString> &FontSub, ScribusView *view);
00055        ColorList Farben;
00056        StyleSet<ParagraphStyle> docParagraphStyles;
00057        QValueList<Linked> LFrames;
00058        QStringList MNames;
00059        QMap<QString,QString> DoFonts;
00060        QMap<QString,QString> ReplacedFonts;
00061        QMap<uint,QString> DoVorl;
00062        QValueList<ScFace> dummyScFaces;
00063        uint VorlC;
00064        bool newReplacement;
00065        
00066 protected:
00067        PrefsManager* prefsManager;
00068        
00069        void GetStyle(QDomElement &pg, ParagraphStyle &vg, StyleSet<ParagraphStyle> &docParagraphStyles, ScribusDoc* doc, bool fl);
00070        QString AskForFont(SCFonts &avail, QString fStr, ScribusDoc *doc);
00071 };
00072 
00073 #endif // _SCRIBUS_CONFIG_
00074