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