LibreOffice Module chart2 (master) 1
ChartSidebarSelectionListener.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
10#pragma once
11
12#include <com/sun/star/view/XSelectionChangeListener.hpp>
14
15#include <ObjectIdentifier.hxx>
16
17#include <vector>
18
19namespace chart::sidebar
20{
22{
23public:
25
26 virtual void selectionChanged(bool bSelected) = 0;
27};
28
30 : public cppu::WeakImplHelper<css::view::XSelectionChangeListener>
31{
32public:
33 // listen to all chart selection changes
35 // only listen to the changes of eType
37 virtual ~ChartSidebarSelectionListener() override;
38
39 virtual void SAL_CALL selectionChanged(const css::lang::EventObject& rEvent) override;
40
41 virtual void SAL_CALL disposing(const css::lang::EventObject& rEvent) override;
42
43 void setAcceptedTypes(std::vector<ObjectType>&& aTypes);
44
45private:
47
48 std::vector<ObjectType> maTypes;
49};
50}
51
52/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void selectionChanged(bool bSelected)=0
virtual void SAL_CALL selectionChanged(const css::lang::EventObject &rEvent) override
ChartSidebarSelectionListener(ChartSidebarSelectionListenerParent *pParent)
virtual void SAL_CALL disposing(const css::lang::EventObject &rEvent) override
void setAcceptedTypes(std::vector< ObjectType > &&aTypes)
DocumentType eType
const SvXMLTokenMapEntry aTypes[]