summaryrefslogtreecommitdiff
path: root/sfx2/source/appl
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-07-22 10:08:41 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-07-22 10:08:41 +0000
commited84f8f4779f5bbf9b24b1245bdd56ed157d1c89 (patch)
tree493e0f363a510de268b0c742d98c39b45cac38bd /sfx2/source/appl
parentdf43a07da8f7f29942c6f1624c7dfb8c86d92e44 (diff)
INTEGRATION: CWS fwkrc32 (1.46.54); FILE MERGED
2003/07/17 08:40:21 mba 1.46.54.1: #110855#: hidden documents must process events synchronously
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r--sfx2/source/appl/appcfg.cxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx
index 195f0b9bc11a..5d2ac6399cd8 100644
--- a/sfx2/source/appl/appcfg.cxx
+++ b/sfx2/source/appl/appcfg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: appcfg.cxx,v $
*
- * $Revision: 1.46 $
+ * $Revision: 1.47 $
*
- * last change: $Author: vg $ $Date: 2003-05-26 08:28:11 $
+ * last change: $Author: vg $ $Date: 2003-07-22 11:08:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -158,6 +158,7 @@
#include <comphelper/processfactory.hxx>
#include <rtl/ustrbuf.hxx>
+#include "docfile.hxx"
#include "viewfrm.hxx"
#include "sfxhelp.hxx"
#include "sfxtypes.hxx"
@@ -1435,14 +1436,19 @@ void SfxApplication::SaveConfiguration() const
}
//--------------------------------------------------------------------
-
void SfxApplication::NotifyEvent( const SfxEventHint& rEventHint, FASTBOOL bSynchron )
{
DBG_ASSERT(pAppData_Impl->pEventConfig,"Keine Events angemeldet!");
SfxObjectShell *pDoc = rEventHint.GetObjShell();
- if ( pDoc && pDoc->IsPreview() )
- return;
+ if ( pDoc )
+ {
+ if ( pDoc->IsPreview() )
+ return;
+ SFX_ITEMSET_ARG( pDoc->GetMedium()->GetItemSet(), pItem, SfxBoolItem, SID_HIDDEN, sal_False );
+ if ( pItem && pItem->GetValue() )
+ bSynchron = TRUE;
+ }
// load on demand
pAppData_Impl->pEventConfig->GetAppEventConfig_Impl();