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 #ifndef INCLUDED_XMLOFF_SOURCE_DRAW_SDPROPLS_HXX
21 #define INCLUDED_XMLOFF_SOURCE_DRAW_SDPROPLS_HXX
22 
23 #include <com/sun/star/frame/XModel.hpp>
24 #include <com/sun/star/drawing/ConnectorType.hpp>
25 #include <com/sun/star/drawing/CircleKind.hpp>
26 #include <xmloff/xmlnume.hxx>
27 #include <xmloff/maptype.hxx>
28 #include <xmloff/xmlement.hxx>
29 #include <xmloff/prhdlfac.hxx>
30 #include <xmloff/xmlprmap.hxx>
31 #include <xmloff/xmlexppr.hxx>
32 
33 // entry list for graphic properties
34 
36 
37 // entry list for presentation page properties
38 
41 
42 // enum maps for attributes
43 
46 
49 
50 // factory for own graphic properties
51 
52 class SvXMLExport;
53 class SvXMLImport;
54 
56 {
57 private:
58  css::uno::Reference< css::frame::XModel > mxModel;
61 
62 public:
63  XMLSdPropHdlFactory( css::uno::Reference< css::frame::XModel > const & xModel, SvXMLExport& rExport );
64  XMLSdPropHdlFactory( css::uno::Reference< css::frame::XModel > const & xModel, SvXMLImport& rImport );
65  virtual ~XMLSdPropHdlFactory() override;
66  virtual const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nType ) const override;
67 };
68 
70 {
71 public:
73  virtual ~XMLShapePropertySetMapper() override;
74 };
75 
77 {
78 private:
81 
82 protected:
83  virtual void ContextFilter(
84  bool bEnableFoFontFamily,
85  ::std::vector< XMLPropertyState >& rProperties,
86  const css::uno::Reference< css::beans::XPropertySet >& rPropSet ) const override;
87 public:
89  virtual ~XMLShapeExportPropertyMapper() override;
90 
91  virtual void handleElementItem(
93  const XMLPropertyState& rProperty,
94  SvXmlExportFlags nFlags,
95  const ::std::vector< XMLPropertyState >* pProperties,
96  sal_uInt32 nIdx
97  ) const override;
98 
99  void SetAutoStyles( bool bIsInAutoStyles ) { mbIsInAutoStyles = bIsInAutoStyles; }
100 
101  virtual void handleSpecialItem(
102  SvXMLAttributeList& rAttrList,
103  const XMLPropertyState& rProperty,
104  const SvXMLUnitConverter& rUnitConverter,
105  const SvXMLNamespaceMap& rNamespaceMap,
106  const ::std::vector< XMLPropertyState > *pProperties,
107  sal_uInt32 nIdx ) const override;
108 };
109 
111 {
112 private:
114 
115 protected:
116  virtual void ContextFilter(
117  bool bEnableFoFontFamily,
118  ::std::vector< XMLPropertyState >& rProperties,
119  const css::uno::Reference< css::beans::XPropertySet >& rPropSet ) const override;
120 public:
122  virtual ~XMLPageExportPropertyMapper() override;
123 
124  virtual void handleElementItem(
126  const XMLPropertyState& rProperty,
127  SvXmlExportFlags nFlags,
128  const ::std::vector< XMLPropertyState >* pProperties,
129  sal_uInt32 nIdx
130  ) const override;
131 };
132 
133 #endif // INCLUDED_XMLOFF_SOURCE_DRAW_SDPROPLS_HXX
134 
135 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::frame::XModel > mxModel
Definition: sdpropls.hxx:58
const XMLPropertyMapEntry aXMLTableShapeAttributes[]
contains the attribute to property mapping for a drawing layer table
Definition: sdpropls.cxx:378
const XMLPropertyMapEntry aXMLSDProperties[]
Definition: sdpropls.cxx:82
virtual ~XMLShapeExportPropertyMapper() override
Definition: sdpropls.cxx:1314
virtual const XMLPropertyHandler * GetPropertyHandler(sal_Int32 nType) const override
This method retrieves a PropertyHandler for the given XML-type.
Definition: sdpropls.cxx:994
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
Definition: xmluconv.hxx:77
virtual ~XMLSdPropHdlFactory() override
Definition: sdpropls.cxx:990
virtual ~XMLShapePropertySetMapper() override
Definition: sdpropls.cxx:1303
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:1669
This class is a base-class to create XMLPropertyHandler.
Definition: prhdlfac.hxx:40
SvxXMLNumRuleExport maNumRuleExp
Definition: sdpropls.hxx:79
const XMLPropertyMapEntry aXMLSDPresPageProps_onlyHeadersFooter[]
Definition: sdpropls.cxx:365
virtual void handleSpecialItem(SvXMLAttributeList &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:1649
const XMLPropertyMapEntry aXMLSDPresPageProps[]
Definition: sdpropls.cxx:318
void SetAutoStyles(bool bIsInAutoStyles)
Definition: sdpropls.hxx:99
SvXMLImport * mpImport
Definition: sdpropls.hxx:60
SvXMLExport * mpExport
Definition: sdpropls.hxx:59
SvXMLEnumMapEntry< css::drawing::ConnectorType > const aXML_ConnectionKind_EnumMap[]
Definition: sdpropls.cxx:506
Represents a property with its API-name, its XML-name and the type of its value.
Definition: maptype.hxx:31
XMLShapeExportPropertyMapper(const rtl::Reference< XMLPropertySetMapper > &rMapper, SvXMLExport &rExport)
Definition: sdpropls.cxx:1307
SvXMLEnumMapEntry< css::drawing::CircleKind > const aXML_CircleKind_EnumMap[]
Definition: sdpropls.cxx:578
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:1318
Map an XMLTokenEnum to an enum value.
Definition: ximpshap.hxx:40
SvXmlExportFlags
Definition: xmlexppr.hxx:39
XMLPageExportPropertyMapper(const rtl::Reference< XMLPropertySetMapper > &rMapper, SvXMLExport &rExport)
Definition: sdpropls.cxx:1695
Smart struct to transport an Any with an index to the appropriate property-name.
Definition: maptype.hxx:122
Abstract base-class for different XML-types.
Definition: xmlprhdl.hxx:35
css::uno::Any const SvXMLExport & rExport
Definition: ImageStyle.hxx:38
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:1705
XMLShapePropertySetMapper(const rtl::Reference< XMLPropertyHandlerFactory > &rFactoryRef, bool bForExport)
Definition: sdpropls.cxx:1297
virtual ~XMLPageExportPropertyMapper() override
Definition: sdpropls.cxx:1701
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:1852
XMLSdPropHdlFactory(css::uno::Reference< css::frame::XModel > const &xModel, SvXMLExport &rExport)