LibreOffice Module chart2 (master) 1
Legend.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 "OPropertySet.hxx"
23#include <comphelper/uno3.hxx>
24#include <com/sun/star/chart2/XLegend.hpp>
25#include <com/sun/star/lang/XServiceInfo.hpp>
26#include <com/sun/star/util/XCloneable.hpp>
28#include "charttoolsdllapi.hxx"
29#include "PropertyHelper.hxx"
30
31namespace chart
32{
33
34namespace impl
35{
36typedef ::cppu::WeakImplHelper<
37 css::chart2::XLegend,
38 css::lang::XServiceInfo,
39 css::util::XCloneable,
40 css::util::XModifyBroadcaster,
41 css::util::XModifyListener >
43}
44
46 public impl::Legend_Base,
48{
49public:
50 explicit Legend();
51 virtual ~Legend() override;
52
54 virtual OUString SAL_CALL getImplementationName() override;
55 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
56 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
57
62
63 explicit Legend( const Legend & rOther );
64
65private:
66 // ____ OPropertySet ____
67 virtual void GetDefaultValue( sal_Int32 nHandle, css::uno::Any& rAny ) const override;
68
69 // ____ OPropertySet ____
70 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
71
72public:
73 // ____ XPropertySet ____
74 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
75 getPropertySetInfo() override;
76
77 // ____ XCloneable ____
78 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override;
79
80 // ____ XModifyBroadcaster ____
81 virtual void SAL_CALL addModifyListener(
82 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
83 virtual void SAL_CALL removeModifyListener(
84 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
85
86private:
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 // ____ OPropertySet ____
96 virtual void firePropertyChangeEvent() override;
97 using OPropertySet::disposing;
98
100};
101
103
104} // namespace chart
105
106/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AnyEventRef aEvent
#define OOO_DLLPUBLIC_CHARTTOOLS
rtl::Reference< ModifyEventForwarder > m_xModifyEventForwarder
Definition: Legend.hxx:99
::cppu::WeakImplHelper< css::chart2::XLegend, css::lang::XServiceInfo, css::util::XCloneable, css::util::XModifyBroadcaster, css::util::XModifyListener > Legend_Base
Definition: Legend.hxx:42
std::unordered_map< tPropertyValueMapKey, css::uno::Any > tPropertyValueMap
OOO_DLLPUBLIC_CHARTTOOLSconst ::chart::tPropertyValueMap & StaticLegendDefaults()
Definition: Legend.cxx:112
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
sal_Int32 nHandle
unsigned char sal_Bool
#define DECLARE_XTYPEPROVIDER()
#define DECLARE_XINTERFACE()