Kaydet (Commit) c86f7df9 authored tarafından Caolán McNamara's avatar Caolán McNamara

QueryBox RID_SVXQB_* -> MessageDialog + string

Change-Id: I37aeefe36953c80a1218e2634153906dd5cb3c1e
üst e0c2ea6b
...@@ -19,19 +19,14 @@ ...@@ -19,19 +19,14 @@
#include <editeng/editrids.hrc> #include <editeng/editrids.hrc>
QueryBox RID_SVXQB_CONTINUE String RID_SVXSTR_QUERY_CONTINUE
{ {
BUTTONS = WB_YES_NO ; Text [ en-US ] = "Continue checking at beginning of document?" ;
DEFBUTTON = WB_DEF_YES ;
Message [ en-US ] = "Continue checking at beginning of document?" ;
}; };
QueryBox RID_SVXQB_BW_CONTINUE String RID_SVXSTR_QUERY_BW_CONTINUE
{ {
BUTTONS = WB_YES_NO ; Text [ en-US ] = "Continue checking at end of document?" ;
DEFBUTTON = WB_DEF_YES ;
Message [ en-US ] = "Continue checking at end of document?" ;
}; };
String RID_SVXSTR_HMERR_THESAURUS String RID_SVXSTR_HMERR_THESAURUS
{ {
Text [ en-US ] = "No thesaurus is available for the selected language. \nPlease check your installation and install the desired language\n" ; Text [ en-US ] = "No thesaurus is available for the selected language. \nPlease check your installation and install the desired language\n" ;
......
...@@ -20,12 +20,10 @@ ...@@ -20,12 +20,10 @@
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <vcl/wrkwin.hxx> #include <vcl/wrkwin.hxx>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
#include <vcl/msgbox.hxx> #include <vcl/layout.hxx>
#include <svtools/langtab.hxx> #include <svtools/langtab.hxx>
#ifndef __RSC
#include <tools/errinf.hxx> #include <tools/errinf.hxx>
#endif
#include <editeng/unolingu.hxx> #include <editeng/unolingu.hxx>
#include <linguistic/lngprops.hxx> #include <linguistic/lngprops.hxx>
#include <com/sun/star/frame/XStorable.hpp> #include <com/sun/star/frame/XStorable.hpp>
...@@ -317,7 +315,8 @@ void SvxSpellWrapper::StartThesaurus( const OUString &rWord, sal_uInt16 nLanguag ...@@ -317,7 +315,8 @@ void SvxSpellWrapper::StartThesaurus( const OUString &rWord, sal_uInt16 nLanguag
Reference< XThesaurus > xThes( SvxGetThesaurus() ); Reference< XThesaurus > xThes( SvxGetThesaurus() );
if (!xThes.is()) if (!xThes.is())
{ {
InfoBox( pWin, EE_RESSTR( RID_SVXSTR_HMERR_THESAURUS ) ).Execute(); MessageDialog(pWin, EE_RESSTR(RID_SVXSTR_HMERR_THESAURUS),
VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO).Execute();
return; return;
} }
...@@ -462,8 +461,8 @@ bool SvxSpellWrapper::SpellNext( ) ...@@ -462,8 +461,8 @@ bool SvxSpellWrapper::SpellNext( )
// a BODY_area done, ask for the other BODY_area // a BODY_area done, ask for the other BODY_area
WAIT_OFF(); WAIT_OFF();
sal_uInt16 nResId = bReverse ? RID_SVXQB_BW_CONTINUE : RID_SVXQB_CONTINUE; sal_uInt16 nResId = bReverse ? RID_SVXSTR_QUERY_BW_CONTINUE : RID_SVXSTR_QUERY_CONTINUE;
QueryBox aBox( pWin, EditResId( nResId ) ); MessageDialog aBox(pWin, EditResId(nResId), VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO);
if ( aBox.Execute() != RET_YES ) if ( aBox.Execute() != RET_YES )
{ {
// sacrifice the other area if necessary ask for special area // sacrifice the other area if necessary ask for special area
......
...@@ -345,10 +345,8 @@ ...@@ -345,10 +345,8 @@
#define RID_SVXSTR_DIC_ERR_UNKNOWN (RID_EDIT_START + 297) #define RID_SVXSTR_DIC_ERR_UNKNOWN (RID_EDIT_START + 297)
#define RID_SVXSTR_DIC_ERR_FULL (RID_EDIT_START + 298) #define RID_SVXSTR_DIC_ERR_FULL (RID_EDIT_START + 298)
#define RID_SVXSTR_DIC_ERR_READONLY (RID_EDIT_START + 299) #define RID_SVXSTR_DIC_ERR_READONLY (RID_EDIT_START + 299)
#define RID_SVXSTR_QUERY_BW_CONTINUE (RID_EDIT_START + 300)
// ResIds fuer HM-QueryBoxen und Error-Strings #define RID_SVXSTR_QUERY_CONTINUE (RID_EDIT_START + 301)
#define RID_SVXQB_BW_CONTINUE (RID_EDIT_START + 300)
#define RID_SVXQB_CONTINUE (RID_EDIT_START + 301)
// EditEngine // EditEngine
#define RID_EDITUNDO_DEL (RID_EDIT_START + 302) #define RID_EDITUNDO_DEL (RID_EDIT_START + 302)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment