Subversion Repositories Scribus


Rev 117 | Rev 168 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

                        scribusXml.h the document xml library for scribus
    begin                : Sam Jul 14 10:00:00 CEST 2001
    copyright            : (C) 2001 by Christian Töpp
    email                :


#include "scribusview.h"
#include <qvaluelist.h>
#include <qdom.h>
#include <qprogressbar.h>

class ScriXmlDoc : public QObject
        ScriXmlDoc() {};
        ~ScriXmlDoc() {};
        QString ReadDatei(QString fileName);
        bool ReadLStyles(QString fileName, QMap<QString,multiLine> *Sty);
        bool ReadStyles(QString fileName, ScribusDoc* doc, preV *Prefs);
        bool ReadColors(QString fileName);
        bool ReadPageCount(QString fileName, int *num1, int *num2);
        bool ReadPage(QString fileName, SCFonts &avail, ScribusDoc *doc, ScribusView *view, int PageToLoad, bool Mpage);
        QString WriteElem(QPtrList<PageItem> *Selitems, ScribusDoc *doc);
        bool ReadElemHeader(QString file, bool isFile, double *x, double *y, double *w, double *h);
        bool ReadElem(QString fileName, SCFonts &avail, ScribusDoc *doc, int Xp, int Yp, bool Fi, bool loc, QMap<QString,QString> &FontSub, preV *Prefs);
        bool ReadDoc(QString fileName, SCFonts &avail, ScribusDoc *docu, ScribusView *viewx, QProgressBar *dia2);
        void WritePages(ScribusView *view, QDomDocument docu, QDomElement dc, QProgressBar *dia2, uint maxC);
        bool WriteDoc(QString fileName, ScribusDoc *docu, ScribusView *viewx, QProgressBar *dia2);
        void WritePref(preV *Vor, QString ho);
        bool ReadPref(struct preV *Vorein, QString ho);
        CListe Farben;
  QValueList<StVorL> Vorlagen;
        struct Linked { int Start;
                                                                        int StPag;
        QValueList<Linked> LFrames;
        QStringList MNames;
        void NewPage(int);

#endif // _SCRIBUS_CONFIG_