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 instantiation 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 virtual ::com::sun::star::uno::Reference< 65 ::com::sun::star::uno::XInterface > SAL_CALL createInstanceWithArguments( 66 const ::rtl::OUString& ServiceSpecifier, 67 const ::com::sun::star::uno::Sequence< 68 ::com::sun::star::uno::Any >& Arguments ); 69 virtual ::com::sun::star::uno::Sequence< 70 ::rtl::OUString > SAL_CALL getAvailableServiceNames(); 71 72 // ____ XChartTypeManager ____ 73 // currently empty 74 75 private: 76 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > 77 m_xContext; 78 }; 79 80 } // namespace chart 81 82 // CHART_CHARTTYPEMANAGER_HXX 83 #endif 84