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 .
22 #include <xmloff/xmlprhdl.hxx>
23 #include <rtl/ustring.hxx>
24 #include <xmloff/xmltoken.hxx>
26 // property handler for style:page-usage (style::PageStyleLayout)
28 class XMLPMPropHdl_PageStyleLayout
: public XMLPropertyHandler
31 virtual ~XMLPMPropHdl_PageStyleLayout() override
;
33 const css::uno::Any
& rAny1
,
34 const css::uno::Any
& rAny2
36 virtual bool importXML(
37 const OUString
& rStrImpValue
,
38 css::uno::Any
& rValue
,
39 const SvXMLUnitConverter
& rUnitConverter
41 virtual bool exportXML(
42 OUString
& rStrExpValue
,
43 const css::uno::Any
& rValue
,
44 const SvXMLUnitConverter
& rUnitConverter
48 // property handler for style:num-format (style::NumberingType)
50 class XMLPMPropHdl_NumFormat
: public XMLPropertyHandler
53 virtual ~XMLPMPropHdl_NumFormat() override
;
54 virtual bool importXML(
55 const OUString
& rStrImpValue
,
56 css::uno::Any
& rValue
,
57 const SvXMLUnitConverter
& rUnitConverter
59 virtual bool exportXML(
60 OUString
& rStrExpValue
,
61 const css::uno::Any
& rValue
,
62 const SvXMLUnitConverter
& rUnitConverter
66 // property handler for style:num-letter-sync (style::NumberingType)
68 class XMLPMPropHdl_NumLetterSync
: public XMLPropertyHandler
71 virtual ~XMLPMPropHdl_NumLetterSync() override
;
72 virtual bool importXML(
73 const OUString
& rStrImpValue
,
74 css::uno::Any
& rValue
,
75 const SvXMLUnitConverter
& rUnitConverter
77 virtual bool exportXML(
78 OUString
& rStrExpValue
,
79 const css::uno::Any
& rValue
,
80 const SvXMLUnitConverter
& rUnitConverter
84 // property handler for style:paper-tray-number
86 class XMLPMPropHdl_PaperTrayNumber
: public XMLPropertyHandler
89 virtual ~XMLPMPropHdl_PaperTrayNumber() override
;
90 virtual bool importXML(
91 const OUString
& rStrImpValue
,
92 css::uno::Any
& rValue
,
93 const SvXMLUnitConverter
& rUnitConverter
95 virtual bool exportXML(
96 OUString
& rStrExpValue
,
97 const css::uno::Any
& rValue
,
98 const SvXMLUnitConverter
& rUnitConverter
102 // property handler for style:print
104 class XMLPMPropHdl_Print
: public XMLPropertyHandler
109 explicit XMLPMPropHdl_Print( enum ::xmloff::token::XMLTokenEnum eValue
);
110 virtual ~XMLPMPropHdl_Print() override
;
112 virtual bool importXML(
113 const OUString
& rStrImpValue
,
114 css::uno::Any
& rValue
,
115 const SvXMLUnitConverter
& rUnitConverter
117 virtual bool exportXML(
118 OUString
& rStrExpValue
,
119 const css::uno::Any
& rValue
,
120 const SvXMLUnitConverter
& rUnitConverter
124 // property handler for style:table-centering
126 class XMLPMPropHdl_CenterHorizontal
: public XMLPropertyHandler
129 virtual ~XMLPMPropHdl_CenterHorizontal() override
;
130 virtual bool importXML(
131 const OUString
& rStrImpValue
,
132 css::uno::Any
& rValue
,
133 const SvXMLUnitConverter
& rUnitConverter
135 virtual bool exportXML(
136 OUString
& rStrExpValue
,
137 const css::uno::Any
& rValue
,
138 const SvXMLUnitConverter
& rUnitConverter
142 class XMLPMPropHdl_CenterVertical
: public XMLPropertyHandler
145 virtual ~XMLPMPropHdl_CenterVertical() override
;
146 virtual bool importXML(
147 const OUString
& rStrImpValue
,
148 css::uno::Any
& rValue
,
149 const SvXMLUnitConverter
& rUnitConverter
151 virtual bool exportXML(
152 OUString
& rStrExpValue
,
153 const css::uno::Any
& rValue
,
154 const SvXMLUnitConverter
& rUnitConverter
158 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */