[Libreoffice-commits] core.git: cui/source
Rishabh Kumar
kris.kr296 at gmail.com
Mon Aug 1 09:27:42 UTC 2016
cui/source/dialogs/dlgname.cxx | 13 +++++++++++++
cui/source/inc/dlgname.hxx | 1 +
2 files changed, 14 insertions(+)
New commits:
commit 55859becb87816aac0170f0f22d5d748fc022612
Author: Rishabh Kumar <kris.kr296 at gmail.com>
Date: Sat Jul 30 15:13:02 2016 +0530
[GSoC] Add functionality to disable buttons in SvxMessDialog
Change-Id: Ib25b65a6d1fd760d2a8535c1a97cfbb889d7a824
Reviewed-on: https://gerrit.libreoffice.org/27715
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/cui/source/dialogs/dlgname.cxx b/cui/source/dialogs/dlgname.cxx
index 6772f44..71bd359 100644
--- a/cui/source/dialogs/dlgname.cxx
+++ b/cui/source/dialogs/dlgname.cxx
@@ -202,6 +202,19 @@ IMPL_LINK_NOARG_TYPED(SvxMessDialog, Button2Hdl, Button*, void)
/*************************************************************************/
+void SvxMessDialog::DisableButton( SvxMessDialogButton nBtnId )
+{
+ switch( nBtnId )
+ {
+ case SvxMessDialogButton::N1:
+ pBtn1->Disable();
+ break;
+ case SvxMessDialogButton::N2:
+ pBtn2->Disable();
+ break;
+ }
+}
+
void SvxMessDialog::SetButtonText( SvxMessDialogButton nBtnId, const OUString& rNewTxt )
{
switch ( nBtnId )
diff --git a/cui/source/inc/dlgname.hxx b/cui/source/inc/dlgname.hxx
index ac183a8..4b28ed5 100644
--- a/cui/source/inc/dlgname.hxx
+++ b/cui/source/inc/dlgname.hxx
@@ -145,6 +145,7 @@ public:
SvxMessDialog( vcl::Window* pWindow, const OUString& rText, const OUString& rDesc, Image* pImg = nullptr );
virtual ~SvxMessDialog();
virtual void dispose() override;
+ void DisableButton( SvxMessDialogButton nBtnId);
void SetButtonText( SvxMessDialogButton nBtnId, const OUString& rNewTxt );
};
More information about the Libreoffice-commits
mailing list