LibreOffice Module reportdesign (master)  1
xmlHelper.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #include "xmlHelper.hxx"
20 #include <xmloff/xmlnamespace.hxx>
21 #include <xmloff/xmltoken.hxx>
22 #include <xmloff/families.hxx>
24 #include <xmloff/xmltkmap.hxx>
25 #include <connectivity/dbtools.hxx>
28 #include <com/sun/star/beans/PropertyAttribute.hpp>
29 #include <com/sun/star/awt/FontDescriptor.hpp>
30 #include <com/sun/star/awt/ImageScaleMode.hpp>
31 #include <xmloff/prstylei.hxx>
32 #include <strings.hxx>
33 #include "xmlEnums.hxx"
34 #include <com/sun/star/table/BorderLine2.hpp>
35 #include <com/sun/star/report/ForceNewPage.hpp>
36 #include <com/sun/star/report/ReportPrintOption.hpp>
37 #include <com/sun/star/report/KeepTogether.hpp>
38 #include <xmloff/xmlement.hxx>
39 #include <xmloff/xmltypes.hxx>
40 #include <xmloff/maptype.hxx>
41 #include <com/sun/star/report/XReportControlFormat.hpp>
42 #include <com/sun/star/form/ListSourceType.hpp>
43 #include <com/sun/star/sdb/CommandType.hpp>
44 #include <com/sun/star/style/VerticalAlignment.hpp>
46 #include <tools/diagnose_ex.h>
47 
48 #define XML_RPT_ALIGNMENT (XML_DB_TYPES_START+1)
49 namespace rptxml
50 {
51  using namespace ::xmloff::token;
52  using namespace ::com::sun::star::awt;
53  using namespace ::com::sun::star;
54  using namespace ::com::sun::star::sdb;
55  using namespace ::com::sun::star::form;
56  using namespace ::com::sun::star::beans;
58 {
59 }
60 
62 {
63 }
64 
66 {
67  const XMLPropertyHandler* pHandler = nullptr;
68  sal_Int32 nType = _nType;
69  nType &= MID_FLAG_MASK;
70 
71  switch(nType)
72  {
73  case XML_RPT_ALIGNMENT:
74  {
76  {
77  { XML_TOP, style::VerticalAlignment_TOP },
78  { XML_MIDDLE, style::VerticalAlignment_MIDDLE },
79  { XML_BOTTOM, style::VerticalAlignment_BOTTOM },
80  { XML_TOKEN_INVALID, style::VerticalAlignment(0) }
81  };
82 
83  pHandler = new XMLEnumPropertyHdl( pXML_VerticalAlign_Enum );
84  }
85  break;
86  case XML_SD_TYPES_START+34: // XML_SD_TYPE_IMAGE_SCALE_MODE
87  pHandler = new xmloff::ImageScaleModeHandler();
88  break;
89  default:
90  break;
91  }
92 
93  if ( !pHandler )
95  else
96  PutHdlCache(nType, pHandler);
97  return pHandler;
98 }
99 
100 #define MAP_CONST_T_ASCII( name, prefix, token, type, context ) { name, XML_NAMESPACE_##prefix, XML_##token, type|XML_TYPE_PROP_TABLE, context, SvtSaveOptions::ODFSVER_010, false }
101 #define MAP_CONST_P_ASCII( name, prefix, token, type, context ) { name, XML_NAMESPACE_##prefix, XML_##token, type|XML_TYPE_PROP_PARAGRAPH, context, SvtSaveOptions::ODFSVER_010, false }
102 #define MAP_CONST_S( name, prefix, token, type, context ) { name, XML_NAMESPACE_##prefix, XML_##token, type|XML_TYPE_PROP_SECTION, context, SvtSaveOptions::ODFSVER_010, false }
103 #define MAP_CONST_C_ASCII( name, prefix, token, type, context ) { name, XML_NAMESPACE_##prefix, XML_##token, type|XML_TYPE_PROP_TABLE_CELL, context, SvtSaveOptions::ODFSVER_010, false }
104 #define MAP_END() { nullptr, 0, XML_TOKEN_INVALID, 0 ,0, SvtSaveOptions::ODFSVER_010, false}
105 
107 {
108  if ( _bOldFormat )
109  {
110  static const XMLPropertyMapEntry s_aXMLCellStylesProperties[] =
111  {
113 
115  FO, BACKGROUND_COLOR, XML_TYPE_COLORTRANSPARENT|MID_FLAG_MULTI_PROPERTY, 0 ),
118  FO, BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
120  FO, BACKGROUND_COLOR, XML_TYPE_COLORTRANSPARENT|MID_FLAG_MULTI_PROPERTY, 0 ),
122  FO, BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
123  MAP_CONST_C_ASCII( "BorderLeft", FO, BORDER_LEFT, XML_TYPE_BORDER, 0 ),
124  MAP_CONST_C_ASCII( "BorderRight", FO, BORDER_RIGHT, XML_TYPE_BORDER, 0 ),
125  MAP_CONST_C_ASCII( "BorderTop", FO, BORDER_TOP, XML_TYPE_BORDER, 0 ),
126  MAP_CONST_C_ASCII( "BorderBottom", FO, BORDER_BOTTOM, XML_TYPE_BORDER, 0 ),
127  MAP_END()
128  };
129  return new XMLPropertySetMapper(s_aXMLCellStylesProperties,new OPropertyHandlerFactory(), bForExport);
130  }
131  else
132  {
133  static const XMLPropertyMapEntry s_aXMLCellStylesProperties[] =
134  {
136 
138  FO, BACKGROUND_COLOR, XML_TYPE_COLORTRANSPARENT|MID_FLAG_MULTI_PROPERTY, 0 ),
140  FO, BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
142  STYLE, VERTICAL_ALIGN, XML_RPT_ALIGNMENT, 0 ),
143  MAP_CONST_C_ASCII( "BorderLeft", FO, BORDER_LEFT, XML_TYPE_BORDER, 0 ),
144  MAP_CONST_C_ASCII( "BorderRight", FO, BORDER_RIGHT, XML_TYPE_BORDER, 0 ),
145  MAP_CONST_C_ASCII( "BorderTop", FO, BORDER_TOP, XML_TYPE_BORDER, 0 ),
146  MAP_CONST_C_ASCII( "BorderBottom", FO, BORDER_BOTTOM, XML_TYPE_BORDER, 0 ),
147  MAP_END()
148  };
149  return new XMLPropertySetMapper(s_aXMLCellStylesProperties,new OPropertyHandlerFactory(), bForExport);
150  }
151 }
152 
154 {
155  static const XMLPropertyMapEntry aXMLTableStylesProperties[] =
156  {
159  MAP_END()
160  };
161  return aXMLTableStylesProperties;
162 }
163 
165 {
166  static const XMLPropertyMapEntry aXMLStylesProperties[] =
167  {
168  MAP_CONST_S("Height", STYLE, ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW | XML_TYPE_MEASURE, 0),
169  MAP_CONST_S("MinHeight", STYLE, MIN_ROW_HEIGHT, XML_TYPE_PROP_TABLE_ROW | XML_TYPE_MEASURE, 0),
170  MAP_END()
171  };
172  return aXMLStylesProperties;
173 }
174 
176 {
177  static const XMLPropertyMapEntry aXMLColumnStylesProperties[] =
178  {
179  MAP_CONST_S( "Width", STYLE, COLUMN_WIDTH, XML_TYPE_PROP_TABLE_COLUMN|XML_TYPE_MEASURE, 0 ),
180  MAP_END()
181  };
182  return aXMLColumnStylesProperties;
183 }
184 
186 {
187  static const SvXMLEnumMapEntry<sal_Int16> s_aXML_EnumMap[] =
188  {
189  { XML_NOT_WITH_REPORT_HEADER, report::ReportPrintOption::NOT_WITH_REPORT_HEADER },
190  { XML_NOT_WITH_REPORT_FOOTER, report::ReportPrintOption::NOT_WITH_REPORT_FOOTER },
191  { XML_NOT_WITH_REPORT_HEADER_NOR_FOOTER, report::ReportPrintOption::NOT_WITH_REPORT_HEADER_FOOTER },
192  { XML_TOKEN_INVALID, 0 }
193  };
194  return s_aXML_EnumMap;
195 }
196 
198 {
199  static const SvXMLEnumMapEntry<sal_Int16> s_aXML_EnumMap[] =
200  {
201  { XML_BEFORE_SECTION, report::ForceNewPage::BEFORE_SECTION },
202  { XML_AFTER_SECTION, report::ForceNewPage::AFTER_SECTION },
203  { XML_BEFORE_AFTER_SECTION, report::ForceNewPage::BEFORE_AFTER_SECTION },
204  { XML_TOKEN_INVALID, 0 }
205  };
206  return s_aXML_EnumMap;
207 }
208 
210 {
211  static const SvXMLEnumMapEntry<sal_Int16> s_aXML_EnumMap[] =
212  {
213  { XML_WHOLE_GROUP, report::KeepTogether::WHOLE_GROUP },
214  { XML_WITH_FIRST_DETAIL, report::KeepTogether::WITH_FIRST_DETAIL },
215  { XML_TOKEN_INVALID, 0 }
216  };
217  return s_aXML_EnumMap;
218 }
219 
221 {
222  static const SvXMLEnumMapEntry<sal_Int32> s_aXML_EnumMap[] =
223  {
224  { XML_TABLE, CommandType::TABLE },
225  { XML_QUERY, CommandType::QUERY },
226  { XML_TOKEN_INVALID, 0 }
227  };
228  return s_aXML_EnumMap;
229 }
230 
231 #define PROPERTY_ID_FONTNAME 1
232 #define PROPERTY_ID_FONTHEIGHT 2
233 #define PROPERTY_ID_FONTWIDTH 3
234 #define PROPERTY_ID_FONTSTYLENAME 4
235 #define PROPERTY_ID_FONTFAMILY 5
236 #define PROPERTY_ID_FONTCHARSET 6
237 #define PROPERTY_ID_FONTPITCH 7
238 #define PROPERTY_ID_FONTCHARWIDTH 8
239 #define PROPERTY_ID_FONTWEIGHT 9
240 #define PROPERTY_ID_FONTSLANT 10
241 #define PROPERTY_ID_FONTUNDERLINE 11
242 #define PROPERTY_ID_FONTSTRIKEOUT 12
243 #define PROPERTY_ID_FONTORIENTATION 13
244 #define PROPERTY_ID_FONTKERNING 14
245 #define PROPERTY_ID_FONTWORDLINEMODE 15
246 #define PROPERTY_ID_FONTTYPE 16
247 void OXMLHelper::copyStyleElements(const bool _bOld,const OUString& _sStyleName,const SvXMLStylesContext* _pAutoStyles,const uno::Reference<beans::XPropertySet>& _xProp)
248 {
249  if ( !_xProp.is() || _sStyleName.isEmpty() || !_pAutoStyles )
250  return;
251  XMLPropStyleContext* pAutoStyle = const_cast<XMLPropStyleContext*>(dynamic_cast< const XMLPropStyleContext *>(_pAutoStyles->FindStyleChildContext(XmlStyleFamily::TABLE_CELL,_sStyleName)));
252  if ( !pAutoStyle )
253  return;
254 
255  css::awt::FontDescriptor aFont;
256  static comphelper::PropertyMapEntry const pMap[] =
257  {
258  {OUString(PROPERTY_FONTNAME), PROPERTY_ID_FONTNAME, cppu::UnoType<decltype(aFont.Name)>::get() ,PropertyAttribute::BOUND,0},
259  {OUString(PROPERTY_CHARFONTHEIGHT), PROPERTY_ID_FONTHEIGHT, cppu::UnoType<decltype(aFont.Height)>::get() ,PropertyAttribute::BOUND,0},
260  {OUString(PROPERTY_FONTWIDTH), PROPERTY_ID_FONTWIDTH, cppu::UnoType<decltype(aFont.Width)>::get() ,PropertyAttribute::BOUND,0},
261  {OUString(PROPERTY_FONTSTYLENAME), PROPERTY_ID_FONTSTYLENAME, cppu::UnoType<decltype(aFont.StyleName)>::get() ,PropertyAttribute::BOUND,0},
262  {OUString(PROPERTY_FONTFAMILY), PROPERTY_ID_FONTFAMILY, cppu::UnoType<decltype(aFont.Family)>::get() ,PropertyAttribute::BOUND,0},
263  {OUString(PROPERTY_FONTCHARSET), PROPERTY_ID_FONTCHARSET, cppu::UnoType<decltype(aFont.CharSet)>::get() ,PropertyAttribute::BOUND,0},
264  {OUString(PROPERTY_FONTPITCH), PROPERTY_ID_FONTPITCH, cppu::UnoType<decltype(aFont.Pitch)>::get() ,PropertyAttribute::BOUND,0},
265  {OUString(PROPERTY_FONTCHARWIDTH), PROPERTY_ID_FONTCHARWIDTH, cppu::UnoType<decltype(aFont.CharacterWidth)>::get(),PropertyAttribute::BOUND,0},
266  {OUString(PROPERTY_FONTWEIGHT), PROPERTY_ID_FONTWEIGHT, cppu::UnoType<decltype(aFont.Weight)>::get() ,PropertyAttribute::BOUND,0},
267  {OUString(PROPERTY_CHARPOSTURE), PROPERTY_ID_FONTSLANT, cppu::UnoType<decltype(aFont.Slant)>::get() ,PropertyAttribute::BOUND,0},
268  {OUString(PROPERTY_FONTUNDERLINE), PROPERTY_ID_FONTUNDERLINE, cppu::UnoType<decltype(aFont.Underline)>::get() ,PropertyAttribute::BOUND,0},
269  {OUString(PROPERTY_CHARSTRIKEOUT), PROPERTY_ID_FONTSTRIKEOUT, cppu::UnoType<decltype(aFont.Strikeout)>::get() ,PropertyAttribute::BOUND,0},
270  {OUString(PROPERTY_FONTORIENTATION), PROPERTY_ID_FONTORIENTATION, cppu::UnoType<decltype(aFont.Orientation)>::get() ,PropertyAttribute::BOUND,0},
271  {OUString(PROPERTY_FONTKERNING), PROPERTY_ID_FONTKERNING, cppu::UnoType<decltype(aFont.Kerning)>::get() ,PropertyAttribute::BOUND,0},
272  {OUString(PROPERTY_CHARWORDMODE), PROPERTY_ID_FONTWORDLINEMODE, cppu::UnoType<decltype(aFont.WordLineMode)>::get() ,PropertyAttribute::BOUND,0},
273  {OUString(PROPERTY_FONTTYPE), PROPERTY_ID_FONTTYPE, cppu::UnoType<decltype(aFont.Type)>::get() ,PropertyAttribute::BOUND,0},
274  { OUString(), 0, css::uno::Type(), 0, 0 }
275  };
276  try
277  {
278  pAutoStyle->FillPropertySet(_xProp);
279  if ( _bOld && _xProp->getPropertySetInfo()->hasPropertyByName(PROPERTY_CHARHIDDEN) )
280  _xProp->setPropertyValue(PROPERTY_CHARHIDDEN,uno::Any(false));
281 
282  uno::Reference<beans::XPropertySet> xProp = comphelper::GenericPropertySet_CreateInstance(new comphelper::PropertySetInfo(pMap));
283  pAutoStyle->FillPropertySet(xProp);
284  xProp->getPropertyValue(PROPERTY_FONTNAME) >>= aFont.Name;
285  xProp->getPropertyValue(PROPERTY_CHARFONTHEIGHT) >>= aFont.Height;
286  xProp->getPropertyValue(PROPERTY_FONTWIDTH) >>= aFont.Width;
287  xProp->getPropertyValue(PROPERTY_FONTSTYLENAME) >>= aFont.StyleName;
288  xProp->getPropertyValue(PROPERTY_FONTFAMILY) >>= aFont.Family;
289  xProp->getPropertyValue(PROPERTY_FONTCHARSET) >>= aFont.CharSet;
290  xProp->getPropertyValue(PROPERTY_FONTPITCH) >>= aFont.Pitch;
291  xProp->getPropertyValue(PROPERTY_FONTCHARWIDTH) >>= aFont.CharacterWidth;
292  xProp->getPropertyValue(PROPERTY_FONTWEIGHT) >>= aFont.Weight;
293  xProp->getPropertyValue(PROPERTY_CHARPOSTURE) >>= aFont.Slant;
294  xProp->getPropertyValue(PROPERTY_FONTUNDERLINE) >>= aFont.Underline;
295  xProp->getPropertyValue(PROPERTY_CHARSTRIKEOUT) >>= aFont.Strikeout;
296  xProp->getPropertyValue(PROPERTY_FONTORIENTATION) >>= aFont.Orientation;
297  xProp->getPropertyValue(PROPERTY_FONTKERNING) >>= aFont.Kerning;
298  xProp->getPropertyValue(PROPERTY_CHARWORDMODE) >>= aFont.WordLineMode;
299  xProp->getPropertyValue(PROPERTY_FONTTYPE) >>= aFont.Type;
300  uno::Reference<report::XReportControlFormat> xReportControlModel(_xProp,uno::UNO_QUERY);
301  if ( xReportControlModel.is() && !aFont.Name.isEmpty() )
302  {
303  try
304  {
305  xReportControlModel->setFontDescriptor(aFont);
306  }
307  catch(const beans::UnknownPropertyException &){}
308  }
309  }
310  catch(uno::Exception&)
311  {
312  TOOLS_WARN_EXCEPTION( "reportdesign", "OXMLHelper::copyStyleElements");
313  }
314 }
315 
316 uno::Reference<beans::XPropertySet> OXMLHelper::createBorderPropertySet()
317 {
318  static comphelper::PropertyMapEntry const pMap[] =
319  {
320  {OUString(PROPERTY_BORDERLEFT), 0, cppu::UnoType<table::BorderLine2>::get(),PropertyAttribute::BOUND,0},
321  {OUString(PROPERTY_BORDERRIGHT), 1, cppu::UnoType<table::BorderLine2>::get(),PropertyAttribute::BOUND,0},
322  {OUString(PROPERTY_BORDERTOP), 2, cppu::UnoType<table::BorderLine2>::get(),PropertyAttribute::BOUND,0},
323  {OUString(PROPERTY_BORDERBOTTOM), 3, cppu::UnoType<table::BorderLine2>::get(),PropertyAttribute::BOUND,0},
324  { OUString(), 0, css::uno::Type(), 0, 0 }
325  };
327 }
328 
329 std::unique_ptr<SvXMLTokenMap> OXMLHelper::GetReportElemTokenMap()
330 {
331  static const SvXMLTokenMapEntry aElemTokenMap[]=
332  {
353  };
354  return std::make_unique<SvXMLTokenMap>( aElemTokenMap );
355 }
356 
357 std::unique_ptr<SvXMLTokenMap> OXMLHelper::GetSubDocumentElemTokenMap()
358 {
359  static const SvXMLTokenMapEntry aElemTokenMap[]=
360  {
365  };
366  return std::make_unique<SvXMLTokenMap>( aElemTokenMap );
367 }
368 
370 {
371  static const SvXMLEnumMapEntry<sal_Int16> s_aXML_EnumMap[] =
372  {
373  { XML_ISOTROPIC, awt::ImageScaleMode::ISOTROPIC },
374  { XML_ANISOTROPIC, awt::ImageScaleMode::ANISOTROPIC },
375  { XML_TOKEN_INVALID, 0 }
376  };
377  return s_aXML_EnumMap;
378 }
379 
380 
381 } // rptxml
382 
383 
384 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
XML_GROUP
#define XML_TYPE_BORDER
#define MAP_CONST_C_ASCII(name, prefix, token, type, context)
Definition: xmlHelper.cxx:103
#define PROPERTY_BORDERLEFT
Definition: strings.hxx:274
SvXMLEnumMapEntry< drawing::TextVerticalAdjust > const pXML_VerticalAlign_Enum[]
constexpr sal_uInt16 XML_NAMESPACE_OFFICE
virtual ~OPropertyHandlerFactory() override
Definition: xmlHelper.cxx:61
#define MAP_CONST_P_ASCII(name, prefix, token, type, context)
Definition: xmlHelper.cxx:101
#define MAP_CONST_T_ASCII(name, prefix, token, type, context)
Definition: xmlHelper.cxx:100
XML_COMMAND_TYPE
#define PROPERTY_FONTWIDTH
Definition: strings.hxx:130
#define PROPERTY_ID_FONTSTYLENAME
Definition: xmlHelper.cxx:234
#define XML_SD_TYPES_START
#define PROPERTY_ID_FONTPITCH
Definition: xmlHelper.cxx:237
#define PROPERTY_FONTWEIGHT
Definition: strings.hxx:129
static const XMLPropertyMapEntry * GetColumnStyleProps()
Definition: xmlHelper.cxx:175
static const SvXMLEnumMapEntry< sal_Int16 > * GetReportPrintOptions()
Definition: xmlHelper.cxx:185
#define PROPERTY_CHARWORDMODE
Definition: strings.hxx:145
BORDER_BOTTOM
static const SvXMLEnumMapEntry< sal_Int16 > * GetForceNewPageOptions()
Definition: xmlHelper.cxx:197
#define PROPERTY_ID_FONTWORDLINEMODE
Definition: xmlHelper.cxx:245
static const XMLPropertyMapEntry * GetRowStyleProps()
Definition: xmlHelper.cxx:164
BORDER_LEFT
#define PROPERTY_CHARHIDDEN
Definition: strings.hxx:230
#define PROPERTY_CHARFONTHEIGHT
Definition: strings.hxx:118
#define PROPERTY_CHARPOSTURE
Definition: strings.hxx:144
#define XML_TYPE_PROP_TABLE_ROW
XML_HEADER_ON_NEW_PAGE
#define PROPERTY_BORDERRIGHT
Definition: strings.hxx:275
#define XML_TYPE_PROP_TABLE_COLUMN
#define XML_TOKEN_MAP_END
#define MID_FLAG_MERGE_ATTRIBUTE
XML_WHOLE_GROUP
XML_MASTER_DETAIL_FIELD
#define PROPERTY_FONTSTYLENAME
Definition: strings.hxx:127
#define PROPERTY_ID_FONTSLANT
Definition: xmlHelper.cxx:240
XML_NOT_WITH_REPORT_HEADER_NOR_FOOTER
XML_WITH_FIRST_DETAIL
static void copyStyleElements(const bool _bOld, const OUString &_sStyleName, const SvXMLStylesContext *_pAutoStyles, const css::uno::Reference< css::beans::XPropertySet > &_xProp)
Definition: xmlHelper.cxx:247
XML_QUERY
XML_MASTER_DETAIL_FIELDS
XML_CAPTION
XML_ANISOTROPIC
static css::uno::Reference< css::beans::XPropertySet > createBorderPropertySet()
Definition: xmlHelper.cxx:316
#define MID_FLAG_MULTI_PROPERTY
#define PROPERTY_CONTROLBACKGROUNDTRANSPARENT
Definition: strings.hxx:41
#define PROPERTY_VERTICALALIGN
Definition: strings.hxx:86
XML_BODY
XML_FUNCTION
#define PROPERTY_ID_FONTTYPE
Definition: xmlHelper.cxx:246
#define PROPERTY_ID_FONTCHARWIDTH
Definition: xmlHelper.cxx:238
XML_TOKEN_INVALID
constexpr sal_uInt16 XML_NAMESPACE_DRAW
static const SvXMLEnumMapEntry< sal_Int32 > * GetCommandTypeOptions()
Definition: xmlHelper.cxx:220
#define PROPERTY_FONTNAME
Definition: strings.hxx:122
#define MAP_END()
Definition: xmlHelper.cxx:104
BORDER_TOP
#define PROPERTY_ID_FONTSTRIKEOUT
Definition: xmlHelper.cxx:242
XML_MIDDLE
#define PROPERTY_CONTROLBACKGROUND
Definition: strings.hxx:40
#define TOOLS_WARN_EXCEPTION(area, stream)
#define XML_RPT_ALIGNMENT
Definition: xmlHelper.cxx:48
virtual void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
COMPHELPER_DLLPUBLIC css::uno::Reference< css::beans::XPropertySet > GenericPropertySet_CreateInstance(PropertySetInfo *pInfo)
XML_TOP
XML_TABLE
static std::unique_ptr< SvXMLTokenMap > GetSubDocumentElemTokenMap()
Definition: xmlHelper.cxx:357
#define PROPERTY_FONTCHARSET
Definition: strings.hxx:116
XML_FOOTER_ON_NEW_PAGE
BORDER_RIGHT
#define PROPERTY_BACKTRANSPARENT
Definition: strings.hxx:39
XML_COMMAND
#define XML_TYPE_NUMBER
XML_ESCAPE_PROCESSING
XML_BEFORE_SECTION
#define PROPERTY_ID_FONTKERNING
Definition: xmlHelper.cxx:244
#define PROPERTY_FONTTYPE
Definition: strings.hxx:131
XML_AFTER_SECTION
css::uno::Type const & get()
#define MID_FLAG_SPECIAL_ITEM
static rtl::Reference< XMLPropertySetMapper > GetCellStylePropertyMap(bool _bOldFormat, bool bForExport)
Definition: xmlHelper.cxx:106
static const SvXMLEnumMapEntry< sal_Int16 > * GetImageScaleOptions()
Definition: xmlHelper.cxx:369
XML_DETAIL
XML_BOTTOM
#define PROPERTY_ID_FONTORIENTATION
Definition: xmlHelper.cxx:243
#define XML_TYPE_ISTRANSPARENT
XML_FRAME
static const XMLPropertyMapEntry * GetTableStyleProps()
Definition: xmlHelper.cxx:153
XML_PAGE_FOOTER
#define PROPERTY_BORDERTOP
Definition: strings.hxx:276
#define MID_FLAG_MASK
#define PROPERTY_BORDERBOTTOM
Definition: strings.hxx:277
#define PROPERTY_CHARSTRIKEOUT
Definition: strings.hxx:125
#define PROPERTY_FONTPITCH
Definition: strings.hxx:124
constexpr sal_uInt16 XML_NAMESPACE_REPORT
XML_NOT_WITH_REPORT_HEADER
#define XML_TYPE_MEASURE
XML_MASTER
#define PROPERTY_ID_FONTWIDTH
Definition: xmlHelper.cxx:233
XML_REPORT_HEADER
QPRO_FUNC_TYPE nType
static const SvXMLEnumMapEntry< sal_Int16 > * GetKeepTogetherOptions()
Definition: xmlHelper.cxx:209
#define PROPERTY_FONTCHARWIDTH
Definition: strings.hxx:115
#define PROPERTY_FONTORIENTATION
Definition: strings.hxx:123
#define PROPERTY_ID_FONTFAMILY
Definition: xmlHelper.cxx:235
#define PROPERTY_ID_FONTCHARSET
Definition: xmlHelper.cxx:236
XML_REPORT_FOOTER
const SvXMLStyleContext * FindStyleChildContext(XmlStyleFamily nFamily, const OUString &rName, bool bCreateIndex=false) const
#define XML_TYPE_COLORTRANSPARENT
#define PROPERTY_ID_FONTHEIGHT
Definition: xmlHelper.cxx:232
#define MAP_CONST_S(name, prefix, token, type, context)
Definition: xmlHelper.cxx:102
XML_FILTER
#define PROPERTY_ID_FONTWEIGHT
Definition: xmlHelper.cxx:239
#define PROPERTY_BACKCOLOR
Definition: strings.hxx:38
#define PROPERTY_FONTUNDERLINE
Definition: strings.hxx:128
XML_BEFORE_AFTER_SECTION
#define PROPERTY_FORMATKEY
Definition: strings.hxx:93
XML_NOT_WITH_REPORT_FOOTER
#define PROPERTY_FONTKERNING
Definition: strings.hxx:120
virtual const XMLPropertyHandler * GetPropertyHandler(sal_Int32 _nType) const override
static std::unique_ptr< SvXMLTokenMap > GetReportElemTokenMap()
Definition: xmlHelper.cxx:329
XML_MIMETYPE
XML_ISOTROPIC
XML_PAGE_HEADER
virtual const XMLPropertyHandler * GetPropertyHandler(sal_Int32 _nType) const override
Definition: xmlHelper.cxx:65
#define PROPERTY_ID_FONTNAME
Definition: xmlHelper.cxx:231
#define PROPERTY_ID_FONTUNDERLINE
Definition: xmlHelper.cxx:241
void PutHdlCache(sal_Int32 nType, const XMLPropertyHandler *pHdl) const
XML_NAME
#define CTF_RPT_NUMBERFORMAT
Definition: xmlHelper.hxx:29
#define PROPERTY_FONTFAMILY
Definition: strings.hxx:117