LibreOffice Module xmloff (master) 1
formlayerexport.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_FORMLAYEREXPORT_HXX
21#define INCLUDED_XMLOFF_FORMLAYEREXPORT_HXX
22
23#include <sal/config.h>
24#include <xmloff/dllapi.h>
25#include <rtl/ustring.hxx>
27#include <memory>
28
29namespace com::sun::star::awt {
30 class XControlModel;
31}
32
33namespace com::sun::star::drawing { class XDrawPage; }
34namespace com::sun::star::beans { class XPropertySet; }
35namespace com::sun::star::uno { template <typename > class Reference; }
36
37class SvXMLExport;
38
39namespace xmloff
40{
41
42
43 class OFormLayerXMLExport_Impl;
44 class OFormsRootExport;
45
46
47 //= OFormLayerXMLExport
48
53 {
54 // impl class
55 std::unique_ptr<OFormLayerXMLExport_Impl> m_pImpl;
56
57 SAL_DLLPRIVATE virtual ~OFormLayerXMLExport() override;
58
59 public:
60 SAL_DLLPRIVATE OFormLayerXMLExport(SvXMLExport& _rContext);
61
73 bool seekPage(
74 const css::uno::Reference< css::drawing::XDrawPage >& _rxDrawPage);
75
87 SAL_DLLPRIVATE OUString getControlId(
88 const css::uno::Reference< css::beans::XPropertySet >& _rxControl);
89
101 SAL_DLLPRIVATE OUString getControlNumberStyle(
102 const css::uno::Reference< css::beans::XPropertySet >& _rxControl );
103
112 void examineForms(const css::uno::Reference< css::drawing::XDrawPage >& _rxDrawPage);
113
133 void exportForms(const css::uno::Reference< css::drawing::XDrawPage >& _rxDrawPage);
134
137 void exportXForms() const;
138
141 static bool pageContainsForms( const css::uno::Reference< css::drawing::XDrawPage >& _rxDrawPage );
142
145 bool documentContainsXForms() const;
146
149 SAL_DLLPRIVATE void exportAutoControlNumberStyles();
150
153 void exportAutoStyles();
154
162 SAL_DLLPRIVATE void excludeFromExport( const css::uno::Reference< css::awt::XControlModel >& _rxControl );
163 };
164
165
166 //= OOfficeFormsExport
167
170 {
171 private:
172 std::unique_ptr<OFormsRootExport> m_pImpl;
173
174 public:
177 };
178
179
180} // namespace xmloff
181
182
183#endif // INCLUDED_XMLOFF_FORMLAYEREXPORT_HXX
184
185/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
provides functionality for exporting a complete form layer.
std::unique_ptr< OFormLayerXMLExport_Impl > m_pImpl
export helper for the office::forms element
std::unique_ptr< OFormsRootExport > m_pImpl
#define XMLOFF_DLLPUBLIC
Definition: dllapi.h:29
class SAL_NO_VTABLE XPropertySet
Reference
void exportXForms(SvXMLExport &rExport)
export an XForms model.