LibreOffice Module reportdesign (master) 1
xmlStyleImport.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
20#ifndef INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLSTYLEIMPORT_HXX
21#define INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLSTYLEIMPORT_HXX
22
23#include <rtl/ustring.hxx>
24#include <xmloff/prstylei.hxx>
25#include <xmloff/xmlimppr.hxx>
26
27namespace rptxml
28{
29 class ORptFilter;
30
32 {
35 // std::vector<ScXMLMapContent> aMaps;
36 sal_Int32 m_nNumberFormat;
38
40 void operator =(const OControlStyleContext&) = delete;
41 protected:
42
43 virtual void SetAttribute( sal_Int32 nElement,
44 const OUString& rValue ) override;
45
46 public:
47
49 SvXMLStylesContext& rStyles, XmlStyleFamily nFamily );
50
51 virtual ~OControlStyleContext() override;
52
53
54 virtual void FillPropertySet(const css::uno::Reference<
55 css::beans::XPropertySet > & rPropSet ) override;
56
57 virtual void SetDefaults() override;
58
59 void AddProperty(sal_Int16 nContextID, const css::uno::Any& aValue);
60 };
61
63 {
66 bool bAutoStyles : 1;
67
68 //mutable rtl::Reference < SvXMLImportPropertyMapper > m_xControlImpPropMapper;
73
74 mutable css::uno::Reference< css::container::XNameContainer > m_xCellStyles;
75 mutable css::uno::Reference< css::container::XNameContainer > m_xColumnStyles;
76 mutable css::uno::Reference< css::container::XNameContainer > m_xRowStyles;
77 mutable css::uno::Reference< css::container::XNameContainer > m_xTableStyles;
78
79 ORptFilter& GetOwnImport() const { return m_rImport;}
80
82 void operator =(const OReportStylesContext&) = delete;
83 protected:
84
85 // Create a style context.
88 XmlStyleFamily nFamily,
89 sal_Int32 nElement,
90 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList ) override;
91
94 XmlStyleFamily nFamily, sal_Int32 nElement,
95 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList ) override;
96
97 public:
98
99
101 const bool bAutoStyles );
102 virtual ~OReportStylesContext() override;
103
104 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
105
107 XmlStyleFamily nFamily ) const override;
108 virtual css::uno::Reference< css::container::XNameContainer >
109 GetStylesContainer( XmlStyleFamily nFamily ) const override;
110 virtual OUString GetServiceName( XmlStyleFamily nFamily ) const override;
111
112 sal_Int32 GetIndex(const sal_Int16 nContextID);
113 };
114
115} // rptxml
116
117#endif // INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLSTYLEIMPORT_HXX
118
119/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual SvXMLStyleContext * CreateDefaultStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual SvXMLStyleContext * CreateStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual void SetDefaults() override
OControlStyleContext(const OControlStyleContext &)=delete
virtual void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet) override
void AddProperty(sal_Int16 nContextID, const css::uno::Any &aValue)
virtual void SetAttribute(sal_Int32 nElement, const OUString &rValue) override
SvXMLStylesContext * pStyles
virtual ~OControlStyleContext() override
void operator=(const OControlStyleContext &)=delete
virtual OUString GetServiceName(XmlStyleFamily nFamily) const override
virtual css::uno::Reference< css::container::XNameContainer > GetStylesContainer(XmlStyleFamily nFamily) const override
rtl::Reference< SvXMLImportPropertyMapper > m_xColumnImpPropMapper
css::uno::Reference< css::container::XNameContainer > m_xTableStyles
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
virtual SvXMLStyleContext * CreateStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual SvXMLStyleContext * CreateDefaultStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
void operator=(const OReportStylesContext &)=delete
virtual ~OReportStylesContext() override
virtual rtl::Reference< SvXMLImportPropertyMapper > GetImportPropertyMapper(XmlStyleFamily nFamily) const override
ORptFilter & GetOwnImport() const
css::uno::Reference< css::container::XNameContainer > m_xCellStyles
rtl::Reference< SvXMLImportPropertyMapper > m_xTableImpPropMapper
sal_Int32 GetIndex(const sal_Int16 nContextID)
css::uno::Reference< css::container::XNameContainer > m_xRowStyles
rtl::Reference< SvXMLImportPropertyMapper > m_xCellImpPropMapper
OReportStylesContext(const OReportStylesContext &)=delete
rtl::Reference< SvXMLImportPropertyMapper > m_xRowImpPropMapper
css::uno::Reference< css::container::XNameContainer > m_xColumnStyles
XmlStyleFamily