/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * *************************************************************/ #ifndef INCLUDED_DOCTOK_ANALYZESERVICE_HXX #define INCLUDED_DOCTOK_ANALYZESERVICE_HXX #include #include #include namespace writerfilter { namespace doctoktest { class AnalyzeService : public cppu::WeakImplHelper1 < ::com::sun::star::lang::XMain > { private: ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext; public: AnalyzeService(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &xContext); virtual ::sal_Int32 SAL_CALL run( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aArguments ) throw (::com::sun::star::uno::RuntimeException); public: const static sal_Char SERVICE_NAME[40]; const static sal_Char IMPLEMENTATION_NAME[40]; }; ::rtl::OUString AnalyzeService_getImplementationName (); sal_Bool SAL_CALL AnalyzeService_supportsService( const ::rtl::OUString& ServiceName ); ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL AnalyzeService_getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException); ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL AnalyzeService_createInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &xContext) throw( ::com::sun::star::uno::Exception ); } } /* end namespace writerfilter::rtftok */ #define DOCTOK_ANALYZESERVICE_COMPONENT_ENTRY \ {\ writerfilter::doctoktest::AnalyzeService_createInstance,\ writerfilter::doctoktest::AnalyzeService_getImplementationName,\ writerfilter::doctoktest::AnalyzeService_getSupportedServiceNames,\ ::cppu::createSingleComponentFactory,\ 0, 0\ } #endif /* INCLUDED_RTFTOK_ANALYZESERVICE_HXX */