diff options
author | Mathias Bauer <mba@openoffice.org> | 2000-10-20 16:12:47 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2000-10-20 16:12:47 +0000 |
commit | c3c916fcf216d9d85e5880ba3d91e82e3cf9eb5e (patch) | |
tree | 7b62dd00b95250bd4fb61a200bd5582bac886a32 /sfx2 | |
parent | 6c7278175efd9b114832b1758e9b7ce818b231d7 (diff) |
#78340#: Execute save while closing using bindings
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objxtor.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index 4d447764b907..a0f5738ddb24 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -2,9 +2,9 @@ * * $RCSfile: objxtor.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:52:33 $ + * last change: $Author: mba $ $Date: 2000-10-20 17:12:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -483,16 +483,16 @@ sal_uInt16 SfxObjectShell::PrepareClose SfxStringItem aItem( SID_VERSION, String( SfxResId( STR_AUTOMATICVERSION ) ) ); SfxBoolItem aWarnItem( SID_FAIL_ON_WARNING, TRUE ); const SfxPoolItem* ppArgs[] = { &aItem, &aWarnItem, 0 }; - pPoolItem = pFrame->GetDispatcher()->Execute( SID_SAVEDOC, SFX_CALLMODE_SYNCHRON, ppArgs, 0 ); + pPoolItem = pFrame->GetBindings().ExecuteSynchron( SID_SAVEDOC, ppArgs ); } else { SfxBoolItem aWarnItem( SID_FAIL_ON_WARNING, TRUE ); const SfxPoolItem* ppArgs[] = { &aWarnItem, 0 }; - pPoolItem = pFrame->GetDispatcher()->Execute( SID_SAVEDOC, SFX_CALLMODE_SYNCHRON, ppArgs, 0 ); + pPoolItem = pFrame->GetBindings().ExecuteSynchron( SID_SAVEDOC, ppArgs ); } - if ( !pPoolItem || !pPoolItem->ISA(SfxBoolItem) || !( (const SfxBoolItem*) pPoolItem )->GetValue() ) + if ( !pPoolItem || ( pPoolItem->ISA(SfxBoolItem) && !( (const SfxBoolItem*) pPoolItem )->GetValue() ) ) return sal_False; else bClose = sal_True; |