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_XMLMOD_IMEXP_HXX_
24 #define _XMLSCRIPT_XMLMOD_IMEXP_HXX_
25 
26 #include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
27 #include <com/sun/star/uno/Sequence.hxx>
28 #include <xmlscript/xmlns.h>
29 
30 
31 namespace xmlscript
32 {
33 
34 //==============================================================================
35 // Script module import/export
36 // HACK C++ struct to transport info. Later the container
37 // itself should do the export/import and use exportet XML
38 // functionality from xmlscript
39 struct ModuleDescriptor
40 {
41 	::rtl::OUString aName;
42 	::rtl::OUString aLanguage;
43 	::rtl::OUString aCode;
44 	::rtl::OUString aModuleType; // VBA
45 };
46 
47 void
48 SAL_CALL exportScriptModule(
49 	::com::sun::star::uno::Reference<
50     ::com::sun::star::xml::sax::XExtendedDocumentHandler > const & xOut,
51 	const ModuleDescriptor& rMod )
52 		SAL_THROW( (::com::sun::star::uno::Exception) );
53 
54 ::com::sun::star::uno::Reference<
55     ::com::sun::star::xml::sax::XDocumentHandler >
56 SAL_CALL importScriptModule( ModuleDescriptor& rMod )
57 	SAL_THROW( (::com::sun::star::uno::Exception) );
58 
59 }
60 
61 #endif
62