1*e1d5bd03SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*e1d5bd03SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*e1d5bd03SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*e1d5bd03SAndrew Rist * distributed with this work for additional information 6*e1d5bd03SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*e1d5bd03SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*e1d5bd03SAndrew Rist * "License"); you may not use this file except in compliance 9*e1d5bd03SAndrew Rist * with the License. You may obtain a copy of the License at 10*e1d5bd03SAndrew Rist * 11*e1d5bd03SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*e1d5bd03SAndrew Rist * 13*e1d5bd03SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*e1d5bd03SAndrew Rist * software distributed under the License is distributed on an 15*e1d5bd03SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*e1d5bd03SAndrew Rist * KIND, either express or implied. See the License for the 17*e1d5bd03SAndrew Rist * specific language governing permissions and limitations 18*e1d5bd03SAndrew Rist * under the License. 19*e1d5bd03SAndrew Rist * 20*e1d5bd03SAndrew Rist *************************************************************/ 21*e1d5bd03SAndrew Rist 22*e1d5bd03SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_xmlscript.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir #ifndef _CPPUHELPER_IMPLEMENTATIONENTRY_HXX_ 28cdf0e10cSrcweir #include <cppuhelper/implementationentry.hxx> 29cdf0e10cSrcweir #endif 30cdf0e10cSrcweir 31cdf0e10cSrcweir using namespace ::rtl; 32cdf0e10cSrcweir using namespace ::com::sun::star::uno; 33cdf0e10cSrcweir 34cdf0e10cSrcweir 35cdf0e10cSrcweir // ============================================================================= 36cdf0e10cSrcweir 37cdf0e10cSrcweir namespace xmlscript 38cdf0e10cSrcweir { 39cdf0e10cSrcweir Sequence< OUString > SAL_CALL getSupportedServiceNames_DocumentHandlerImpl(); 40cdf0e10cSrcweir OUString SAL_CALL getImplementationName_DocumentHandlerImpl(); 41cdf0e10cSrcweir Reference< XInterface > SAL_CALL create_DocumentHandlerImpl( 42cdf0e10cSrcweir Reference< XComponentContext > const & xContext ) 43cdf0e10cSrcweir SAL_THROW( (Exception) ); 44cdf0e10cSrcweir 45cdf0e10cSrcweir Sequence< OUString > SAL_CALL getSupportedServiceNames_XMLBasicExporter(); 46cdf0e10cSrcweir OUString SAL_CALL getImplementationName_XMLBasicExporter(); 47cdf0e10cSrcweir Reference< XInterface > SAL_CALL create_XMLBasicExporter( 48cdf0e10cSrcweir Reference< XComponentContext > const & xContext ) 49cdf0e10cSrcweir SAL_THROW( (Exception) ); 50cdf0e10cSrcweir 51cdf0e10cSrcweir Sequence< OUString > SAL_CALL getSupportedServiceNames_XMLOasisBasicExporter(); 52cdf0e10cSrcweir OUString SAL_CALL getImplementationName_XMLOasisBasicExporter(); 53cdf0e10cSrcweir Reference< XInterface > SAL_CALL create_XMLOasisBasicExporter( 54cdf0e10cSrcweir Reference< XComponentContext > const & xContext ) 55cdf0e10cSrcweir SAL_THROW( (Exception) ); 56cdf0e10cSrcweir 57cdf0e10cSrcweir Sequence< OUString > SAL_CALL getSupportedServiceNames_XMLBasicImporter(); 58cdf0e10cSrcweir OUString SAL_CALL getImplementationName_XMLBasicImporter(); 59cdf0e10cSrcweir Reference< XInterface > SAL_CALL create_XMLBasicImporter( 60cdf0e10cSrcweir Reference< XComponentContext > const & xContext ) 61cdf0e10cSrcweir SAL_THROW( (Exception) ); 62cdf0e10cSrcweir 63cdf0e10cSrcweir Sequence< OUString > SAL_CALL getSupportedServiceNames_XMLOasisBasicImporter(); 64cdf0e10cSrcweir OUString SAL_CALL getImplementationName_XMLOasisBasicImporter(); 65cdf0e10cSrcweir Reference< XInterface > SAL_CALL create_XMLOasisBasicImporter( 66cdf0e10cSrcweir Reference< XComponentContext > const & xContext ) 67cdf0e10cSrcweir SAL_THROW( (Exception) ); 68cdf0e10cSrcweir 69cdf0e10cSrcweir // ----------------------------------------------------------------------------- 70cdf0e10cSrcweir 71cdf0e10cSrcweir static struct ::cppu::ImplementationEntry s_entries [] = 72cdf0e10cSrcweir { 73cdf0e10cSrcweir { 74cdf0e10cSrcweir create_DocumentHandlerImpl, getImplementationName_DocumentHandlerImpl, 75cdf0e10cSrcweir getSupportedServiceNames_DocumentHandlerImpl, ::cppu::createSingleComponentFactory, 76cdf0e10cSrcweir 0, 0 77cdf0e10cSrcweir }, 78cdf0e10cSrcweir { 79cdf0e10cSrcweir create_XMLBasicExporter, getImplementationName_XMLBasicExporter, 80cdf0e10cSrcweir getSupportedServiceNames_XMLBasicExporter, ::cppu::createSingleComponentFactory, 81cdf0e10cSrcweir 0, 0 82cdf0e10cSrcweir }, 83cdf0e10cSrcweir { 84cdf0e10cSrcweir create_XMLOasisBasicExporter, getImplementationName_XMLOasisBasicExporter, 85cdf0e10cSrcweir getSupportedServiceNames_XMLOasisBasicExporter, ::cppu::createSingleComponentFactory, 86cdf0e10cSrcweir 0, 0 87cdf0e10cSrcweir }, 88cdf0e10cSrcweir { 89cdf0e10cSrcweir create_XMLBasicImporter, getImplementationName_XMLBasicImporter, 90cdf0e10cSrcweir getSupportedServiceNames_XMLBasicImporter, ::cppu::createSingleComponentFactory, 91cdf0e10cSrcweir 0, 0 92cdf0e10cSrcweir }, 93cdf0e10cSrcweir { 94cdf0e10cSrcweir create_XMLOasisBasicImporter, getImplementationName_XMLOasisBasicImporter, 95cdf0e10cSrcweir getSupportedServiceNames_XMLOasisBasicImporter, ::cppu::createSingleComponentFactory, 96cdf0e10cSrcweir 0, 0 97cdf0e10cSrcweir }, 98cdf0e10cSrcweir { 0, 0, 0, 0, 0, 0 } 99cdf0e10cSrcweir }; 100cdf0e10cSrcweir } 101cdf0e10cSrcweir 102cdf0e10cSrcweir // ============================================================================= 103cdf0e10cSrcweir 104cdf0e10cSrcweir extern "C" 105cdf0e10cSrcweir { 106cdf0e10cSrcweir void SAL_CALL component_getImplementationEnvironment( 107cdf0e10cSrcweir const sal_Char ** ppEnvTypeName, uno_Environment ** ) 108cdf0e10cSrcweir { 109cdf0e10cSrcweir *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 110cdf0e10cSrcweir } 111cdf0e10cSrcweir 112cdf0e10cSrcweir // ----------------------------------------------------------------------------- 113cdf0e10cSrcweir 114cdf0e10cSrcweir void * SAL_CALL component_getFactory( 115cdf0e10cSrcweir const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) 116cdf0e10cSrcweir { 117cdf0e10cSrcweir return ::cppu::component_getFactoryHelper( 118cdf0e10cSrcweir pImplName, pServiceManager, pRegistryKey, ::xmlscript::s_entries ); 119cdf0e10cSrcweir } 120cdf0e10cSrcweir } 121