xref: /trunk/main/xmlscript/inc/xmlscript/xmldlg_imexp.hxx (revision 05236b1a0a8122ee73deabdbaef6d40a9b9d7792) !
1*05236b1aSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*05236b1aSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*05236b1aSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*05236b1aSAndrew Rist  * distributed with this work for additional information
6*05236b1aSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*05236b1aSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*05236b1aSAndrew Rist  * "License"); you may not use this file except in compliance
9*05236b1aSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*05236b1aSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*05236b1aSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*05236b1aSAndrew Rist  * software distributed under the License is distributed on an
15*05236b1aSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*05236b1aSAndrew Rist  * KIND, either express or implied.  See the License for the
17*05236b1aSAndrew Rist  * specific language governing permissions and limitations
18*05236b1aSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*05236b1aSAndrew Rist  *************************************************************/
21*05236b1aSAndrew Rist 
22*05236b1aSAndrew Rist 
23cdf0e10cSrcweir #ifndef _XMLSCRIPT_XMLDLG_IMEXP_HXX_
24cdf0e10cSrcweir #define _XMLSCRIPT_XMLDLG_IMEXP_HXX_
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #ifndef _COM_SUN_STAR_CONTAINER_XNAMECONTAINER_HXX_
27cdf0e10cSrcweir #include <com/sun/star/container/XNameContainer.hpp>
28cdf0e10cSrcweir #endif
29cdf0e10cSrcweir #ifndef _COM_SUN_STAR_IO_XINPUTSTREAMPROVIDER_HXX_
30cdf0e10cSrcweir #include <com/sun/star/io/XInputStreamProvider.hpp>
31cdf0e10cSrcweir #endif
32cdf0e10cSrcweir #ifndef _COM_SUN_STAR_XML_SAX_XEXTENDEDDOCUMENTHANDLER_HXX_
33cdf0e10cSrcweir #include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
34cdf0e10cSrcweir #endif
35cdf0e10cSrcweir #ifndef _COM_SUN_STAR_UNO_XCOMPONENTCONTEXT_HXX_
36cdf0e10cSrcweir #include <com/sun/star/uno/XComponentContext.hpp>
37cdf0e10cSrcweir #endif
38cdf0e10cSrcweir 
39cdf0e10cSrcweir #include "xmlscript/xmlns.h"
40cdf0e10cSrcweir 
41cdf0e10cSrcweir 
42cdf0e10cSrcweir namespace xmlscript
43cdf0e10cSrcweir {
44cdf0e10cSrcweir 
45cdf0e10cSrcweir //==============================================================================
46cdf0e10cSrcweir void SAL_CALL exportDialogModel(
47cdf0e10cSrcweir     ::com::sun::star::uno::Reference<
48cdf0e10cSrcweir     ::com::sun::star::xml::sax::XExtendedDocumentHandler > const & xOut,
49cdf0e10cSrcweir     ::com::sun::star::uno::Reference<
50cdf0e10cSrcweir     ::com::sun::star::container::XNameContainer > const & xDialogModel )
51cdf0e10cSrcweir     SAL_THROW( (::com::sun::star::uno::Exception) );
52cdf0e10cSrcweir 
53cdf0e10cSrcweir //==============================================================================
54cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler >
55cdf0e10cSrcweir SAL_CALL importDialogModel(
56cdf0e10cSrcweir     ::com::sun::star::uno::Reference<
57cdf0e10cSrcweir     ::com::sun::star::container::XNameContainer > const & xDialogModel,
58cdf0e10cSrcweir     ::com::sun::star::uno::Reference<
59cdf0e10cSrcweir     ::com::sun::star::uno::XComponentContext > const & xContext )
60cdf0e10cSrcweir     SAL_THROW( (::com::sun::star::uno::Exception) );
61cdf0e10cSrcweir 
62cdf0e10cSrcweir // additional functions for convenience
63cdf0e10cSrcweir 
64cdf0e10cSrcweir //==============================================================================
65cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStreamProvider >
66cdf0e10cSrcweir SAL_CALL exportDialogModel(
67cdf0e10cSrcweir     ::com::sun::star::uno::Reference<
68cdf0e10cSrcweir     ::com::sun::star::container::XNameContainer > const & xDialogModel,
69cdf0e10cSrcweir     ::com::sun::star::uno::Reference<
70cdf0e10cSrcweir     ::com::sun::star::uno::XComponentContext > const & xContext )
71cdf0e10cSrcweir     SAL_THROW( (::com::sun::star::uno::Exception) );
72cdf0e10cSrcweir 
73cdf0e10cSrcweir //==============================================================================
74cdf0e10cSrcweir void SAL_CALL importDialogModel(
75cdf0e10cSrcweir     ::com::sun::star::uno::Reference<
76cdf0e10cSrcweir     ::com::sun::star::io::XInputStream > xInput,
77cdf0e10cSrcweir     ::com::sun::star::uno::Reference<
78cdf0e10cSrcweir     ::com::sun::star::container::XNameContainer > const & xDialogModel,
79cdf0e10cSrcweir     ::com::sun::star::uno::Reference<
80cdf0e10cSrcweir     ::com::sun::star::uno::XComponentContext > const & xContext )
81cdf0e10cSrcweir     SAL_THROW( (::com::sun::star::uno::Exception) );
82cdf0e10cSrcweir 
83cdf0e10cSrcweir }
84cdf0e10cSrcweir 
85cdf0e10cSrcweir #endif
86