summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-22 14:18:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-22 14:23:57 +0100
commit82ddade71441ba98427470b8a05a56b7b572e74e (patch)
tree5bac52a3b8c076e5b4bc078dedaf11ecba84078e /sw/source/uibase
parent302cb1d031af68aa13820eae2265f46199433ab9 (diff)
QueryBox RID_QB_SPELL_CONTINUE -> MessageDialog + string
Change-Id: Ie08970cefccdb1339e162bb5f4d3318efc6c61a5
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
index 90a56323595b..ddf8ac56a4b8 100644
--- a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
+++ b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
@@ -18,7 +18,7 @@
*/
#include <SwSpellDialogChildWindow.hxx>
-#include <vcl/msgbox.hxx>
+#include <vcl/layout.hxx>
#include <editeng/svxacorr.hxx>
#include <editeng/acorrcfg.hxx>
#include <svx/svxids.hrc>
@@ -391,7 +391,8 @@ The code below would only be part of the solution.
if(m_pSpellState->m_xStartRange.is())
{
LockFocusNotification( true );
- sal_uInt16 nRet = QueryBox( GetWindow(), SW_RES(RID_QB_SPELL_CONTINUE)).Execute();
+ sal_uInt16 nRet = MessageDialog(GetWindow(), SW_RES(STR_QUERY_SPELL_CONTINUE),
+ VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO).Execute();
if(RET_YES == nRet)
{
SwUnoInternalPaM aPam(*pWrtShell->GetDoc());
@@ -420,7 +421,7 @@ The code below would only be part of the solution.
OUString sInfo(SW_RES(STR_SPELLING_COMPLETED));
// #i84610#
Window* pTemp = GetWindow(); // temporary needed for g++ 3.3.5
- InfoBox(pTemp, sInfo ).Execute();
+ MessageDialog(pTemp, sInfo, VCL_MESSAGE_INFO).Execute();
LockFocusNotification( false );
// take care that the now valid selection is stored
LoseFocus();