bump product version to 4.1.6.2
[LibreOffice.git] / chart2 / source / model / inc / ChartTypeManager.hxx
blob63fc3a7643d02f9eca091438b6b6291687d5cb74
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef CHART_CHARTTYPEMANAGER_HXX
20 #define CHART_CHARTTYPEMANAGER_HXX
22 #include "OPropertySet.hxx"
23 #include "MutexContainer.hxx"
24 #include <cppuhelper/implbase2.hxx>
25 #include <comphelper/uno3.hxx>
26 #include "ServiceMacros.hxx"
27 #include <com/sun/star/uno/XComponentContext.hpp>
28 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
30 #include <com/sun/star/chart2/XChartTypeManager.hpp>
32 namespace chart
35 class ChartTypeManager :
36 public ::cppu::WeakImplHelper2<
37 ::com::sun::star::lang::XMultiServiceFactory,
38 ::com::sun::star::chart2::XChartTypeManager >
40 public:
41 explicit ChartTypeManager(
42 ::com::sun::star::uno::Reference<
43 ::com::sun::star::uno::XComponentContext > const & xContext );
44 virtual ~ChartTypeManager();
46 APPHELPER_XSERVICEINFO_DECL()
47 /// establish methods for factory instatiation
48 APPHELPER_SERVICE_FACTORY_HELPER( ChartTypeManager )
50 protected:
51 // ____ XMultiServiceFactory ____
52 virtual ::com::sun::star::uno::Reference<
53 ::com::sun::star::uno::XInterface > SAL_CALL createInstance( const OUString& aServiceSpecifier )
54 throw (::com::sun::star::uno::Exception,
55 ::com::sun::star::uno::RuntimeException);
56 virtual ::com::sun::star::uno::Reference<
57 ::com::sun::star::uno::XInterface > SAL_CALL createInstanceWithArguments(
58 const OUString& ServiceSpecifier,
59 const ::com::sun::star::uno::Sequence<
60 ::com::sun::star::uno::Any >& Arguments )
61 throw (::com::sun::star::uno::Exception,
62 ::com::sun::star::uno::RuntimeException);
63 virtual ::com::sun::star::uno::Sequence<
64 OUString > SAL_CALL getAvailableServiceNames()
65 throw (::com::sun::star::uno::RuntimeException);
67 // ____ XChartTypeManager ____
68 // currently empty
70 private:
71 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
72 m_xContext;
75 } // namespace chart
77 // CHART_CHARTTYPEMANAGER_HXX
78 #endif
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */