Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

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 <QDomElement>
00011 #include <QPixmap>
00012 
00013 #include "scribusapi.h"
00014 #include "scribusstructs.h"
00015 
00016 class SCRIBUS_API StencilReader
00017 {
00018 public:
00019     StencilReader();
00020     ~StencilReader() {};
00021     QString createShape(QString data);
00022     void parseGroup(QDomDocument &data, QDomElement &group, QDomNode &DOC, int groupElemCounter, int &groupElemCounter2, double Dx, double Dy);
00023     void parseGroupProperties(QDomDocument &data, QDomElement &group, QDomNode &DOC, int &groupElemCounter, double &minXCoor, double &minYCoor, double &maxXCoor, double &maxYCoor, bool &firstCheck);
00024     double parseUnit(const QString &unit);
00025     const char * getCoord( const char *ptr, double &number );
00026     bool parseSVG( const QString &s, FPointArray *ite );
00027     void svgClosePath(FPointArray *i);
00028     void svgMoveTo(double x1, double y1);
00029     void svgLineTo(FPointArray *i, double x1, double y1);
00030     void svgCurveToCubic(FPointArray *i, double x1, double y1, double x2, double y2, double x3, double y3);
00031     QPixmap createPreview(QString data);
00032     void writeDefaults(QDomElement &ob);
00033     QString createObjects(QString data);
00034     ColorList PageColors;
00035     bool FirstM, WasM, PathClosed;
00036     double CurrX, CurrY, StartX, StartY, Conversion;
00037     int PathLen;
00038 };
00039 #endif
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.