15 #include "pluginapi.h"
17 #include "fpointarray.h"
20 #include "text/storytext.h"
21 #include "vgradient.h"
23 class MultiProgressDialog;
55 bool import(QString fNameIn,
const TransactionSettings& trSettings,
int flags,
bool showProgress =
true);
56 QImage readThumbnail(QString fn);
57 bool readColors(
const QString& fileName,
ColorList & colors);
69 bool extractFromPDF(QString infile, QString outfile);
71 bool decompressAIData(QString &fName);
72 bool parseHeader(QString fName,
double &x,
double &y,
double &b,
double &h);
73 QString removeAIPrefix(QString comment);
74 QString parseColor(QString data);
75 QString parseColorGray(QString data);
76 QString parseColorRGB(QString data);
77 QString parseCustomColor(QString data,
double &shade);
78 QString parseCustomColorX(QString data,
double &shade, QString type);
79 QStringList getStrings(QString data);
80 void getCommands(QString data, QStringList &commands);
81 void decodeA85(QByteArray &psdata, QString tmp);
82 void processData(QString data);
83 void processGradientData(QString data);
84 void processSymbol(QDataStream &ts,
bool sym);
85 void processPattern(QDataStream &ts);
86 void processRaster(QDataStream &ts);
87 void processComment(QDataStream &ts, QString comment);
88 bool convert(QString fn);
90 QList<PageItem*> Elements;
91 QList<PageItem*> PatternElements;
92 QStack<QList<PageItem*> > groupStack;
93 QStack<FPointArray> clipStack;
95 QStringList importedColors;
96 QStringList importedGradients;
97 QStringList importedPatterns;
105 Qt::PenCapStyle CapStyle;
106 Qt::PenJoinStyle JoinStyle;
108 QList<double> DashPattern;
111 QString CurrColorFill;
112 QString CurrColorStroke;
113 double CurrStrokeShade;
114 double CurrFillShade;
124 bool FirstU, WasU, ClosedPath;
126 MultiProgressDialog * progressDialog;
131 QStringList commandList;
133 QMap<QString, VGradient> m_gradients;
135 QString currentGradientName;
136 QTransform currentGradientMatrix;
137 QPointF currentGradientOrigin;
138 double currentGradientAngle;
139 double currentGradientLenght;
143 QTransform startMatrix;
144 QTransform endMatrix;
146 QString currentPatternDefName;
147 QString currentPatternName;
152 double currentPatternX;
153 double currentPatternY;
154 double currentPatternXScale;
155 double currentPatternYScale;
156 double currentPatternRotation;
157 QString currentStrokePatternName;
158 double currentStrokePatternX;
159 double currentStrokePatternY;
160 double currentStrokePatternXScale;
161 double currentStrokePatternYScale;
162 double currentStrokePatternRotation;
164 int meshXSize, meshYSize;
165 int currentMeshXPos, currentMeshYPos;
168 double meshNode1PointX, meshNode1PointY;
169 double meshNode1Control1X, meshNode1Control1Y;
170 double meshNode1Control2X, meshNode1Control2Y;
171 double meshNode2PointX, meshNode2PointY;
172 double meshNode2Control1X, meshNode2Control1Y;
173 double meshNode2Control2X, meshNode2Control2Y;
174 double meshNode3PointX, meshNode3PointY;
175 double meshNode3Control1X, meshNode3Control1Y;
176 double meshNode3Control2X, meshNode3Control2Y;
177 double meshNode4PointX, meshNode4PointY;
178 double meshNode4Control1X, meshNode4Control1Y;
179 double meshNode4Control2X, meshNode4Control2Y;
180 QString meshColor1, meshColor2, meshColor3, meshColor4;
181 QList<QList<meshPoint> > meshGradientArray;
185 QString docOrganisation;
188 QTransform textMatrix;
198 int startCurrentTextRange;
199 int endCurrentTextRange;
200 QString currentSymbolName;
201 QMap<QString, QPointF> importedSymbols;
208 void cancelRequested() { cancel =
true; }
AIPlug(ScribusDoc *doc, int flags)
Create the AI importer window.
Definition: importai.cpp:65
Definition: storytext.h:71
Definition: vgradient.h:78
Definition: sccolor.h:155
A point with floating point precision.
Definition: fpoint.h:43
the Document Class
Definition: scribusdoc.h:90
Definition: undomanager.h:52
Definition: pageitem.h:92
Definition: fpointarray.h:42
Adobe Illustrator importer plugin.
Definition: importai.h:30
Definition: selection.h:34