33 #include <libxml/SAX2.h>
35 #include <libxml/SAX.h>
38 #include <QXmlAttributes>
42 typedef QMap<QString, gtStyle*> StyleMap;
43 typedef QMap<QString, QString> FontMap;
44 typedef QMap<QString, int> CounterMap;
59 CounterMap pstyleCounts;
65 bool defaultStyleCreated;
66 double getSize(QString s,
double parentSize = -1);
67 void styleProperties(
const QXmlAttributes& attrs);
68 void defaultStyle(
const QXmlAttributes& attrs);
69 void styleStyle(
const QXmlAttributes& attrs);
70 void tabStop(
const QXmlAttributes& attrs);
71 void setupFrameStyle();
73 StyleReader(QString documentName,
gtWriter *wr,
bool textOnly,
bool prefix,
bool combineStyles =
true);
75 bool updateStyle(
gtStyle* style,
gtStyle* parent2Style,
const QString& key,
const QString& value);
76 static void startElement(
void *user_data,
const xmlChar * fullname,
const xmlChar ** atts);
77 static void endElement(
void *user_data,
const xmlChar * name);
78 bool startElement(
const QString&,
const QString&,
const QString &name,
const QXmlAttributes &attrs);
79 bool endElement(
const QString&,
const QString&,
const QString &name);
80 void parse(QString fileName);
82 gtStyle* getStyle(
const QString& name);
83 void setStyle(
const QString& name,
gtStyle* style);
84 QString getFont(
const QString& key);
Definition: gtwriter.h:38
Definition: stylereader.h:119