bump product version to 4.1.6.2
[LibreOffice.git] / xmloff / source / style / PageMasterPropHdl.hxx
blob43b2ec3719097e375093cb486c5877a8202295e4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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
33 public:
34 virtual ~XMLPMPropHdl_PageStyleLayout();
35 virtual bool equals(
36 const ::com::sun::star::uno::Any& rAny1,
37 const ::com::sun::star::uno::Any& rAny2
38 ) const;
39 virtual sal_Bool importXML(
40 const OUString& rStrImpValue,
41 ::com::sun::star::uno::Any& rValue,
42 const SvXMLUnitConverter& rUnitConverter
43 ) const;
44 virtual sal_Bool exportXML(
45 OUString& rStrExpValue,
46 const ::com::sun::star::uno::Any& rValue,
47 const SvXMLUnitConverter& rUnitConverter
48 ) const;
52 //______________________________________________________________________________
53 // property handler for style:num-format (style::NumberingType)
55 class XMLPMPropHdl_NumFormat : public XMLPropertyHandler
57 public:
58 virtual ~XMLPMPropHdl_NumFormat();
59 virtual sal_Bool importXML(
60 const OUString& rStrImpValue,
61 ::com::sun::star::uno::Any& rValue,
62 const SvXMLUnitConverter& rUnitConverter
63 ) const;
64 virtual sal_Bool exportXML(
65 OUString& rStrExpValue,
66 const ::com::sun::star::uno::Any& rValue,
67 const SvXMLUnitConverter& rUnitConverter
68 ) const;
72 //______________________________________________________________________________
73 // property handler for style:num-letter-sync (style::NumberingType)
75 class XMLPMPropHdl_NumLetterSync : public XMLPropertyHandler
77 public:
78 virtual ~XMLPMPropHdl_NumLetterSync();
79 virtual sal_Bool importXML(
80 const OUString& rStrImpValue,
81 ::com::sun::star::uno::Any& rValue,
82 const SvXMLUnitConverter& rUnitConverter
83 ) const;
84 virtual sal_Bool exportXML(
85 OUString& rStrExpValue,
86 const ::com::sun::star::uno::Any& rValue,
87 const SvXMLUnitConverter& rUnitConverter
88 ) const;
92 //______________________________________________________________________________
93 // property handler for style:paper-tray-number
95 class XMLPMPropHdl_PaperTrayNumber : public XMLPropertyHandler
97 public:
98 virtual ~XMLPMPropHdl_PaperTrayNumber();
99 virtual sal_Bool importXML(
100 const OUString& rStrImpValue,
101 ::com::sun::star::uno::Any& rValue,
102 const SvXMLUnitConverter& rUnitConverter
103 ) const;
104 virtual sal_Bool exportXML(
105 OUString& rStrExpValue,
106 const ::com::sun::star::uno::Any& rValue,
107 const SvXMLUnitConverter& rUnitConverter
108 ) const;
112 //______________________________________________________________________________
113 // property handler for style:print
115 class XMLPMPropHdl_Print : public XMLPropertyHandler
117 protected:
118 OUString sAttrValue;
120 public:
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
128 ) const;
129 virtual sal_Bool exportXML(
130 OUString& rStrExpValue,
131 const ::com::sun::star::uno::Any& rValue,
132 const SvXMLUnitConverter& rUnitConverter
133 ) const;
136 //______________________________________________________________________________
137 // property handler for style:table-centering
139 class XMLPMPropHdl_CenterHorizontal : public XMLPropertyHandler
141 public:
142 virtual ~XMLPMPropHdl_CenterHorizontal();
143 virtual sal_Bool importXML(
144 const OUString& rStrImpValue,
145 ::com::sun::star::uno::Any& rValue,
146 const SvXMLUnitConverter& rUnitConverter
147 ) const;
148 virtual sal_Bool exportXML(
149 OUString& rStrExpValue,
150 const ::com::sun::star::uno::Any& rValue,
151 const SvXMLUnitConverter& rUnitConverter
152 ) const;
155 class XMLPMPropHdl_CenterVertical : public XMLPropertyHandler
157 public:
158 virtual ~XMLPMPropHdl_CenterVertical();
159 virtual sal_Bool importXML(
160 const OUString& rStrImpValue,
161 ::com::sun::star::uno::Any& rValue,
162 const SvXMLUnitConverter& rUnitConverter
163 ) const;
164 virtual sal_Bool exportXML(
165 OUString& rStrExpValue,
166 const ::com::sun::star::uno::Any& rValue,
167 const SvXMLUnitConverter& rUnitConverter
168 ) const;
171 #endif
173 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */