1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
37 typedef ::cppu::WeakImplHelper3
<
38 ::com::sun::star::util::XCloneable
,
39 ::com::sun::star::util::XModifyBroadcaster
,
40 ::com::sun::star::util::XModifyListener
>
45 public MutexContainer
,
46 public impl::StockBar_Base
,
47 public ::property::OPropertySet
50 explicit StockBar( bool bRisingCourse
);
54 /// XServiceInfo declarations
55 APPHELPER_XSERVICEINFO_DECL()
57 /// merge XInterface implementations
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
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();
104 const bool m_bRisingCourse
;
105 ::com::sun::star::uno::Reference
< ::com::sun::star::util::XModifyListener
> m_xModifyEventForwarder
;
110 // CHART_STOCKBAR_HXX
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */