Back to index

scribus-ng  1.3.4.dfsg+svn20071115
stencilreader.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 #ifndef STENCILREADER_H
00008 #define STENCILREADER_H
00009 
00010 #include <qdom.h>
00011 #include "scribusapi.h"
00012 #include "scribusstructs.h"
00013 
00014 class SCRIBUS_API StencilReader
00015 {
00016 public:
00017        StencilReader();
00018        ~StencilReader() {};
00019        QString createShape(QString data);
00020        void parseGroup(QDomDocument &data, QDomElement &group, QDomNode &DOC, int groupElemCounter, int &groupElemCounter2, double Dx, double Dy);
00021        void parseGroupProperties(QDomDocument &data, QDomElement &group, QDomNode &DOC, int &groupElemCounter, double &minXCoor, double &minYCoor, double &maxXCoor, double &maxYCoor, bool &firstCheck);
00022        double parseUnit(const QString &unit);
00023        const char * getCoord( const char *ptr, double &number );
00024        bool parseSVG( const QString &s, FPointArray *ite );
00025        void svgClosePath(FPointArray *i);
00026        void svgMoveTo(double x1, double y1);
00027        void svgLineTo(FPointArray *i, double x1, double y1);
00028        void svgCurveToCubic(FPointArray *i, double x1, double y1, double x2, double y2, double x3, double y3);
00029        QPixmap createPreview(QString data);
00030        void writeDefaults(QDomElement &ob);
00031        QString createObjects(QString data);
00032        ColorList PageColors;
00033        bool FirstM, WasM, PathClosed;
00034        double CurrX, CurrY, StartX, StartY, Conversion;
00035        int PathLen;
00036 };
00037 #endif