summaryrefslogtreecommitdiff
path: root/cui/source/dialogs
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-12-16 17:15:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-12-16 19:09:52 +0000
commit627b0e8b095dc3a08c6716db0fa6a6376125468e (patch)
tree305a0e7d7536d21d5578f1ae0c6ef54b38823f2a /cui/source/dialogs
parent0d35caf02d4744f55f123326e65441126b8a99bf (diff)
convert gallery title dialog to .ui
Change-Id: I432b8c36e28576d016c58d972299aa804963829e
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r--cui/source/dialogs/cuigaldlg.cxx19
-rw-r--r--cui/source/dialogs/gallery.src47
2 files changed, 5 insertions, 61 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();
}
// -------------------
diff --git a/cui/source/dialogs/gallery.src b/cui/source/dialogs/gallery.src
index 93505da81006..f20bef189b7d 100644
--- a/cui/source/dialogs/gallery.src
+++ b/cui/source/dialogs/gallery.src
@@ -219,53 +219,6 @@ TabPage RID_SVXTABPAGE_GALLERYTHEME_FILES
/******************************************************************************/
-ModalDialog RID_SVXDLG_GALLERY_TITLE
-{
- HelpId = HID_GALLERY_TITLE;
- OutputSize = TRUE ;
- Border = TRUE ;
- SVLook = TRUE ;
- Size = MAP_APPFONT ( 168 , 63 ) ;
- Text [ en-US ] = "Enter Title" ;
- Moveable = TRUE ;
-
- OkButton BTN_OK
- {
- DefButton = TRUE ;
- Pos = MAP_APPFONT ( 112 , 6 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- };
- CancelButton BTN_CANCEL
- {
- Pos = MAP_APPFONT ( 112 , 23 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- };
- HelpButton BTN_HELP
- {
- Pos = MAP_APPFONT ( 112 , 43 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- };
-
- FixedLine FL_TITLE
- {
- Pos = MAP_APPFONT ( 6 , 6 ) ;
- Size = MAP_APPFONT ( 100 , 8 ) ;
- Text [ en-US ] = "Title" ;
- };
- Edit EDT_TITLE
- {
- HelpId = HID_GALLERY_TITLE_EDIT;
- Border = TRUE ;
- Pos = MAP_APPFONT ( 12 , 18 ) ;
- Size = MAP_APPFONT ( 88, 12 ) ;
- };
-};
-
-/******************************************************************************/
-
ModalDialog RID_SVXDLG_GALLERY_SEARCH_PROGRESS
{
HelpId = HID_GALLERY_SEARCH ;