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/misc/splwrap.cxx | |
parent | Consistency around SdrMetricItem in svx/sderitm.hxx (diff) | |
download | core-c86f7df94df7f1c555a6d71c919e9bf34a500d87.tar.gz core-c86f7df94df7f1c555a6d71c919e9bf34a500d87.zip |
QueryBox RID_SVXQB_* -> MessageDialog + string
Change-Id: I37aeefe36953c80a1218e2634153906dd5cb3c1e
Diffstat (limited to 'editeng/source/misc/splwrap.cxx')
-rw-r--r-- | editeng/source/misc/splwrap.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
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 |