diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-16 17:15:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-16 19:09:52 +0000 |
commit | 627b0e8b095dc3a08c6716db0fa6a6376125468e (patch) | |
tree | 305a0e7d7536d21d5578f1ae0c6ef54b38823f2a /cui/source/dialogs/cuigaldlg.cxx | |
parent | 0d35caf02d4744f55f123326e65441126b8a99bf (diff) |
convert gallery title dialog to .ui
Change-Id: I432b8c36e28576d016c58d972299aa804963829e
Diffstat (limited to 'cui/source/dialogs/cuigaldlg.cxx')
-rw-r--r-- | cui/source/dialogs/cuigaldlg.cxx | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index ee03268f76a0..60bbe950246c 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -520,21 +520,12 @@ IMPL_LINK( ActualizeProgress, ActualizeHdl, INetURLObject*, pURL ) return 0; } -// --------------- -// - TitleDialog - -// --------------- - -TitleDialog::TitleDialog( Window* pParent, const OUString& rOldTitle ) : - ModalDialog ( pParent, CUI_RES( RID_SVXDLG_GALLERY_TITLE ) ), - maOk ( this, CUI_RES( BTN_OK ) ), - maCancel ( this, CUI_RES( BTN_CANCEL ) ), - maHelp ( this, CUI_RES( BTN_HELP ) ), - maFL ( this, CUI_RES( FL_TITLE ) ), - maEdit ( this, CUI_RES( EDT_TITLE ) ) +TitleDialog::TitleDialog(Window* pParent, const OUString& rOldTitle) + : ModalDialog (pParent, "GalleryTitleDialog", "cui/ui/gallerytitledialog.ui") { - FreeResource(); - maEdit.SetText( rOldTitle ); - maEdit.GrabFocus(); + get(m_pEdit, "entry"); + m_pEdit->SetText( rOldTitle ); + m_pEdit->GrabFocus(); } // ------------------- |