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 
24 #ifndef INCLUDED_OOXML_ANALYZE_SERVICE_HXX
25 #define INCLUDED_OOXML_ANALYZE_SERVICE_HXX
26 
27 #include <cppuhelper/implbase1.hxx>
28 #include <com/sun/star/lang/XMain.hpp>
29 #include <com/sun/star/uno/XComponentContext.hpp>
30 
31 namespace writerfilter { namespace ooxmltest {
32 
33 class AnalyzeService : public cppu::WeakImplHelper1 < ::com::sun::star::lang::XMain >
34 {
35 private:
36 	::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext;
37 
38 public:
39 	AnalyzeService(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &xContext);
40 
41 	virtual ::sal_Int32 SAL_CALL run( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aArguments ) throw (::com::sun::star::uno::RuntimeException);
42 
43 public:
44 	const static sal_Char SERVICE_NAME[40];
45 	const static sal_Char IMPLEMENTATION_NAME[40];
46 
47 };
48 
49 ::rtl::OUString AnalyzeService_getImplementationName ();
50 sal_Bool SAL_CALL AnalyzeService_supportsService( const ::rtl::OUString& ServiceName );
51 ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL AnalyzeService_getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
52 ::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 );
53 
54 } } /* end namespace writerfilter::rtftok */
55 
56 #define OOXML_ANALYZESERVICE_COMPONENT_ENTRY \
57 {\
58 	writerfilter::ooxmltest::AnalyzeService_createInstance,\
59 	writerfilter::ooxmltest::AnalyzeService_getImplementationName,\
60 	writerfilter::ooxmltest::AnalyzeService_getSupportedServiceNames,\
61    ::cppu::createSingleComponentFactory,\
62    0, 0\
63 }
64 
65 
66 #endif /* INCLUDED_OOXML_ANALYZE_SERVICE_HXX */
67