16 #include "pluginapi.h"
19 #include "fpointarray.h"
26 #include <QDomDocument>
27 #include <QDomElement>
29 #include "third_party/zip/scribus_zip.h"
31 class MultiProgressDialog;
64 bool import(QString fn,
const TransactionSettings& trSettings,
int flags,
bool showProgress =
true);
65 QImage readThumbnail(QString fn);
66 bool readColors(
const QString& fileName,
ColorList & colors);
75 QString strokeGradient;
81 QPointF gradientFillStart;
82 double gradientFillLength;
83 double gradientFillAngle;
84 QPointF gradientStrokeStart;
85 double gradientStrokeLength;
86 double gradientStrokeAngle;
91 double TextColumnCount;
92 double TextColumnGutter;
93 double TextColumnFixedWidth;
98 QString getNodeValue(QDomNode &baseNode, QString path);
99 bool convert(QString fn);
100 bool parseFontsXML(
const QDomElement& grElem);
101 void parseFontsXMLNode(
const QDomElement& grNode);
102 bool parseGraphicsXML(
const QDomElement& grElem);
103 void parseGraphicsXMLNode(
const QDomElement& grNode);
104 bool parseStylesXML(
const QDomElement& sElem);
105 void parseStylesXMLNode(
const QDomElement& sNode);
106 void parseObjectStyle(
const QDomElement& styleElem);
107 void parseCharacterStyle(
const QDomElement& styleElem);
108 void parseParagraphStyle(
const QDomElement& styleElem);
109 bool parsePreferencesXML(
const QDomElement& prElem);
110 void parsePreferencesXMLNode(
const QDomElement& prNode);
111 bool parseSpreadXML(
const QDomElement& spElem);
112 void parseSpreadXMLNode(
const QDomElement& spNode);
113 QList<PageItem*> parseItemXML(
const QDomElement& itElem, QTransform pTrans = QTransform());
114 bool parseStoryXML(
const QDomElement& stElem);
115 void parseStoryXMLNode(
const QDomElement& stNode);
116 void parseParagraphStyleRange(QDomElement &ste,
PageItem* item);
117 void parseCharacterStyleRange(QDomElement &stt,
PageItem* item, QString fontBase, QString fontStyle,
ParagraphStyle &newStyle,
int posC);
118 void readCharStyleAttributes(
CharStyle &newStyle,
const QDomElement &styleElem);
119 void readParagraphStyleAttributes(
ParagraphStyle &newStyle,
const QDomElement &styleElem);
120 void resolveObjectStyle(ObjectStyle &nstyle, QString baseStyleName);
121 int convertBlendMode(QString blendName);
122 QString constructFontName(QString fontBaseName, QString fontStyle);
124 QList<PageItem*> Elements;
131 MultiProgressDialog * progressDialog;
142 QDomDocument designMapDom;
143 QStringList importedColors;
144 QMap<QString, QString> colorTranslate;
145 QStringList importedGradients;
146 QMap<QString, QString> gradientTranslate;
147 QMap<QString, int> gradientTypeMap;
148 QMap<QString, QString> layerTranslate;
149 QMap<QString, PageItem*> storyMap;
150 QMap<QString, QString> styleTranslate;
151 QMap<QString, QStringList> styleParents;
152 QMap<QString, QString> charStyleTranslate;
153 QMap<QString, QMap<QString, QString> > fontTranslateMap;
154 QMap<QString, QStringList> masterSpreads;
155 QString def_fillColor;
156 QString def_fillGradient;
157 QString def_strokeColor;
158 QString def_strokeGradient;
159 QString def_LeftLineEnd;
160 QString def_RightLineEnd;
162 int def_fillBlendmode;
163 int def_strokeBlendmode;
166 double def_lineWidth;
168 double def_fillOpacity;
169 double def_strokeOpacity;
170 double def_gradientAngle;
171 double def_gradientLen;
172 double def_gradientX;
173 double def_gradientY;
174 double def_gradientStrokeStartX;
175 double def_gradientStrokeStartY;
176 double def_gradientStrokeLength;
177 double def_gradientStrokeAngle;
182 double def_TextColumnCount;
183 double def_TextColumnGutter;
184 double def_TextColumnFixedWidth;
186 QMap<PageItem*, QString> frameLinks;
187 QMap<QString, PageItem*> frameTargets;
188 QMap<QString, ObjectStyle> ObjectStyles;
193 void cancelRequested() { cancel =
true; }
Definition: charstyle.h:78
Idml importer plugin.
Definition: importidml.h:37
TextFlowMode
Text flow mode.
Definition: pageitem.h:198
Definition: paragraphstyle.h:27
Definition: sccolor.h:155
the Document Class
Definition: scribusdoc.h:90
Definition: undomanager.h:52
Definition: pageitem.h:92
Definition: scribus_zip.h:28
Definition: fpointarray.h:42
IdmlPlug(ScribusDoc *doc, int flags)
Create the Idml importer window.
Definition: importidml.cpp:67
Definition: selection.h:34