From 5d60e826ae6b10161ecff64fbfbf9af230898764 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 25 Sep 2012 14:02:33 +0100 Subject: set the default button on various dialogs Change-Id: I63b1cc73d8ed240c40dec07fe1f8470da8410464 --- sw/source/ui/misc/linenum.cxx | 3 +-- sw/uiconfig/swriter/ui/autoformattable.ui | 1 + sw/uiconfig/swriter/ui/columnwidth.ui | 1 + sw/uiconfig/swriter/ui/converttexttable.ui | 1 + sw/uiconfig/swriter/ui/inserttable.ui | 1 + sw/uiconfig/swriter/ui/linenumbering.ui | 1 + sw/uiconfig/swriter/ui/splittable.ui | 1 + sw/uiconfig/swriter/ui/stringinput.ui | 1 + sw/uiconfig/swriter/ui/titlepage.ui | 1 + sw/uiconfig/swriter/ui/wordcount.ui | 1 + vcl/source/window/builder.cxx | 4 ++-- vcl/uiconfig/ui/printdialog.ui | 1 + 12 files changed, 13 insertions(+), 4 deletions(-) diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx index 96e90c1a0a2d..895137b37e7c 100644 --- a/sw/source/ui/misc/linenum.cxx +++ b/sw/source/ui/misc/linenum.cxx @@ -133,8 +133,7 @@ SwLineNumberingDlg::SwLineNumberingDlg(SwView *pVw) ModifyHdl(); LineOnOffHdl(); - PushButton *pOkPB = get("ok"); - pOkPB->SetClickHdl(LINK(this, SwLineNumberingDlg, OKHdl)); + get("ok")->SetClickHdl(LINK(this, SwLineNumberingDlg, OKHdl)); } SwLineNumberingDlg::~SwLineNumberingDlg() diff --git a/sw/uiconfig/swriter/ui/autoformattable.ui b/sw/uiconfig/swriter/ui/autoformattable.ui index 9f84508991de..b18238b9c6e4 100644 --- a/sw/uiconfig/swriter/ui/autoformattable.ui +++ b/sw/uiconfig/swriter/ui/autoformattable.ui @@ -22,6 +22,7 @@ False True True + True True False True diff --git a/sw/uiconfig/swriter/ui/columnwidth.ui b/sw/uiconfig/swriter/ui/columnwidth.ui index 9eabaacc31e5..f5e9320d0f6d 100644 --- a/sw/uiconfig/swriter/ui/columnwidth.ui +++ b/sw/uiconfig/swriter/ui/columnwidth.ui @@ -28,6 +28,7 @@ False True True + True True False True diff --git a/sw/uiconfig/swriter/ui/converttexttable.ui b/sw/uiconfig/swriter/ui/converttexttable.ui index 63bfbf8b4726..1d310bae84b2 100644 --- a/sw/uiconfig/swriter/ui/converttexttable.ui +++ b/sw/uiconfig/swriter/ui/converttexttable.ui @@ -28,6 +28,7 @@ False True True + True True False True diff --git a/sw/uiconfig/swriter/ui/inserttable.ui b/sw/uiconfig/swriter/ui/inserttable.ui index 567b91b4dfb5..80a3eeeeb3f5 100644 --- a/sw/uiconfig/swriter/ui/inserttable.ui +++ b/sw/uiconfig/swriter/ui/inserttable.ui @@ -28,6 +28,7 @@ False True True + True True False True diff --git a/sw/uiconfig/swriter/ui/linenumbering.ui b/sw/uiconfig/swriter/ui/linenumbering.ui index 580a2f07a904..b1266df556e1 100644 --- a/sw/uiconfig/swriter/ui/linenumbering.ui +++ b/sw/uiconfig/swriter/ui/linenumbering.ui @@ -21,6 +21,7 @@ False True True + True True False True diff --git a/sw/uiconfig/swriter/ui/splittable.ui b/sw/uiconfig/swriter/ui/splittable.ui index 1df37148bfc5..a17c0b33b090 100644 --- a/sw/uiconfig/swriter/ui/splittable.ui +++ b/sw/uiconfig/swriter/ui/splittable.ui @@ -21,6 +21,7 @@ False True True + True True False True diff --git a/sw/uiconfig/swriter/ui/stringinput.ui b/sw/uiconfig/swriter/ui/stringinput.ui index 7c00011e9033..c17202b0ed45 100644 --- a/sw/uiconfig/swriter/ui/stringinput.ui +++ b/sw/uiconfig/swriter/ui/stringinput.ui @@ -20,6 +20,7 @@ False True True + True True False True diff --git a/sw/uiconfig/swriter/ui/titlepage.ui b/sw/uiconfig/swriter/ui/titlepage.ui index b795a1f8fa44..8715979ef196 100644 --- a/sw/uiconfig/swriter/ui/titlepage.ui +++ b/sw/uiconfig/swriter/ui/titlepage.ui @@ -21,6 +21,7 @@ False True True + True True False True diff --git a/sw/uiconfig/swriter/ui/wordcount.ui b/sw/uiconfig/swriter/ui/wordcount.ui index 6b52247466de..b91dae26ddaa 100644 --- a/sw/uiconfig/swriter/ui/wordcount.ui +++ b/sw/uiconfig/swriter/ui/wordcount.ui @@ -38,6 +38,7 @@ False True True + True True False True diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index ad40184b198b..3e9ed9140f01 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -427,7 +427,7 @@ Window *VclBuilder::makeObject(Window *pParent, const rtl::OString &name, const } } - if (bIsPlaceHolder) + if (bIsPlaceHolder || name.equalsL(RTL_CONSTASCII_STRINGPARAM("GtkTreeSelection"))) return NULL; Window *pWindow = NULL; @@ -567,7 +567,7 @@ Window *VclBuilder::makeObject(Window *pParent, const rtl::OString &name, const pWindow = (*pFunction)(pParent, rMap); } } - SAL_WARN_IF(!pWindow, "vcl.layout", "implement " << name.getStr() << "or add a make" << name.getStr() << " function"); + SAL_WARN_IF(!pWindow, "vcl.layout", "problably need to implement " << name.getStr() << "or add a make" << name.getStr() << " function"); if (pWindow) { pWindow->SetHelpId(m_sHelpRoot + id); diff --git a/vcl/uiconfig/ui/printdialog.ui b/vcl/uiconfig/ui/printdialog.ui index 7eb61ecafb61..a9cb400b90b4 100644 --- a/vcl/uiconfig/ui/printdialog.ui +++ b/vcl/uiconfig/ui/printdialog.ui @@ -39,6 +39,7 @@ False True True + True True False True -- cgit