1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: PageMasterPropHdl.hxx,v $
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
45 virtual ~XMLPMPropHdl_PageStyleLayout();
47 const ::com::sun::star::uno::Any
& rAny1
,
48 const ::com::sun::star::uno::Any
& rAny2
50 virtual sal_Bool
importXML(
51 const ::rtl::OUString
& rStrImpValue
,
52 ::com::sun::star::uno::Any
& rValue
,
53 const SvXMLUnitConverter
& rUnitConverter
55 virtual sal_Bool
exportXML(
56 ::rtl::OUString
& rStrExpValue
,
57 const ::com::sun::star::uno::Any
& rValue
,
58 const SvXMLUnitConverter
& rUnitConverter
63 //______________________________________________________________________________
64 // property handler for style:num-format (style::NumberingType)
66 class XMLPMPropHdl_NumFormat
: public XMLPropertyHandler
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
75 virtual sal_Bool
exportXML(
76 ::rtl::OUString
& rStrExpValue
,
77 const ::com::sun::star::uno::Any
& rValue
,
78 const SvXMLUnitConverter
& rUnitConverter
83 //______________________________________________________________________________
84 // property handler for style:num-letter-sync (style::NumberingType)
86 class XMLPMPropHdl_NumLetterSync
: public XMLPropertyHandler
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
95 virtual sal_Bool
exportXML(
96 ::rtl::OUString
& rStrExpValue
,
97 const ::com::sun::star::uno::Any
& rValue
,
98 const SvXMLUnitConverter
& rUnitConverter
103 //______________________________________________________________________________
104 // property handler for style:paper-tray-number
106 class XMLPMPropHdl_PaperTrayNumber
: public XMLPropertyHandler
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
115 virtual sal_Bool
exportXML(
116 ::rtl::OUString
& rStrExpValue
,
117 const ::com::sun::star::uno::Any
& rValue
,
118 const SvXMLUnitConverter
& rUnitConverter
123 //______________________________________________________________________________
124 // property handler for style:print
126 class XMLPMPropHdl_Print
: public XMLPropertyHandler
129 ::rtl::OUString sAttrValue
;
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
140 virtual sal_Bool
exportXML(
141 ::rtl::OUString
& rStrExpValue
,
142 const ::com::sun::star::uno::Any
& rValue
,
143 const SvXMLUnitConverter
& rUnitConverter
147 //______________________________________________________________________________
148 // property handler for style:table-centering
150 class XMLPMPropHdl_CenterHorizontal
: public XMLPropertyHandler
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
159 virtual sal_Bool
exportXML(
160 ::rtl::OUString
& rStrExpValue
,
161 const ::com::sun::star::uno::Any
& rValue
,
162 const SvXMLUnitConverter
& rUnitConverter
166 class XMLPMPropHdl_CenterVertical
: public XMLPropertyHandler
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
175 virtual sal_Bool
exportXML(
176 ::rtl::OUString
& rStrExpValue
,
177 const ::com::sun::star::uno::Any
& rValue
,
178 const SvXMLUnitConverter
& rUnitConverter