update dev300-m58
[ooovba.git] / writerfilter / unocomponent / debugservices / rtftok / ScannerTestService.hxx
blobe245382bc481afe6ccbb836390b2da81cda3a805
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ScannerTestService.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 /**
32 Copyright 2005 Sun Microsystems, Inc.
35 #ifndef INCLUDED_RTFTOK_SCANNERTESTSERVICE_HXX
36 #define INCLUDED_RTFTOK_SCANNERTESTSERVICE_HXX
38 #include <cppuhelper/implbase1.hxx>
39 #include <com/sun/star/lang/XMain.hpp>
40 #include <com/sun/star/uno/XComponentContext.hpp>
42 namespace writerfilter { namespace rtftok {
44 class ScannerTestService : public cppu::WeakImplHelper1 < ::com::sun::star::lang::XMain >
46 private:
47 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext;
49 public:
50 ScannerTestService(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &xContext);
52 virtual ::sal_Int32 SAL_CALL run( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aArguments ) throw (::com::sun::star::uno::RuntimeException);
54 public:
55 const static sal_Char SERVICE_NAME[40];
56 const static sal_Char IMPLEMENTATION_NAME[40];
60 ::rtl::OUString ScannerTestService_getImplementationName ();
61 sal_Bool SAL_CALL ScannerTestService_supportsService( const ::rtl::OUString& ServiceName );
62 ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL ScannerTestService_getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException);
63 ::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 );
65 } } /* end namespace writerfilter::rtftok */
67 #define RTFTOK_SCANNERTESTSERVICE_COMPONENT_ENTRY \
69 writerfilter::rtftok::ScannerTestService_createInstance,\
70 writerfilter::rtftok::ScannerTestService_getImplementationName,\
71 writerfilter::rtftok::ScannerTestService_getSupportedServiceNames,\
72 ::cppu::createSingleComponentFactory,\
73 0, 0\
77 #endif /* INCLUDED_RTFTOK_SCANNERTESTSERVICE_HXX */