diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-22 09:20:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-22 09:20:01 +0100 |
commit | f10e4157ce6c134bb9561b7b48254c2c566726eb (patch) | |
tree | 418b130ad362ae237ef1586681b48c1f5e3bc8dc /sw/source/ui | |
parent | d2fa1d55dbf95b61e035e8b1f3aafec0cb2861c9 (diff) |
QueryBox QB_CONNECT -> MessageDialog + string
Change-Id: I593527c365ad6925229a3dd7d9e1c589fc4e34a5
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/dialog/uiregionsw.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index 31b53dae3788..14e078f78bfe 100644 --- a/sw/source/ui/dialog/uiregionsw.cxx +++ b/sw/source/ui/dialog/uiregionsw.cxx @@ -23,7 +23,6 @@ #include <svl/PasswordHelper.hxx> #include <vcl/svapp.hxx> #include <vcl/layout.hxx> -#include <vcl/msgbox.hxx> #include <svl/stritem.hxx> #include <svl/eitem.hxx> #include <sfx2/passwd.hxx> @@ -961,7 +960,7 @@ IMPL_LINK( SwEditRegionDlg, UseFileHdl, CheckBox *, pBox ) bool bContent = pSectRepr->IsContent(); if( pBox->IsChecked() && bContent && rSh.HasSelection() ) { - if( RET_NO == QueryBox( this, SW_RES(QB_CONNECT) ).Execute() ) + if (RET_NO == MessageDialog(this, SW_RES(STR_QUERY_CONNECT), VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO).Execute()) pBox->Check( false ); } if( bFile ) @@ -1709,7 +1708,7 @@ IMPL_LINK( SwInsertSectionTabPage, UseFileHdl, CheckBox *, pBox ) if( pBox->IsChecked() ) { if( m_pWrtSh->HasSelection() && - RET_NO == QueryBox( this, SW_RES(QB_CONNECT) ).Execute() ) + RET_NO == MessageDialog(this, SW_RES(STR_QUERY_CONNECT), VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO).Execute()) pBox->Check( false ); } |