LibreOffice Module chart2 (master) 1
ShapeController.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
22#include <tools/link.hxx>
23
25class SdrObject;
26
27namespace chart
28{
29
30class ChartController;
31
35{
37
38public:
39 ShapeController( const css::uno::Reference< css::uno::XComponentContext >& rxContext, ChartController* pController );
40 virtual ~ShapeController() override;
41
42protected:
43 // WeakComponentImplHelperBase
44 virtual void disposing(std::unique_lock<std::mutex>& rGuard) override;
45
46 // XEventListener
47 virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
48
49 // state of a feature
50 virtual FeatureState getState( const OUString& rCommand ) override;
51
52 // execute a feature
53 virtual void execute( const OUString& rCommand, const css::uno::Sequence< css::beans::PropertyValue>& rArgs ) override;
54
55 // all the features which should be handled by this class
56 virtual void describeSupportedFeatures() override;
57
58private:
59 DECL_LINK( CheckNameHdl, AbstractSvxObjectNameDialog&, bool);
60
70
73 bool isBackwardPossible();
74 bool isForwardPossible();
75
77};
78
79} // namespace chart
80
81/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class is a CommandDispatch that is responsible for all commands that the ChartController support...
This is a base class for CommandDispatch implementations with feature support.
This is a CommandDispatch implementation for shapes.
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
virtual ~ShapeController() override
void executeDispatch_ChangeZOrder(ChartCommandID nId)
SdrObject * getFirstAdditionalShape()
ShapeController(const css::uno::Reference< css::uno::XComponentContext > &rxContext, ChartController *pController)
virtual void execute(const OUString &rCommand, const css::uno::Sequence< css::beans::PropertyValue > &rArgs) override
ChartController * m_pChartController
DECL_LINK(CheckNameHdl, AbstractSvxObjectNameDialog &, bool)
virtual void disposing(std::unique_lock< std::mutex > &rGuard) override
is called when this is disposed
virtual FeatureState getState(const OUString &rCommand) override
void executeDispatch_ObjectTitleDescription()
virtual void describeSupportedFeatures() override
SdrObject * getLastAdditionalShape()