1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
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
; }
37 /** create import context for xforms:model element. */
38 XMLOFF_DLLPUBLIC SvXMLImportContext
* createXFormsModelContext(
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 com::sun::star::uno::Reference
<com::sun::star::frame::XModel
>,
49 std::pair
<com::sun::star::uno::Reference
<com::sun::star::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 com::sun::star::uno::Reference
<com::sun::star::frame::XModel
>,
58 std::pair
<com::sun::star::uno::Reference
<com::sun::star::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 com::sun::star::uno::Reference
<com::sun::star::frame::XModel
>,
66 std::pair
<com::sun::star::uno::Reference
<com::sun::star::beans::XPropertySet
>,OUString
> );
68 /** applies the given settings to the given XForms container
70 void XMLOFF_DLLPUBLIC
applyXFormsSettings(
71 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
>& _rXForms
,
72 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& _rSettings
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */