Branch data Line data Source code
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 _XMLOFF_PAGEMASTERPROPHDL_HXX_
21 : : #define _XMLOFF_PAGEMASTERPROPHDL_HXX_
22 : :
23 : : #include <xmloff/xmlprhdl.hxx>
24 : : #include <rtl/ustring.hxx>
25 : : #include <xmloff/xmltoken.hxx>
26 : :
27 : :
28 : : //______________________________________________________________________________
29 : : // property handler for style:page-usage (style::PageStyleLayout)
30 : :
31 : 255 : class XMLPMPropHdl_PageStyleLayout : public XMLPropertyHandler
32 : : {
33 : : public:
34 : : virtual ~XMLPMPropHdl_PageStyleLayout();
35 : : virtual bool equals(
36 : : const ::com::sun::star::uno::Any& rAny1,
37 : : const ::com::sun::star::uno::Any& rAny2
38 : : ) const;
39 : : virtual sal_Bool importXML(
40 : : const ::rtl::OUString& rStrImpValue,
41 : : ::com::sun::star::uno::Any& rValue,
42 : : const SvXMLUnitConverter& rUnitConverter
43 : : ) const;
44 : : virtual sal_Bool exportXML(
45 : : ::rtl::OUString& rStrExpValue,
46 : : const ::com::sun::star::uno::Any& rValue,
47 : : const SvXMLUnitConverter& rUnitConverter
48 : : ) const;
49 : : };
50 : :
51 : :
52 : : //______________________________________________________________________________
53 : : // property handler for style:num-format (style::NumberingType)
54 : :
55 : 255 : class XMLPMPropHdl_NumFormat : public XMLPropertyHandler
56 : : {
57 : : public:
58 : : virtual ~XMLPMPropHdl_NumFormat();
59 : : virtual sal_Bool importXML(
60 : : const ::rtl::OUString& rStrImpValue,
61 : : ::com::sun::star::uno::Any& rValue,
62 : : const SvXMLUnitConverter& rUnitConverter
63 : : ) const;
64 : : virtual sal_Bool exportXML(
65 : : ::rtl::OUString& rStrExpValue,
66 : : const ::com::sun::star::uno::Any& rValue,
67 : : const SvXMLUnitConverter& rUnitConverter
68 : : ) const;
69 : : };
70 : :
71 : :
72 : : //______________________________________________________________________________
73 : : // property handler for style:num-letter-sync (style::NumberingType)
74 : :
75 : 255 : class XMLPMPropHdl_NumLetterSync : public XMLPropertyHandler
76 : : {
77 : : public:
78 : : virtual ~XMLPMPropHdl_NumLetterSync();
79 : : virtual sal_Bool importXML(
80 : : const ::rtl::OUString& rStrImpValue,
81 : : ::com::sun::star::uno::Any& rValue,
82 : : const SvXMLUnitConverter& rUnitConverter
83 : : ) const;
84 : : virtual sal_Bool exportXML(
85 : : ::rtl::OUString& rStrExpValue,
86 : : const ::com::sun::star::uno::Any& rValue,
87 : : const SvXMLUnitConverter& rUnitConverter
88 : : ) const;
89 : : };
90 : :
91 : :
92 : : //______________________________________________________________________________
93 : : // property handler for style:paper-tray-number
94 : :
95 : 0 : class XMLPMPropHdl_PaperTrayNumber : public XMLPropertyHandler
96 : : {
97 : : public:
98 : : virtual ~XMLPMPropHdl_PaperTrayNumber();
99 : : virtual sal_Bool importXML(
100 : : const ::rtl::OUString& rStrImpValue,
101 : : ::com::sun::star::uno::Any& rValue,
102 : : const SvXMLUnitConverter& rUnitConverter
103 : : ) const;
104 : : virtual sal_Bool exportXML(
105 : : ::rtl::OUString& rStrExpValue,
106 : : const ::com::sun::star::uno::Any& rValue,
107 : : const SvXMLUnitConverter& rUnitConverter
108 : : ) const;
109 : : };
110 : :
111 : :
112 : : //______________________________________________________________________________
113 : : // property handler for style:print
114 : :
115 : : class XMLPMPropHdl_Print : public XMLPropertyHandler
116 : : {
117 : : protected:
118 : : ::rtl::OUString sAttrValue;
119 : :
120 : : public:
121 : : XMLPMPropHdl_Print( enum ::xmloff::token::XMLTokenEnum eValue );
122 : : virtual ~XMLPMPropHdl_Print();
123 : :
124 : : virtual sal_Bool importXML(
125 : : const ::rtl::OUString& rStrImpValue,
126 : : ::com::sun::star::uno::Any& rValue,
127 : : const SvXMLUnitConverter& rUnitConverter
128 : : ) const;
129 : : virtual sal_Bool exportXML(
130 : : ::rtl::OUString& rStrExpValue,
131 : : const ::com::sun::star::uno::Any& rValue,
132 : : const SvXMLUnitConverter& rUnitConverter
133 : : ) const;
134 : : };
135 : :
136 : : //______________________________________________________________________________
137 : : // property handler for style:table-centering
138 : :
139 : 255 : class XMLPMPropHdl_CenterHorizontal : public XMLPropertyHandler
140 : : {
141 : : public:
142 : : virtual ~XMLPMPropHdl_CenterHorizontal();
143 : : virtual sal_Bool importXML(
144 : : const ::rtl::OUString& rStrImpValue,
145 : : ::com::sun::star::uno::Any& rValue,
146 : : const SvXMLUnitConverter& rUnitConverter
147 : : ) const;
148 : : virtual sal_Bool exportXML(
149 : : ::rtl::OUString& rStrExpValue,
150 : : const ::com::sun::star::uno::Any& rValue,
151 : : const SvXMLUnitConverter& rUnitConverter
152 : : ) const;
153 : : };
154 : :
155 : 255 : class XMLPMPropHdl_CenterVertical : public XMLPropertyHandler
156 : : {
157 : : public:
158 : : virtual ~XMLPMPropHdl_CenterVertical();
159 : : virtual sal_Bool importXML(
160 : : const ::rtl::OUString& rStrImpValue,
161 : : ::com::sun::star::uno::Any& rValue,
162 : : const SvXMLUnitConverter& rUnitConverter
163 : : ) const;
164 : : virtual sal_Bool exportXML(
165 : : ::rtl::OUString& rStrExpValue,
166 : : const ::com::sun::star::uno::Any& rValue,
167 : : const SvXMLUnitConverter& rUnitConverter
168 : : ) const;
169 : : };
170 : :
171 : : #endif
172 : :
173 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|