From 2056f93f2d9f62741045e2aee0ed4d31001febef Mon Sep 17 00:00:00 2001 From: Manal Alhassoun Date: Wed, 1 Jan 2014 08:34:41 +0300 Subject: convert update file list queryboxes to .ui MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9e9ad3674c6b45181b4fc3d4e252431b0dcab06d Reviewed-on: https://gerrit.libreoffice.org/7243 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- cui/UIConfig_cui.mk | 1 + cui/source/dialogs/cuigaldlg.cxx | 2 +- cui/source/dialogs/gallery.src | 4 --- cui/source/inc/gallery.hrc | 1 - .../ui/queryupdategalleryfilelistdialog.ui | 34 ++++++++++++++++++++++ 5 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 cui/uiconfig/ui/queryupdategalleryfilelistdialog.ui (limited to 'cui') diff --git a/cui/UIConfig_cui.mk b/cui/UIConfig_cui.mk index cde65d068838..d059ad0804c3 100644 --- a/cui/UIConfig_cui.mk +++ b/cui/UIConfig_cui.mk @@ -125,6 +125,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\ cui/uiconfig/ui/querynoloadedfiledialog \ cui/uiconfig/ui/querynosavefiledialog \ cui/uiconfig/ui/querysavelistdialog \ + cui/uiconfig/ui/queryupdategalleryfilelistdialog \ cui/uiconfig/ui/recordnumberdialog \ cui/uiconfig/ui/rotationtabpage \ cui/uiconfig/ui/scriptorganizer \ diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index ea9afc1d166a..c3fba419ded5 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -983,7 +983,7 @@ IMPL_LINK_NOARG(TPGalleryThemeProperties, SelectFileTypeHdl) { aLastFilterName = aText; - if( QueryBox( this, WB_YES_NO, OUString( CUI_RES( RID_SVXSTR_GALLERY_SEARCH ) ) ).Execute() == RET_YES ) + if( MessageDialog( this, "QueryUpdateFileListDialog","cui/ui/queryupdategalleryfilelistdialog.ui" ).Execute() == RET_YES ) SearchFiles(); } diff --git a/cui/source/dialogs/gallery.src b/cui/source/dialogs/gallery.src index d1a741359e09..076b9496b12c 100644 --- a/cui/source/dialogs/gallery.src +++ b/cui/source/dialogs/gallery.src @@ -257,10 +257,6 @@ String RID_SVXSTR_GALLERY_NOFILES { Text [ en-US ] = "" ; }; -String RID_SVXSTR_GALLERY_SEARCH -{ - Text [ en-US ] = "Do you want to update the file list?" ; -}; String RID_SVXSTR_GALLERYPROPS_OBJECT { Text [ en-US ] = "Object;Objects" ; diff --git a/cui/source/inc/gallery.hrc b/cui/source/inc/gallery.hrc index e255e7592c41..d142711d4f9c 100644 --- a/cui/source/inc/gallery.hrc +++ b/cui/source/inc/gallery.hrc @@ -28,7 +28,6 @@ // Gallery-Strings #define RID_SVXSTR_GALLERY_NOFILES (RID_CUI_GALLERY_START + 12) -#define RID_SVXSTR_GALLERY_SEARCH (RID_CUI_GALLERY_START + 30) #define RID_SVXSTR_GALLERYPROPS_OBJECT (RID_CUI_GALLERY_START + 39) #define RID_SVXSTR_GALLERY_READONLY (RID_CUI_GALLERY_START + 43) #define RID_SVXSTR_GALLERY_ALLFILES (RID_CUI_GALLERY_START + 44) diff --git a/cui/uiconfig/ui/queryupdategalleryfilelistdialog.ui b/cui/uiconfig/ui/queryupdategalleryfilelistdialog.ui new file mode 100644 index 000000000000..5dc0cac39db8 --- /dev/null +++ b/cui/uiconfig/ui/queryupdategalleryfilelistdialog.ui @@ -0,0 +1,34 @@ + + + + + False + 12 + Update the file list? + False + dialog + True + question + yes-no + Do you want to update the file list? + + + False + vertical + 24 + + + False + end + + + False + True + end + 0 + + + + + + -- cgit