LibreOffice Module chart2 (master) 1
RegressionEquation.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/lang/XServiceInfo.hpp>
22#include <com/sun/star/util/XCloneable.hpp>
23#include <com/sun/star/chart2/XTitle.hpp>
24
25#include <OPropertySet.hxx>
26
28#include <comphelper/uno3.hxx>
30
31namespace chart
32{
33
34namespace impl
35{
36typedef ::cppu::WeakImplHelper<
37 css::lang::XServiceInfo,
38 css::util::XCloneable,
39 css::util::XModifyBroadcaster,
40 css::util::XModifyListener,
41 css::chart2::XTitle >
43}
44
45class RegressionEquation final :
48{
49public:
50 explicit RegressionEquation();
51 virtual ~RegressionEquation() override;
52
53 virtual OUString SAL_CALL
55 override;
56 virtual sal_Bool SAL_CALL
57 supportsService( const OUString& ServiceName )
58 override;
59 virtual css::uno::Sequence< OUString > SAL_CALL
61 override;
62
65
66private:
67 explicit RegressionEquation( const RegressionEquation & rOther );
68
69 // ____ OPropertySet ____
70 virtual void GetDefaultValue( sal_Int32 nHandle, css::uno::Any& rAny ) const override;
71
72 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
73
74 // ____ XPropertySet ____
75 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
76 getPropertySetInfo() override;
77
78 // ____ XCloneable ____
79 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override;
80
81 // ____ XModifyBroadcaster ____
82 virtual void SAL_CALL addModifyListener(
83 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
84 virtual void SAL_CALL removeModifyListener(
85 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
86
87 // ____ XModifyListener ____
88 virtual void SAL_CALL modified(
89 const css::lang::EventObject& aEvent ) override;
90
91 // ____ XEventListener (base of XModifyListener) ____
92 virtual void SAL_CALL disposing(
93 const css::lang::EventObject& Source ) override;
94
95 // ____ XTitle ____
96 virtual css::uno::Sequence<
97 css::uno::Reference< css::chart2::XFormattedString > > SAL_CALL getText() override;
98 virtual void SAL_CALL setText( const css::uno::Sequence<
99 css::uno::Reference<
100 css::chart2::XFormattedString > >& Strings ) override;
101
102 using ::cppu::OPropertySetHelper::disposing;
103
104 // ____ OPropertySet ____
105 virtual void firePropertyChangeEvent() override;
106
107 void fireModifyEvent();
108
109 css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > > m_aStrings;
110
112};
113
114} // namespace chart
115
116/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AnyEventRef aEvent
virtual void firePropertyChangeEvent() override
implement this method in derived classes to get called when properties change.
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > > m_aStrings
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
The InfoHelper table contains all property names and types of this object.
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void GetDefaultValue(sal_Int32 nHandle, css::uno::Any &rAny) const override
implement this method to provide default values for all properties supporting defaults.
virtual void SAL_CALL setText(const css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > > &Strings) override
virtual ~RegressionEquation() override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > > SAL_CALL getText() override
rtl::Reference< ModifyEventForwarder > m_xModifyEventForwarder
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
void SAL_CALL disposing()
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::util::XCloneable, css::util::XModifyBroadcaster, css::util::XModifyListener, css::chart2::XTitle > RegressionEquation_Base
sal_Int32 nHandle
unsigned char sal_Bool
#define DECLARE_XINTERFACE()