128
PageStyle( StyleFactory * styleFactory, QDomElement & e, const uint index );
140
PageStyle(StyleFactory * styleFactory, QDomElement & e, const uint index);
131
void toXML( QDomDocument & doc, QDomElement & e ) const;
132
bool operator==( const PageStyle & pageStyle ) const;
133
QString name() const { return m_name; }
143
void toXML(QDomDocument & doc, QDomElement & e) const;
144
bool operator==(const PageStyle & pageStyle) const;
145
QString name() const {
138
152
QString m_name, m_bg_visible, m_bg_objects_visible, m_fill, m_fill_color,
139
m_fill_image_name, m_fill_image_width, m_fill_image_height,
140
m_fill_image_ref_point, m_fill_gradient_name, m_repeat, m_page_effect,
153
m_fill_image_name, m_fill_image_width, m_fill_image_height,
154
m_fill_image_ref_point, m_fill_gradient_name, m_repeat, m_page_effect,
147
TextStyle( QDomElement & e, const uint index );
161
TextStyle(QDomElement & e, const uint index);
150
void toXML( QDomDocument & doc, QDomElement & e ) const;
151
bool operator==( const TextStyle & textStyle ) const;
152
QString name() const { return m_name; }
164
void toXML(QDomDocument & doc, QDomElement & e) const;
165
bool operator==(const TextStyle & textStyle) const;
166
QString name() const {
157
173
QString m_name, m_font_size, m_font_family, m_font_family_generic,
158
m_color, m_font_pitch, m_font_style, m_font_weight, m_text_shadow,
159
m_text_underline, m_text_underline_color, m_text_crossing_out;
174
m_color, m_font_pitch, m_font_style, m_font_weight, m_text_shadow,
175
m_text_underline, m_text_underline_color, m_text_crossing_out;
162
178
class GraphicStyle
165
GraphicStyle( StyleFactory * styleFactory, QDomElement & e, const uint index );
166
GraphicStyle( const char * name,
167
const char * stroke, const char * stroke_color,
168
const char * stroke_width, const char * shadow,
169
const char * shadow_offset_x, const char * shadow_offset_y,
170
const char * shadow_color, const char * margin_left,
171
const char * margin_right, const char * margin_top,
172
const char * margin_bottom, const char * color,
173
const char * text_outline, const char * text_crossing_out,
174
const char * font_family, const char * font_size,
175
const char * font_style, const char * text_shadow,
176
const char * text_underline, const char * font_weight,
177
const char * line_height, const char * text_align,
178
const char * fill, const char * fill_color,
179
const char * enable_numbering );
181
GraphicStyle(StyleFactory * styleFactory, QDomElement & e, const uint index);
182
GraphicStyle(const char * name,
183
const char * stroke, const char * stroke_color,
184
const char * stroke_width, const char * shadow,
185
const char * shadow_offset_x, const char * shadow_offset_y,
186
const char * shadow_color, const char * margin_left,
187
const char * margin_right, const char * margin_top,
188
const char * margin_bottom, const char * color,
189
const char * text_outline, const char * text_crossing_out,
190
const char * font_family, const char * font_size,
191
const char * font_style, const char * text_shadow,
192
const char * text_underline, const char * font_weight,
193
const char * line_height, const char * text_align,
194
const char * fill, const char * fill_color,
195
const char * enable_numbering);
180
196
~GraphicStyle() {}
182
void toXML( QDomDocument & doc, QDomElement & e ) const;
183
bool operator==( const GraphicStyle & graphicStyle ) const;
184
QString name() const { return m_name; }
198
void toXML(QDomDocument & doc, QDomElement & e) const;
199
bool operator==(const GraphicStyle & graphicStyle) const;
200
QString name() const {
187
205
GraphicStyle() {}
189
207
QString m_name, m_stroke, m_stroke_color, m_stroke_width, m_shadow,
190
m_shadow_offset_x, m_shadow_offset_y, m_shadow_color, m_margin_left,
191
m_margin_right, m_margin_top, m_margin_bottom, m_color, m_text_outline,
192
m_text_crossing_out, m_font_family, m_font_size, m_font_style,
193
m_text_shadow, m_text_underline, m_font_weight, m_line_height,
194
m_text_align, m_fill, m_fill_color, m_enable_numbering, m_stroke_dash,
195
m_fill_hatch_name, m_marker_start, m_marker_start_width,
196
m_marker_end, m_marker_end_width, m_fill_gradient_name, m_transparency, m_textAlignment,
197
m_textMarginLeft, m_textMarginBottom, m_textMarginTop, m_textMarginRight;
208
m_shadow_offset_x, m_shadow_offset_y, m_shadow_color, m_margin_left,
209
m_margin_right, m_margin_top, m_margin_bottom, m_color, m_text_outline,
210
m_text_crossing_out, m_font_family, m_font_size, m_font_style,
211
m_text_shadow, m_text_underline, m_font_weight, m_line_height,
212
m_text_align, m_fill, m_fill_color, m_enable_numbering, m_stroke_dash,
213
m_fill_hatch_name, m_marker_start, m_marker_start_width,
214
m_marker_end, m_marker_end_width, m_fill_gradient_name, m_transparency, m_textAlignment,
215
m_textMarginLeft, m_textMarginBottom, m_textMarginTop, m_textMarginRight;
200
218
class ParagraphStyle
203
ParagraphStyle( QDomElement & e, const uint index );
221
ParagraphStyle(QDomElement & e, const uint index);
204
222
~ParagraphStyle() {}
206
void toXML( QDomDocument & doc, QDomElement & e ) const;
207
bool operator==( const ParagraphStyle & paragraphStyle ) const;
208
QString name() const { return m_name; }
224
void toXML(QDomDocument & doc, QDomElement & e) const;
225
bool operator==(const ParagraphStyle & paragraphStyle) const;
226
QString name() const {
211
231
ParagraphStyle() {}
212
QString parseBorder( QDomElement e );
232
QString parseBorder(QDomElement e);
214
234
QString m_name, m_margin_left, m_margin_right, m_text_indent, m_text_align,
215
m_enable_numbering, m_text_shadow, m_margin_top, m_margin_bottom,
216
m_border_left, m_border_right, m_border_top, m_border_bottom,
217
m_line_height, m_line_height_at_least, m_line_spacing;
235
m_enable_numbering, m_text_shadow, m_margin_top, m_margin_bottom,
236
m_border_left, m_border_right, m_border_top, m_border_bottom,
237
m_line_height, m_line_height_at_least, m_line_spacing;
223
ListStyle( QDomElement & e, const uint index );
243
ListStyle(QDomElement & e, const uint index);
226
void toXML( QDomDocument & doc, QDomElement & e ) const;
227
bool operator==( const ListStyle & listStyle ) const;
228
QString name() const { return m_name; }
246
void toXML(QDomDocument & doc, QDomElement & e) const;
247
bool operator==(const ListStyle & listStyle) const;
248
QString name() const {
250
void addOfficeStyles( QDomDocument & doc, QDomElement & styles );
251
void addOfficeMaster( QDomDocument & doc, QDomElement & master );
252
void addOfficeAutomatic( QDomDocument & doc, QDomElement & automatic );
253
void addAutomaticStyles( QDomDocument & doc, QDomElement & autoStyles );
255
QString createStrokeDashStyle( int style );
256
QString createGradientStyle( QDomElement & gradient );
257
QString createMarkerStyle( int style );
258
QString createHatchStyle( int style, QString & color );
259
QString createListStyle( QDomElement & e );
260
QString createPageStyle( QDomElement & e );
261
QString createTextStyle( QDomElement & e );
262
QString createGraphicStyle( QDomElement & e );
263
QString createParagraphStyle( QDomElement & e );
264
QString createPageMasterStyle( QDomElement & e );
266
static QString toCentimeter( const QString & point );
272
void addOfficeStyles(QDomDocument & doc, QDomElement & styles);
273
void addOfficeMaster(QDomDocument & doc, QDomElement & master);
274
void addOfficeAutomatic(QDomDocument & doc, QDomElement & automatic);
275
void addAutomaticStyles(QDomDocument & doc, QDomElement & autoStyles);
277
QString createStrokeDashStyle(int style);
278
QString createGradientStyle(QDomElement & gradient);
279
QString createMarkerStyle(int style);
280
QString createHatchStyle(int style, QString & color);
281
QString createListStyle(QDomElement & e);
282
QString createPageStyle(QDomElement & e);
283
QString createTextStyle(QDomElement & e);
284
QString createGraphicStyle(QDomElement & e);
285
QString createParagraphStyle(QDomElement & e);
286
QString createPageMasterStyle(QDomElement & e);
288
static QString toCentimeter(const QString & point);
269
291
QList<StrokeDashStyle*> m_strokeDashStyles;