10 #include "pluginapi.h"
13 #include "fpointarray.h"
20 #include <QDomElement>
22 class MultiProgressDialog;
55 bool import(QString fn,
const TransactionSettings& trSettings,
int flags,
bool showProgress =
true);
56 QImage readThumbnail(QString fn);
59 void parseHeader(QString fName,
double &b,
double &h);
60 bool convert(QString fn);
62 void parseGroup(QDomNode &DOC);
63 void parseGroupProperties(QDomNode &DOC,
double &minXCoor,
double &minYCoor,
double &maxXCoor,
double &maxYCoor,
bool &firstCheck);
64 double parseUnit(
const QString &unit);
65 const char * getCoord(
const char *ptr,
double &number );
66 bool parseSVG(
const QString &s,
FPointArray *ite );
68 void svgMoveTo(
double x1,
double y1);
69 void svgLineTo(
FPointArray *i,
double x1,
double y1);
70 void svgCurveToCubic(
FPointArray *i,
double x1,
double y1,
double x2,
double y2,
double x3,
double y3);
72 QList<PageItem*> Elements;
73 QStack<QList<PageItem*> > groupStack;
77 QStringList importedColors;
80 bool FirstM, WasM, PathClosed;
81 double CurrX, CurrY, StartX, StartY, Conversion;
85 MultiProgressDialog * progressDialog;
94 void cancelRequested() { cancel =
true; }
Sml importer plugin.
Definition: importshape.h:28
the Document Class
Definition: scribusdoc.h:90
ShapePlug(ScribusDoc *doc, int flags)
Create the Sml importer window.
Definition: importshape.cpp:55
Definition: undomanager.h:52
Definition: pageitem.h:92
Definition: fpointarray.h:42
Definition: selection.h:34