Tag: cws_src680_dba30
User: oj      
Date: 05/12/29 04:30:44

Modified:
 /dba/connectivity/source/drivers/ado/
  ACatalog.cxx

Log:
 #i42048# hide system tables

File Changes:

Directory: /dba/connectivity/source/drivers/ado/
================================================

File [changed]: ACatalog.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/ado/ACatalog.cxx?r1=1.10&r2=1.10.14.1
Delta lines:  +19 -3
--------------------
--- ACatalog.cxx        8 Sep 2005 05:26:06 -0000       1.10
+++ ACatalog.cxx        29 Dec 2005 12:30:41 -0000      1.10.14.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: ACatalog.cxx,v $
  *
- *  $Revision: 1.10 $
+ *  $Revision: 1.10.14.1 $
  *
- *  last change: $Author: rt $ $Date: 2005/09/08 05:26:06 $
+ *  last change: $Author: oj $ $Date: 2005/12/29 12:30:41 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -81,6 +81,22 @@
        TStringVector aVector;
        
        WpADOTables aTables(m_aCatalog.get_Tables());
+  if ( aTables.IsValid() )
+  {
+    aTables.Refresh();
+    sal_Int32 nCount = aTables.GetItemCount();
+    aVector.reserve(nCount);
+    for(sal_Int32 i=0;i< nCount;++i)
+    {
+        WpADOTable aElement = aTables.GetItem(i);
+         if ( aElement.IsValid() )
+          {
+              ::rtl::OUString sTypeName = aElement.get_Type();
+                     if ( !sTypeName.equalsIgnoreAsciiCaseAscii("SYSTEM 
TABLE") && !sTypeName.equalsIgnoreAsciiCaseAscii("ACCESS TABLE") )
+                    aVector.push_back(aElement.get_Name());
+                  }
+        }
+       }
        aTables.fillElementNames(aVector);
 
        if(m_pTables)




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

Reply via email to