2004-11-16 09:04:05 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 19:51:23 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2004-11-16 09:04:05 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2004-11-16 09:04:05 +00:00
|
|
|
*
|
2008-04-10 19:51:23 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-11-16 09:04:05 +00:00
|
|
|
*
|
2008-04-10 19:51:23 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2004-11-16 09:04:05 +00:00
|
|
|
*
|
2008-04-10 19:51:23 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2004-11-16 09:04:05 +00:00
|
|
|
*
|
2008-04-10 19:51:23 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2004-11-16 09:04:05 +00:00
|
|
|
*
|
2008-04-10 19:51:23 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2004-11-16 09:04:05 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _XMLOFF_XFORMSIMPORT_HXX
|
|
|
|
#define _XMLOFF_XFORMSIMPORT_HXX
|
|
|
|
|
2005-01-11 13:20:39 +00:00
|
|
|
#include "sal/config.h"
|
|
|
|
#include "xmloff/dllapi.h"
|
|
|
|
|
2004-11-16 09:04:05 +00:00
|
|
|
#include <tools/solar.h> // for USHORT
|
|
|
|
#include <com/sun/star/uno/Reference.hxx>
|
|
|
|
|
|
|
|
class SvXMLImport;
|
|
|
|
class SvXMLImportContext;
|
|
|
|
namespace rtl { class OUString; }
|
2006-09-25 12:21:15 +00:00
|
|
|
|
|
|
|
#if defined(WNT) && _MSC_VER < 1400
|
2004-11-16 09:04:05 +00:00
|
|
|
namespace std { template<typename A, typename B> struct pair; }
|
2006-09-25 12:21:15 +00:00
|
|
|
#endif
|
|
|
|
|
2004-11-16 09:04:05 +00:00
|
|
|
namespace com { namespace sun { namespace star {
|
|
|
|
namespace uno { template<typename T> class Reference; }
|
2008-06-25 13:14:27 +00:00
|
|
|
namespace beans { class XPropertySet; struct PropertyValue; }
|
2004-11-16 09:04:05 +00:00
|
|
|
namespace frame { class XModel; }
|
2008-06-25 13:14:27 +00:00
|
|
|
namespace container { class XNameAccess; }
|
2004-11-16 09:04:05 +00:00
|
|
|
} } }
|
|
|
|
|
|
|
|
/** create import context for xforms:model element. */
|
2005-01-11 13:20:39 +00:00
|
|
|
XMLOFF_DLLPUBLIC SvXMLImportContext* createXFormsModelContext(
|
2004-11-16 09:04:05 +00:00
|
|
|
SvXMLImport& rImport,
|
|
|
|
USHORT nPrefix,
|
|
|
|
const rtl::OUString& rLocalName );
|
|
|
|
|
|
|
|
/** perform the actual binding of an XForms-binding with the suitable control
|
|
|
|
* @param document which contains the XForms-model(s)
|
|
|
|
* @param pair<XForms binding ID, reference to control>
|
|
|
|
*/
|
|
|
|
void bindXFormsValueBinding(
|
|
|
|
com::sun::star::uno::Reference<com::sun::star::frame::XModel>,
|
|
|
|
std::pair<com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>,rtl::OUString> );
|
|
|
|
|
|
|
|
|
|
|
|
/** perform the actual binding of an XForms-binding as list source with a list control
|
|
|
|
* @param document which contains the XForms-model(s)
|
|
|
|
* @param pair<XForms binding ID, reference to control>
|
|
|
|
*/
|
|
|
|
void bindXFormsListBinding(
|
|
|
|
com::sun::star::uno::Reference<com::sun::star::frame::XModel>,
|
|
|
|
std::pair<com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>,rtl::OUString> );
|
|
|
|
|
|
|
|
/** perform the actual binding of an XForms submission with the suitable control
|
|
|
|
* @param document which contains the XForms-model(s)
|
|
|
|
* @param pair<XForms submission ID, reference to control>
|
|
|
|
*/
|
|
|
|
void bindXFormsSubmission(
|
|
|
|
com::sun::star::uno::Reference<com::sun::star::frame::XModel>,
|
|
|
|
std::pair<com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>,rtl::OUString> );
|
|
|
|
|
2008-06-25 13:14:27 +00:00
|
|
|
/** applies the given settings to the given XForms container
|
|
|
|
*/
|
|
|
|
void XMLOFF_DLLPUBLIC applyXFormsSettings(
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rXForms,
|
|
|
|
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rSettings
|
|
|
|
);
|
2004-11-16 09:04:05 +00:00
|
|
|
|
|
|
|
#endif
|
2006-09-25 12:21:15 +00:00
|
|
|
|
|
|
|
|