tdf#154285 Check upper bound of arguments in SbRtl_Minute function
[LibreOffice.git] / xmloff / source / style / PageMasterPropHdl.hxx
blob2cfd39aff29ad5834fa2321d93936438b25008f0
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 #pragma once
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
30 public:
31 virtual ~XMLPMPropHdl_PageStyleLayout() override;
32 virtual bool equals(
33 const css::uno::Any& rAny1,
34 const css::uno::Any& rAny2
35 ) const override;
36 virtual bool importXML(
37 const OUString& rStrImpValue,
38 css::uno::Any& rValue,
39 const SvXMLUnitConverter& rUnitConverter
40 ) const override;
41 virtual bool exportXML(
42 OUString& rStrExpValue,
43 const css::uno::Any& rValue,
44 const SvXMLUnitConverter& rUnitConverter
45 ) const override;
48 // property handler for style:num-format (style::NumberingType)
50 class XMLPMPropHdl_NumFormat : public XMLPropertyHandler
52 public:
53 virtual ~XMLPMPropHdl_NumFormat() override;
54 virtual bool importXML(
55 const OUString& rStrImpValue,
56 css::uno::Any& rValue,
57 const SvXMLUnitConverter& rUnitConverter
58 ) const override;
59 virtual bool exportXML(
60 OUString& rStrExpValue,
61 const css::uno::Any& rValue,
62 const SvXMLUnitConverter& rUnitConverter
63 ) const override;
66 // property handler for style:num-letter-sync (style::NumberingType)
68 class XMLPMPropHdl_NumLetterSync : public XMLPropertyHandler
70 public:
71 virtual ~XMLPMPropHdl_NumLetterSync() override;
72 virtual bool importXML(
73 const OUString& rStrImpValue,
74 css::uno::Any& rValue,
75 const SvXMLUnitConverter& rUnitConverter
76 ) const override;
77 virtual bool exportXML(
78 OUString& rStrExpValue,
79 const css::uno::Any& rValue,
80 const SvXMLUnitConverter& rUnitConverter
81 ) const override;
84 // property handler for style:paper-tray-number
86 class XMLPMPropHdl_PaperTrayNumber : public XMLPropertyHandler
88 public:
89 virtual ~XMLPMPropHdl_PaperTrayNumber() override;
90 virtual bool importXML(
91 const OUString& rStrImpValue,
92 css::uno::Any& rValue,
93 const SvXMLUnitConverter& rUnitConverter
94 ) const override;
95 virtual bool exportXML(
96 OUString& rStrExpValue,
97 const css::uno::Any& rValue,
98 const SvXMLUnitConverter& rUnitConverter
99 ) const override;
102 // property handler for style:print
104 class XMLPMPropHdl_Print : public XMLPropertyHandler
106 OUString sAttrValue;
108 public:
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
116 ) const override;
117 virtual bool exportXML(
118 OUString& rStrExpValue,
119 const css::uno::Any& rValue,
120 const SvXMLUnitConverter& rUnitConverter
121 ) const override;
124 // property handler for style:table-centering
126 class XMLPMPropHdl_CenterHorizontal : public XMLPropertyHandler
128 public:
129 virtual ~XMLPMPropHdl_CenterHorizontal() override;
130 virtual bool importXML(
131 const OUString& rStrImpValue,
132 css::uno::Any& rValue,
133 const SvXMLUnitConverter& rUnitConverter
134 ) const override;
135 virtual bool exportXML(
136 OUString& rStrExpValue,
137 const css::uno::Any& rValue,
138 const SvXMLUnitConverter& rUnitConverter
139 ) const override;
142 class XMLPMPropHdl_CenterVertical : public XMLPropertyHandler
144 public:
145 virtual ~XMLPMPropHdl_CenterVertical() override;
146 virtual bool importXML(
147 const OUString& rStrImpValue,
148 css::uno::Any& rValue,
149 const SvXMLUnitConverter& rUnitConverter
150 ) const override;
151 virtual bool exportXML(
152 OUString& rStrExpValue,
153 const css::uno::Any& rValue,
154 const SvXMLUnitConverter& rUnitConverter
155 ) const override;
158 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */