User: rt      
Date: 05/02/02 06:00:26

Modified:
 /dba/dbaccess/source/ui/uno/
  DBTypeWizDlgSetup.cxx

Log:
 INTEGRATION: CWS imprec01 (1.2.40); FILE MERGED
 2005/01/11 13:59:36 oj 1.2.40.1: #i39228# send document events

File Changes:

Directory: /dba/dbaccess/source/ui/uno/
=======================================

File [changed]: DBTypeWizDlgSetup.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx?r1=1.2&r2=1.3
Delta lines:  +21 -3
--------------------
--- DBTypeWizDlgSetup.cxx       27 Oct 2004 13:10:02 -0000      1.2
+++ DBTypeWizDlgSetup.cxx       2 Feb 2005 14:00:23 -0000       1.3
@@ -62,6 +62,9 @@
 #ifndef _DBU_REGHELPER_HXX_
 #include "dbu_reghelper.hxx"
 #endif
+#ifndef _COM_SUN_STAR_DOCUMENT_XEVENTLISTENER_HPP_
+#include <com/sun/star/document/XEventListener.hpp>
+#endif
 #ifndef DBAUI_DBTYPEWIZDLGSETUP_HXX
 #include "DBTypeWizDlgSetup.hxx"
 #endif
@@ -113,6 +116,21 @@
        Reference < XInitialization > xDBWizardInit(xDBWizard, UNO_QUERY);
 
     xDBWizardInit->initialize(aSequence);
+
+    try
+    {
+        Reference< ::com::sun::star::document::XEventListener > 
xDocEventBroadcaster(_rxFactory->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.GlobalEventBroadcaster"))),
+            UNO_QUERY);
+        if ( xDocEventBroadcaster.is() )
+        {
+            ::com::sun::star::document::EventObject aEvent(xDBContext, 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("OnNew")) );
+            xDocEventBroadcaster->notifyEvent(aEvent);
+        }
+    }
+    catch(Exception)
+    {
+        OSL_ENSURE(0,"Could not create GlobalEventBroadcaster!");
+    }
     Reference <com::sun::star::ui::dialogs::XExecutableDialog> 
xDBWizardExecute( xDBWizard, UNO_QUERY );
     xDBWizardExecute->execute();
        return xDBWizard;




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

Reply via email to