Tag: cws_src680_qiq
User: fs      
Date: 06/06/06 06:58:14

Modified:
 /dba/dbaccess/source/core/api/
  HelperCollections.cxx, HelperCollections.hxx

Log:
 #i51143# +createWithIntrinsicNames

File Changes:

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

File [changed]: HelperCollections.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/api/HelperCollections.cxx?r1=1.4&r2=1.4.124.1
Delta lines:  +27 -3
--------------------
--- HelperCollections.cxx       8 Sep 2005 09:58:06 -0000       1.4
+++ HelperCollections.cxx       6 Jun 2006 13:58:12 -0000       1.4.124.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: HelperCollections.cxx,v $
  *
- *  $Revision: 1.4 $
+ *  $Revision: 1.4.124.1 $
  *
- *  last change: $Author: rt $ $Date: 2005/09/08 09:58:06 $
+ *  last change: $Author: fs $ $Date: 2006/06/06 13:58:12 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -36,6 +36,10 @@
 #include "HelperCollections.hxx"
 #endif
 
+#ifndef DBACCESS_SHARED_DBASTRINGS_HRC
+#include "dbastrings.hrc"
+#endif
+
 namespace dbaccess
 {
        using namespace dbtools;
@@ -62,6 +66,26 @@
                                                ,m_aColumns(_rColumns)
        {
        }
+
+       // 
-------------------------------------------------------------------------
+    OPrivateColumns* OPrivateColumns::createWithIntrinsicNames( const 
::vos::ORef< ::connectivity::OSQLColumns >& _rColumns,
+        sal_Bool _bCase, ::cppu::OWeakObject& _rParent, ::osl::Mutex& _rMutex )
+    {
+        ::std::vector< ::rtl::OUString > aNames; aNames.reserve( 
_rColumns->size() );
+
+        ::rtl::OUString sColumName;
+        for (   ::connectivity::OSQLColumns::const_iterator column = 
_rColumns->begin();
+                column != _rColumns->end();
+                ++column
+            )
+        {
+            Reference< XPropertySet > xColumn( *column, UNO_QUERY_THROW );
+            xColumn->getPropertyValue( PROPERTY_NAME ) >>= sColumName;
+            aNames.push_back( sColumName );
+        }
+        return new OPrivateColumns( _rColumns, _bCase, _rParent, _rMutex, 
aNames, sal_False );
+    }
+
        // 
-------------------------------------------------------------------------
        void SAL_CALL OPrivateColumns::disposing(void)
        {

File [changed]: HelperCollections.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/api/HelperCollections.hxx?r1=1.4&r2=1.4.124.1
Delta lines:  +13 -3
--------------------
--- HelperCollections.hxx       8 Sep 2005 09:58:29 -0000       1.4
+++ HelperCollections.hxx       6 Jun 2006 13:58:12 -0000       1.4.124.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: HelperCollections.hxx,v $
  *
- *  $Revision: 1.4 $
+ *  $Revision: 1.4.124.1 $
  *
- *  last change: $Author: rt $ $Date: 2005/09/08 09:58:29 $
+ *  last change: $Author: fs $ $Date: 2006/06/06 13:58:12 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -86,6 +86,16 @@
                                                const ::std::vector< 
::rtl::OUString> &_rVector,
                                                sal_Bool _bUseAsIndex = 
sal_False
                                        );
+
+        /** creates a columns instance as above, but taking the names from the 
columns itself
+        */
+               static OPrivateColumns* createWithIntrinsicNames(
+            const ::vos::ORef< ::connectivity::OSQLColumns >& _rColumns,
+                       sal_Bool _bCase,
+                       ::cppu::OWeakObject& _rParent,
+                       ::osl::Mutex& _rMutex
+               );
+
                virtual void SAL_CALL disposing(void);
        };
        typedef connectivity::sdbcx::OCollection OPrivateTables_BASE;




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

Reply via email to