Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / xmloff / xformsimport.hxx
blob6624a94acd770770d6e922013af740feddf0d7b9
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 .
19 #ifndef INCLUDED_XMLOFF_XFORMSIMPORT_HXX
20 #define INCLUDED_XMLOFF_XFORMSIMPORT_HXX
22 #include <sal/config.h>
23 #include <xmloff/dllapi.h>
25 #include <com/sun/star/uno/Reference.hxx>
27 class SvXMLImport;
28 class SvXMLImportContext;
30 namespace com { namespace sun { namespace star {
31 namespace uno { template<typename T> class Reference; }
32 namespace beans { class XPropertySet; struct PropertyValue; }
33 namespace frame { class XModel; }
34 namespace container { class XNameAccess; }
35 } } }
37 /** create import context for xforms:model element. */
38 XMLOFF_DLLPUBLIC SvXMLImportContext* createXFormsModelContext(
39 SvXMLImport& rImport,
40 sal_uInt16 nPrefix,
41 const OUString& rLocalName );
43 /** perform the actual binding of an XForms-binding with the suitable control
44 * @param document which contains the XForms-model(s)
45 * @param pair<XForms binding ID, reference to control>
47 void bindXFormsValueBinding(
48 css::uno::Reference<css::frame::XModel> const &,
49 std::pair<css::uno::Reference<css::beans::XPropertySet>,OUString> );
52 /** perform the actual binding of an XForms-binding as list source with a list control
53 * @param document which contains the XForms-model(s)
54 * @param pair<XForms binding ID, reference to control>
56 void bindXFormsListBinding(
57 css::uno::Reference<css::frame::XModel> const &,
58 std::pair<css::uno::Reference<css::beans::XPropertySet>,OUString> );
60 /** perform the actual binding of an XForms submission with the suitable control
61 * @param document which contains the XForms-model(s)
62 * @param pair<XForms submission ID, reference to control>
64 void bindXFormsSubmission(
65 css::uno::Reference<css::frame::XModel> const &,
66 std::pair<css::uno::Reference<css::beans::XPropertySet>,OUString> );
68 /** applies the given settings to the given XForms container
70 void XMLOFF_DLLPUBLIC applyXFormsSettings(
71 const css::uno::Reference< css::container::XNameAccess >& _rXForms,
72 const css::uno::Sequence< css::beans::PropertyValue >& _rSettings
75 #endif
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */