summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/inc/JoinTableView.hxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2002-02-08 07:56:33 +0000
committerOcke Janssen <oj@openoffice.org>2002-02-08 07:56:33 +0000
commit5b4072059e9471fe70f3d178a4f74e4e7ad21f57 (patch)
treecd2af7cccba41982b843328d6475bedd5755b8d2 /dbaccess/source/ui/inc/JoinTableView.hxx
parent6c9496c43f3fac9c49781ca4e6997dfb6e3f50a4 (diff)
#97314# accessible corrections
Diffstat (limited to 'dbaccess/source/ui/inc/JoinTableView.hxx')
-rw-r--r--dbaccess/source/ui/inc/JoinTableView.hxx62
1 files changed, 40 insertions, 22 deletions
diff --git a/dbaccess/source/ui/inc/JoinTableView.hxx b/dbaccess/source/ui/inc/JoinTableView.hxx
index 6626d89dd002..c710391374d5 100644
--- a/dbaccess/source/ui/inc/JoinTableView.hxx
+++ b/dbaccess/source/ui/inc/JoinTableView.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: JoinTableView.hxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: oj $ $Date: 2002-02-06 07:23:39 $
+ * last change: $Author: oj $ $Date: 2002-02-08 08:56:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -76,9 +76,7 @@
#ifndef _TRANSFER_HXX
#include <svtools/transfer.hxx>
#endif
-#ifndef _VECTOR_
-#include <vector>
-#endif
+
#ifndef _COMPHELPER_STLTYPES_HXX_
#include <comphelper/stl_types.hxx>
#endif
@@ -86,6 +84,9 @@
#include "callbacks.hxx"
#endif
+#include <memory>
+#include <vector>
+
struct AcceptDropEvent;
struct ExecuteDropEvent;
class SfxUndoAction;
@@ -96,17 +97,7 @@ namespace dbaui
struct OJoinExchangeData;
class OJoinDesignView;
class OTableWindowData;
-
- ////////////////////////////////////////////////////////////////
- // Konstanten fuer das Fensterlayout
- const long TABWIN_SPACING_X = 17;
- const long TABWIN_SPACING_Y = 17;
-
- const long TABWIN_WIDTH_STD = 120;
- const long TABWIN_HEIGHT_STD = 120;
-
- const long TABWIN_WIDTH_MIN = 90;
- const long TABWIN_HEIGHT_MIN = 80;
+ class IAccessibleHelper;
// this class conatins only the scrollbars to avoid that the tablewindows clip the scrollbars
class OJoinTableView;
@@ -151,11 +142,12 @@ namespace dbaui
Size m_aOutputSize;
- OTableWindow* m_pDragWin;
- OTableWindow* m_pSizingWin;
- OTableConnection* m_pSelectedConn;
+ OTableWindow* m_pDragWin;
+ OTableWindow* m_pSizingWin;
+ OTableConnection* m_pSelectedConn;
+ IAccessibleHelper* m_pAccessible;
- BOOL m_bTrackingInitiallyMoved;
+ BOOL m_bTrackingInitiallyMoved;
DECL_LINK(OnDragScrollTimer, void*);
@@ -195,7 +187,24 @@ namespace dbaui
virtual void HideTabWins();
virtual void AddConnection(const OJoinExchangeData& jxdSource, const OJoinExchangeData& jxdDest);
- virtual BOOL RemoveConnection(OTableConnection* pConn);
+
+ /** RemoveConnection allows to remove connections from join table view, it implies that the same as addConnection
+
+ @param _pConnection
+ the connection which should be removed
+ @param _bDelete
+ when truie then the connection will be deleted
+
+ @return an iterator to next valid connection, so it can be used in any loop
+ */
+ virtual ::std::vector<OTableConnection*>::const_iterator RemoveConnection(OTableConnection* _pConnection,sal_Bool _bDelete);
+
+ /** allows to add new connections to join table view, it implies an invalidation of the features
+ ID_BROWSER_ADDTABLE and ID_RELATION_ADD_RELATION also the modified flag will be set to true
+ @param _pConnection
+ the connection which should be added
+ */
+ void addConnection(OTableConnection* _pConnection);
BOOL Scroll( long nDelta, BOOL bHoriz, BOOL bPaintScrollBars );
ULONG GetTabWinCount();
@@ -210,7 +219,10 @@ namespace dbaui
OTableWindowMap* GetTabWinMap() { return &m_aTableMap; }
const OTableWindowMap* GetTabWinMap() const { return &m_aTableMap; }
- ::std::vector<OTableConnection*>* GetTabConnList() { return &m_vTableConnection; }
+
+ /** gives a read only access to the connection vector
+ */
+ const ::std::vector<OTableConnection*>* getTableConnections() const { return &m_vTableConnection; }
BOOL ExistsAConn(const OTableWindow* pFromWin) const;
@@ -268,6 +280,12 @@ namespace dbaui
// negativ ist.
virtual void TabWinSized(OTableWindow* ptWhich, const Point& ptOldPosition, const Size& szOldSize);
+ /** should be called when the table or connection count changed
+ @param _nOldCount
+ the old child count
+ */
+ void childCountChanged(sal_Int32 _nOldCount);
+
protected:
virtual void MouseButtonUp( const MouseEvent& rEvt );
virtual void MouseButtonDown( const MouseEvent& rEvt );