18 #include "pluginapi.h"
21 #include "fpointarray.h"
29 class MultiProgressDialog;
39 quint32 getUInt(uint size);
75 bool import(QString fn,
const TransactionSettings& trSettings,
int flags,
bool showProgress =
true);
76 QImage readThumbnail(QString fn);
79 void parseHeader(QString fName,
double &b,
double &h);
80 bool convert(QString fn);
81 void decodeText(QFile &f);
84 void decodeBinary(QDataStream &ts, quint16 elemClass, quint16 elemID, quint16 paramLen);
85 void decodeClass0(QDataStream &ts, quint16 elemID, quint16 paramLen);
86 void decodeClass1(QDataStream &ts, quint16 elemID, quint16 paramLen);
87 void decodeClass2(QDataStream &ts, quint16 elemID, quint16 paramLen);
88 void decodeClass3(QDataStream &ts, quint16 elemID, quint16 paramLen);
89 void decodeClass4(QDataStream &ts, quint16 elemID, quint16 paramLen);
90 void decodeClass5(QDataStream &ts, quint16 elemID, quint16 paramLen);
91 void decodeClass6(QDataStream &ts, quint16 elemID, quint16 paramLen);
92 void decodeClass7(QDataStream &ts, quint16 elemID, quint16 paramLen);
93 void decodeClass8(QDataStream &ts, quint16 elemID, quint16 paramLen);
94 void decodeClass9(QDataStream &ts, quint16 elemID, quint16 paramLen);
95 void getBinaryBezierPath(QDataStream &ts, quint16 paramLen);
96 void getBinaryPath(QDataStream &ts, quint16 paramLen,
bool disjoint =
false);
97 void getBinaryColorTable(QDataStream &ts, quint16 paramLen);
99 ScColor getBinaryDirectColor(QDataStream &ts);
100 QString getBinaryIndexedColor(
ScBitReader *breader);
101 QString getBinaryIndexedColor(QDataStream &ts);
102 QString getBinaryColor(QDataStream &ts);
103 double getBinaryDistance(QDataStream &ts);
104 QPointF getBinaryCoords(QDataStream &ts,
bool raw =
false);
105 uint getBinaryUInt(QDataStream &ts,
int intP);
106 int getBinaryInt(QDataStream &ts,
int intP);
107 double getBinaryReal(QDataStream &ts,
int realP,
int realM);
108 QString getBinaryText(QDataStream &ts);
109 void alignStreamToWord(QDataStream &ts, uint len);
112 void handleStartMetaFile(QString value);
113 void handleStartPicture(QString value);
114 void handleStartPictureBody(
double width,
double height);
115 void handleMetaFileDescription(QString value);
116 QString handleColor(
ScColor &color, QString proposedName);
117 double convertCoords(
double input);
118 QPointF convertCoords(QPointF input);
119 void appendPath(QPainterPath &path1, QPainterPath &path2);
121 void finishItem(
PageItem* ite,
bool line =
true);
133 double metaFileScale;
135 int metaFileScaleMode;
140 bool realPrecisionSet;
143 int colorIndexPrecision;
151 double viewPortScale;
152 int viewPortScaleMode;
155 Qt::PenStyle lineType;
156 Qt::PenCapStyle lineCap;
157 Qt::PenJoinStyle lineJoin;
159 Qt::PenStyle edgeType;
160 Qt::PenCapStyle edgeCap;
161 Qt::PenJoinStyle edgeJoin;
163 uint minColor, maxColor;
170 QMap<int, QString> patternTable;
171 double patternScaleX;
172 double patternScaleY;
173 QString backgroundColor;
175 QMap<uint, QString> ColorTableMap;
179 QPainterPath regionPath;
182 QMap<int, QPainterPath> regionMap;
183 QPointF fillRefPoint;
185 QList<PageItem*> Elements;
187 QStack<QList<PageItem*> > groupStack;
192 QStringList importedColors;
196 MultiProgressDialog * progressDialog;
208 QPainterPath figurePath;
213 QString figFillColor;
214 QMap<int, QString> fontID_Map;
223 void cancelRequested() { cancel =
true; }
Definition: importcgm.h:34
Cgm importer plugin.
Definition: importcgm.h:48
CgmPlug(ScribusDoc *doc, int flags)
Create the Cgm importer window.
Definition: importcgm.cpp:102
Definition: sccolor.h:155
the Document Class
Definition: scribusdoc.h:90
ItemFrameType
Frame Type.
Definition: pageitem.h:208
Definition: undomanager.h:52
Binary buffer.
Definition: pdbim.h:93
ItemType
Item Type.
Definition: pageitem.h:174
Definition: pageitem.h:92
Definition: fpointarray.h:42
Definition: selection.h:34