Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 : #ifndef CHART_CHARTTYPEMANAGER_HXX
20 : #define CHART_CHARTTYPEMANAGER_HXX
21 :
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>
29 :
30 : #include <com/sun/star/chart2/XChartTypeManager.hpp>
31 :
32 : namespace chart
33 : {
34 :
35 : class ChartTypeManager :
36 : public ::cppu::WeakImplHelper2<
37 : ::com::sun::star::lang::XMultiServiceFactory,
38 : ::com::sun::star::chart2::XChartTypeManager >
39 : {
40 : public:
41 : explicit ChartTypeManager(
42 : ::com::sun::star::uno::Reference<
43 : ::com::sun::star::uno::XComponentContext > const & xContext );
44 : virtual ~ChartTypeManager();
45 :
46 : APPHELPER_XSERVICEINFO_DECL()
47 : /// establish methods for factory instatiation
48 41 : APPHELPER_SERVICE_FACTORY_HELPER( ChartTypeManager )
49 :
50 : protected:
51 : // ____ XMultiServiceFactory ____
52 : virtual ::com::sun::star::uno::Reference<
53 : ::com::sun::star::uno::XInterface > SAL_CALL createInstance( const ::rtl::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 ::rtl::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 : ::rtl::OUString > SAL_CALL getAvailableServiceNames()
65 : throw (::com::sun::star::uno::RuntimeException);
66 :
67 : // ____ XChartTypeManager ____
68 : // currently empty
69 :
70 : private:
71 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
72 : m_xContext;
73 : };
74 :
75 : } // namespace chart
76 :
77 : // CHART_CHARTTYPEMANAGER_HXX
78 : #endif
79 :
80 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|