diff options
author | Manal Alhassoun <malhassoun@kacst.edu.sa> | 2014-01-01 13:32:52 +0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-01 19:59:02 +0000 |
commit | dee757ad33b763180336240f27811d0d4e5aa130 (patch) | |
tree | 2a57fc7010f0259f494f23fd652050c1a3fc38dc /svx/source | |
parent | 3f1682f3c2f1605331bcf2f5df079a3f585e4ace (diff) |
convert delete object and theme queryboxes to .ui
Change-Id: Id8d54c55ab1b8c7e618654874bc8b9af949ec970
Reviewed-on: https://gerrit.libreoffice.org/7245
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/gallery2/galbrws1.cxx | 2 | ||||
-rw-r--r-- | svx/source/gallery2/galbrws2.cxx | 2 | ||||
-rw-r--r-- | svx/source/gallery2/gallery.src | 8 |
3 files changed, 2 insertions, 10 deletions
diff --git a/svx/source/gallery2/galbrws1.cxx b/svx/source/gallery2/galbrws1.cxx index 7285b840e404..84fbb560c688 100644 --- a/svx/source/gallery2/galbrws1.cxx +++ b/svx/source/gallery2/galbrws1.cxx @@ -373,7 +373,7 @@ void GalleryBrowser1::ImplExecute( sal_uInt16 nId ) case( MN_DELETE ): { - if( QueryBox( NULL, WB_YES_NO, GAL_RESSTR(RID_SVXSTR_GALLERY_DELETETHEME)).Execute() == RET_YES ) + if( MessageDialog( NULL, "QueryDeleteThemeDialog","svx/ui/querydeletethemedialog.ui").Execute() == RET_YES ) mpGallery->RemoveTheme( mpThemes->GetSelectEntry() ); } break; diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx index 2767816cfd42..3574b7a1164e 100644 --- a/svx/source/gallery2/galbrws2.cxx +++ b/svx/source/gallery2/galbrws2.cxx @@ -1195,7 +1195,7 @@ void GalleryBrowser2::Execute( sal_uInt16 nId ) case( MN_DELETE ): { if( !mpCurTheme->IsReadOnly() && - QueryBox(NULL, WB_YES_NO, GAL_RESSTR(RID_SVXSTR_GALLERY_DELETEOBJ)).Execute() == RET_YES ) + MessageDialog(NULL, "QueryDeleteObjectDialog","svx/ui/querydeleteobjectdialog.ui").Execute() == RET_YES ) { mpCurTheme->RemoveObject( mnCurActionPos ); } diff --git a/svx/source/gallery2/gallery.src b/svx/source/gallery2/gallery.src index b5f7767065c8..bd3a9763f9b0 100644 --- a/svx/source/gallery2/gallery.src +++ b/svx/source/gallery2/gallery.src @@ -73,14 +73,6 @@ String RID_SVXSTR_GALLERY_NOTHEME { Text [ en-US ] = "Invalid Theme Name!" ; }; -String RID_SVXSTR_GALLERY_DELETEOBJ -{ - Text [ en-US ] = "Do you really want to\ndelete this object?" ; -}; -String RID_SVXSTR_GALLERY_DELETETHEME -{ - Text [ en-US ] = "Do you really want to\ndelete this theme?" ; -}; String RID_SVXSTR_EXTFORMAT1_SYS { Text = "wav" ; |