summaryrefslogtreecommitdiff
path: root/sc/source/ui/optdlg/calcoptionsdlg.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-11-27 11:16:31 +0200
committerTor Lillqvist <tml@collabora.com>2014-11-27 11:38:57 +0200
commit28c7d76587fe3fce1d7544654f58a3028dc1d2fe (patch)
tree46af45ed67ea66911d8a73f04d411e1aa3833b32 /sc/source/ui/optdlg/calcoptionsdlg.cxx
parentdd1e40b8fd95a8d0aea531236b4e7fbad1f8b94d (diff)
Add the "Test" button back
This functionality is Calc-specific and will stay in the Calc part of the options. Let's not give the false impression that it would be going away. (How it looks and works now is not final.) Change-Id: Ic2f783a6fd07de89eec7d7e685364dad71243b4b
Diffstat (limited to 'sc/source/ui/optdlg/calcoptionsdlg.cxx')
-rw-r--r--sc/source/ui/optdlg/calcoptionsdlg.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx b/sc/source/ui/optdlg/calcoptionsdlg.cxx
index 4dc5c4f556f0..e056980aafdd 100644
--- a/sc/source/ui/optdlg/calcoptionsdlg.cxx
+++ b/sc/source/ui/optdlg/calcoptionsdlg.cxx
@@ -153,6 +153,7 @@ ScCalcOptionsDialog::ScCalcOptionsDialog(vcl::Window* pParent, const ScCalcConfi
get(mpBtnFalse, "false");
get(mpSpinButton, "spinbutton");
get(mpEditField, "entry");
+ get(mpTestButton, "test");
get(mpOpenclInfoList, "opencl_list");
get(mpBtnAutomaticSelectionTrue, "automatic_select_true");
get(mpBtnAutomaticSelectionFalse, "automatic_select_false");
@@ -204,6 +205,8 @@ ScCalcOptionsDialog::ScCalcOptionsDialog(vcl::Window* pParent, const ScCalcConfi
mpLbSettings->SetSelectHdl(aLink);
mpLbOptionEdit->SetSelectHdl(aLink);
+ mpTestButton->SetClickHdl(LINK(this, ScCalcOptionsDialog, TestClickHdl));
+
aLink = LINK(this, ScCalcOptionsDialog, BtnToggleHdl);
mpBtnTrue->SetToggleHdl(aLink); // Set handler only to the 'True' button.
@@ -729,8 +732,6 @@ IMPL_LINK(ScCalcOptionsDialog, EditModifiedHdl, Control*, pCtrl)
return 0;
}
-#if 0
-
namespace {
struct Area
@@ -1163,6 +1164,4 @@ IMPL_LINK( ScCalcOptionsDialog, TestClickHdl, PushButton*, )
return 0;
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */