diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-11-22 18:05:26 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-05-13 18:44:46 +0200 |
commit | 8f0881dce5e8968930bfa95ce39fa29d7395fdf1 (patch) | |
tree | 92b95c71dffbb5e557beff2123b2d1b5dd9e0c29 /chart2/source/controller/main/ControllerCommandDispatch.hxx | |
parent | dbbe8972b3386b7dbd09ac24ea0f108ad68d815f (diff) |
lok: Chart context menu: Disable menu items which are not available.
Change-Id: Id7487c581759389e66ca513381d6706f3ae49980
Reviewed-on: https://gerrit.libreoffice.org/83605
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'chart2/source/controller/main/ControllerCommandDispatch.hxx')
-rw-r--r-- | chart2/source/controller/main/ControllerCommandDispatch.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/controller/main/ControllerCommandDispatch.hxx b/chart2/source/controller/main/ControllerCommandDispatch.hxx index 4e105f86702c..b2f2a5e3dc51 100644 --- a/chart2/source/controller/main/ControllerCommandDispatch.hxx +++ b/chart2/source/controller/main/ControllerCommandDispatch.hxx @@ -65,6 +65,8 @@ public: // late initialisation, especially for adding as listener virtual void initialize() override; + bool commandAvailable( const OUString & rCommand ); + protected: // ____ XDispatch ____ virtual void SAL_CALL dispatch( @@ -96,7 +98,6 @@ private: const OUString & rURL, const css::uno::Reference< css::frame::XStatusListener > & xSingleListener ); - bool commandAvailable( const OUString & rCommand ); void updateCommandAvailability(); bool isShapeControllerCommandAvailable( const OUString& rCommand ); |