Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / chart2 / source / controller / main / ShapeController.hxx
blob70fcdecf929742cc597d8c251e43b169514f30c1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_SHAPECONTROLLER_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_SHAPECONTROLLER_HXX
22 #include "FeatureCommandDispatchBase.hxx"
23 #include <tools/link.hxx>
25 class AbstractSvxObjectNameDialog;
26 class SdrObject;
28 namespace chart
31 class ChartController;
33 /** This is a CommandDispatch implementation for shapes.
35 class ShapeController: public FeatureCommandDispatchBase
37 friend class ControllerCommandDispatch;
39 public:
40 ShapeController( const css::uno::Reference< css::uno::XComponentContext >& rxContext, ChartController* pController );
41 virtual ~ShapeController() override;
43 protected:
44 // WeakComponentImplHelperBase
45 virtual void SAL_CALL disposing() override;
47 // XEventListener
48 virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
50 // state of a feature
51 virtual FeatureState getState( const OUString& rCommand ) override;
53 // execute a feature
54 virtual void execute( const OUString& rCommand, const css::uno::Sequence< css::beans::PropertyValue>& rArgs ) override;
56 // all the features which should be handled by this class
57 virtual void describeSupportedFeatures() override;
59 private:
60 DECL_LINK( CheckNameHdl, AbstractSvxObjectNameDialog&, bool);
62 void executeDispatch_FormatLine();
63 void executeDispatch_FormatArea();
64 void executeDispatch_TextAttributes();
65 void executeDispatch_TransformDialog();
66 void executeDispatch_ObjectTitleDescription();
67 void executeDispatch_RenameObject();
68 void executeDispatch_ChangeZOrder( sal_uInt16 nId );
69 void executeDispatch_FontDialog();
70 void executeDispatch_ParagraphDialog();
72 SdrObject* getFirstAdditionalShape();
73 SdrObject* getLastAdditionalShape();
74 bool isBackwardPossible();
75 bool isForwardPossible();
77 ChartController* m_pChartController;
80 } // namespace chart
82 // INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_SHAPECONTROLLER_HXX
83 #endif
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */