Tag: cws_src680_qssyncterm
User: oj      
Date: 2007-08-03 07:27:34+0000
Modified:
   dba/dbaccess/source/filter/xml/dbloader2.cxx
   dba/dbaccess/source/ui/browser/dbloader.cxx

Log:
 #150029# notify OnViewCreated

File Changes:

Directory: /dba/dbaccess/source/filter/xml/
===========================================

File [changed]: dbloader2.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/filter/xml/dbloader2.cxx?r1=1.27&r2=1.27.24.1
Delta lines:  +6 -3
-------------------
--- dbloader2.cxx       2007-07-06 07:55:33+0000        1.27
+++ dbloader2.cxx       2007-08-03 07:27:31+0000        1.27.24.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: dbloader2.cxx,v $
  *
- *  $Revision: 1.27 $
+ *  $Revision: 1.27.24.1 $
  *
- *  last change: $Author: rt $ $Date: 2007/07/06 07:55:33 $
+ *  last change: $Author: oj $ $Date: 2007/08/03 07:27:31 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -628,6 +628,9 @@
             const sal_Char* pEventName = bCreateNew && !bDidLoadExisting ? 
"OnNew" : "OnLoad";
             css::document::EventObject aEvent( xModel, 
::rtl::OUString::createFromAscii( pEventName ) );
             xDocEventBroadcaster->notifyEvent(aEvent);
+                       Reference< css::document::XEventListener > 
xGlobalDocEventBroadcaster(xModelCollection,UNO_QUERY_THROW);
+            aEvent.EventName = 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("OnViewCreated"));
+            xGlobalDocEventBroadcaster->notifyEvent(aEvent);
         }
         catch(Exception)
         {

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

File [changed]: dbloader.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/dbloader.cxx?r1=1.29&r2=1.29.24.1
Delta lines:  +9 -4
-------------------
--- dbloader.cxx        2007-07-06 08:03:30+0000        1.29
+++ dbloader.cxx        2007-08-03 07:27:31+0000        1.29.24.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: dbloader.cxx,v $
  *
- *  $Revision: 1.29 $
+ *  $Revision: 1.29.24.1 $
  *
- *  last change: $Author: rt $ $Date: 2007/07/06 08:03:30 $
+ *  last change: $Author: oj $ $Date: 2007/08/03 07:27:31 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -69,6 +69,7 @@
 #ifndef _COM_SUN_STAR_LANG_XSINGLESERVICEFACTORY_HPP_
 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
 #endif
+#include <com/sun/star/document/XEventListener.hpp>
 #ifndef _COM_SUN_STAR_CONTAINER_XSET_HPP_
 #include <com/sun/star/container/XSet.hpp>
 #endif
@@ -106,6 +107,7 @@
 #include "UITools.hxx"
 #endif
 
+using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::frame;
 using namespace ::com::sun::star::beans;
@@ -277,9 +279,9 @@
                OSL_ENSURE(0,"wrong dispatch url!");
        
        sal_Bool bSuccess = xController.is();
+       Reference<XModel> xModel;
        if(bSuccess)
        {
-               Reference<XModel> xModel;
                if ( bAttachModel )
                {                       
                        PropertyValue aValue;
@@ -372,6 +374,9 @@
        {
                if ( xController.is() && rFrame.is() )
                        xController->attachFrame(rFrame);
+               Reference< document::XEventListener > 
xGlobalDocEventBroadcaster(m_xServiceFactory->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.GlobalEventBroadcaster"))),UNO_QUERY_THROW);
+        document::EventObject aEvent( xModel, 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("OnViewCreated")) );
+        xGlobalDocEventBroadcaster->notifyEvent(aEvent);
                rListener->loadFinished(this);
        }
        else if (!bSuccess && rListener.is())




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

Reply via email to