diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-05-21 21:32:59 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-05-21 21:35:51 -0400 |
commit | 251507d0974418ebefce302e45dbb291c87e56da (patch) | |
tree | 9ff77c6eacb6c9ad5a4e1fb9ffbf3347cda820b9 | |
parent | 2c61edfdf57dabbd86ecc440444b6b00443f916a (diff) |
Keep only "Apply" and "Close".
Change-Id: I963419baec24d7599ddb3e481738cbe6ec4e0a69
-rw-r--r-- | sc/source/ui/dbgui/PivotLayoutDialog.cxx | 9 | ||||
-rw-r--r-- | sc/source/ui/inc/PivotLayoutDialog.hxx | 2 | ||||
-rw-r--r-- | sc/uiconfig/scalc/ui/pivottablelayoutdialog.ui | 16 |
3 files changed, 0 insertions, 27 deletions
diff --git a/sc/source/ui/dbgui/PivotLayoutDialog.cxx b/sc/source/ui/dbgui/PivotLayoutDialog.cxx index 4b74fca65e82..8c667dd0319b 100644 --- a/sc/source/ui/dbgui/PivotLayoutDialog.cxx +++ b/sc/source/ui/dbgui/PivotLayoutDialog.cxx @@ -93,7 +93,6 @@ ScPivotLayoutDialog::ScPivotLayoutDialog( get(mpCheckTotalRows, "check-total-rows"); get(mpCheckDrillToDetail, "check-drill-to-details"); - get(mpButtonOk, "ok"); get(mpButtonApply, "apply"); get(mpButtonClose, "close"); @@ -147,7 +146,6 @@ ScPivotLayoutDialog::ScPivotLayoutDialog( mpDestinationButton->SetLoseFocusHdl(aLink); // Buttons - mpButtonOk->SetClickHdl( LINK(this, ScPivotLayoutDialog, OkClicked)); mpButtonClose->SetClickHdl(LINK(this, ScPivotLayoutDialog, CloseClicked)); mpButtonApply->SetClickHdl(LINK(this, ScPivotLayoutDialog, ApplyClicked)); @@ -608,13 +606,6 @@ void ScPivotLayoutDialog::PushDataFieldNames(std::vector<ScDPName>& rDataFieldNa return mpListBoxData->PushDataFieldNames(rDataFieldNames); } -IMPL_LINK( ScPivotLayoutDialog, OkClicked, PushButton*, /*pButton*/ ) -{ - if (ApplyChanges()) - CloseClicked(NULL); - return 0; -} - IMPL_LINK( ScPivotLayoutDialog, ApplyClicked, PushButton*, /*pButton*/ ) { ApplyChanges(); diff --git a/sc/source/ui/inc/PivotLayoutDialog.hxx b/sc/source/ui/inc/PivotLayoutDialog.hxx index aae10381eb8f..71c96667e692 100644 --- a/sc/source/ui/inc/PivotLayoutDialog.hxx +++ b/sc/source/ui/inc/PivotLayoutDialog.hxx @@ -82,14 +82,12 @@ private: formula::RefButton* mpDestinationButton; PushButton* mpButtonApply; - OKButton* mpButtonOk; CloseButton* mpButtonClose; formula::RefEdit* mpActiveEdit; ScAddress::Details maAddressDetails; bool mbDialogLostFocus; - DECL_LINK(OkClicked, PushButton*); DECL_LINK(CloseClicked, PushButton*); DECL_LINK(ApplyClicked, PushButton*); DECL_LINK(GetFocusHandler, Control*); diff --git a/sc/uiconfig/scalc/ui/pivottablelayoutdialog.ui b/sc/uiconfig/scalc/ui/pivottablelayoutdialog.ui index 3af1f1966063..565e6271e82e 100644 --- a/sc/uiconfig/scalc/ui/pivottablelayoutdialog.ui +++ b/sc/uiconfig/scalc/ui/pivottablelayoutdialog.ui @@ -18,22 +18,6 @@ <property name="can_focus">False</property> <property name="layout_style">end</property> <child> - <object class="GtkButton" id="ok"> - <property name="label">gtk-ok</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="can_default">True</property> - <property name="has_default">True</property> - <property name="receives_default">True</property> - <property name="use_stock">True</property> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> <object class="GtkButton" id="apply"> <property name="label">gtk-apply</property> <property name="visible">True</property> |