summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-08-18 02:28:17 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-08-18 02:29:23 +0200
commit36a36444aea744626115668f63dc8164a6f83e82 (patch)
treec729d6c16f2cb9e0eac0cb33a0aa5ef57dccf48f /sfx2
parentf739d062932633c04e632e644eeeea865a2d9a1d (diff)
InfoBox RID_INFO_NOSEARCHRESULTS and RID_INFO_NOSEARCHTEXTFOUND to String
Change-Id: If1bf07016864a856ad15d84db0fffc34dc52ecbe
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/app.hrc4
-rw-r--r--sfx2/source/appl/newhelp.cxx5
-rw-r--r--sfx2/source/appl/newhelp.src12
3 files changed, 8 insertions, 13 deletions
diff --git a/sfx2/source/appl/app.hrc b/sfx2/source/appl/app.hrc
index 8d690ba5e36c..53cdbd488da0 100644
--- a/sfx2/source/appl/app.hrc
+++ b/sfx2/source/appl/app.hrc
@@ -40,8 +40,8 @@
#define CONFIG_PATH_START (RID_SFX_APP_START+98)
#define MENU_HELP_BOOKMARKS (RID_SFX_APP_START+105)
-#define RID_INFO_NOSEARCHRESULTS (RID_SFX_APP_START+106)
-#define RID_INFO_NOSEARCHTEXTFOUND (RID_SFX_APP_START+107)
+#define STR_INFO_NOSEARCHRESULTS (RID_SFX_APP_START+106)
+#define STR_INFO_NOSEARCHTEXTFOUND (RID_SFX_APP_START+107)
#define IMG_HELP_TOOLBOX_INDEX_ON (RID_SFX_APP_START+110)
#define IMG_HELP_TOOLBOX_INDEX_OFF (RID_SFX_APP_START+111)
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index b3dcc267186c..a10c8a82b3c6 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -1044,8 +1044,7 @@ IMPL_LINK_NOARG(SearchTabPage_Impl, SearchHdl)
if ( aFactories.empty() )
{
- InfoBox aBox( this, SfxResId( RID_INFO_NOSEARCHRESULTS ) );
- aBox.SetText( SfxResId( STR_HELP_WINDOW_TITLE ).toString() );
+ MessageDialog aBox( this, SfxResId( STR_INFO_NOSEARCHRESULTS ), VCL_MESSAGE_INFO );
aBox.Execute();
}
}
@@ -2269,7 +2268,7 @@ IMPL_LINK( SfxHelpTextWindow_Impl, FindHdl, sfx2::SearchDialog*, pDlg )
else
{
DBG_ASSERT( pSrchDlg, "no search dialog" );
- InfoBox aBox( pSrchDlg, SfxResId( RID_INFO_NOSEARCHTEXTFOUND ) );
+ MessageDialog aBox( pSrchDlg, SfxResId( STR_INFO_NOSEARCHTEXTFOUND ), VCL_MESSAGE_INFO );
aBox.Execute();
pSrchDlg->SetFocusOnEdit();
}
diff --git a/sfx2/source/appl/newhelp.src b/sfx2/source/appl/newhelp.src
index 96b8d41f6f05..04200030baee 100644
--- a/sfx2/source/appl/newhelp.src
+++ b/sfx2/source/appl/newhelp.src
@@ -195,18 +195,14 @@ Menu MENU_HELP_BOOKMARKS
};
};
-InfoBox RID_INFO_NOSEARCHRESULTS
+String STR_INFO_NOSEARCHRESULTS
{
- BUTTONS = WB_OK ;
- DEFBUTTON = WB_DEF_OK ;
- Message [ en-US ] = "No topics found.";
+ Text [ en-US ] = "No topics found.";
};
-InfoBox RID_INFO_NOSEARCHTEXTFOUND
+String STR_INFO_NOSEARCHTEXTFOUND
{
- BUTTONS = WB_OK ;
- DEFBUTTON = WB_DEF_OK ;
- Message [ en-US ] = "The text you entered was not found.";
+ Text [ en-US ] = "The text you entered was not found.";
};
Image IMG_HELP_TOOLBOX_L_INDEX_ON