fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / model / inc / StockBar.hxx
blobc01b96dfc9d7e95f4d869c648a62f92bbf6a6caf
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/implbase3.hxx>
29 #include <comphelper/uno3.hxx>
31 namespace chart
34 namespace impl
36 typedef ::cppu::WeakImplHelper3<
37 ::com::sun::star::util::XCloneable,
38 ::com::sun::star::util::XModifyBroadcaster,
39 ::com::sun::star::util::XModifyListener >
40 StockBar_Base;
43 class StockBar :
44 public MutexContainer,
45 public impl::StockBar_Base,
46 public ::property::OPropertySet
48 public:
49 explicit StockBar( bool bRisingCourse );
50 virtual ~StockBar();
52 /// merge XInterface implementations
53 DECLARE_XINTERFACE()
55 protected:
56 explicit StockBar( const StockBar & rOther );
58 // ____ OPropertySet ____
59 virtual ::com::sun::star::uno::Any GetDefaultValue( sal_Int32 nHandle ) const
60 throw(::com::sun::star::beans::UnknownPropertyException) SAL_OVERRIDE;
62 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() SAL_OVERRIDE;
64 // ____ XPropertySet ____
65 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL
66 getPropertySetInfo()
67 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
69 // ____ XCloneable ____
70 virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
71 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
73 // ____ XModifyBroadcaster ____
74 virtual void SAL_CALL addModifyListener(
75 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
76 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
77 virtual void SAL_CALL removeModifyListener(
78 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
79 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
81 // ____ XModifyListener ____
82 virtual void SAL_CALL modified(
83 const ::com::sun::star::lang::EventObject& aEvent )
84 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
86 // ____ XEventListener (base of XModifyListener) ____
87 virtual void SAL_CALL disposing(
88 const ::com::sun::star::lang::EventObject& Source )
89 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
91 // ____ OPropertySet ____
92 virtual void firePropertyChangeEvent() SAL_OVERRIDE;
93 using OPropertySet::disposing;
95 void fireModifyEvent();
97 private:
98 const bool m_bRisingCourse;
99 ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener > m_xModifyEventForwarder;
102 } // namespace chart
104 // INCLUDED_CHART2_SOURCE_MODEL_INC_STOCKBAR_HXX
105 #endif
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */