16 #include "pluginapi.h"
19 #include "sctextstruct.h"
20 #include "text/storytext.h"
21 #include "fpointarray.h"
22 #include "scribusstructs.h"
29 #include <QDomDocument>
30 #include <QDomElement>
32 class MultiProgressDialog;
65 bool import(QString fn,
const TransactionSettings& trSettings,
int flags,
bool showProgress =
true);
66 QImage readThumbnail(QString fn);
67 bool readColors(
const QString& fileName,
ColorList & colors);
118 double parseUnit(
const QString &unit);
119 bool convert(QString fn);
120 void parseSettingsXML(
const QDomElement& grNode);
121 void parseColorsXML(
const QDomElement& grNode);
122 void parsePreferencesXML(
const QDomElement& spNode);
123 void parseLayerXML(
const QDomElement& spNode);
124 void parseMasterSpreadXML(
const QDomElement& spNode);
125 void parseSpreadXML(
const QDomElement& spElem);
126 void parseTextChainsXML(
const QDomElement& obNode);
127 PageItem* parseObjectXML(
const QDomElement& obNode);
128 PageItem *parseObjectDetailsXML(
const QDomElement& obNode,
int baseType);
129 void parseTextXML(
const QDomElement& obNode,
StoryText &itemText,
int &textColumnCount,
double &textColumnGap);
130 void parseAttributeSetXML(
const QDomElement& obNode, AttributeSet &attrs);
131 void parseAttributeSetsXML(
const QDomElement& obNode);
132 void parseStylesheetsXML(
const QDomElement& obNode);
133 void applyParagraphAttrs(
ParagraphStyle &newStyle, AttributeSet &pAttrs);
135 QString constructFontName(QString fontBaseName, QString fontStyle);
136 QPointF intersectBoundingRect(
PageItem *item, QLineF gradientVector);
138 QList<PageItem*> Elements;
148 QMap<QString, int> mspreadTypes;
151 MultiProgressDialog * progressDialog;
157 QDomDocument designMapDom;
158 QStringList importedColors;
164 QHash<QString, AttributeSet> AttributeSets;
165 QHash<QString, QString> colorTranslate;
166 QStringList importedGradients;
167 QMap<QString, QString> gradientTranslate;
168 QMap<QString, int> gradientTypeMap;
169 QMap<QString, PageItem*> storyMap;
172 void cancelRequested() { cancel =
true; }
Definition: storytext.h:71
Definition: charstyle.h:78
Definition: paragraphstyle.h:27
Definition: sccolor.h:155
A point with floating point precision.
Definition: fpoint.h:43
VivaPlug(ScribusDoc *doc, int flags)
Create the Viva importer window.
Definition: importviva.cpp:69
the Document Class
Definition: scribusdoc.h:90
Definition: undomanager.h:52
Viva importer plugin.
Definition: importviva.h:38
Definition: pageitem.h:92
Definition: fpointarray.h:42
Definition: scribusstructs.h:349
Definition: selection.h:34