xref: /trunk/main/xmlscript/inc/xmlscript/xmldlg_imexp.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
105236b1aSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
305236b1aSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
405236b1aSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
505236b1aSAndrew Rist  * distributed with this work for additional information
605236b1aSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
705236b1aSAndrew Rist  * to you under the Apache License, Version 2.0 (the
805236b1aSAndrew Rist  * "License"); you may not use this file except in compliance
905236b1aSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
1105236b1aSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
1305236b1aSAndrew Rist  * Unless required by applicable law or agreed to in writing,
1405236b1aSAndrew Rist  * software distributed under the License is distributed on an
1505236b1aSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1605236b1aSAndrew Rist  * KIND, either express or implied.  See the License for the
1705236b1aSAndrew Rist  * specific language governing permissions and limitations
1805236b1aSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
2005236b1aSAndrew Rist  *************************************************************/
2105236b1aSAndrew Rist 
2205236b1aSAndrew 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"
40*b63233d8Sdamjan #include "xmlscript/xcrdllapi.h"
41cdf0e10cSrcweir 
42cdf0e10cSrcweir namespace xmlscript
43cdf0e10cSrcweir {
44cdf0e10cSrcweir 
45cdf0e10cSrcweir //==============================================================================
46*b63233d8Sdamjan XCR_DLLPUBLIC 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 //==============================================================================
54*b63233d8Sdamjan XCR_DLLPUBLIC ::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 //==============================================================================
65*b63233d8Sdamjan XCR_DLLPUBLIC ::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 //==============================================================================
74*b63233d8Sdamjan XCR_DLLPUBLIC 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