diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-11-26 19:50:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-11-26 19:54:28 +0000 |
commit | 95b4c0322d486d7899917ed22dd1f8193af77dcf (patch) | |
tree | 1a660540b52ed0236aaa68ba44499ebc79272b81 /sw/source/ui/table | |
parent | db8aa2fcf00d0df8f99b12dc2c8213ea66ba894f (diff) |
use secondary-group packing to left group help and adapt to OK->Insert change
Change-Id: I0325f42e78efbf819c6883b69d5a8903e05ac36e
Diffstat (limited to 'sw/source/ui/table')
-rw-r--r-- | sw/source/ui/table/instable.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sw/source/ui/table/instable.cxx b/sw/source/ui/table/instable.cxx index fbffb7e86d5e..f7f5d516e9ab 100644 --- a/sw/source/ui/table/instable.cxx +++ b/sw/source/ui/table/instable.cxx @@ -96,7 +96,7 @@ SwInsTableDlg::SwInsTableDlg( SwView& rView ) get(m_pDontSplitCB, "dontsplitcb"); get(m_pBorderCB, "bordercb"); get(m_pAutoFmtBtn, "autoformat"); - get(m_pOkBtn, "ok"); + get(m_pInsertBtn, "ok"); get(m_pRepeatGroup, "repeatgroup"); get(m_pRepeatHeaderNF, "repeatheaderspin"); @@ -109,6 +109,8 @@ SwInsTableDlg::SwInsTableDlg( SwView& rView ) m_pColNF->SetMax(ROW_COL_PROD/m_pRowNF->GetValue()); m_pAutoFmtBtn->SetClickHdl(LINK(this, SwInsTableDlg, AutoFmtHdl)); + m_pInsertBtn->SetClickHdl(LINK(this, SwInsTableDlg, OKHdl)); + sal_Bool bHTMLMode = 0 != (::GetHtmlMode(rView.GetDocShell())&HTMLMODE_ON); const SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig(); @@ -142,6 +144,12 @@ SwInsTableDlg::SwInsTableDlg( SwView& rView ) m_pRepeatHeaderNF->SetMax( nMax ); } +IMPL_LINK_NOARG(SwInsTableDlg, OKHdl) +{ + EndDialog(RET_OK); + return 0; +} + SwInsTableDlg::~SwInsTableDlg() { delete pTAutoFmt; @@ -156,7 +164,7 @@ IMPL_LINK_INLINE_START( SwInsTableDlg, ModifyName, Edit *, pEdit ) pEdit->SetText(sTblName); } - m_pOkBtn->Enable(pShell->GetTblStyle( sTblName ) == 0); + m_pInsertBtn->Enable(pShell->GetTblStyle( sTblName ) == 0); return 0; } IMPL_LINK_INLINE_END( SwInsTableDlg, ModifyName, Edit *, pEdit ) |