LibreOffice Module xmloff (master) 1
XMLChartPropertySetMapper.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#pragma once
20
21#include <xmloff/xmlprmap.hxx>
22#include <xmloff/xmlexppr.hxx>
23#include <xmloff/xmlimppr.hxx>
24#include <xmloff/xmlimp.hxx>
25#include <xmloff/prhdlfac.hxx>
26
27class SvXMLExport;
28
30{
31private:
33
34public:
36 virtual ~XMLChartPropHdlFactory() override;
37 virtual const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nType ) const override;
38};
39
41{
42public:
43 explicit XMLChartPropertySetMapper(SvXMLExport const* pExport);
44 virtual ~XMLChartPropertySetMapper() override;
45};
46
48{
49private:
51 css::uno::Reference< css::chart2::XChartDocument > mxChartDoc;
52
53 virtual void ContextFilter(
54 bool bEnableFoFontFamily,
55 ::std::vector< XMLPropertyState >& rProperties,
56 const css::uno::Reference<css::beans::XPropertySet >& rPropSet ) const override;
57
59 virtual void handleElementItem(
60 SvXMLExport& rExport,
61 const XMLPropertyState& rProperty, SvXmlExportFlags nFlags,
62 const ::std::vector< XMLPropertyState > *pProperties,
63 sal_uInt32 nIdx ) const override;
64
66 virtual void handleSpecialItem(
67 comphelper::AttributeList& rAttrList, const XMLPropertyState& rProperty,
68 const SvXMLUnitConverter& rUnitConverter, const SvXMLNamespaceMap& rNamespaceMap,
69 const ::std::vector< XMLPropertyState > *pProperties,
70 sal_uInt32 nIdx ) const override;
71
72public:
74 SvXMLExport& rExport );
75 virtual ~XMLChartExportPropertyMapper() override;
76
77 void setChartDoc( const css::uno::Reference< css::chart2::XChartDocument >& xChartDoc );
78};
79
81{
82private:
83 SvXMLImport& mrImport;
84
85public:
87 const SvXMLImport& rImport );
88 virtual ~XMLChartImportPropertyMapper() override;
89
90 virtual bool handleSpecialItem(
91 XMLPropertyState& rProperty,
92 ::std::vector< XMLPropertyState >& rProperties,
93 const OUString& rValue,
94 const SvXMLUnitConverter& rUnitConverter,
95 const SvXMLNamespaceMap& rNamespaceMap ) const override;
96
97 virtual void finished(
98 ::std::vector< XMLPropertyState >& rProperties,
99 sal_Int32 nStartIndex, sal_Int32 nEndIndex ) const override;
100};
101
102/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
Definition: xmluconv.hxx:83
void setChartDoc(const css::uno::Reference< css::chart2::XChartDocument > &xChartDoc)
virtual void handleElementItem(SvXMLExport &rExport, const XMLPropertyState &rProperty, SvXmlExportFlags nFlags, const ::std::vector< XMLPropertyState > *pProperties, sal_uInt32 nIdx) const override
this method is called for every item that has the MID_FLAG_ELEMENT_EXPORT flag set
virtual ~XMLChartExportPropertyMapper() override
virtual void handleSpecialItem(comphelper::AttributeList &rAttrList, const XMLPropertyState &rProperty, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap, const ::std::vector< XMLPropertyState > *pProperties, sal_uInt32 nIdx) const override
this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_EXPORT flag set
XMLChartExportPropertyMapper(const rtl::Reference< XMLPropertySetMapper > &rMapper, SvXMLExport &rExport)
css::uno::Reference< css::chart2::XChartDocument > mxChartDoc
virtual void ContextFilter(bool bEnableFoFontFamily, ::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::beans::XPropertySet > &rPropSet) const override
Application-specific filter.
virtual ~XMLChartImportPropertyMapper() override
virtual void finished(::std::vector< XMLPropertyState > &rProperties, sal_Int32 nStartIndex, sal_Int32 nEndIndex) const override
This method is called when all attributes have benn processed.
virtual bool handleSpecialItem(XMLPropertyState &rProperty, ::std::vector< XMLPropertyState > &rProperties, const OUString &rValue, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap) const override
this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_IMPORT flag set
XMLChartImportPropertyMapper(const rtl::Reference< XMLPropertySetMapper > &rMapper, const SvXMLImport &rImport)
virtual ~XMLChartPropHdlFactory() override
virtual const XMLPropertyHandler * GetPropertyHandler(sal_Int32 nType) const override
This method retrieves a PropertyHandler for the given XML-type.
SvXMLExport const *const m_pExport
XMLChartPropHdlFactory(SvXMLExport const *)
virtual ~XMLChartPropertySetMapper() override
XMLChartPropertySetMapper(SvXMLExport const *pExport)
This class is a base-class to create XMLPropertyHandler.
Definition: prhdlfac.hxx:41
Abstract base-class for different XML-types.
Definition: xmlprhdl.hxx:36
Smart struct to transport an Any with an index to the appropriate property-name.
Definition: maptype.hxx:140
SvXmlExportFlags
Definition: xmlexppr.hxx:39