xref: /AOO41X/main/xmloff/source/style/PageMasterExportPropMapper.hxx (revision ecfe53c5d1886e1e0d215b0d140d05282ab1c477)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _XMLOFF_PAGEMASTEREXPORTPROPMAPPER_HXX
25 #define _XMLOFF_PAGEMASTEREXPORTPROPMAPPER_HXX
26 
27 #include <xmloff/xmlexppr.hxx>
28 #include "XMLBackgroundImageExport.hxx"
29 #include "XMLTextColumnsExport.hxx"
30 #include "XMLFootnoteSeparatorExport.hxx"
31 
32 //______________________________________________________________________________
33 
34 class XMLPageMasterExportPropMapper : public SvXMLExportPropertyMapper
35 {
36 protected:
37     XMLBackgroundImageExport aBackgroundImageExport;
38     XMLTextColumnsExport aTextColumnsExport;
39     XMLFootnoteSeparatorExport aFootnoteSeparatorExport;
40 
41     virtual void        ContextFilter(
42                             ::std::vector< XMLPropertyState >& rProperties,
43                             ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > rPropSet
44                             ) const;
45 
46 public:
47                         XMLPageMasterExportPropMapper(
48                             const UniReference< XMLPropertySetMapper >& rMapper,
49                             SvXMLExport& rExport
50                             );
51     virtual             ~XMLPageMasterExportPropMapper();
52 
53     virtual void        handleElementItem(
54                             SvXMLExport& rExport,
55                             const XMLPropertyState& rProperty,
56                             sal_uInt16 nFlags,
57                             const ::std::vector< XMLPropertyState >* pProperties = 0,
58                             sal_uInt32 nIdx = 0
59                             ) const;
60     virtual void        handleSpecialItem(
61                             SvXMLAttributeList& rAttrList,
62                             const XMLPropertyState& rProperty,
63                             const SvXMLUnitConverter& rUnitConverter,
64                             const SvXMLNamespaceMap& rNamespaceMap,
65                             const ::std::vector< XMLPropertyState >* pProperties = 0,
66                             sal_uInt32 nIdx = 0
67                             ) const;
68 
GetBackgroundImageExport()69     inline XMLBackgroundImageExport& GetBackgroundImageExport()
70                                 { return aBackgroundImageExport; }
71 
72 };
73 
74 #endif
75 
76