nss: upgrade to release 3.73
[LibreOffice.git] / xmloff / source / draw / sdpropls.hxx
blob0b47d5e6743f93e4cae924c492ee9679f3f44d11
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_XMLOFF_SOURCE_DRAW_SDPROPLS_HXX
21 #define INCLUDED_XMLOFF_SOURCE_DRAW_SDPROPLS_HXX
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>
33 // entry list for graphic properties
35 extern const XMLPropertyMapEntry aXMLSDProperties[];
37 // entry list for presentation page properties
39 extern const XMLPropertyMapEntry aXMLSDPresPageProps[];
41 // enum maps for attributes
43 extern SvXMLEnumMapEntry<css::drawing::ConnectorType> const aXML_ConnectionKind_EnumMap[];
44 extern SvXMLEnumMapEntry<css::drawing::CircleKind> const aXML_CircleKind_EnumMap[];
46 /** contains the attribute to property mapping for a drawing layer table */
47 extern const XMLPropertyMapEntry aXMLTableShapeAttributes[];
49 // factory for own graphic properties
51 class SvXMLExport;
52 class SvXMLImport;
54 class XMLSdPropHdlFactory : public XMLPropertyHandlerFactory
56 private:
57 css::uno::Reference< css::frame::XModel > mxModel;
58 SvXMLExport* mpExport;
59 SvXMLImport* mpImport;
61 public:
62 XMLSdPropHdlFactory( css::uno::Reference< css::frame::XModel > const & xModel, SvXMLExport& rExport );
63 XMLSdPropHdlFactory( css::uno::Reference< css::frame::XModel > const & xModel, SvXMLImport& rImport );
64 virtual ~XMLSdPropHdlFactory() override;
65 virtual const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nType ) const override;
68 class XMLShapePropertySetMapper : public XMLPropertySetMapper
70 public:
71 XMLShapePropertySetMapper(const rtl::Reference< XMLPropertyHandlerFactory >& rFactoryRef, bool bForExport);
72 virtual ~XMLShapePropertySetMapper() override;
75 class XMLShapeExportPropertyMapper : public SvXMLExportPropertyMapper
77 private:
78 SvxXMLNumRuleExport maNumRuleExp;
79 bool mbIsInAutoStyles;
81 protected:
82 virtual void ContextFilter(
83 bool bEnableFoFontFamily,
84 ::std::vector< XMLPropertyState >& rProperties,
85 const css::uno::Reference< css::beans::XPropertySet >& rPropSet ) const override;
86 public:
87 XMLShapeExportPropertyMapper( const rtl::Reference< XMLPropertySetMapper >& rMapper, SvXMLExport& rExport );
88 virtual ~XMLShapeExportPropertyMapper() override;
90 virtual void handleElementItem(
91 SvXMLExport& rExport,
92 const XMLPropertyState& rProperty,
93 SvXmlExportFlags nFlags,
94 const ::std::vector< XMLPropertyState >* pProperties,
95 sal_uInt32 nIdx
96 ) const override;
98 void SetAutoStyles( bool bIsInAutoStyles ) { mbIsInAutoStyles = bIsInAutoStyles; }
100 virtual void handleSpecialItem(
101 SvXMLAttributeList& rAttrList,
102 const XMLPropertyState& rProperty,
103 const SvXMLUnitConverter& rUnitConverter,
104 const SvXMLNamespaceMap& rNamespaceMap,
105 const ::std::vector< XMLPropertyState > *pProperties,
106 sal_uInt32 nIdx ) const override;
109 class XMLPageExportPropertyMapper : public SvXMLExportPropertyMapper
111 private:
112 SvXMLExport& mrExport;
114 protected:
115 virtual void ContextFilter(
116 bool bEnableFoFontFamily,
117 ::std::vector< XMLPropertyState >& rProperties,
118 const css::uno::Reference< css::beans::XPropertySet >& rPropSet ) const override;
119 public:
120 XMLPageExportPropertyMapper( const rtl::Reference< XMLPropertySetMapper >& rMapper, SvXMLExport& rExport );
121 virtual ~XMLPageExportPropertyMapper() override;
123 virtual void handleElementItem(
124 SvXMLExport& rExport,
125 const XMLPropertyState& rProperty,
126 SvXmlExportFlags nFlags,
127 const ::std::vector< XMLPropertyState >* pProperties,
128 sal_uInt32 nIdx
129 ) const override;
132 #endif // INCLUDED_XMLOFF_SOURCE_DRAW_SDPROPLS_HXX
134 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */