User: vg      
Date: 05/03/10 08:55:06

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

Log:
 INTEGRATION: CWS dba24 (1.2.48); FILE MERGED
 2005/03/08 10:22:15 oj 1.2.48.4: RESYNC: (1.4-1.6); FILE MERGED
 2005/02/23 07:41:50 oj 1.2.48.3: #i42461# reinvent the opening of database 
documents
 2005/02/21 13:14:17 oj 1.2.48.2: RESYNC: (1.2-1.4); FILE MERGED
 2005/02/18 12:42:27 oj 1.2.48.1: #i42460# changes for the separation of 
datasource and database document(model)

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.6&r2=1.7
Delta lines:  +8 -27
--------------------
--- DBTypeWizDlgSetup.cxx       4 Mar 2005 00:09:59 -0000       1.6
+++ DBTypeWizDlgSetup.cxx       10 Mar 2005 16:55:03 -0000      1.7
@@ -74,6 +74,12 @@
 #ifndef DBAUI_DBWIZSETUP_HXX
 #include "dbwizsetup.hxx"
 #endif
+#ifndef _COM_SUN_STAR_SDB_XOFFICEDATABASEDOCUMENT_HPP_
+#include <com/sun/star/sdb/XOfficeDatabaseDocument.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XDATASOURCE_HPP_
+#include <com/sun/star/sdbc/XDataSource.hpp>
+#endif
 #ifndef _SV_MSGBOX_HXX
 #include <vcl/msgbox.hxx>
 #endif
@@ -94,6 +100,8 @@
        using namespace ::com::sun::star::uno;
        using namespace ::com::sun::star::lang;
        using namespace ::com::sun::star::beans;
+    using namespace ::com::sun::star::sdb;
+    using namespace ::com::sun::star::sdbc;
 
 //=========================================================================
 //-------------------------------------------------------------------------
@@ -118,34 +126,7 @@
 //-------------------------------------------------------------------------
 Reference< XInterface > SAL_CALL ODBTypeWizDialogSetup::Create(const 
Reference< XMultiServiceFactory >& _rxFactory)
 {
-    Reference < XInterface > xDBContext = 
_rxFactory->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdb.OfficeDatabaseDocument")));
-       Sequence<Any> aSequence(1);
-       PropertyValue aPropertyValue;
-    Any aTmp;
-    aTmp <<= xDBContext;
-    aPropertyValue.Name = 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("InitialSelection"));
-    aPropertyValue.Value = aTmp;
-       aSequence[0] <<= aPropertyValue;
        Reference < XInterface > xDBWizard = *(new 
ODBTypeWizDialogSetup(_rxFactory));
-       Reference < XInitialization > xDBWizardInit(xDBWizard, UNO_QUERY);
-
-    xDBWizardInit->initialize(aSequence);
-
-    try
-    {
-        Reference< css::container::XSet > 
xModelCollection(_rxFactory->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.GlobalEventBroadcaster"))),UNO_QUERY_THROW);
-        xModelCollection->insert(css::uno::makeAny(xDBContext));
-
-        Reference< css::document::XEventListener > 
xDocEventBroadcaster(xDBContext,UNO_QUERY_THROW);
-        ::com::sun::star::document::EventObject aEvent(xDBContext, 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("OnNew")));
-        xDocEventBroadcaster->notifyEvent(aEvent);
-    }
-    catch(Exception)
-    {
-        OSL_ENSURE(0,"Could not create append model to global model 
collectiona and broadcaste document events for it!");
-    }
-    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