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 #ifndef CHART_CHARTTYPEMANAGER_HXX
24 #define CHART_CHARTTYPEMANAGER_HXX
25 
26 #include "OPropertySet.hxx"
27 #include "MutexContainer.hxx"
28 #include <cppuhelper/implbase2.hxx>
29 #include <comphelper/uno3.hxx>
30 #include "ServiceMacros.hxx"
31 #include <com/sun/star/uno/XComponentContext.hpp>
32 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
33 // #ifndef _COM_SUN_STAR_LANG_XMULTICOMPONENTFACTORY_HPP_
34 // #include <com/sun/star/lang/XMultiComponentFactory.hpp>
35 // #endif
36 
37 #include <com/sun/star/chart2/XChartTypeManager.hpp>
38 
39 // #include <map>
40 
41 namespace chart
42 {
43 
44 class ChartTypeManager :
45         public ::cppu::WeakImplHelper2<
46         ::com::sun::star::lang::XMultiServiceFactory,
47 //     ::com::sun::star::lang::XMultiComponentFactory,
48         ::com::sun::star::chart2::XChartTypeManager >
49 {
50 public:
51 	explicit ChartTypeManager(
52         ::com::sun::star::uno::Reference<
53             ::com::sun::star::uno::XComponentContext > const & xContext );
54 	virtual ~ChartTypeManager();
55 
56     APPHELPER_XSERVICEINFO_DECL()
57     /// establish methods for factory instatiation
58 	APPHELPER_SERVICE_FACTORY_HELPER( ChartTypeManager )
59 
60 protected:
61     // ____ XMultiServiceFactory ____
62     virtual ::com::sun::star::uno::Reference<
63             ::com::sun::star::uno::XInterface > SAL_CALL createInstance( const ::rtl::OUString& aServiceSpecifier )
64         throw (::com::sun::star::uno::Exception,
65                ::com::sun::star::uno::RuntimeException);
66     virtual ::com::sun::star::uno::Reference<
67         ::com::sun::star::uno::XInterface > SAL_CALL createInstanceWithArguments(
68             const ::rtl::OUString& ServiceSpecifier,
69             const ::com::sun::star::uno::Sequence<
70             ::com::sun::star::uno::Any >& Arguments )
71         throw (::com::sun::star::uno::Exception,
72                ::com::sun::star::uno::RuntimeException);
73     virtual ::com::sun::star::uno::Sequence<
74         ::rtl::OUString > SAL_CALL getAvailableServiceNames()
75         throw (::com::sun::star::uno::RuntimeException);
76 
77     // ____ XChartTypeManager ____
78     // currently empty
79 
80 private:
81     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
82         m_xContext;
83 };
84 
85 } //  namespace chart
86 
87 // CHART_CHARTTYPEMANAGER_HXX
88 #endif
89