summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ui/inc/TableWindow.hxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-06-28 13:26:45 +0000
committerOcke Janssen <oj@openoffice.org>2001-06-28 13:26:45 +0000
commit2e91342770e3d84129070b1b92379a90d97cebb4 (patch)
treefe64fea49be4718ea3be22b4b1dc723411a3c724 /dbaccess/source/ui/inc/TableWindow.hxx
parent#88787# assure that the noone access objects that could already be disposed (diff)
downloadcore-2e91342770e3d84129070b1b92379a90d97cebb4.tar.gz
core-2e91342770e3d84129070b1b92379a90d97cebb4.zip
#88787# assure that the noone access objects thaould already be disposed
Diffstat (limited to 'dbaccess/source/ui/inc/TableWindow.hxx')
-rw-r--r--dbaccess/source/ui/inc/TableWindow.hxx23
1 files changed, 14 insertions, 9 deletions
diff --git a/dbaccess/source/ui/inc/TableWindow.hxx b/dbaccess/source/ui/inc/TableWindow.hxx
index bc8ff4444ee6..8587b1331593 100644
--- a/dbaccess/source/ui/inc/TableWindow.hxx
+++ b/dbaccess/source/ui/inc/TableWindow.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TableWindow.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: oj $ $Date: 2001-02-28 10:07:01 $
+ * last change: $Author: oj $ $Date: 2001-06-28 14:26:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -82,6 +82,9 @@
#ifndef _SV_WINDOW_HXX
#include <vcl/window.hxx>
#endif
+#ifndef _UNOTOOLS_EVENTLISTENERADAPTER_HXX_
+#include <unotools/eventlisteneradapter.hxx>
+#endif
class SvLBoxEntry;
namespace dbaui
@@ -98,10 +101,13 @@ namespace dbaui
class OJoinDesignView;
class OJoinTableView;
- class OTableWindow : public Window
+ class OTableWindow : public Window,
+ public ::utl::OEventListenerAdapter
{
friend class OTableWindowTitle;
friend class OTableWindowListBox;
+
+ mutable ::osl::Mutex m_aMutex;
protected:
// und die Tabelle selber (brauche ich, da ich sie locken will, solange das Fenster lebt)
OTableWindowTitle m_aTitle;
@@ -138,10 +144,6 @@ namespace dbaui
virtual void OnEntryDoubleClicked(SvLBoxEntry* pEntry) { }
// wird aus dem DoubleClickHdl der ListBox heraus aufgerufen
- // die unterliegende Tabellendefinition (un)locken
- // void LockTable() { if (m_xTableDef.Is()) m_xTableDef->AddUsage(); }
- // void UnlockTable() { if (m_xTableDef.Is()) m_xTableDef->ReleaseUsage(); }
-
public:
TYPEINFO();
OTableWindow( Window* pParent, OTableWindowData* pTabWinData);
@@ -168,8 +170,8 @@ namespace dbaui
::rtl::OUString GetComposedName() const { return m_pData->GetComposedName(); }
OTableWindowListBox* GetListBox() const { return m_pListBox; }
OTableWindowData* GetData() const { return m_pData; }
- ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> GetOriginalColumns() const { return m_xColumns; }
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> GetTable() const { return m_xTable; }
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> GetOriginalColumns() const { ::osl::MutexGuard aGuard( m_aMutex ); return m_xColumns; }
+ ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> GetTable() const { ::osl::MutexGuard aGuard( m_aMutex ); return m_xTable; }
UINT16 GetSizingFlags() const { return m_nSizingFlags; }
@@ -184,6 +186,9 @@ namespace dbaui
BOOL ExistsAConn() const;
virtual void EnumValidFields(::std::vector< ::rtl::OUString>& arrstrFields);
+
+ // OEventListenerAdapter
+ virtual void _disposing( const ::com::sun::star::lang::EventObject& _rSource );
};
}
#endif //DBAUI_TABLEWINDOW_HXX