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_RTFTOK_XMLSCANNER_HXX
25 #define INCLUDED_RTFTOK_XMLSCANNER_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 rtftok {
32 
33 class XMLScanner : 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 	XMLScanner(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 XMLScanner_getImplementationName ();
50 sal_Bool SAL_CALL XMLScanner_supportsService( const ::rtl::OUString& ServiceName );
51 ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL XMLScanner_getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
52 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL XMLScanner_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 RTFTOK_XMLSCANNER_COMPONENT_ENTRY \
57 {\
58    writerfilter::rtftok::XMLScanner_createInstance,\
59    writerfilter::rtftok::XMLScanner_getImplementationName,\
60    writerfilter::rtftok::XMLScanner_getSupportedServiceNames,\
61    ::cppu::createSingleComponentFactory,\
62    0, 0\
63 }
64 
65 
66 #endif /* INCLUDED_RTFTOK_SCANNERTESTSERVICE_HXX */
67