diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-25 12:41:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-25 16:45:23 +0100 |
commit | c86f7df94df7f1c555a6d71c919e9bf34a500d87 (patch) | |
tree | bf42cefd0bfe265470fec39f3a180205773ace32 /editeng/source | |
parent | e0c2ea6bde31bd68e1794154b72fddcd40dda7f9 (diff) |
QueryBox RID_SVXQB_* -> MessageDialog + string
Change-Id: I37aeefe36953c80a1218e2634153906dd5cb3c1e
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/misc/lingu.src | 13 | ||||
-rw-r--r-- | editeng/source/misc/splwrap.cxx | 11 |
2 files changed, 9 insertions, 15 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 |