summaryrefslogtreecommitdiff
path: root/include/vcl/weld.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-17 14:16:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-10-19 17:31:57 +0200
commit1a57e75bba8c10f0a3fcedace57b746e0fdf1967 (patch)
tree8649e419c3fd93ce43f0a2c0a489774645699493 /include/vcl/weld.hxx
parent6f7cd8f4238060249de11c4ec7d167c439f7a781 (diff)
weld ScDataProviderDlg
drop changing the button colors, every other button is content not to change its color. fix up some crashes while I'm here. Change-Id: Icec54106441810a5152e7dab3ac7d5a55551ab07 Reviewed-on: https://gerrit.libreoffice.org/80994 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/weld.hxx')
-rw-r--r--include/vcl/weld.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index c85b86d7a8c7..043803435d43 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -1788,8 +1788,16 @@ public:
class VCL_DLLPUBLIC Menu
{
+protected:
+ Link<const OString&, void> m_aActivateHdl;
+
+ void signal_activate(const OString& rIdent) { m_aActivateHdl.Call(rIdent); }
+
public:
virtual OString popup_at_rect(weld::Widget* pParent, const tools::Rectangle& rRect) = 0;
+
+ void connect_activate(const Link<const OString&, void>& rLink) { m_aActivateHdl = rLink; }
+
virtual void set_sensitive(const OString& rIdent, bool bSensitive) = 0;
virtual void set_label(const OString& rIdent, const OUString& rLabel) = 0;
virtual void set_active(const OString& rIdent, bool bActive) = 0;