LibreOffice Module chart2 (master) 1
StockBar.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <com/sun/star/util/XCloneable.hpp>
22#include <OPropertySet.hxx>
23
25#include <comphelper/uno3.hxx>
27
28namespace chart
29{
30
31namespace impl
32{
33typedef ::cppu::WeakImplHelper<
34 css::util::XCloneable,
35 css::util::XModifyBroadcaster,
36 css::util::XModifyListener >
38}
39
40class StockBar final :
43{
44public:
45 explicit StockBar( bool bRisingCourse );
46 virtual ~StockBar() override;
47
50
51private:
52 explicit StockBar( const StockBar & rOther );
53
54 // ____ XTypeProvider ____
55 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
56
57 // ____ OPropertySet ____
58 virtual void GetDefaultValue( sal_Int32 nHandle, css::uno::Any& rAny ) const override;
59
60 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
61
62 // ____ XPropertySet ____
63 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
64 getPropertySetInfo() override;
65
66 // ____ XCloneable ____
67 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override;
68
69 // ____ XModifyBroadcaster ____
70 virtual void SAL_CALL addModifyListener(
71 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
72 virtual void SAL_CALL removeModifyListener(
73 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
74
75 // ____ XModifyListener ____
76 virtual void SAL_CALL modified(
77 const css::lang::EventObject& aEvent ) override;
78
79 // ____ XEventListener (base of XModifyListener) ____
80 virtual void SAL_CALL disposing(
81 const css::lang::EventObject& Source ) override;
82
83 // ____ OPropertySet ____
84 virtual void firePropertyChangeEvent() override;
85 using OPropertySet::disposing;
86
88};
89
90} // namespace chart
91
92/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AnyEventRef aEvent
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
Definition: StockBar.cxx:109
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
Definition: StockBar.cxx:144
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: StockBar.cxx:131
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
The InfoHelper table contains all property names and types of this object.
Definition: StockBar.cxx:125
virtual ~StockBar() override
Definition: StockBar.cxx:97
rtl::Reference< ModifyEventForwarder > m_xModifyEventForwarder
Definition: StockBar.hxx:87
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
Definition: StockBar.cxx:150
virtual void GetDefaultValue(sal_Int32 nHandle, css::uno::Any &rAny) const override
implement this method to provide default values for all properties supporting defaults.
Definition: StockBar.cxx:115
StockBar(bool bRisingCourse)
Definition: StockBar.cxx:77
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
Definition: StockBar.cxx:139
virtual void firePropertyChangeEvent() override
implement this method in derived classes to get called when properties change.
Definition: StockBar.cxx:162
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: StockBar.cxx:101
void SAL_CALL disposing()
::cppu::WeakImplHelper< css::util::XCloneable, css::util::XModifyBroadcaster, css::util::XModifyListener > StockBar_Base
Definition: StockBar.hxx:37
sal_Int32 nHandle
#define DECLARE_XINTERFACE()