From 1a57e75bba8c10f0a3fcedace57b746e0fdf1967 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 17 Oct 2019 14:16:21 +0100 Subject: weld ScDataProviderDlg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: Caolán McNamara --- include/vcl/weld.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/vcl/weld.hxx') 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 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& 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; -- cgit