summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-05-27 11:25:16 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-05-27 11:29:25 -0400
commit345d6dd9d938a88722fb6d1f1963047a9761412d (patch)
treeccf48ee2ade21af7fe863d9658ca2ded8199b163 /sc/source/ui/dbgui
parent13975eb35917c0152eab9ce05c4e7a9c9657b6a3 (diff)
Actually OK and Cancel is better here than Apply and Close.
Because the same dialog is used when creating a new pivot table, where the Apply and Close semantic feels a bit weird. Also, some features of the dialog were designed with Ok / Cancel in mind (like the destination location). Change-Id: I9ac889bca9f967cb97b34ab45ea563547b58d422
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r--sc/source/ui/dbgui/PivotLayoutDialog.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/sc/source/ui/dbgui/PivotLayoutDialog.cxx b/sc/source/ui/dbgui/PivotLayoutDialog.cxx
index 8c667dd0319b..dd9ca8a1d5b1 100644
--- a/sc/source/ui/dbgui/PivotLayoutDialog.cxx
+++ b/sc/source/ui/dbgui/PivotLayoutDialog.cxx
@@ -93,8 +93,8 @@ ScPivotLayoutDialog::ScPivotLayoutDialog(
get(mpCheckTotalRows, "check-total-rows");
get(mpCheckDrillToDetail, "check-drill-to-details");
- get(mpButtonApply, "apply");
- get(mpButtonClose, "close");
+ get(mpBtnOK, "ok");
+ get(mpBtnCancel, "cancel");
get(mpSourceRadioNamedRange, "source-radio-named-range");
get(mpSourceRadioSelection, "source-radio-selection");
@@ -146,8 +146,8 @@ ScPivotLayoutDialog::ScPivotLayoutDialog(
mpDestinationButton->SetLoseFocusHdl(aLink);
// Buttons
- mpButtonClose->SetClickHdl(LINK(this, ScPivotLayoutDialog, CloseClicked));
- mpButtonApply->SetClickHdl(LINK(this, ScPivotLayoutDialog, ApplyClicked));
+ mpBtnCancel->SetClickHdl(LINK(this, ScPivotLayoutDialog, CancelClicked));
+ mpBtnOK->SetClickHdl(LINK(this, ScPivotLayoutDialog, OKClicked));
// Initialize Data
maPivotTableObject.FillOldParam(maPivotParameters);
@@ -606,13 +606,14 @@ void ScPivotLayoutDialog::PushDataFieldNames(std::vector<ScDPName>& rDataFieldNa
return mpListBoxData->PushDataFieldNames(rDataFieldNames);
}
-IMPL_LINK( ScPivotLayoutDialog, ApplyClicked, PushButton*, /*pButton*/ )
+IMPL_LINK( ScPivotLayoutDialog, OKClicked, PushButton*, /*pButton*/ )
{
ApplyChanges();
+ DoClose( ScPivotLayoutWrapper::GetChildWindowId() );
return 0;
}
-IMPL_LINK( ScPivotLayoutDialog, CloseClicked, PushButton*, /*pButton*/ )
+IMPL_LINK( ScPivotLayoutDialog, CancelClicked, PushButton*, /*pButton*/ )
{
DoClose( ScPivotLayoutWrapper::GetChildWindowId() );
return 0;