merge the formfield patch from ooo-build
[ooovba.git] / xmloff / inc / xformsimport.hxx
blob19159ae63065ec2593a9f201f71b70eb43589b2c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xformsimport.hxx,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _XMLOFF_XFORMSIMPORT_HXX
31 #define _XMLOFF_XFORMSIMPORT_HXX
33 #include "sal/config.h"
34 #include "xmloff/dllapi.h"
36 #include <tools/solar.h> // for USHORT
37 #include <com/sun/star/uno/Reference.hxx>
39 class SvXMLImport;
40 class SvXMLImportContext;
41 namespace rtl { class OUString; }
43 #if defined(WNT) && _MSC_VER < 1400
44 namespace std { template<typename A, typename B> struct pair; }
45 #endif
47 namespace com { namespace sun { namespace star {
48 namespace uno { template<typename T> class Reference; }
49 namespace beans { class XPropertySet; struct PropertyValue; }
50 namespace frame { class XModel; }
51 namespace container { class XNameAccess; }
52 } } }
54 /** create import context for xforms:model element. */
55 XMLOFF_DLLPUBLIC SvXMLImportContext* createXFormsModelContext(
56 SvXMLImport& rImport,
57 USHORT nPrefix,
58 const rtl::OUString& rLocalName );
60 /** perform the actual binding of an XForms-binding with the suitable control
61 * @param document which contains the XForms-model(s)
62 * @param pair<XForms binding ID, reference to control>
64 void bindXFormsValueBinding(
65 com::sun::star::uno::Reference<com::sun::star::frame::XModel>,
66 std::pair<com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>,rtl::OUString> );
69 /** perform the actual binding of an XForms-binding as list source with a list control
70 * @param document which contains the XForms-model(s)
71 * @param pair<XForms binding ID, reference to control>
73 void bindXFormsListBinding(
74 com::sun::star::uno::Reference<com::sun::star::frame::XModel>,
75 std::pair<com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>,rtl::OUString> );
77 /** perform the actual binding of an XForms submission with the suitable control
78 * @param document which contains the XForms-model(s)
79 * @param pair<XForms submission ID, reference to control>
81 void bindXFormsSubmission(
82 com::sun::star::uno::Reference<com::sun::star::frame::XModel>,
83 std::pair<com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>,rtl::OUString> );
85 /** applies the given settings to the given XForms container
87 void XMLOFF_DLLPUBLIC applyXFormsSettings(
88 const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rXForms,
89 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rSettings
92 #endif