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
33class SvXMLTokenMap;
34namespace 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
48 {
49 public:
50 static rtl::Reference < XMLPropertySetMapper > GetCellStylePropertyMap(bool _bOldFormat, bool bForExport);
51
57
60
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:61
void operator=(const OPropertyHandlerFactory &)=delete
virtual const XMLPropertyHandler * GetPropertyHandler(sal_Int32 _nType) const override
Definition: xmlHelper.cxx:65
OPropertyHandlerFactory(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:247
static std::unique_ptr< SvXMLTokenMap > GetReportElemTokenMap()
Definition: xmlHelper.cxx:327
static std::unique_ptr< SvXMLTokenMap > GetSubDocumentElemTokenMap()
Definition: xmlHelper.cxx:355
static const SvXMLEnumMapEntry< sal_Int16 > * GetReportPrintOptions()
Definition: xmlHelper.cxx:185
static css::uno::Reference< css::beans::XPropertySet > createBorderPropertySet()
Definition: xmlHelper.cxx:315
static const SvXMLEnumMapEntry< sal_Int16 > * GetKeepTogetherOptions()
Definition: xmlHelper.cxx:209
static const SvXMLEnumMapEntry< sal_Int32 > * GetCommandTypeOptions()
Definition: xmlHelper.cxx:220
static const SvXMLEnumMapEntry< sal_Int16 > * GetImageScaleOptions()
Definition: xmlHelper.cxx:367
static const XMLPropertyMapEntry * GetColumnStyleProps()
Definition: xmlHelper.cxx:175
static const SvXMLEnumMapEntry< sal_Int16 > * GetForceNewPageOptions()
Definition: xmlHelper.cxx:197
static const XMLPropertyMapEntry * GetRowStyleProps()
Definition: xmlHelper.cxx:164
static const XMLPropertyMapEntry * GetTableStyleProps()
Definition: xmlHelper.cxx:153
static rtl::Reference< XMLPropertySetMapper > GetCellStylePropertyMap(bool _bOldFormat, bool bForExport)
Definition: xmlHelper.cxx:106