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#pragma once
21
22#include <xmloff/xmlprhdl.hxx>
23#include <rtl/ustring.hxx>
24#include <xmloff/xmltoken.hxx>
25
26// property handler for style:page-usage (style::PageStyleLayout)
27
29{
30public:
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;
46};
47
48// property handler for style:num-format (style::NumberingType)
49
51{
52public:
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;
64};
65
66// property handler for style:num-letter-sync (style::NumberingType)
67
69{
70public:
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;
82};
83
84// property handler for style:paper-tray-number
85
87{
88public:
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;
100};
101
102// property handler for style:print
103
105{
106 OUString sAttrValue;
107
108public:
110 virtual ~XMLPMPropHdl_Print() override;
111
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;
122};
123
124// property handler for style:table-centering
125
127{
128public:
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;
140};
141
143{
144public:
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;
156};
157
158/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
Definition: xmluconv.hxx:83
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 ~XMLPMPropHdl_CenterVertical() 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_NumFormat() 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 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_NumLetterSync() 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 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 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.
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_PageStyleLayout() 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_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 ~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.
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.
Abstract base-class for different XML-types.
Definition: xmlprhdl.hxx:36
XMLTokenEnum
The enumeration of all XML tokens.
Definition: xmltoken.hxx:50