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_SCANNERTESTSERVICE_HXX
25 #define INCLUDED_OOXML_SCANNERTESTSERVICE_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 ScannerTestService : 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 	ScannerTestService(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 ScannerTestService_getImplementationName ();
50 sal_Bool SAL_CALL ScannerTestService_supportsService( const ::rtl::OUString& ServiceName );
51 ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL ScannerTestService_getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
52 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ScannerTestService_createInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &xContext) throw( ::com::sun::star::uno::Exception );
53 
54 } } /* end namespace writerfilter::ooxml */
55 
56 #define OOXML_SCANNERTESTSERVICE_COMPONENT_ENTRY \
57 {\
58 	writerfilter::ooxmltest::ScannerTestService_createInstance,\
59 	writerfilter::ooxmltest::ScannerTestService_getImplementationName,\
60 	writerfilter::ooxmltest::ScannerTestService_getSupportedServiceNames,\
61    ::cppu::createSingleComponentFactory,\
62    0, 0\
63 }
64 
65 
66 #endif /* INCLUDED_OOXML_SCANNERTESTSERVICE_HXX */
67