diff options
-rw-r--r-- | editeng/source/misc/lingu.src | 13 | ||||
-rw-r--r-- | editeng/source/misc/splwrap.cxx | 11 | ||||
-rw-r--r-- | include/editeng/editrids.hrc | 6 |
3 files changed, 11 insertions, 19 deletions
diff --git a/editeng/source/misc/lingu.src b/editeng/source/misc/lingu.src index 5a64661fa90f..01d579cd1d33 100644 --- a/editeng/source/misc/lingu.src +++ b/editeng/source/misc/lingu.src @@ -19,19 +19,14 @@ #include <editeng/editrids.hrc> -QueryBox RID_SVXQB_CONTINUE +String RID_SVXSTR_QUERY_CONTINUE { - BUTTONS = WB_YES_NO ; - DEFBUTTON = WB_DEF_YES ; - Message [ en-US ] = "Continue checking at beginning of document?" ; + Text [ en-US ] = "Continue checking at beginning of document?" ; }; -QueryBox RID_SVXQB_BW_CONTINUE +String RID_SVXSTR_QUERY_BW_CONTINUE { - BUTTONS = WB_YES_NO ; - DEFBUTTON = WB_DEF_YES ; - Message [ en-US ] = "Continue checking at end of document?" ; + Text [ en-US ] = "Continue checking at end of document?" ; }; - 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" ; diff --git a/editeng/source/misc/splwrap.cxx b/editeng/source/misc/splwrap.cxx index bac6ac662f4c..35a493335115 100644 --- a/editeng/source/misc/splwrap.cxx +++ b/editeng/source/misc/splwrap.cxx @@ -20,12 +20,10 @@ #include <rtl/ustring.hxx> #include <vcl/wrkwin.hxx> #include <vcl/svapp.hxx> -#include <vcl/msgbox.hxx> +#include <vcl/layout.hxx> #include <svtools/langtab.hxx> -#ifndef __RSC #include <tools/errinf.hxx> -#endif #include <editeng/unolingu.hxx> #include <linguistic/lngprops.hxx> #include <com/sun/star/frame/XStorable.hpp> @@ -317,7 +315,8 @@ void SvxSpellWrapper::StartThesaurus( const OUString &rWord, sal_uInt16 nLanguag Reference< XThesaurus > xThes( SvxGetThesaurus() ); 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; } @@ -462,8 +461,8 @@ bool SvxSpellWrapper::SpellNext( ) // a BODY_area done, ask for the other BODY_area WAIT_OFF(); - sal_uInt16 nResId = bReverse ? RID_SVXQB_BW_CONTINUE : RID_SVXQB_CONTINUE; - QueryBox aBox( pWin, EditResId( nResId ) ); + sal_uInt16 nResId = bReverse ? RID_SVXSTR_QUERY_BW_CONTINUE : RID_SVXSTR_QUERY_CONTINUE; + MessageDialog aBox(pWin, EditResId(nResId), VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO); if ( aBox.Execute() != RET_YES ) { // sacrifice the other area if necessary ask for special area diff --git a/include/editeng/editrids.hrc b/include/editeng/editrids.hrc index 014c9f9a40b1..4ae3d4c70ac1 100644 --- a/include/editeng/editrids.hrc +++ b/include/editeng/editrids.hrc @@ -345,10 +345,8 @@ #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_READONLY (RID_EDIT_START + 299) - -// ResIds fuer HM-QueryBoxen und Error-Strings -#define RID_SVXQB_BW_CONTINUE (RID_EDIT_START + 300) -#define RID_SVXQB_CONTINUE (RID_EDIT_START + 301) +#define RID_SVXSTR_QUERY_BW_CONTINUE (RID_EDIT_START + 300) +#define RID_SVXSTR_QUERY_CONTINUE (RID_EDIT_START + 301) // EditEngine #define RID_EDITUNDO_DEL (RID_EDIT_START + 302) |