16 #include "pluginapi.h"
19 #include "fpointarray.h"
26 #include <QDomDocument>
27 #include <QDomElement>
29 class MultiProgressDialog;
63 bool import(QString fn,
const TransactionSettings& trSettings,
int flags,
bool showProgress =
true);
64 QImage readThumbnail(QString fn);
69 QPainterPath currentPath;
70 bool currentPathClosed;
71 QPainterPath clipPath;
73 QString CurrColorFill;
75 QString CurrColorStroke;
79 QPointF gradientStart;
81 QPointF gradientFocus;
99 QString patternStroke;
101 Qt::PenCapStyle CapStyle;
102 Qt::PenJoinStyle JoinStyle;
103 QVector<double> DashPattern;
106 bool convert(QString fn);
107 bool parseDocSequence(QString designMap);
108 bool parseDocReference(QString designMap);
109 void parsePageReference(QString designMap);
110 PageItem* parseObjectXML(QDomElement& dpg, QString path);
111 void parseOpacityXML(QDomElement &spe, QString path, ObjState &obState);
112 void parseStrokeXML(QDomElement &spe, QString path, ObjState &obState);
113 void parseFillXML(QDomElement &spe, QString path, ObjState &obState);
114 void parsePathDataXML(QDomElement &spe, ObjState &obState,
bool forClip =
false);
115 QString parsePathGeometryXML(QDomElement &spe);
116 void parseResourceFile(QString resFile);
119 PageItem* createItem(QDomElement &dpg, ObjState &obState);
120 void finishItem(
PageItem* item, ObjState &obState);
121 QString handleColor(QString rgbColor,
double &opacity);
122 int hex2int(
char hex);
123 bool parseGUID(
const QString &guidString,
unsigned short guid[16]);
124 ScFace loadFontByName(
const QString &fileName);
125 QList<PageItem*> Elements;
132 MultiProgressDialog * progressDialog;
139 QStringList importedColors;
140 QStringList importedPatterns;
147 double conversionFactor;
148 QHash<QString, QPainterPath> pathResources;
149 QHash<QString, PageItem*> linkTargets;
150 QHash<PageItem*, QString> linkSources;
151 QHash<QString, ScFace> loadedFonts;
153 QStringList tempFontFiles;
156 void cancelRequested() { cancel =
true; }
Definition: vgradient.h:78
the Document Class
Definition: scribusdoc.h:90
XpsPlug(ScribusDoc *doc, int flags)
Create the Xps importer window.
Definition: importxps.cpp:70
Base Class ScFace : This is a total rewrite of the old Foi class.
Definition: scface.h:73
Definition: undomanager.h:52
Definition: pageitem.h:92
Xps importer plugin.
Definition: importxps.h:36
Definition: scribus_zip.h:28
Definition: fpointarray.h:42
Definition: selection.h:34