bump product version to 4.1.6.2
[LibreOffice.git] / chart2 / source / model / inc / StockBar.hxx
blob581053df93b06d2985cc21188e86cc4a32090cd3
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_STOCKBAR_HXX
20 #define CHART_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 "ServiceMacros.hxx"
29 #include <cppuhelper/implbase3.hxx>
30 #include <comphelper/uno3.hxx>
32 namespace chart
35 namespace impl
37 typedef ::cppu::WeakImplHelper3<
38 ::com::sun::star::util::XCloneable,
39 ::com::sun::star::util::XModifyBroadcaster,
40 ::com::sun::star::util::XModifyListener >
41 StockBar_Base;
44 class StockBar :
45 public MutexContainer,
46 public impl::StockBar_Base,
47 public ::property::OPropertySet
49 public:
50 explicit StockBar( bool bRisingCourse );
51 virtual ~StockBar();
54 /// XServiceInfo declarations
55 APPHELPER_XSERVICEINFO_DECL()
57 /// merge XInterface implementations
58 DECLARE_XINTERFACE()
60 protected:
61 explicit StockBar( const StockBar & rOther );
63 // ____ OPropertySet ____
64 virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const
65 throw(::com::sun::star::beans::UnknownPropertyException);
67 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
69 // ____ XPropertySet ____
70 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
71 getPropertySetInfo()
72 throw (::com::sun::star::uno::RuntimeException);
75 // ____ XCloneable ____
76 virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
77 throw (::com::sun::star::uno::RuntimeException);
79 // ____ XModifyBroadcaster ____
80 virtual void SAL_CALL addModifyListener(
81 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
82 throw (::com::sun::star::uno::RuntimeException);
83 virtual void SAL_CALL removeModifyListener(
84 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
85 throw (::com::sun::star::uno::RuntimeException);
87 // ____ XModifyListener ____
88 virtual void SAL_CALL modified(
89 const ::com::sun::star::lang::EventObject& aEvent )
90 throw (::com::sun::star::uno::RuntimeException);
92 // ____ XEventListener (base of XModifyListener) ____
93 virtual void SAL_CALL disposing(
94 const ::com::sun::star::lang::EventObject& Source )
95 throw (::com::sun::star::uno::RuntimeException);
97 // ____ OPropertySet ____
98 virtual void firePropertyChangeEvent();
99 using OPropertySet::disposing;
101 void fireModifyEvent();
103 private:
104 const bool m_bRisingCourse;
105 ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener > m_xModifyEventForwarder;
108 } // namespace chart
110 // CHART_STOCKBAR_HXX
111 #endif
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */