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 _XMLOFF_XFORMSIMPORT_HXX
20 #define _XMLOFF_XFORMSIMPORT_HXX
22 #include "sal/config.h"
23 #include "xmloff/dllapi.h"
25 #include <tools/solar.h> // for sal_uInt16
26 #include <com/sun/star/uno/Reference.hxx>
29 class SvXMLImportContext
;
31 namespace com
{ namespace sun
{ namespace star
{
32 namespace uno
{ template<typename T
> class Reference
; }
33 namespace beans
{ class XPropertySet
; struct PropertyValue
; }
34 namespace frame
{ class XModel
; }
35 namespace container
{ class XNameAccess
; }
38 /** create import context for xforms:model element. */
39 XMLOFF_DLLPUBLIC SvXMLImportContext
* createXFormsModelContext(
42 const OUString
& rLocalName
);
44 /** perform the actual binding of an XForms-binding with the suitable control
45 * @param document which contains the XForms-model(s)
46 * @param pair<XForms binding ID, reference to control>
48 void bindXFormsValueBinding(
49 com::sun::star::uno::Reference
<com::sun::star::frame::XModel
>,
50 std::pair
<com::sun::star::uno::Reference
<com::sun::star::beans::XPropertySet
>,OUString
> );
53 /** perform the actual binding of an XForms-binding as list source with a list control
54 * @param document which contains the XForms-model(s)
55 * @param pair<XForms binding ID, reference to control>
57 void bindXFormsListBinding(
58 com::sun::star::uno::Reference
<com::sun::star::frame::XModel
>,
59 std::pair
<com::sun::star::uno::Reference
<com::sun::star::beans::XPropertySet
>,OUString
> );
61 /** perform the actual binding of an XForms submission with the suitable control
62 * @param document which contains the XForms-model(s)
63 * @param pair<XForms submission ID, reference to control>
65 void bindXFormsSubmission(
66 com::sun::star::uno::Reference
<com::sun::star::frame::XModel
>,
67 std::pair
<com::sun::star::uno::Reference
<com::sun::star::beans::XPropertySet
>,OUString
> );
69 /** applies the given settings to the given XForms container
71 void XMLOFF_DLLPUBLIC
applyXFormsSettings(
72 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
>& _rXForms
,
73 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& _rSettings
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */