LibreOffice Module reportdesign (master)  1
xmlHelper.hxx
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 #ifndef INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLHELPER_HXX
20 #define INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLHELPER_HXX
21 
22 #include <xmloff/xmlprmap.hxx>
23 #include <xmloff/contextid.hxx>
25 #include <com/sun/star/beans/XPropertySet.hpp>
26 
27 #include <memory>
28 
29 #define CTF_RPT_NUMBERFORMAT (XML_DB_CTF_START + 1)
30 
31 
32 class SvXMLStylesContext;
33 class SvXMLTokenMap;
34 namespace rptxml
35 {
37  {
39  void operator =(const OPropertyHandlerFactory&) = delete;
40  public:
42  virtual ~OPropertyHandlerFactory() override;
43 
44  virtual const XMLPropertyHandler* GetPropertyHandler(sal_Int32 _nType) const override;
45  };
46 
47  class OXMLHelper
48  {
49  public:
50  static rtl::Reference < XMLPropertySetMapper > GetCellStylePropertyMap(bool _bOldFormat, bool bForExport);
51 
57 
60 
61  static const XMLPropertyMapEntry* GetRowStyleProps();
62 
63  static void copyStyleElements(const bool _bOld,const OUString& _sStyleName,const SvXMLStylesContext* _pAutoStyles,const css::uno::Reference< css::beans::XPropertySet>& _xProp);
64  static css::uno::Reference< css::beans::XPropertySet> createBorderPropertySet();
65 
66  static std::unique_ptr<SvXMLTokenMap> GetReportElemTokenMap();
67  static std::unique_ptr<SvXMLTokenMap> GetSubDocumentElemTokenMap();
68 
69  };
70 
71 } // rptxml
72 
73 #endif // INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLHELPER_HXX
74 
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~OPropertyHandlerFactory() override
Definition: xmlHelper.cxx:62
static const XMLPropertyMapEntry * GetColumnStyleProps()
Definition: xmlHelper.cxx:176
static const SvXMLEnumMapEntry< sal_Int16 > * GetReportPrintOptions()
Definition: xmlHelper.cxx:186
static const SvXMLEnumMapEntry< sal_Int16 > * GetForceNewPageOptions()
Definition: xmlHelper.cxx:198
static const XMLPropertyMapEntry * GetRowStyleProps()
Definition: xmlHelper.cxx:165
void operator=(const OPropertyHandlerFactory &)=delete
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
static const SvXMLEnumMapEntry< sal_Int32 > * GetCommandTypeOptions()
Definition: xmlHelper.cxx:221
static std::unique_ptr< SvXMLTokenMap > GetSubDocumentElemTokenMap()
Definition: xmlHelper.cxx:358
static rtl::Reference< XMLPropertySetMapper > GetCellStylePropertyMap(bool _bOldFormat, bool bForExport)
Definition: xmlHelper.cxx:107
static const SvXMLEnumMapEntry< sal_Int16 > * GetImageScaleOptions()
Definition: xmlHelper.cxx:370
static const XMLPropertyMapEntry * GetTableStyleProps()
Definition: xmlHelper.cxx:154
static const SvXMLEnumMapEntry< sal_Int16 > * GetKeepTogetherOptions()
Definition: xmlHelper.cxx:210
static std::unique_ptr< SvXMLTokenMap > GetReportElemTokenMap()
Definition: xmlHelper.cxx:330
virtual const XMLPropertyHandler * GetPropertyHandler(sal_Int32 _nType) const override
Definition: xmlHelper.cxx:66