Debian Codegraph @

chart2/source/controller/main/ShapeController.hxx

raw
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 "FeatureCommandDispatchBase.hxx"
22 #include <tools/link.hxx>
23
24 class AbstractSvxObjectNameDialog;
25 class SdrObject;
26
27 namespace chart
28 {
29
30 class ChartController;
31
32 /** This is a CommandDispatch implementation for shapes.
33 */
34 class ShapeController: public FeatureCommandDispatchBase
35 {
36 friend class ControllerCommandDispatch;
37
38 public:
39 ShapeController( const css::uno::Reference< css::uno::XComponentContext >& rxContext, ChartController* pController );
40 virtual ~ShapeController() override;
41
42 protected:
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
58 private:
59 DECL_LINK( CheckNameHdl, AbstractSvxObjectNameDialog&, bool);
60
61 void executeDispatch_FormatLine();
62 void executeDispatch_FormatArea();
63 void executeDispatch_TextAttributes();
64 void executeDispatch_TransformDialog();
65 void executeDispatch_ObjectTitleDescription();
66 void executeDispatch_RenameObject();
67 void executeDispatch_ChangeZOrder( ChartCommandID nId );
68 void executeDispatch_FontDialog();
69 void executeDispatch_ParagraphDialog();
70
71 SdrObject* getFirstAdditionalShape();
72 SdrObject* getLastAdditionalShape();
73 bool isBackwardPossible();
74 bool isForwardPossible();
75
76 ChartController* m_pChartController;
77 };
78
79 } // namespace chart
80
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */