1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
;
31 class ChartController
;
33 /** This is a CommandDispatch implementation for shapes.
35 class ShapeController
: public FeatureCommandDispatchBase
37 friend class ControllerCommandDispatch
;
40 ShapeController( const css::uno::Reference
< css::uno::XComponentContext
>& rxContext
, ChartController
* pController
);
41 virtual ~ShapeController() override
;
44 // WeakComponentImplHelperBase
45 virtual void SAL_CALL
disposing() override
;
48 virtual void SAL_CALL
disposing( const css::lang::EventObject
& Source
) override
;
51 virtual FeatureState
getState( const OUString
& rCommand
) override
;
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
;
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
;
82 // INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_SHAPECONTROLLER_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */