User: rt      
Date: 2008-06-06 14:10:33+0000
Modified:
   dba/dbaccess/source/ui/inc/TableWindowData.hxx

Log:
 INTEGRATION: CWS dba30c (1.4.8); FILE MERGED
 2008/05/05 11:13:36 oj 1.4.8.1: #i87131# collect keys only once, getKeys 
always refetch keys

File Changes:

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

File [changed]: TableWindowData.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/TableWindowData.hxx?r1=1.4&r2=1.5
Delta lines:  +5 -0
-------------------
--- TableWindowData.hxx 2008-04-10 15:19:56+0000        1.4
+++ TableWindowData.hxx 2008-06-06 14:10:31+0000        1.5
@@ -35,6 +35,7 @@
 #endif
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
+#include <com/sun/star/container/XIndexAccess.hpp>
 #include <com/sun/star/sdbc/XConnection.hpp>
 #include <unotools/eventlisteneradapter.hxx>
 #include <boost/shared_ptr.hpp>
@@ -50,6 +51,7 @@
        protected:
         // the columns of the table
                ::com::sun::star::uno::Reference< 
::com::sun::star::beans::XPropertySet >       m_xTable; // can either be a 
table or a query
+        ::com::sun::star::uno::Reference< 
::com::sun::star::container::XIndexAccess>    m_xKeys;
                ::com::sun::star::uno::Reference< 
::com::sun::star::container::XNameAccess >    m_xColumns;
 
                ::rtl::OUString m_aTableName;
@@ -59,6 +61,7 @@
                Size                    m_aSize;
                sal_Bool                m_bShowAll;
         bool            m_bIsQuery;
+        bool            m_bIsValid;
 
        public:
                explicit OTableWindowData(  const 
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& 
_xTable
@@ -83,6 +86,7 @@
                inline Size GetSize()                                           
const { return m_aSize; }
                inline BOOL IsShowAll()                                     
const { return m_bShowAll; }
         inline bool isQuery()                       const { return m_bIsQuery; 
}
+        inline bool isValid()                       const { return m_bIsValid; 
} // it is either a table or query but it is known
                BOOL HasPosition()      const;
                BOOL HasSize()          const;
 
@@ -92,6 +96,7 @@
                inline void ShowAll( BOOL bAll )                                
                                { m_bShowAll = bAll; }        
 
         inline ::com::sun::star::uno::Reference< 
::com::sun::star::beans::XPropertySet> getTable() const { ::osl::MutexGuard 
aGuard( m_aMutex  ); return m_xTable; }
+        inline ::com::sun::star::uno::Reference< 
::com::sun::star::container::XIndexAccess> getKeys() const { ::osl::MutexGuard 
aGuard( m_aMutex  ); return m_xKeys; }   
         inline ::com::sun::star::uno::Reference< 
::com::sun::star::container::XNameAccess > getColumns() const { 
::osl::MutexGuard aGuard( m_aMutex  ); return m_xColumns; }
 
         // OEventListenerAdapter




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

Reply via email to