28#include <com/sun/star/beans/PropertyAttribute.hpp>
29#include <com/sun/star/awt/FontDescriptor.hpp>
30#include <com/sun/star/awt/ImageScaleMode.hpp>
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>
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>
48#define XML_RPT_ALIGNMENT (XML_DB_TYPES_START+1)
68 sal_Int32
nType = _nType;
77 {
XML_TOP, style::VerticalAlignment_TOP },
78 {
XML_MIDDLE, style::VerticalAlignment_MIDDLE },
79 {
XML_BOTTOM, style::VerticalAlignment_BOTTOM },
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 }
161 return aXMLTableStylesProperties;
172 return aXMLStylesProperties;
182 return aXMLColumnStylesProperties;
194 return s_aXML_EnumMap;
206 return s_aXML_EnumMap;
217 return s_aXML_EnumMap;
228 return s_aXML_EnumMap;
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
249 if ( !_xProp.is() || _sStyleName.isEmpty() || !_pAutoStyles )
255 css::awt::FontDescriptor aFont;
299 uno::Reference<report::XReportControlFormat> xReportControlModel(_xProp,uno::UNO_QUERY);
300 if ( xReportControlModel.is() && !aFont.Name.isEmpty() )
304 xReportControlModel->setFontDescriptor(aFont);
306 catch(
const beans::UnknownPropertyException &){}
309 catch(uno::Exception&)
352 return std::make_unique<SvXMLTokenMap>( aElemTokenMap );
364 return std::make_unique<SvXMLTokenMap>( aElemTokenMap );
375 return s_aXML_EnumMap;
const SvXMLStyleContext * FindStyleChildContext(XmlStyleFamily nFamily, const OUString &rName, bool bCreateIndex=false) const
virtual void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
void PutHdlCache(sal_Int32 nType, const XMLPropertyHandler *pHdl) const
css::uno::Type const & get()
virtual ~OPropertyHandlerFactory() override
virtual const XMLPropertyHandler * GetPropertyHandler(sal_Int32 _nType) const override
OPropertyHandlerFactory()
static void copyStyleElements(const bool _bOld, const OUString &_sStyleName, const SvXMLStylesContext *_pAutoStyles, const css::uno::Reference< css::beans::XPropertySet > &_xProp)
static std::unique_ptr< SvXMLTokenMap > GetReportElemTokenMap()
static std::unique_ptr< SvXMLTokenMap > GetSubDocumentElemTokenMap()
static const SvXMLEnumMapEntry< sal_Int16 > * GetReportPrintOptions()
static css::uno::Reference< css::beans::XPropertySet > createBorderPropertySet()
static const SvXMLEnumMapEntry< sal_Int16 > * GetKeepTogetherOptions()
static const SvXMLEnumMapEntry< sal_Int32 > * GetCommandTypeOptions()
static const SvXMLEnumMapEntry< sal_Int16 > * GetImageScaleOptions()
static const XMLPropertyMapEntry * GetColumnStyleProps()
static const SvXMLEnumMapEntry< sal_Int16 > * GetForceNewPageOptions()
static const XMLPropertyMapEntry * GetRowStyleProps()
static const XMLPropertyMapEntry * GetTableStyleProps()
static rtl::Reference< XMLPropertySetMapper > GetCellStylePropertyMap(bool _bOldFormat, bool bForExport)
virtual const XMLPropertyHandler * GetPropertyHandler(sal_Int32 _nType) const override
#define TOOLS_WARN_EXCEPTION(area, stream)
COMPHELPER_DLLPUBLIC css::uno::Reference< css::beans::XPropertySet > GenericPropertySet_CreateInstance(PropertySetInfo *pInfo)
@ XML_TOK_MASTER_DETAIL_FIELD
@ XML_TOK_REPORT_FUNCTION
@ XML_TOK_REPORT_MIMETYPE
@ XML_TOK_FOOTER_ON_NEW_PAGE
@ XML_TOK_HEADER_ON_NEW_PAGE
@ XML_TOK_MASTER_DETAIL_FIELDS
@ XML_TOK_ESCAPE_PROCESSING
XML_NOT_WITH_REPORT_HEADER
XML_NOT_WITH_REPORT_FOOTER
XML_NOT_WITH_REPORT_HEADER_NOR_FOOTER
SvXMLEnumMapEntry< drawing::TextVerticalAdjust > const pXML_VerticalAlign_Enum[]
constexpr OUStringLiteral PROPERTY_BORDERTOP
constexpr OUStringLiteral PROPERTY_CONTROLBACKGROUNDTRANSPARENT
constexpr OUStringLiteral PROPERTY_CHARFONTHEIGHT
constexpr OUStringLiteral PROPERTY_MINHEIGHT
constexpr OUStringLiteral PROPERTY_VERTICALALIGN
constexpr OUStringLiteral PROPERTY_FONTWIDTH
constexpr OUStringLiteral PROPERTY_BORDERLEFT
constexpr OUStringLiteral PROPERTY_BORDERBOTTOM
constexpr OUStringLiteral PROPERTY_FONTFAMILY
constexpr OUStringLiteral PROPERTY_FONTCHARSET
constexpr OUStringLiteral PROPERTY_HEIGHT
constexpr OUStringLiteral PROPERTY_FONTUNDERLINE
constexpr OUStringLiteral PROPERTY_FONTKERNING
constexpr OUStringLiteral PROPERTY_FONTTYPE
constexpr OUStringLiteral PROPERTY_CHARWORDMODE
constexpr OUStringLiteral PROPERTY_BACKTRANSPARENT
constexpr OUStringLiteral PROPERTY_CHARPOSTURE
constexpr OUStringLiteral PROPERTY_FONTCHARWIDTH
constexpr OUStringLiteral PROPERTY_FONTNAME
constexpr OUStringLiteral PROPERTY_CHARHIDDEN
constexpr OUStringLiteral PROPERTY_WIDTH
constexpr OUStringLiteral PROPERTY_FORMATKEY
constexpr OUStringLiteral PROPERTY_FONTSTYLENAME
constexpr OUStringLiteral PROPERTY_FONTPITCH
constexpr OUStringLiteral PROPERTY_BORDERRIGHT
constexpr OUStringLiteral PROPERTY_FONTWEIGHT
constexpr OUStringLiteral PROPERTY_BACKCOLOR
constexpr OUStringLiteral PROPERTY_CHARSTRIKEOUT
constexpr OUStringLiteral PROPERTY_FONTORIENTATION
constexpr OUStringLiteral PROPERTY_CONTROLBACKGROUND
#define PROPERTY_ID_FONTFAMILY
#define XML_RPT_ALIGNMENT
#define PROPERTY_ID_FONTWORDLINEMODE
#define PROPERTY_ID_FONTHEIGHT
#define PROPERTY_ID_FONTSLANT
#define PROPERTY_ID_FONTSTYLENAME
#define PROPERTY_ID_FONTSTRIKEOUT
#define PROPERTY_ID_FONTUNDERLINE
#define PROPERTY_ID_FONTWIDTH
#define PROPERTY_ID_FONTWEIGHT
#define PROPERTY_ID_FONTNAME
#define PROPERTY_ID_FONTTYPE
#define PROPERTY_ID_FONTCHARWIDTH
#define MAP_CONST_P_ASCII(name, prefix, token, type, context)
#define PROPERTY_ID_FONTKERNING
#define MAP_CONST_C_ASCII(name, prefix, token, type, context)
#define PROPERTY_ID_FONTORIENTATION
#define MAP_CONST_S(name, prefix, token, type, context)
#define PROPERTY_ID_FONTPITCH
#define PROPERTY_ID_FONTCHARSET
#define MAP_CONST_T_ASCII(name, prefix, token, type, context)
#define CTF_RPT_NUMBERFORMAT
constexpr sal_uInt16 XML_NAMESPACE_DRAW
constexpr sal_uInt16 XML_NAMESPACE_REPORT
constexpr sal_uInt16 XML_NAMESPACE_OFFICE
#define XML_TOKEN_MAP_END
#define XML_TYPE_COLORTRANSPARENT
#define MID_FLAG_SPECIAL_ITEM
#define MID_FLAG_MULTI_PROPERTY
#define XML_SD_TYPES_START
#define XML_TYPE_PROP_TABLE_COLUMN
#define MID_FLAG_MERGE_ATTRIBUTE
#define XML_TYPE_ISTRANSPARENT
#define XML_TYPE_PROP_TABLE_ROW