7 #ifndef IMPORTIDMLIMPL_H
8 #define IMPORTIDMLIMPL_H
12 #include "fpointarray.h"
13 #include "docpreference.h"
25 #include <QDomElement>
30 class MultiProgressDialog;
57 QString AppliedCStyle;
58 QString AppliedLanguage;
59 QString AppliedPStyle;
62 Capitalization Capital;
63 double DesiredGlyphScale;
64 double DesiredWordSpace;
69 double FirstLineIndent;
72 double GradFillLength;
73 double GradStrokeAngle;
74 double GradStrokeLength;
75 double HorizontalScale;
76 Justification justify;
79 double MaxGlyphScaling;
80 double MaxWordSpacing;
81 double MinGlyphScaling;
82 double MinWordSpacing;
88 double StrikeThruWeight;
89 double StrikeThruOffset;
95 double UnderlineOffset;
96 double UnderlineWeight;
116 QList<CStyleRange> cstyleRange;
122 QList<PStyleRange> pstyleRange;
141 QString desmapPath, fontPath, stylePath, graphicPath, preferPath, mspreadPath;
143 bool processDesignMap();
145 bool processStyles();
146 bool importPStyles(QDomNode&);
147 bool importCStyles(QDomNode&) {
return false; };
148 bool processSpreads();
150 bool readStoryObjects(QDomNode);
152 void readSpread(QDomNode);
153 void readMSpread(QDomNode);
154 void docAttributes(QDomElement&);
155 void handleLanguage(QDomElement&);
156 void handleLayer(
ScLayer&,QDomElement&);
157 void handleSection(
ScribusDoc*, QDomElement&);
158 void handleCRFormat(QDomElement&);
159 void handleBookmarks(QDomElement&);
162 void handleGroup(QDomNode);
163 void readGradiant(QDomNode);
171 double findWidth(
double,
double,
double,
double);
172 double findHeight(
double,
double,
double,
double);
173 QTransform applyTransform(QString) {
return QTransform(); }
176 void getMSpreadSrc(QDomElement&);
177 void getSpreadSrc(QDomElement&);
178 void getStorySrc(QDomElement&);
179 void getBStorySrc(QDomElement&);
183 void fixLegacyCStyle(
CharStyle& cstyle) {};
186 QDomElement loadXmlFile(QString &filename);
191 QMap<QString,int> layerMap;
192 QMap<QString,Story> storyMap;
193 QList<QString> storyList;
194 QList<QString> storyPath;
195 QList<QString> Spreads;
196 QList<QString> spreadPath;
197 QList<QString> MasterSpreads;
198 QList<QString> MSpreadPath;
199 QList<PageItem*> Elements;
215 MultiProgressDialog *progressDialog;
Definition: charstyle.h:78
Definition: importidmlimpl.h:126
Definition: importidmlimpl.h:102
Definition: importidmlimpl.h:133
Stuct PStyleRange will hold the values of all those attributes/elements which can occur in the Paragr...
Definition: importidmlimpl.h:113
bool run(const QString &target, ScribusDoc *doc=0)
Definition: importidmlimpl.cpp:64
Definition: paragraphstyle.h:27
Definition: importidmlimpl.h:54
the Document Class
Definition: scribusdoc.h:90
Definition: undomanager.h:52
Definition: pageitem.h:92
Definition: fpointarray.h:42
Definition: importidmlimpl.h:119
A class to represent the necessary preferences from Resources/Preferences.xml in the idml package...
Definition: docpreference.h:100
Main class SCFonts. Subclass of QDict. This class replaces the previous SCFonts typedef...
Definition: scfonts.h:36
Definition: selection.h:34