Update ooo320-m1
[ooovba.git] / extensions / source / oooimprovement / corecontroller.hxx
blobde85d8d246a8a2c499732ae3bb03ce5ca8fe15f3
1 /*************************************************************************
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3 *
4 * Copyright 2008 by Sun Microsystems, Inc.
6 * OpenOffice.org - a multi-platform office productivity suite
8 * $RCSfile: corecontroller.hxx,v $
10 * $Revision: 1.1 $
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.
28 ************************************************************************/
30 // MARKER(update_precomp.py): autogen include statement, do not remove
33 #ifndef EXTENSIONS_OOOIMPROVEMENT_CORECONTROLLER_HXX
34 #define EXTENSIONS_OOOIMPROVEMENT_CORECONTROLLER_HXX
36 #include <com/sun/star/lang/XServiceInfo.hpp>
37 #include <com/sun/star/oooimprovement/XCoreController.hpp>
38 #include <com/sun/star/uno/XComponentContext.hpp>
39 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
40 #include <cppuhelper/implbase2.hxx>
43 namespace oooimprovement
45 #ifdef css
46 #error css defined globally
47 #endif
48 #define css ::com::sun::star
49 class CoreController : public ::cppu::WeakImplHelper2<
50 css::oooimprovement::XCoreController,
51 css::lang::XServiceInfo>
53 public:
54 // css::lang::XServiceInfo - static version
55 static ::rtl::OUString SAL_CALL getImplementationName_static();
56 static css::uno::Sequence< ::rtl::OUString> SAL_CALL getSupportedServiceNames_static();
57 //static css::uno::Reference< css::uno::XInterface> SAL_CALL Create(
58 // const css::uno::Reference<css::uno::XComponentContext>& context);
60 static css::uno::Reference< css::uno::XInterface> SAL_CALL Create(
61 const css::uno::Reference< css::lang::XMultiServiceFactory>& sm);
63 protected:
64 CoreController(const css::uno::Reference< css::uno::XComponentContext>& context);
65 CoreController(const css::uno::Reference< css::lang::XMultiServiceFactory>& sm);
66 virtual ~CoreController();
68 // css::oooimprovement::XCoreController
69 virtual sal_Bool SAL_CALL enablingUiEventsLoggerAllowed(sal_Int16 version)
70 throw(css::uno::RuntimeException);
71 virtual sal_Bool SAL_CALL showBuiltinOptionsPage(sal_Int16 version)
72 throw(css::uno::RuntimeException);
74 // css::lang::XServiceInfo
75 virtual ::rtl::OUString SAL_CALL getImplementationName()
76 throw(css::uno::RuntimeException);
77 virtual ::sal_Bool SAL_CALL supportsService(const ::rtl::OUString& service_name)
78 throw(css::uno::RuntimeException);
79 virtual css::uno::Sequence< ::rtl::OUString> SAL_CALL getSupportedServiceNames()
80 throw(css::uno::RuntimeException);
82 private:
83 css::uno::Reference< css::lang::XMultiServiceFactory> m_ServiceFactory;
85 #undef css
87 #endif