LibreOffice Module xmloff (master) 1
sdpropls.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#pragma once
21
22#include <com/sun/star/frame/XModel.hpp>
23#include <com/sun/star/drawing/ConnectorType.hpp>
24#include <com/sun/star/drawing/CircleKind.hpp>
25#include <xmloff/xmlnume.hxx>
26#include <xmloff/maptype.hxx>
27#include <xmloff/xmlement.hxx>
28#include <xmloff/prhdlfac.hxx>
29#include <xmloff/xmlprmap.hxx>
30#include <xmloff/xmlexppr.hxx>
31
32// entry list for graphic properties
33
35
36// entry list for presentation page properties
37
39
40// enum maps for attributes
41
44
47
48// factory for own graphic properties
49
50class SvXMLExport;
51class SvXMLImport;
52
54{
55private:
56 css::uno::Reference< css::frame::XModel > mxModel;
58 SvXMLImport* mpImport;
59
60public:
61 XMLSdPropHdlFactory( css::uno::Reference< css::frame::XModel > xModel, SvXMLExport& rExport );
62 XMLSdPropHdlFactory( css::uno::Reference< css::frame::XModel > xModel, SvXMLImport& rImport );
63 virtual ~XMLSdPropHdlFactory() override;
64 virtual const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nType ) const override;
65};
66
68{
69public:
71 virtual ~XMLShapePropertySetMapper() override;
72};
73
75{
76private:
79
80protected:
81 virtual void ContextFilter(
82 bool bEnableFoFontFamily,
83 ::std::vector< XMLPropertyState >& rProperties,
84 const css::uno::Reference< css::beans::XPropertySet >& rPropSet ) const override;
85public:
87 virtual ~XMLShapeExportPropertyMapper() override;
88
89 virtual void handleElementItem(
90 SvXMLExport& rExport,
91 const XMLPropertyState& rProperty,
92 SvXmlExportFlags nFlags,
93 const ::std::vector< XMLPropertyState >* pProperties,
94 sal_uInt32 nIdx
95 ) const override;
96
97 void SetAutoStyles( bool bIsInAutoStyles ) { mbIsInAutoStyles = bIsInAutoStyles; }
98
99 virtual void handleSpecialItem(
100 comphelper::AttributeList& rAttrList,
101 const XMLPropertyState& rProperty,
102 const SvXMLUnitConverter& rUnitConverter,
103 const SvXMLNamespaceMap& rNamespaceMap,
104 const ::std::vector< XMLPropertyState > *pProperties,
105 sal_uInt32 nIdx ) const override;
106};
107
109{
110private:
112
113protected:
114 virtual void ContextFilter(
115 bool bEnableFoFontFamily,
116 ::std::vector< XMLPropertyState >& rProperties,
117 const css::uno::Reference< css::beans::XPropertySet >& rPropSet ) const override;
118public:
120 virtual ~XMLPageExportPropertyMapper() override;
121
122 virtual void handleElementItem(
123 SvXMLExport& rExport,
124 const XMLPropertyState& rProperty,
125 SvXmlExportFlags nFlags,
126 const ::std::vector< XMLPropertyState >* pProperties,
127 sal_uInt32 nIdx
128 ) const override;
129};
130
131/* 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
XMLPageExportPropertyMapper(const rtl::Reference< XMLPropertySetMapper > &rMapper, SvXMLExport &rExport)
Definition: sdpropls.cxx:1737
virtual ~XMLPageExportPropertyMapper() override
Definition: sdpropls.cxx:1743
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
Definition: sdpropls.cxx:1894
virtual void ContextFilter(bool bEnableFoFontFamily, ::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::beans::XPropertySet > &rPropSet) const override
Application-specific filter.
Definition: sdpropls.cxx:1747
This class is a base-class to create XMLPropertyHandler.
Definition: prhdlfac.hxx:41
Abstract base-class for different XML-types.
Definition: xmlprhdl.hxx:36
XMLSdPropHdlFactory(css::uno::Reference< css::frame::XModel > xModel, SvXMLExport &rExport)
css::uno::Reference< css::frame::XModel > mxModel
Definition: sdpropls.hxx:56
SvXMLImport * mpImport
Definition: sdpropls.hxx:58
virtual const XMLPropertyHandler * GetPropertyHandler(sal_Int32 nType) const override
This method retrieves a PropertyHandler for the given XML-type.
Definition: sdpropls.cxx:1008
XMLSdPropHdlFactory(css::uno::Reference< css::frame::XModel > xModel, SvXMLImport &rImport)
virtual ~XMLSdPropHdlFactory() override
Definition: sdpropls.cxx:1004
SvXMLExport * mpExport
Definition: sdpropls.hxx:57
SvxXMLNumRuleExport maNumRuleExp
Definition: sdpropls.hxx:77
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
Definition: sdpropls.cxx:1691
XMLShapeExportPropertyMapper(const rtl::Reference< XMLPropertySetMapper > &rMapper, SvXMLExport &rExport)
Definition: sdpropls.cxx:1332
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
Definition: sdpropls.cxx:1711
virtual void ContextFilter(bool bEnableFoFontFamily, ::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::beans::XPropertySet > &rPropSet) const override
Application-specific filter.
Definition: sdpropls.cxx:1343
void SetAutoStyles(bool bIsInAutoStyles)
Definition: sdpropls.hxx:97
virtual ~XMLShapeExportPropertyMapper() override
Definition: sdpropls.cxx:1339
virtual ~XMLShapePropertySetMapper() override
Definition: sdpropls.cxx:1328
XMLShapePropertySetMapper(const rtl::Reference< XMLPropertyHandlerFactory > &rFactoryRef, bool bForExport)
Definition: sdpropls.cxx:1322
SvXMLEnumMapEntry< css::drawing::CircleKind > const aXML_CircleKind_EnumMap[]
Definition: sdpropls.cxx:580
const XMLPropertyMapEntry aXMLTableShapeAttributes[]
contains the attribute to property mapping for a drawing layer table
Definition: sdpropls.cxx:380
SvXMLEnumMapEntry< css::drawing::ConnectorType > const aXML_ConnectionKind_EnumMap[]
Definition: sdpropls.cxx:508
const XMLPropertyMapEntry aXMLSDProperties[]
Definition: sdpropls.cxx:86
const XMLPropertyMapEntry aXMLSDPresPageProps[]
Definition: sdpropls.cxx:330
Represents a property with its API-name, its XML-name and the type of its value.
Definition: maptype.hxx:33
Smart struct to transport an Any with an index to the appropriate property-name.
Definition: maptype.hxx:140
SvXmlExportFlags
Definition: xmlexppr.hxx:39