Tag: cws_src680_dba24d
User: fs      
Date: 2007-11-22 13:11:04+0000
Modified:
   dba/dbaccess/source/ui/misc/TableCopyHelper.cxx

Log:
 #i81658# DataAccessDescriptor is no service anymore, instead there is a 
(singleton) DataAccessDescriptorFactory which can create it

File Changes:

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

File [changed]: TableCopyHelper.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/misc/TableCopyHelper.cxx?r1=1.10.28.2&r2=1.10.28.3
Delta lines:  +9 -4
-------------------
--- TableCopyHelper.cxx 2007-11-15 10:05:27+0000        1.10.28.2
+++ TableCopyHelper.cxx 2007-11-22 13:11:01+0000        1.10.28.3
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: TableCopyHelper.cxx,v $
  *
- *  $Revision: 1.10.28.2 $
+ *  $Revision: 1.10.28.3 $
  *
- *  last change: $Author: fs $ $Date: 2007/11/15 10:05:27 $
+ *  last change: $Author: fs $ $Date: 2007/11/22 13:11:01 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -68,6 +68,9 @@
 #ifndef _COM_SUN_STAR_SDB_APPLICATION_COPYTABLEWIZARD_HPP_
 #include <com/sun/star/sdb/application/CopyTableWizard.hpp>
 #endif
+#ifndef _COM_SUN_STAR_SDB_DATAACCESSDESCRIPTORFACTORY_HPP_
+#include <com/sun/star/sdb/DataAccessDescriptorFactory.hpp>
+#endif
 
 #ifndef DBAUI_RTFREADER_HXX
 #include "RtfReader.hxx"
@@ -196,14 +199,16 @@
 
         ::comphelper::ComponentContext aContext( m_pController->getORB() );
 
-        Reference< XPropertySet > xSource( aContext.createComponent( 
"com.sun.star.sdb.DataAccessDescriptor" ), UNO_QUERY_THROW );
+        Reference< XDataAccessDescriptorFactory > xFactory( 
DataAccessDescriptorFactory::get( aContext.getUNOContext() ) );
+
+        Reference< XPropertySet > xSource( 
xFactory->createDataAccessDescriptor(), UNO_SET_THROW );
         xSource->setPropertyValue( PROPERTY_COMMAND_TYPE, makeAny( 
_nCommandType ) );
         xSource->setPropertyValue( PROPERTY_COMMAND, makeAny( _sCommand ) );
         xSource->setPropertyValue( PROPERTY_ACTIVE_CONNECTION, makeAny( 
xSrcConnection ) );
         xSource->setPropertyValue( PROPERTY_SELECTION, makeAny( _aSelection ) 
);
         xSource->setPropertyValue( PROPERTY_BOOKMARK_SELECTION, makeAny( 
_bBookmarkSelection ) );
 
-        Reference< XPropertySet > xDest( aContext.createComponent( 
"com.sun.star.sdb.DataAccessDescriptor" ), UNO_QUERY_THROW );
+        Reference< XPropertySet > xDest( 
xFactory->createDataAccessDescriptor(), UNO_SET_THROW );
         xDest->setPropertyValue( PROPERTY_ACTIVE_CONNECTION, makeAny( 
_xDestConnection ) );
 
         Reference< XCopyTableWizard > xWizard( CopyTableWizard::create( 
aContext.getUNOContext(), xSource, xDest ), UNO_SET_THROW );




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

Reply via email to