summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docsh4.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-22 11:11:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-23 08:47:52 +0200
commitdcc667ac5ef0d7b4bbdfba0727ef6e2be3ed5313 (patch)
tree78e04f13656eddd5a528506dda41f96fce6aad7f /sc/source/ui/docshell/docsh4.cxx
parente725111f8283f4dbefde7b14efbe9afd850095df (diff)
convert message box style bits to scoped enum
and fix harmless bug in ImpSVGDialog::ImpSVGDialog, which there since commit 6456f1d81090dd5fe44455c09ae3ede7ec6ac38a Date: Fri Feb 4 14:52:54 2011 +0100 ka102: added/removed files for SVG import and module cleanup Change-Id: I66b2ec2b029431ab453e54e962863e4ed7d78962 Reviewed-on: https://gerrit.libreoffice.org/41412 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/docshell/docsh4.cxx')
-rw-r--r--sc/source/ui/docshell/docsh4.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 009f8b987436..341cd921a87f 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -220,7 +220,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
aMessage += sTarget;
aMessage += aTemplate.getToken( 1, '#' );
- ScopedVclPtrInstance< QueryBox > aBox( nullptr, WinBits(WB_YES_NO | WB_DEF_YES), aMessage );
+ ScopedVclPtrInstance< QueryBox > aBox( nullptr, MessBoxStyle::YesNo | MessBoxStyle::DefaultYes, aMessage );
bDo = ( aBox->Execute() == RET_YES );
}
@@ -439,7 +439,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
if(nSet==LM_ON_DEMAND)
{
- ScopedVclPtrInstance<QueryBox> aBox( GetActiveDialogParent(), WinBits(WB_YES_NO | WB_DEF_YES),
+ ScopedVclPtrInstance<QueryBox> aBox( GetActiveDialogParent(), MessBoxStyle::YesNo | MessBoxStyle::DefaultYes,
ScGlobal::GetRscString(STR_RELOAD_TABLES) );
nDlgRet=aBox->Execute();
@@ -490,7 +490,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
OSL_ENSURE(pViewSh,"SID_REIMPORT_AFTER_LOAD: no View");
if (pViewSh && pDBColl)
{
- ScopedVclPtrInstance<QueryBox> aBox( GetActiveDialogParent(), WinBits(WB_YES_NO | WB_DEF_YES),
+ ScopedVclPtrInstance<QueryBox> aBox( GetActiveDialogParent(), MessBoxStyle::YesNo | MessBoxStyle::DefaultYes,
ScGlobal::GetRscString(STR_REIMPORT_AFTER_LOAD) );
if (aBox->Execute() == RET_YES)
{
@@ -583,7 +583,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
{
// no dialog on playing the macro
ScopedVclPtrInstance<WarningBox> aBox( GetActiveDialogParent(),
- WinBits(WB_YES_NO | WB_DEF_NO),
+ MessBoxStyle::YesNo | MessBoxStyle::DefaultNo,
ScGlobal::GetRscString( STR_END_REDLINING ) );
bDo = ( aBox->Execute() == RET_YES );
}
@@ -648,7 +648,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
if ( nSlot == SID_DOCUMENT_COMPARE )
{ //! old changes trace will be lost
ScopedVclPtrInstance<WarningBox> aBox( GetActiveDialogParent(),
- WinBits(WB_YES_NO | WB_DEF_NO),
+ MessBoxStyle::YesNo | MessBoxStyle::DefaultNo,
ScGlobal::GetRscString( STR_END_REDLINING ) );
if( aBox->Execute() == RET_YES )
bDo = ExecuteChangeProtectionDialog( true );
@@ -940,7 +940,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
{
ScopedVclPtrInstance<QueryBox> aBox(
GetActiveDialogParent(),
- WinBits( WB_YES_NO | WB_DEF_YES ),
+ MessBoxStyle::YesNo | MessBoxStyle::DefaultYes,
ScGlobal::GetRscString( STR_DOC_WILLBESAVED ) );
if ( aBox->Execute() == RET_NO )
{
@@ -1029,14 +1029,14 @@ void ScDocShell::Execute( SfxRequest& rReq )
OUString aMessage( ScGlobal::GetRscString( STR_FILE_LOCKED_TRY_LATER ) );
aMessage = aMessage.replaceFirst( "%1", aUserName );
- ScopedVclPtrInstance< WarningBox > aBox( GetActiveDialogParent(), WinBits( WB_OK ), aMessage );
+ ScopedVclPtrInstance< WarningBox > aBox( GetActiveDialogParent(), MessBoxStyle::Ok, aMessage );
aBox->Execute();
}
else
{
ScopedVclPtrInstance<WarningBox> aBox(
GetActiveDialogParent(),
- WinBits( WB_YES_NO | WB_DEF_YES ),
+ MessBoxStyle::YesNo | MessBoxStyle::DefaultYes,
ScGlobal::GetRscString( STR_DOC_DISABLESHARED ) );
if ( aBox->Execute() == RET_YES )
{
@@ -1070,7 +1070,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
else
{
xCloseable->close( true );
- ScopedVclPtrInstance<WarningBox> aBox( GetActiveDialogParent(), WinBits( WB_OK ),
+ ScopedVclPtrInstance<WarningBox> aBox( GetActiveDialogParent(), MessBoxStyle::Ok,
ScGlobal::GetRscString( STR_DOC_NOLONGERSHARED ) );
aBox->Execute();
}