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 AbstractSvxNameDialog
;
31 class ChartController
;
33 /** This is a CommandDispatch implementation for shapes.
35 class ShapeController
: public FeatureCommandDispatchBase
37 friend class ControllerCommandDispatch
;
40 ShapeController( const ::com::sun::star::uno::Reference
<
41 ::com::sun::star::uno::XComponentContext
>& rxContext
, ChartController
* pController
);
42 virtual ~ShapeController();
44 // late initialisation, especially for adding as listener
45 virtual void initialize() SAL_OVERRIDE
;
48 // WeakComponentImplHelperBase
49 virtual void SAL_CALL
disposing() SAL_OVERRIDE
;
52 virtual void SAL_CALL
disposing( const ::com::sun::star::lang::EventObject
& Source
)
53 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
56 virtual FeatureState
getState( const OUString
& rCommand
) SAL_OVERRIDE
;
59 virtual void execute( const OUString
& rCommand
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& rArgs
) SAL_OVERRIDE
;
61 // all the features which should be handled by this class
62 virtual void describeSupportedFeatures() SAL_OVERRIDE
;
65 DECL_LINK( CheckNameHdl
, AbstractSvxNameDialog
* );
67 void executeDispatch_FormatLine();
68 void executeDispatch_FormatArea();
69 void executeDispatch_TextAttributes();
70 void executeDispatch_TransformDialog();
71 void executeDispatch_ObjectTitleDescription();
72 void executeDispatch_RenameObject();
73 void executeDispatch_ChangeZOrder( sal_uInt16 nId
);
74 void executeDispatch_FontDialog();
75 void executeDispatch_ParagraphDialog();
77 SdrObject
* getFirstAdditionalShape();
78 SdrObject
* getLastAdditionalShape();
79 bool isBackwardPossible();
80 bool isForwardPossible();
82 ChartController
* m_pChartController
;
87 // INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_SHAPECONTROLLER_HXX
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */