1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef CHART_CHARTTYPEMANAGER_HXX 28 #define CHART_CHARTTYPEMANAGER_HXX 29 30 #include "OPropertySet.hxx" 31 #include "MutexContainer.hxx" 32 #include <cppuhelper/implbase2.hxx> 33 #include <comphelper/uno3.hxx> 34 #include "ServiceMacros.hxx" 35 #include <com/sun/star/uno/XComponentContext.hpp> 36 #include <com/sun/star/lang/XMultiServiceFactory.hpp> 37 // #ifndef _COM_SUN_STAR_LANG_XMULTICOMPONENTFACTORY_HPP_ 38 // #include <com/sun/star/lang/XMultiComponentFactory.hpp> 39 // #endif 40 41 #include <com/sun/star/chart2/XChartTypeManager.hpp> 42 43 // #include <map> 44 45 namespace chart 46 { 47 48 class ChartTypeManager : 49 public ::cppu::WeakImplHelper2< 50 ::com::sun::star::lang::XMultiServiceFactory, 51 // ::com::sun::star::lang::XMultiComponentFactory, 52 ::com::sun::star::chart2::XChartTypeManager > 53 { 54 public: 55 explicit ChartTypeManager( 56 ::com::sun::star::uno::Reference< 57 ::com::sun::star::uno::XComponentContext > const & xContext ); 58 virtual ~ChartTypeManager(); 59 60 APPHELPER_XSERVICEINFO_DECL() 61 /// establish methods for factory instatiation 62 APPHELPER_SERVICE_FACTORY_HELPER( ChartTypeManager ) 63 64 protected: 65 // ____ XMultiServiceFactory ____ 66 virtual ::com::sun::star::uno::Reference< 67 ::com::sun::star::uno::XInterface > SAL_CALL createInstance( const ::rtl::OUString& aServiceSpecifier ) 68 throw (::com::sun::star::uno::Exception, 69 ::com::sun::star::uno::RuntimeException); 70 virtual ::com::sun::star::uno::Reference< 71 ::com::sun::star::uno::XInterface > SAL_CALL createInstanceWithArguments( 72 const ::rtl::OUString& ServiceSpecifier, 73 const ::com::sun::star::uno::Sequence< 74 ::com::sun::star::uno::Any >& Arguments ) 75 throw (::com::sun::star::uno::Exception, 76 ::com::sun::star::uno::RuntimeException); 77 virtual ::com::sun::star::uno::Sequence< 78 ::rtl::OUString > SAL_CALL getAvailableServiceNames() 79 throw (::com::sun::star::uno::RuntimeException); 80 81 // ____ XChartTypeManager ____ 82 // currently empty 83 84 private: 85 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > 86 m_xContext; 87 }; 88 89 } // namespace chart 90 91 // CHART_CHARTTYPEMANAGER_HXX 92 #endif 93