33 #include <libxml/SAX2.h>
35 #include <libxml/SAX.h>
38 #include <QXmlAttributes>
58 const QString &prefix,
59 const QString &suffix,
60 const QString &bullet,
61 uint displayLevels = 1,
64 QString bulletString();
80 static const QString lowerUnits[10];
81 static const QString lowerTens[10];
82 static const QString lowerHundreds[10];
83 static const QString lowerThousands[4];
84 static const QString upperUnits[10];
85 static const QString upperTens[10];
86 static const QString upperHundreds[10];
87 static const QString upperThousands[4];
88 static const QString lowerAlphabets[27];
89 static const QString upperAlphabets[27];
90 QString lowerRoman(uint n);
91 QString upperRoman(uint n);
92 QString lowerAlpha(uint n);
93 QString upperAlpha(uint n);
99 ListStyle(
const QString &name, uint currentLevel = 1);
101 void addLevel(uint level,
ListLevel *llevel);
104 void setLevel(uint level);
114 typedef QMap<QString, gtStyle*> StyleMap;
115 typedef QMap<QString, QString> FontMap;
116 typedef QMap<QString, int> CounterMap;
117 typedef QMap<QString, ListStyle*> ListMap;
130 StyleMap listParents;
131 StyleMap attrsStyles;
132 CounterMap pstyleCounts;
140 bool defaultStyleCreated;
141 double getSize(QString s,
double parentSize = -1);
142 void styleProperties(
const QXmlAttributes& attrs);
143 void defaultStyle(
const QXmlAttributes& attrs);
144 void styleStyle(
const QXmlAttributes& attrs);
145 void tabStop(
const QXmlAttributes& attrs);
146 void setupFrameStyle();
148 StyleReader(QString documentName,
gtWriter *wr,
bool textOnly,
bool prefix,
bool combineStyles =
true);
150 bool updateStyle(
gtStyle* style,
gtStyle* parent2Style,
const QString& key,
const QString& value);
151 static void startElement(
void *user_data,
const xmlChar * fullname,
const xmlChar ** atts);
152 static void endElement(
void *user_data,
const xmlChar * name);
153 bool startElement(
const QString&,
const QString&,
const QString &name,
const QXmlAttributes &attrs);
154 bool endElement(
const QString&,
const QString&,
const QString &name);
155 void parse(QString fileName);
156 gtStyle* getDefaultStyle(
void);
157 gtStyle* getStyle(
const QString& name);
158 void setStyle(
const QString& name,
gtStyle* style);
159 QString getFont(
const QString& key);
Definition: gtwriter.h:38
Definition: stylereader.h:119
Definition: stylereader.h:53
Definition: stylereader.h:96
Definition: scribusstructs.h:150