diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2015-11-11 12:16:30 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2015-11-12 11:46:14 +0100 |
commit | b34eab5996c52269360d166815ef15a250627c48 (patch) | |
tree | 32e24a60fe6503fc8faa1652762278650dfc919f /include/vcl | |
parent | ca36bcc05d7159fd4cd8e3489fdf4b4551b696d6 (diff) |
Vcl: Set PushButtons pressed if the uno slot is active
Change-Id: I89708d13da2b3882aa0b7578b5acf48b6408010b
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/button.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx index cfd32e013b46..93d5b99e8b03 100644 --- a/include/vcl/button.hxx +++ b/include/vcl/button.hxx @@ -31,6 +31,8 @@ #include <vcl/vclptr.hxx> #include <vector> +#include <com/sun/star/frame/FeatureStateEvent.hpp> + class UserDrawEvent; class ImplCommonButtonData; enum class DrawButtonFlags; @@ -91,6 +93,9 @@ public: void SetSmallSymbol(bool bSmall = true); virtual bool set_property(const OString &rKey, const OString &rValue) override; + /// Sets the button state according to the FeatureStateEvent emitted by an Uno state change. + virtual void SetStateUno(const css::frame::FeatureStateEvent& rEvent); + protected: /// Handler for click, in case we want the button to handle uno commands (.uno:Something). @@ -182,6 +187,7 @@ public: void SetState( TriState eState ); TriState GetState() const { return meState; } + virtual void SetStateUno(const css::frame::FeatureStateEvent& rEvent) override; void Check( bool bCheck = true ); bool IsChecked() const; |