nss: upgrade to release 3.73
[LibreOffice.git] / chart2 / source / model / main / Legend.hxx
blob4e1a943277bd16173c06dc9fe37f9445054618b9
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 <OPropertySet.hxx>
22 #include <MutexContainer.hxx>
23 #include <cppuhelper/implbase.hxx>
24 #include <comphelper/uno3.hxx>
25 #include <com/sun/star/chart2/XLegend.hpp>
26 #include <com/sun/star/lang/XServiceInfo.hpp>
27 #include <com/sun/star/util/XCloneable.hpp>
28 #include <com/sun/star/util/XModifyBroadcaster.hpp>
29 #include <com/sun/star/util/XModifyListener.hpp>
31 namespace chart
34 namespace impl
36 typedef ::cppu::WeakImplHelper<
37 css::chart2::XLegend,
38 css::lang::XServiceInfo,
39 css::util::XCloneable,
40 css::util::XModifyBroadcaster,
41 css::util::XModifyListener >
42 Legend_Base;
45 class Legend final :
46 public MutexContainer,
47 public impl::Legend_Base,
48 public ::property::OPropertySet
50 public:
51 explicit Legend();
52 virtual ~Legend() override;
54 /// XServiceInfo declarations
55 virtual OUString SAL_CALL getImplementationName() override;
56 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
57 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
59 /// merge XInterface implementations
60 DECLARE_XINTERFACE()
61 /// merge XTypeProvider implementations
62 DECLARE_XTYPEPROVIDER()
64 private:
65 explicit Legend( const Legend & rOther );
67 // ____ OPropertySet ____
68 virtual css::uno::Any GetDefaultValue( sal_Int32 nHandle ) const override;
70 // ____ OPropertySet ____
71 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
73 // ____ XPropertySet ____
74 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
75 getPropertySetInfo() override;
77 // ____ XCloneable ____
78 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override;
80 // ____ XModifyBroadcaster ____
81 virtual void SAL_CALL addModifyListener(
82 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
83 virtual void SAL_CALL removeModifyListener(
84 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
86 // ____ XModifyListener ____
87 virtual void SAL_CALL modified(
88 const css::lang::EventObject& aEvent ) override;
90 // ____ XEventListener (base of XModifyListener) ____
91 virtual void SAL_CALL disposing(
92 const css::lang::EventObject& Source ) override;
94 // ____ OPropertySet ____
95 virtual void firePropertyChangeEvent() override;
96 using OPropertySet::disposing;
98 css::uno::Reference< css::util::XModifyListener > m_xModifyEventForwarder;
101 } // namespace chart
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */