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 INCLUDED_XMLOFF_SOURCE_STYLE_PAGEMASTERPROPHDL_HXX
21 #define INCLUDED_XMLOFF_SOURCE_STYLE_PAGEMASTERPROPHDL_HXX
23 #include <xmloff/xmlprhdl.hxx>
24 #include <rtl/ustring.hxx>
25 #include <xmloff/xmltoken.hxx>
27 // property handler for style:page-usage (style::PageStyleLayout)
29 class XMLPMPropHdl_PageStyleLayout
: public XMLPropertyHandler
32 virtual ~XMLPMPropHdl_PageStyleLayout();
34 const ::com::sun::star::uno::Any
& rAny1
,
35 const ::com::sun::star::uno::Any
& rAny2
37 virtual bool importXML(
38 const OUString
& rStrImpValue
,
39 ::com::sun::star::uno::Any
& rValue
,
40 const SvXMLUnitConverter
& rUnitConverter
42 virtual bool exportXML(
43 OUString
& rStrExpValue
,
44 const ::com::sun::star::uno::Any
& rValue
,
45 const SvXMLUnitConverter
& rUnitConverter
49 // property handler for style:num-format (style::NumberingType)
51 class XMLPMPropHdl_NumFormat
: public XMLPropertyHandler
54 virtual ~XMLPMPropHdl_NumFormat();
55 virtual bool importXML(
56 const OUString
& rStrImpValue
,
57 ::com::sun::star::uno::Any
& rValue
,
58 const SvXMLUnitConverter
& rUnitConverter
60 virtual bool exportXML(
61 OUString
& rStrExpValue
,
62 const ::com::sun::star::uno::Any
& rValue
,
63 const SvXMLUnitConverter
& rUnitConverter
67 // property handler for style:num-letter-sync (style::NumberingType)
69 class XMLPMPropHdl_NumLetterSync
: public XMLPropertyHandler
72 virtual ~XMLPMPropHdl_NumLetterSync();
73 virtual bool importXML(
74 const OUString
& rStrImpValue
,
75 ::com::sun::star::uno::Any
& rValue
,
76 const SvXMLUnitConverter
& rUnitConverter
78 virtual bool exportXML(
79 OUString
& rStrExpValue
,
80 const ::com::sun::star::uno::Any
& rValue
,
81 const SvXMLUnitConverter
& rUnitConverter
85 // property handler for style:paper-tray-number
87 class XMLPMPropHdl_PaperTrayNumber
: public XMLPropertyHandler
90 virtual ~XMLPMPropHdl_PaperTrayNumber();
91 virtual bool importXML(
92 const OUString
& rStrImpValue
,
93 ::com::sun::star::uno::Any
& rValue
,
94 const SvXMLUnitConverter
& rUnitConverter
96 virtual bool exportXML(
97 OUString
& rStrExpValue
,
98 const ::com::sun::star::uno::Any
& rValue
,
99 const SvXMLUnitConverter
& rUnitConverter
100 ) const SAL_OVERRIDE
;
103 // property handler for style:print
105 class XMLPMPropHdl_Print
: public XMLPropertyHandler
111 XMLPMPropHdl_Print( enum ::xmloff::token::XMLTokenEnum eValue
);
112 virtual ~XMLPMPropHdl_Print();
114 virtual bool importXML(
115 const OUString
& rStrImpValue
,
116 ::com::sun::star::uno::Any
& rValue
,
117 const SvXMLUnitConverter
& rUnitConverter
118 ) const SAL_OVERRIDE
;
119 virtual bool exportXML(
120 OUString
& rStrExpValue
,
121 const ::com::sun::star::uno::Any
& rValue
,
122 const SvXMLUnitConverter
& rUnitConverter
123 ) const SAL_OVERRIDE
;
126 // property handler for style:table-centering
128 class XMLPMPropHdl_CenterHorizontal
: public XMLPropertyHandler
131 virtual ~XMLPMPropHdl_CenterHorizontal();
132 virtual bool importXML(
133 const OUString
& rStrImpValue
,
134 ::com::sun::star::uno::Any
& rValue
,
135 const SvXMLUnitConverter
& rUnitConverter
136 ) const SAL_OVERRIDE
;
137 virtual bool exportXML(
138 OUString
& rStrExpValue
,
139 const ::com::sun::star::uno::Any
& rValue
,
140 const SvXMLUnitConverter
& rUnitConverter
141 ) const SAL_OVERRIDE
;
144 class XMLPMPropHdl_CenterVertical
: public XMLPropertyHandler
147 virtual ~XMLPMPropHdl_CenterVertical();
148 virtual bool importXML(
149 const OUString
& rStrImpValue
,
150 ::com::sun::star::uno::Any
& rValue
,
151 const SvXMLUnitConverter
& rUnitConverter
152 ) const SAL_OVERRIDE
;
153 virtual bool exportXML(
154 OUString
& rStrExpValue
,
155 const ::com::sun::star::uno::Any
& rValue
,
156 const SvXMLUnitConverter
& rUnitConverter
157 ) const SAL_OVERRIDE
;
162 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */