LibreOffice Module xmloff (master)  1
PageMasterPropHdl.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_XMLOFF_SOURCE_STYLE_PAGEMASTERPROPHDL_HXX
21 #define INCLUDED_XMLOFF_SOURCE_STYLE_PAGEMASTERPROPHDL_HXX
22 
23 #include <xmloff/xmlprhdl.hxx>
24 #include <rtl/ustring.hxx>
25 #include <xmloff/xmltoken.hxx>
26 
27 // property handler for style:page-usage (style::PageStyleLayout)
28 
30 {
31 public:
32  virtual ~XMLPMPropHdl_PageStyleLayout() override;
33  virtual bool equals(
34  const css::uno::Any& rAny1,
35  const css::uno::Any& rAny2
36  ) const override;
37  virtual bool importXML(
38  const OUString& rStrImpValue,
39  css::uno::Any& rValue,
40  const SvXMLUnitConverter& rUnitConverter
41  ) const override;
42  virtual bool exportXML(
43  OUString& rStrExpValue,
44  const css::uno::Any& rValue,
45  const SvXMLUnitConverter& rUnitConverter
46  ) const override;
47 };
48 
49 // property handler for style:num-format (style::NumberingType)
50 
52 {
53 public:
54  virtual ~XMLPMPropHdl_NumFormat() override;
55  virtual bool importXML(
56  const OUString& rStrImpValue,
57  css::uno::Any& rValue,
58  const SvXMLUnitConverter& rUnitConverter
59  ) const override;
60  virtual bool exportXML(
61  OUString& rStrExpValue,
62  const css::uno::Any& rValue,
63  const SvXMLUnitConverter& rUnitConverter
64  ) const override;
65 };
66 
67 // property handler for style:num-letter-sync (style::NumberingType)
68 
70 {
71 public:
72  virtual ~XMLPMPropHdl_NumLetterSync() override;
73  virtual bool importXML(
74  const OUString& rStrImpValue,
75  css::uno::Any& rValue,
76  const SvXMLUnitConverter& rUnitConverter
77  ) const override;
78  virtual bool exportXML(
79  OUString& rStrExpValue,
80  const css::uno::Any& rValue,
81  const SvXMLUnitConverter& rUnitConverter
82  ) const override;
83 };
84 
85 // property handler for style:paper-tray-number
86 
88 {
89 public:
90  virtual ~XMLPMPropHdl_PaperTrayNumber() override;
91  virtual bool importXML(
92  const OUString& rStrImpValue,
93  css::uno::Any& rValue,
94  const SvXMLUnitConverter& rUnitConverter
95  ) const override;
96  virtual bool exportXML(
97  OUString& rStrExpValue,
98  const css::uno::Any& rValue,
99  const SvXMLUnitConverter& rUnitConverter
100  ) const override;
101 };
102 
103 // property handler for style:print
104 
106 {
107  OUString sAttrValue;
108 
109 public:
111  virtual ~XMLPMPropHdl_Print() override;
112 
113  virtual bool importXML(
114  const OUString& rStrImpValue,
115  css::uno::Any& rValue,
116  const SvXMLUnitConverter& rUnitConverter
117  ) const override;
118  virtual bool exportXML(
119  OUString& rStrExpValue,
120  const css::uno::Any& rValue,
121  const SvXMLUnitConverter& rUnitConverter
122  ) const override;
123 };
124 
125 // property handler for style:table-centering
126 
128 {
129 public:
130  virtual ~XMLPMPropHdl_CenterHorizontal() override;
131  virtual bool importXML(
132  const OUString& rStrImpValue,
133  css::uno::Any& rValue,
134  const SvXMLUnitConverter& rUnitConverter
135  ) const override;
136  virtual bool exportXML(
137  OUString& rStrExpValue,
138  const css::uno::Any& rValue,
139  const SvXMLUnitConverter& rUnitConverter
140  ) const override;
141 };
142 
144 {
145 public:
146  virtual ~XMLPMPropHdl_CenterVertical() override;
147  virtual bool importXML(
148  const OUString& rStrImpValue,
149  css::uno::Any& rValue,
150  const SvXMLUnitConverter& rUnitConverter
151  ) const override;
152  virtual bool exportXML(
153  OUString& rStrExpValue,
154  const css::uno::Any& rValue,
155  const SvXMLUnitConverter& rUnitConverter
156  ) const override;
157 };
158 
159 #endif
160 
161 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~XMLPMPropHdl_Print() override
virtual bool importXML(const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Imports the given value according to the XML-data-type corresponding to the derived class...
virtual ~XMLPMPropHdl_CenterVertical() override
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
Definition: xmluconv.hxx:77
virtual bool importXML(const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Imports the given value according to the XML-data-type corresponding to the derived class...
virtual bool importXML(const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Imports the given value according to the XML-data-type corresponding to the derived class...
virtual ~XMLPMPropHdl_CenterHorizontal() override
virtual bool exportXML(OUString &rStrExpValue, const css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Exports the given value according to the XML-data-type corresponding to the derived class...
virtual bool importXML(const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Imports the given value according to the XML-data-type corresponding to the derived class...
virtual bool equals(const css::uno::Any &rAny1, const css::uno::Any &rAny2) const override
Compares two Any's in case of the given XML-data-type.
css::uno::Any const & rValue
Definition: ImageStyle.hxx:38
XMLPMPropHdl_Print(enum::xmloff::token::XMLTokenEnum eValue)
virtual bool exportXML(OUString &rStrExpValue, const css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Exports the given value according to the XML-data-type corresponding to the derived class...
virtual ~XMLPMPropHdl_PageStyleLayout() override
virtual bool exportXML(OUString &rStrExpValue, const css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Exports the given value according to the XML-data-type corresponding to the derived class...
virtual bool importXML(const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Imports the given value according to the XML-data-type corresponding to the derived class...
virtual ~XMLPMPropHdl_NumLetterSync() override
XMLTokenEnum
The enumeration of all XML tokens.
Definition: xmltoken.hxx:49
virtual bool exportXML(OUString &rStrExpValue, const css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Exports the given value according to the XML-data-type corresponding to the derived class...
virtual ~XMLPMPropHdl_NumFormat() override
virtual ~XMLPMPropHdl_PaperTrayNumber() override
virtual bool exportXML(OUString &rStrExpValue, const css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Exports the given value according to the XML-data-type corresponding to the derived class...
virtual bool exportXML(OUString &rStrExpValue, const css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Exports the given value according to the XML-data-type corresponding to the derived class...
virtual bool importXML(const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Imports the given value according to the XML-data-type corresponding to the derived class...
virtual bool exportXML(OUString &rStrExpValue, const css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Exports the given value according to the XML-data-type corresponding to the derived class...
virtual bool importXML(const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Imports the given value according to the XML-data-type corresponding to the derived class...
Abstract base-class for different XML-types.
Definition: xmlprhdl.hxx:35