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