nss: upgrade to release 3.73
[LibreOffice.git] / chart2 / source / model / inc / ChartTypeManager.hxx
blobf3918a8679e9138e36ae5ffa898ee0c2a5ecbbee
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 #pragma once
21 #include <cppuhelper/implbase.hxx>
22 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
23 #include <com/sun/star/lang/XServiceInfo.hpp>
24 #include <com/sun/star/chart2/XChartTypeManager.hpp>
26 namespace com::sun::star::uno { class XComponentContext; }
28 namespace chart
31 class ChartTypeManager :
32 public ::cppu::WeakImplHelper<
33 css::lang::XServiceInfo,
34 css::lang::XMultiServiceFactory,
35 css::chart2::XChartTypeManager >
37 public:
38 explicit ChartTypeManager(
39 css::uno::Reference< css::uno::XComponentContext > const & xContext );
40 virtual ~ChartTypeManager() override;
42 virtual OUString SAL_CALL
43 getImplementationName()
44 override;
45 virtual sal_Bool SAL_CALL
46 supportsService( const OUString& ServiceName )
47 override;
48 virtual css::uno::Sequence< OUString > SAL_CALL
49 getSupportedServiceNames()
50 override;
52 protected:
53 // ____ XMultiServiceFactory ____
54 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( const OUString& aServiceSpecifier ) override;
55 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments(
56 const OUString& ServiceSpecifier,
57 const css::uno::Sequence< css::uno::Any >& Arguments ) override;
58 virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override;
60 // ____ XChartTypeManager ____
61 // currently empty
63 private:
64 css::uno::Reference< css::uno::XComponentContext >
65 m_xContext;
68 } // namespace chart
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */