merge the formfield patch from ooo-build
[ooovba.git] / chart2 / source / model / inc / ChartTypeManager.hxx
blob22331f79740697b86f8636306cc6a61a67214485
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: ChartTypeManager.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 ************************************************************************/
30 #ifndef CHART_CHARTTYPEMANAGER_HXX
31 #define CHART_CHARTTYPEMANAGER_HXX
33 #include "OPropertySet.hxx"
34 #include "MutexContainer.hxx"
35 #include <cppuhelper/implbase2.hxx>
36 #include <comphelper/uno3.hxx>
37 #include "ServiceMacros.hxx"
38 #include <com/sun/star/uno/XComponentContext.hpp>
39 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
40 // #ifndef _COM_SUN_STAR_LANG_XMULTICOMPONENTFACTORY_HPP_
41 // #include <com/sun/star/lang/XMultiComponentFactory.hpp>
42 // #endif
44 #include <com/sun/star/chart2/XChartTypeManager.hpp>
46 // #include <map>
48 namespace chart
51 class ChartTypeManager :
52 public ::cppu::WeakImplHelper2<
53 ::com::sun::star::lang::XMultiServiceFactory,
54 // ::com::sun::star::lang::XMultiComponentFactory,
55 ::com::sun::star::chart2::XChartTypeManager >
57 public:
58 explicit ChartTypeManager(
59 ::com::sun::star::uno::Reference<
60 ::com::sun::star::uno::XComponentContext > const & xContext );
61 virtual ~ChartTypeManager();
63 APPHELPER_XSERVICEINFO_DECL()
64 /// establish methods for factory instatiation
65 APPHELPER_SERVICE_FACTORY_HELPER( ChartTypeManager )
67 protected:
68 // ____ XMultiServiceFactory ____
69 virtual ::com::sun::star::uno::Reference<
70 ::com::sun::star::uno::XInterface > SAL_CALL createInstance( const ::rtl::OUString& aServiceSpecifier )
71 throw (::com::sun::star::uno::Exception,
72 ::com::sun::star::uno::RuntimeException);
73 virtual ::com::sun::star::uno::Reference<
74 ::com::sun::star::uno::XInterface > SAL_CALL createInstanceWithArguments(
75 const ::rtl::OUString& ServiceSpecifier,
76 const ::com::sun::star::uno::Sequence<
77 ::com::sun::star::uno::Any >& Arguments )
78 throw (::com::sun::star::uno::Exception,
79 ::com::sun::star::uno::RuntimeException);
80 virtual ::com::sun::star::uno::Sequence<
81 ::rtl::OUString > SAL_CALL getAvailableServiceNames()
82 throw (::com::sun::star::uno::RuntimeException);
84 // ____ XChartTypeManager ____
85 // currently empty
87 private:
88 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
89 m_xContext;
92 } // namespace chart
94 // CHART_CHARTTYPEMANAGER_HXX
95 #endif