diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-11-22 18:05:26 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-11-24 13:52:32 +0100 |
commit | 4582222a3ade99584514a86dbaddf0c80f7e7196 (patch) | |
tree | 26943eeba065365822b989a9d985303724af546e /chart2/source/controller/main/ControllerCommandDispatch.hxx | |
parent | lok: Chart context menu: Replace tunneled context menu with JS context menu. (diff) | |
download | core-4582222a3ade99584514a86dbaddf0c80f7e7196.tar.gz core-4582222a3ade99584514a86dbaddf0c80f7e7196.zip |
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 ); |