2001-02-16 13:14:51 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-09 15:09:06 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2001-02-16 13:14:51 +00:00
|
|
|
*
|
2005-09-09 15:09:06 +00:00
|
|
|
* $RCSfile: xmldlg_imexp.hxx,v $
|
2001-02-16 13:14:51 +00:00
|
|
|
*
|
2005-09-09 15:09:06 +00:00
|
|
|
* $Revision: 1.12 $
|
2001-02-16 13:14:51 +00:00
|
|
|
*
|
2005-09-09 15:09:06 +00:00
|
|
|
* last change: $Author: rt $ $Date: 2005-09-09 16:09:06 $
|
2001-02-16 13:14:51 +00:00
|
|
|
*
|
2005-09-09 15:09:06 +00:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2001-02-16 13:14:51 +00:00
|
|
|
*
|
|
|
|
*
|
2005-09-09 15:09:06 +00:00
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2001-02-16 13:14:51 +00:00
|
|
|
*
|
2005-09-09 15:09:06 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
2001-02-16 13:14:51 +00:00
|
|
|
*
|
2005-09-09 15:09:06 +00:00
|
|
|
* This library 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 for more details.
|
2001-02-16 13:14:51 +00:00
|
|
|
*
|
2005-09-09 15:09:06 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
2001-02-16 13:14:51 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _XMLSCRIPT_XMLDLG_IMEXP_HXX_
|
|
|
|
#define _XMLSCRIPT_XMLDLG_IMEXP_HXX_
|
|
|
|
|
2001-02-26 08:54:48 +00:00
|
|
|
#ifndef _COM_SUN_STAR_CONTAINER_XNAMECONTAINER_HXX_
|
2001-02-16 13:14:51 +00:00
|
|
|
#include <com/sun/star/container/XNameContainer.hpp>
|
2001-02-26 08:54:48 +00:00
|
|
|
#endif
|
2001-03-14 15:39:40 +00:00
|
|
|
#ifndef _COM_SUN_STAR_IO_XINPUTSTREAMPROVIDER_HXX_
|
|
|
|
#include <com/sun/star/io/XInputStreamProvider.hpp>
|
|
|
|
#endif
|
2001-02-26 08:54:48 +00:00
|
|
|
#ifndef _COM_SUN_STAR_XML_SAX_XEXTENDEDDOCUMENTHANDLER_HXX_
|
2001-02-16 13:14:51 +00:00
|
|
|
#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
|
2001-02-26 08:54:48 +00:00
|
|
|
#endif
|
2001-09-19 07:46:35 +00:00
|
|
|
#ifndef _COM_SUN_STAR_UNO_XCOMPONENTCONTEXT_HXX_
|
|
|
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
|
|
|
#endif
|
2001-02-16 13:14:51 +00:00
|
|
|
|
2003-09-04 08:18:38 +00:00
|
|
|
#include "xmlscript/xmlns.h"
|
2001-08-07 09:55:47 +00:00
|
|
|
|
2001-02-27 11:45:17 +00:00
|
|
|
|
2001-02-16 13:14:51 +00:00
|
|
|
namespace xmlscript
|
|
|
|
{
|
|
|
|
|
2003-09-04 08:18:38 +00:00
|
|
|
//==============================================================================
|
2001-03-28 09:50:37 +00:00
|
|
|
void SAL_CALL exportDialogModel(
|
2003-09-04 08:18:38 +00:00
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::xml::sax::XExtendedDocumentHandler > const & xOut,
|
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::container::XNameContainer > const & xDialogModel )
|
2001-03-14 15:39:40 +00:00
|
|
|
SAL_THROW( (::com::sun::star::uno::Exception) );
|
2003-09-04 08:18:38 +00:00
|
|
|
|
|
|
|
//==============================================================================
|
2001-03-28 09:50:37 +00:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler >
|
2001-03-14 15:39:40 +00:00
|
|
|
SAL_CALL importDialogModel(
|
2003-09-04 08:18:38 +00:00
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::container::XNameContainer > const & xDialogModel,
|
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::uno::XComponentContext > const & xContext )
|
2001-03-14 15:39:40 +00:00
|
|
|
SAL_THROW( (::com::sun::star::uno::Exception) );
|
|
|
|
|
|
|
|
// additional functions for convenience
|
2001-02-16 13:14:51 +00:00
|
|
|
|
2003-09-04 08:18:38 +00:00
|
|
|
//==============================================================================
|
2001-03-28 09:50:37 +00:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStreamProvider >
|
2001-03-14 15:39:40 +00:00
|
|
|
SAL_CALL exportDialogModel(
|
2003-09-04 08:18:38 +00:00
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::container::XNameContainer > const & xDialogModel,
|
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::uno::XComponentContext > const & xContext )
|
2001-03-14 15:39:40 +00:00
|
|
|
SAL_THROW( (::com::sun::star::uno::Exception) );
|
2003-09-04 08:18:38 +00:00
|
|
|
|
|
|
|
//==============================================================================
|
2001-03-28 09:50:37 +00:00
|
|
|
void SAL_CALL importDialogModel(
|
2003-09-04 08:18:38 +00:00
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::io::XInputStream > xInput,
|
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::container::XNameContainer > const & xDialogModel,
|
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::uno::XComponentContext > const & xContext )
|
2001-03-14 15:39:40 +00:00
|
|
|
SAL_THROW( (::com::sun::star::uno::Exception) );
|
2001-02-26 08:54:48 +00:00
|
|
|
|
2001-02-26 11:59:16 +00:00
|
|
|
};
|
|
|
|
|
2001-02-16 13:14:51 +00:00
|
|
|
#endif
|