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