summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objmisc.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-12-19 13:09:01 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-12-19 13:09:01 +0000
commitec1066a9a4a756f6f151a9962450c321812800a7 (patch)
tree0559ee7eba62c0bda54f224673e21bfc3670e5d4 /sfx2/source/doc/objmisc.cxx
parent3cd5d8f8ac8d29afaa002c59a319eccc79496dc2 (diff)
INTEGRATION: CWS fwk56 (1.83.52); FILE MERGED
2006/12/01 16:09:06 mav 1.83.52.2: RESYNC: (1.83-1.85); FILE MERGED 2006/11/15 15:09:51 mav 1.83.52.1: #i71541# integrate the patch
Diffstat (limited to 'sfx2/source/doc/objmisc.cxx')
-rw-r--r--sfx2/source/doc/objmisc.cxx21
1 files changed, 14 insertions, 7 deletions
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx
index d95d17136a66..3f5d4b6f158c 100644
--- a/sfx2/source/doc/objmisc.cxx
+++ b/sfx2/source/doc/objmisc.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: objmisc.cxx,v $
*
- * $Revision: 1.85 $
+ * $Revision: 1.86 $
*
- * last change: $Author: kz $ $Date: 2006-11-08 11:58:50 $
+ * last change: $Author: ihi $ $Date: 2006-12-19 14:09:01 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -1108,7 +1108,8 @@ void SfxObjectShell::CheckMacrosOnLoading_Impl()
if ( !pImp->bSignatureErrorIsShown
&& GetDocumentSignatureState() == SIGNATURESTATE_SIGNATURES_BROKEN )
{
- WarningBox( GetDialogParent(), SfxResId( RID_XMLSEC_WARNING_BROKENSIGNATURE ) ).Execute();
+ WarningBox aBox( GetDialogParent(), SfxResId( RID_XMLSEC_WARNING_BROKENSIGNATURE ) );
+ aBox.Execute();
pImp->nMacroMode = MacroExecMode::NEVER_EXECUTE;
pImp->bSignatureErrorIsShown = sal_True;
}
@@ -1872,7 +1873,8 @@ void SfxObjectShell::AdjustMacroMode( const String& /*rScriptType*/ )
{
// if the signature is broken, show here the warning before
// the macro warning
- WarningBox( GetDialogParent(), SfxResId( RID_XMLSEC_WARNING_BROKENSIGNATURE ) ).Execute();
+ WarningBox aBox( GetDialogParent(), SfxResId( RID_XMLSEC_WARNING_BROKENSIGNATURE ) );
+ aBox.Execute();
pImp->nMacroMode = MacroExecMode::NEVER_EXECUTE;
pImp->bSignatureErrorIsShown = sal_True;
}
@@ -1887,7 +1889,8 @@ void SfxObjectShell::AdjustMacroMode( const String& /*rScriptType*/ )
if ( !pImp->bMacroDisabledMessageIsShown )
{
String aMessage( SfxResId( STR_MACROS_DISABLED ) );
- WarningBox( GetDialogParent(), WB_OK, aMessage ).Execute();
+ WarningBox aBox( GetDialogParent(), WB_OK, aMessage );
+ aBox.Execute();
pImp->bMacroDisabledMessageIsShown = sal_True;
}
@@ -1983,7 +1986,8 @@ void SfxObjectShell::AdjustMacroMode( const String& /*rScriptType*/ )
{
if ( pImp->nMacroMode != MacroExecMode::FROM_LIST_AND_SIGNED_NO_WARN )
{
- WarningBox( GetDialogParent(), SfxResId( RID_XMLSEC_WARNING_BROKENSIGNATURE ) ).Execute();
+ WarningBox aBox( GetDialogParent(), SfxResId( RID_XMLSEC_WARNING_BROKENSIGNATURE ) );
+ aBox.Execute();
pImp->nMacroMode = MacroExecMode::NEVER_EXECUTE;
return;
}
@@ -2038,7 +2042,10 @@ void SfxObjectShell::AdjustMacroMode( const String& /*rScriptType*/ )
|| pImp->nMacroMode == MacroExecMode::FROM_LIST_AND_SIGNED_WARN )
{
if ( pImp->nMacroMode == MacroExecMode::FROM_LIST_AND_SIGNED_WARN )
- WarningBox( GetDialogParent(), SfxResId( MSG_WARNING_MACRO_ISDISABLED ) ).Execute();
+ {
+ WarningBox aBox( GetDialogParent(), SfxResId( MSG_WARNING_MACRO_ISDISABLED ) );
+ aBox.Execute();
+ }
pImp->nMacroMode = MacroExecMode::NEVER_EXECUTE;
return;
}