update dev300-m58
[ooovba.git] / xmloff / source / style / PageMasterPropHdl.hxx
blob5983311bbe34f4c2433c8238d77a07137b771423
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: PageMasterPropHdl.hxx,v $
10 * $Revision: 1.10 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _XMLOFF_PAGEMASTERPROPHDL_HXX_
32 #define _XMLOFF_PAGEMASTERPROPHDL_HXX_
34 #include <xmloff/xmlprhdl.hxx>
35 #include <rtl/ustring.hxx>
36 #include <xmloff/xmltoken.hxx>
39 //______________________________________________________________________________
40 // property handler for style:page-usage (style::PageStyleLayout)
42 class XMLPMPropHdl_PageStyleLayout : public XMLPropertyHandler
44 public:
45 virtual ~XMLPMPropHdl_PageStyleLayout();
46 virtual bool equals(
47 const ::com::sun::star::uno::Any& rAny1,
48 const ::com::sun::star::uno::Any& rAny2
49 ) const;
50 virtual sal_Bool importXML(
51 const ::rtl::OUString& rStrImpValue,
52 ::com::sun::star::uno::Any& rValue,
53 const SvXMLUnitConverter& rUnitConverter
54 ) const;
55 virtual sal_Bool exportXML(
56 ::rtl::OUString& rStrExpValue,
57 const ::com::sun::star::uno::Any& rValue,
58 const SvXMLUnitConverter& rUnitConverter
59 ) const;
63 //______________________________________________________________________________
64 // property handler for style:num-format (style::NumberingType)
66 class XMLPMPropHdl_NumFormat : public XMLPropertyHandler
68 public:
69 virtual ~XMLPMPropHdl_NumFormat();
70 virtual sal_Bool importXML(
71 const ::rtl::OUString& rStrImpValue,
72 ::com::sun::star::uno::Any& rValue,
73 const SvXMLUnitConverter& rUnitConverter
74 ) const;
75 virtual sal_Bool exportXML(
76 ::rtl::OUString& rStrExpValue,
77 const ::com::sun::star::uno::Any& rValue,
78 const SvXMLUnitConverter& rUnitConverter
79 ) const;
83 //______________________________________________________________________________
84 // property handler for style:num-letter-sync (style::NumberingType)
86 class XMLPMPropHdl_NumLetterSync : public XMLPropertyHandler
88 public:
89 virtual ~XMLPMPropHdl_NumLetterSync();
90 virtual sal_Bool importXML(
91 const ::rtl::OUString& rStrImpValue,
92 ::com::sun::star::uno::Any& rValue,
93 const SvXMLUnitConverter& rUnitConverter
94 ) const;
95 virtual sal_Bool exportXML(
96 ::rtl::OUString& rStrExpValue,
97 const ::com::sun::star::uno::Any& rValue,
98 const SvXMLUnitConverter& rUnitConverter
99 ) const;
103 //______________________________________________________________________________
104 // property handler for style:paper-tray-number
106 class XMLPMPropHdl_PaperTrayNumber : public XMLPropertyHandler
108 public:
109 virtual ~XMLPMPropHdl_PaperTrayNumber();
110 virtual sal_Bool importXML(
111 const ::rtl::OUString& rStrImpValue,
112 ::com::sun::star::uno::Any& rValue,
113 const SvXMLUnitConverter& rUnitConverter
114 ) const;
115 virtual sal_Bool exportXML(
116 ::rtl::OUString& rStrExpValue,
117 const ::com::sun::star::uno::Any& rValue,
118 const SvXMLUnitConverter& rUnitConverter
119 ) const;
123 //______________________________________________________________________________
124 // property handler for style:print
126 class XMLPMPropHdl_Print : public XMLPropertyHandler
128 protected:
129 ::rtl::OUString sAttrValue;
131 public:
132 XMLPMPropHdl_Print( enum ::xmloff::token::XMLTokenEnum eValue );
133 virtual ~XMLPMPropHdl_Print();
135 virtual sal_Bool importXML(
136 const ::rtl::OUString& rStrImpValue,
137 ::com::sun::star::uno::Any& rValue,
138 const SvXMLUnitConverter& rUnitConverter
139 ) const;
140 virtual sal_Bool exportXML(
141 ::rtl::OUString& rStrExpValue,
142 const ::com::sun::star::uno::Any& rValue,
143 const SvXMLUnitConverter& rUnitConverter
144 ) const;
147 //______________________________________________________________________________
148 // property handler for style:table-centering
150 class XMLPMPropHdl_CenterHorizontal : public XMLPropertyHandler
152 public:
153 virtual ~XMLPMPropHdl_CenterHorizontal();
154 virtual sal_Bool importXML(
155 const ::rtl::OUString& rStrImpValue,
156 ::com::sun::star::uno::Any& rValue,
157 const SvXMLUnitConverter& rUnitConverter
158 ) const;
159 virtual sal_Bool exportXML(
160 ::rtl::OUString& rStrExpValue,
161 const ::com::sun::star::uno::Any& rValue,
162 const SvXMLUnitConverter& rUnitConverter
163 ) const;
166 class XMLPMPropHdl_CenterVertical : public XMLPropertyHandler
168 public:
169 virtual ~XMLPMPropHdl_CenterVertical();
170 virtual sal_Bool importXML(
171 const ::rtl::OUString& rStrImpValue,
172 ::com::sun::star::uno::Any& rValue,
173 const SvXMLUnitConverter& rUnitConverter
174 ) const;
175 virtual sal_Bool exportXML(
176 ::rtl::OUString& rStrExpValue,
177 const ::com::sun::star::uno::Any& rValue,
178 const SvXMLUnitConverter& rUnitConverter
179 ) const;
182 #endif