diff options
Diffstat (limited to 'sc/source/ui/miscdlgs/crdlg.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/crdlg.cxx | 56 |
1 files changed, 16 insertions, 40 deletions
diff --git a/sc/source/ui/miscdlgs/crdlg.cxx b/sc/source/ui/miscdlgs/crdlg.cxx index 7a41edb0ab35..c009bd4752c2 100644 --- a/sc/source/ui/miscdlgs/crdlg.cxx +++ b/sc/source/ui/miscdlgs/crdlg.cxx @@ -17,62 +17,38 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #undef SC_DLLIMPLEMENTATION - - -//------------------------------------------------------------------ - #include "crdlg.hxx" #include "scresid.hxx" #include "miscdlgs.hrc" - -//================================================================== - -ScColOrRowDlg::ScColOrRowDlg( Window* pParent, - const OUString& rStrTitle, - const OUString& rStrLabel, - sal_Bool bColDefault ) - - : ModalDialog ( pParent, ScResId( RID_SCDLG_COLORROW ) ), - // - aFlFrame ( this, ScResId( FL_FRAME ) ), - aBtnRows ( this, ScResId( BTN_GROUP_ROWS ) ), - aBtnCols ( this, ScResId( BTN_GROUP_COLS ) ), - aBtnOk ( this, ScResId( BTN_OK ) ), - aBtnCancel ( this, ScResId( BTN_CANCEL ) ), - aBtnHelp ( this, ScResId( BTN_HELP ) ) +ScColOrRowDlg::ScColOrRowDlg(Window* pParent, const OUString& rStrTitle, + const OUString& rStrLabel, bool bColDefault) + : ModalDialog(pParent, "ColOrRowDialog", + "modules/scalc/ui/colorrowdialog.ui") { - SetText( rStrTitle ); - aFlFrame.SetText( rStrLabel ); - - if ( bColDefault ) - aBtnCols.Check(); - else - aBtnRows.Check(); - - aBtnOk.SetClickHdl( LINK( this, ScColOrRowDlg, OkHdl ) ); + get(m_pBtnOk, "ok"); + get(m_pBtnCols, "columns"); + get(m_pBtnRows, "rows"); + get(m_pFrame, "frame"); - FreeResource(); -} + SetText(rStrTitle); + m_pFrame->set_label(rStrLabel); -//------------------------------------------------------------------------ + if (bColDefault) + m_pBtnCols->Check(); + else + m_pBtnRows->Check(); -ScColOrRowDlg::~ScColOrRowDlg() -{ + m_pBtnOk->SetClickHdl( LINK( this, ScColOrRowDlg, OkHdl ) ); } -//------------------------------------------------------------------------ - IMPL_LINK_NOARG_INLINE_START(ScColOrRowDlg, OkHdl) { - EndDialog( aBtnCols.IsChecked() ? SCRET_COLS : SCRET_ROWS ); + EndDialog( m_pBtnCols->IsChecked() ? SCRET_COLS : SCRET_ROWS ); return 0; } IMPL_LINK_NOARG_INLINE_END(ScColOrRowDlg, OkHdl) - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |