summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/inc
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-06-06 13:10:31 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-06-06 13:10:31 +0000
commit8285a15efb70e076b6682a9062a6347c305e72d0 (patch)
tree5a8378f10881aa675d84a5410e7730f73c19a91a /dbaccess/source/ui/inc
parent0232da1dbd6d359c2be29fe5e82d89b172fb81a8 (diff)
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
Diffstat (limited to 'dbaccess/source/ui/inc')
-rw-r--r--dbaccess/source/ui/inc/TableWindowData.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/dbaccess/source/ui/inc/TableWindowData.hxx b/dbaccess/source/ui/inc/TableWindowData.hxx
index 1b0552cdc..61e480d56 100644
--- a/dbaccess/source/ui/inc/TableWindowData.hxx
+++ b/dbaccess/source/ui/inc/TableWindowData.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: TableWindowData.hxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
@@ -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 @@ namespace dbaui
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 @@ namespace dbaui
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 @@ namespace dbaui
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 @@ namespace dbaui
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