summaryrefslogtreecommitdiff
path: root/sfx2/source/config/evntconf.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-05-26 07:28:45 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-05-26 07:28:45 +0000
commit943d2689ca468c838ac2c130436d1c2241d46804 (patch)
tree8825a4c8777880dc32ccc335cb56e906b6c3cfe3 /sfx2/source/config/evntconf.cxx
parent02460a1a26ccdcdb00298a3c7bc23b76cce64b38 (diff)
INTEGRATION: CWS fwk03 (1.15.32); FILE MERGED
2003/05/20 14:54:56 mba 1.15.32.1: #109739#: event processing always uses Notification
Diffstat (limited to 'sfx2/source/config/evntconf.cxx')
-rw-r--r--sfx2/source/config/evntconf.cxx31
1 files changed, 4 insertions, 27 deletions
diff --git a/sfx2/source/config/evntconf.cxx b/sfx2/source/config/evntconf.cxx
index d30bac818973..2ba616031d90 100644
--- a/sfx2/source/config/evntconf.cxx
+++ b/sfx2/source/config/evntconf.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: evntconf.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: hr $ $Date: 2003-04-04 17:35:21 $
+ * last change: $Author: vg $ $Date: 2003-05-26 08:28:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -394,27 +394,6 @@ void SfxEventConfiguration::ConfigureEvent( USHORT nId, const SvxMacro& rMacro,
//==========================================================================
-void SfxEventConfiguration::ExecuteEvent(
- USHORT nId, SfxObjectShell *pDoc, FASTBOOL bSynchron, const String& rArgs )
-{
- if ( pDoc && pDoc->IsPreview() )
- return;
-
- if ( pDoc && pDoc->GetEventConfig_Impl() && pDoc->GetEventConfig_Impl()->aMacroTable.Seek( nId ) )
- return;
-
- const SvxMacro* pMacro = GetAppEventConfig_Impl()->aMacroTable.Seek( nId );
- if ( pMacro )
- {
- if ( bSynchron )
- SfxMacroConfig::GetOrCreate()->ExecuteMacro( pDoc, pMacro, rArgs );
- else
- new SfxAsyncEvent_Impl( pDoc, pMacro, rArgs );
- }
-}
-
-//==========================================================================
-
const SvxMacro* SfxEventConfiguration::GetMacroForEventId
(
USHORT nId,
@@ -610,9 +589,6 @@ BOOL SfxEventConfigItem_Impl::StoreXML( SvStream& rOutStream )
{
if ( aSequence[n] == aEventName )
{
- // create properties from macro
- //SvxMacro* pMacro = rTable.GetObject( i );
- //aData[n] = pEvConfig->CreateEventData_Impl( pMacro );
aData[n] = xEvents->getByName( aEventName );
break;
}
@@ -709,7 +685,8 @@ void SfxEventConfiguration::AddEvents( SfxMacroTabPage* pPage ) const
DBG_ASSERT(pEventArr,"Keine Events angemeldet!");
USHORT nCount = pEventArr->Count();
for (USHORT n=1; n<nCount; n++)
- pPage->AddEvent( (*pEventArr)[n]->aEventName, (*pEventArr)[n]->nEventId );
+ if ( (*pEventArr)[n]->aEventName.Len() )
+ pPage->AddEvent( (*pEventArr)[n]->aEventName, (*pEventArr)[n]->nEventId );
}
SvxMacroTableDtor* SfxEventConfiguration::GetAppEventTable()