Tag: cws_src680_dba24
User: oj      
Date: 05/02/25 02:29:08

Modified:
 /dba/dbaccess/source/core/dataaccess/
  databasedocument.cxx

Log:
 #i42460# use globalbroadcaster for the moment

File Changes:

Directory: /dba/dbaccess/source/core/dataaccess/
================================================

File [changed]: databasedocument.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/databasedocument.cxx?r1=1.8.2.10&r2=1.8.2.11
Delta lines:  +16 -2
--------------------
--- databasedocument.cxx        25 Feb 2005 06:29:17 -0000      1.8.2.10
+++ databasedocument.cxx        25 Feb 2005 10:29:05 -0000      1.8.2.11
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: databasedocument.cxx,v $
  *
- *  $Revision: 1.8.2.10 $
+ *  $Revision: 1.8.2.11 $
  *
- *  last change: $Author: oj $ $Date: 2005/02/25 06:29:17 $
+ *  last change: $Author: oj $ $Date: 2005/02/25 10:29:05 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -1150,6 +1150,20 @@
                        throw DisposedException();
                
                css::document::EventObject aEvt(*this, _sEventName);
+        /// TODO: this code has to be deleted after as cws will be integrated
+        try
+       {
+               Reference< ::com::sun::star::document::XEventListener > 
xDocEventBroadcaster(m_pImpl->m_xServiceFactory->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.GlobalEventBroadcaster"))),
+               UNO_QUERY);
+               if ( xDocEventBroadcaster.is() )
+           {
+               xDocEventBroadcaster->notifyEvent(aEvt);
+               }
+       }
+           catch(Exception)
+       {
+               OSL_ENSURE(0,"Could not create GlobalEventBroadcaster!");
+           }
                
NOTIFY_LISTERNERS(m_aDocEventListeners,css::document::XEventListener,notifyEvent)
        }
        catch(Exception&)




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to