Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / chart2 / source / model / inc / StockBar.hxx
blobb1247e584a632e7a6811eba44008e981f9171464
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 INCLUDED_CHART2_SOURCE_MODEL_INC_STOCKBAR_HXX
20 #define INCLUDED_CHART2_SOURCE_MODEL_INC_STOCKBAR_HXX
22 #include <com/sun/star/util/XCloneable.hpp>
23 #include <com/sun/star/util/XModifyBroadcaster.hpp>
24 #include <com/sun/star/util/XModifyListener.hpp>
25 #include <MutexContainer.hxx>
26 #include <OPropertySet.hxx>
28 #include <cppuhelper/implbase.hxx>
29 #include <comphelper/uno3.hxx>
31 namespace chart
34 namespace impl
36 typedef ::cppu::WeakImplHelper<
37 css::util::XCloneable,
38 css::util::XModifyBroadcaster,
39 css::util::XModifyListener >
40 StockBar_Base;
43 class StockBar final :
44 public MutexContainer,
45 public impl::StockBar_Base,
46 public ::property::OPropertySet
48 public:
49 explicit StockBar( bool bRisingCourse );
50 virtual ~StockBar() override;
52 /// merge XInterface implementations
53 DECLARE_XINTERFACE()
55 private:
56 explicit StockBar( const StockBar & rOther );
58 // ____ OPropertySet ____
59 virtual css::uno::Any GetDefaultValue( sal_Int32 nHandle ) const override;
61 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
63 // ____ XPropertySet ____
64 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
65 getPropertySetInfo() override;
67 // ____ XCloneable ____
68 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override;
70 // ____ XModifyBroadcaster ____
71 virtual void SAL_CALL addModifyListener(
72 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
73 virtual void SAL_CALL removeModifyListener(
74 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
76 // ____ XModifyListener ____
77 virtual void SAL_CALL modified(
78 const css::lang::EventObject& aEvent ) override;
80 // ____ XEventListener (base of XModifyListener) ____
81 virtual void SAL_CALL disposing(
82 const css::lang::EventObject& Source ) override;
84 // ____ OPropertySet ____
85 virtual void firePropertyChangeEvent() override;
86 using OPropertySet::disposing;
88 css::uno::Reference< css::util::XModifyListener > m_xModifyEventForwarder;
91 } // namespace chart
93 // INCLUDED_CHART2_SOURCE_MODEL_INC_STOCKBAR_HXX
94 #endif
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */