2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
14
#include "pluginapi.h"
17
#include "fpointarray.h"
22
class MultiProgressDialog;
25
class TransactionSettings;
27
//! \brief Xfig importer plugin
28
class XfigPlug : public QObject
36
\brief Create the AI importer window.
38
\param flags combination of loadFlags
39
\param showProgress if progress must be displayed
40
\retval EPSPlug plugin
42
XfigPlug( ScribusDoc* doc, int flags );
48
\brief Perform import.
50
\param trSettings undo transaction settings
51
\param flags combination of loadFlags
52
\param showProgress if progress must be displayed
53
\retval bool true if import was ok
55
bool import(QString fn, const TransactionSettings& trSettings, int flags, bool showProgress = true);
62
\brief Does the conversion.
68
\retval bool true if conversion was ok
70
bool parseHeader(QString fName, double &x, double &y, double &b, double &h);
71
void parseColor(QString data);
72
void useColor(int colorNum, int area_fill, bool forFill);
73
QVector<double> getDashValues(double linewidth, int code);
74
void processArrows(int forward_arrow, QString fArrowData, int backward_arrow, QString bArrowData, int depth, PageItem *ite);
75
void processPolyline(QDataStream &ts, QString data);
76
void processSpline(QDataStream &ts, QString data);
77
void processArc(QDataStream &ts, QString data);
78
void processEllipse(QString data);
79
QString cleanText(QString text);
80
void processText(QString data);
81
void processData(QDataStream &ts, QString data);
82
double fig2Pts(double in);
84
bool convert(QString fn);
86
QList<PageItem*> Elements;
87
QList<PageItem*> PatternElements;
88
QMultiMap<int, int> depthMap;
90
QStack<QList<PageItem*> > groupStack;
99
QString CurrColorFill;
100
QString CurrColorStroke;
101
double CurrStrokeShade;
102
double CurrFillShade;
105
FPointArray clipCoords;
107
MultiProgressDialog * progressDialog;
111
QMap<int, QString> importedColors;
114
QString currentPatternDefName;
115
QString currentPatternName;
120
double currentPatternX;
121
double currentPatternY;
122
double currentPatternXScale;
123
double currentPatternYScale;
124
double currentPatternRotation;
128
QString docOrganisation;
134
void cancelRequested() { cancel = true; }