1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 _XMLOFF_PAGEMASTERPROPHDL_HXX_
21 #define _XMLOFF_PAGEMASTERPROPHDL_HXX_
23 #include <xmloff/xmlprhdl.hxx>
24 #include <rtl/ustring.hxx>
25 #include <xmloff/xmltoken.hxx>
28 //______________________________________________________________________________
29 // property handler for style:page-usage (style::PageStyleLayout)
31 class XMLPMPropHdl_PageStyleLayout
: public XMLPropertyHandler
34 virtual ~XMLPMPropHdl_PageStyleLayout();
36 const ::com::sun::star::uno::Any
& rAny1
,
37 const ::com::sun::star::uno::Any
& rAny2
39 virtual sal_Bool
importXML(
40 const OUString
& rStrImpValue
,
41 ::com::sun::star::uno::Any
& rValue
,
42 const SvXMLUnitConverter
& rUnitConverter
44 virtual sal_Bool
exportXML(
45 OUString
& rStrExpValue
,
46 const ::com::sun::star::uno::Any
& rValue
,
47 const SvXMLUnitConverter
& rUnitConverter
52 //______________________________________________________________________________
53 // property handler for style:num-format (style::NumberingType)
55 class XMLPMPropHdl_NumFormat
: public XMLPropertyHandler
58 virtual ~XMLPMPropHdl_NumFormat();
59 virtual sal_Bool
importXML(
60 const OUString
& rStrImpValue
,
61 ::com::sun::star::uno::Any
& rValue
,
62 const SvXMLUnitConverter
& rUnitConverter
64 virtual sal_Bool
exportXML(
65 OUString
& rStrExpValue
,
66 const ::com::sun::star::uno::Any
& rValue
,
67 const SvXMLUnitConverter
& rUnitConverter
72 //______________________________________________________________________________
73 // property handler for style:num-letter-sync (style::NumberingType)
75 class XMLPMPropHdl_NumLetterSync
: public XMLPropertyHandler
78 virtual ~XMLPMPropHdl_NumLetterSync();
79 virtual sal_Bool
importXML(
80 const OUString
& rStrImpValue
,
81 ::com::sun::star::uno::Any
& rValue
,
82 const SvXMLUnitConverter
& rUnitConverter
84 virtual sal_Bool
exportXML(
85 OUString
& rStrExpValue
,
86 const ::com::sun::star::uno::Any
& rValue
,
87 const SvXMLUnitConverter
& rUnitConverter
92 //______________________________________________________________________________
93 // property handler for style:paper-tray-number
95 class XMLPMPropHdl_PaperTrayNumber
: public XMLPropertyHandler
98 virtual ~XMLPMPropHdl_PaperTrayNumber();
99 virtual sal_Bool
importXML(
100 const OUString
& rStrImpValue
,
101 ::com::sun::star::uno::Any
& rValue
,
102 const SvXMLUnitConverter
& rUnitConverter
104 virtual sal_Bool
exportXML(
105 OUString
& rStrExpValue
,
106 const ::com::sun::star::uno::Any
& rValue
,
107 const SvXMLUnitConverter
& rUnitConverter
112 //______________________________________________________________________________
113 // property handler for style:print
115 class XMLPMPropHdl_Print
: public XMLPropertyHandler
121 XMLPMPropHdl_Print( enum ::xmloff::token::XMLTokenEnum eValue
);
122 virtual ~XMLPMPropHdl_Print();
124 virtual sal_Bool
importXML(
125 const OUString
& rStrImpValue
,
126 ::com::sun::star::uno::Any
& rValue
,
127 const SvXMLUnitConverter
& rUnitConverter
129 virtual sal_Bool
exportXML(
130 OUString
& rStrExpValue
,
131 const ::com::sun::star::uno::Any
& rValue
,
132 const SvXMLUnitConverter
& rUnitConverter
136 //______________________________________________________________________________
137 // property handler for style:table-centering
139 class XMLPMPropHdl_CenterHorizontal
: public XMLPropertyHandler
142 virtual ~XMLPMPropHdl_CenterHorizontal();
143 virtual sal_Bool
importXML(
144 const OUString
& rStrImpValue
,
145 ::com::sun::star::uno::Any
& rValue
,
146 const SvXMLUnitConverter
& rUnitConverter
148 virtual sal_Bool
exportXML(
149 OUString
& rStrExpValue
,
150 const ::com::sun::star::uno::Any
& rValue
,
151 const SvXMLUnitConverter
& rUnitConverter
155 class XMLPMPropHdl_CenterVertical
: public XMLPropertyHandler
158 virtual ~XMLPMPropHdl_CenterVertical();
159 virtual sal_Bool
importXML(
160 const OUString
& rStrImpValue
,
161 ::com::sun::star::uno::Any
& rValue
,
162 const SvXMLUnitConverter
& rUnitConverter
164 virtual sal_Bool
exportXML(
165 OUString
& rStrExpValue
,
166 const ::com::sun::star::uno::Any
& rValue
,
167 const SvXMLUnitConverter
& rUnitConverter
173 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */