summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/cuigaldlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-12-16 21:06:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-12-16 21:12:56 +0000
commitaaa808d69918ee58908f4cd78c5b7b6f24ee3c5c (patch)
tree2fb88c91b26fb911b5b77c69d7458b8f39ffed4f /cui/source/dialogs/cuigaldlg.cxx
parentf2111a7ed11410ac80cd1b700315881d8b8ee7dd (diff)
convert gallery theme id dialog to .ui
Change-Id: Iad468b19a24efc4044a46301f6421648aac7cd6a
Diffstat (limited to 'cui/source/dialogs/cuigaldlg.cxx')
-rw-r--r--cui/source/dialogs/cuigaldlg.cxx27
1 files changed, 12 insertions, 15 deletions
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index 60bbe950246c..be45aed67eea 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -521,7 +521,7 @@ IMPL_LINK( ActualizeProgress, ActualizeHdl, INetURLObject*, pURL )
}
TitleDialog::TitleDialog(Window* pParent, const OUString& rOldTitle)
- : ModalDialog (pParent, "GalleryTitleDialog", "cui/ui/gallerytitledialog.ui")
+ : ModalDialog(pParent, "GalleryTitleDialog", "cui/ui/gallerytitledialog.ui")
{
get(m_pEdit, "entry");
m_pEdit->SetText( rOldTitle );
@@ -532,24 +532,21 @@ TitleDialog::TitleDialog(Window* pParent, const OUString& rOldTitle)
// - GalleryIdDialog -
// -------------------
-GalleryIdDialog::GalleryIdDialog( Window* pParent, GalleryTheme* _pThm ) :
- ModalDialog ( pParent, CUI_RES( RID_SVXDLG_GALLERY_THEMEID ) ),
- aBtnOk ( this, CUI_RES( BTN_OK ) ),
- aBtnCancel ( this, CUI_RES( BTN_CANCEL ) ),
- aFLId ( this, CUI_RES( FL_ID ) ),
- aLbResName ( this, CUI_RES( LB_RESNAME ) ),
- pThm ( _pThm )
+GalleryIdDialog::GalleryIdDialog( Window* pParent, GalleryTheme* _pThm )
+ : ModalDialog(pParent, "GalleryThemeIDDialog", "cui/ui/gallerythemeiddialog.ui")
+ , pThm(_pThm )
{
- FreeResource();
+ get(m_pBtnOk, "ok");
+ get(m_pLbResName, "entry");
- aLbResName.InsertEntry( OUString( "!!! No Id !!!" ) );
+ m_pLbResName->InsertEntry( OUString( "!!! No Id !!!" ) );
- GalleryTheme::InsertAllThemes( aLbResName );
+ GalleryTheme::InsertAllThemes(*m_pLbResName);
- aLbResName.SelectEntryPos( (sal_uInt16) pThm->GetId() );
- aLbResName.GrabFocus();
+ m_pLbResName->SelectEntryPos( (sal_uInt16) pThm->GetId() );
+ m_pLbResName->GrabFocus();
- aBtnOk.SetClickHdl( LINK( this, GalleryIdDialog, ClickOkHdl ) );
+ m_pBtnOk->SetClickHdl( LINK( this, GalleryIdDialog, ClickOkHdl ) );
}
// -----------------------------------------------------------------------------
@@ -574,7 +571,7 @@ IMPL_LINK_NOARG(GalleryIdDialog, ClickOkHdl)
InfoBox aBox( this, aStr );
aBox.Execute();
- aLbResName.GrabFocus();
+ m_pLbResName->GrabFocus();
bDifferentThemeExists = sal_True;
}
}