summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/relationdesign
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-11-01 14:36:29 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-11-01 14:36:29 +0000
commitf58235e1c84e703debccc6bdfc25c8a3955ac3da (patch)
treeb90fd681077167bcd11b49a9835791d1efee0b8b /dbaccess/source/ui/relationdesign
parent63a640b19fddfa8067e0f13926e702f4e5ba1a32 (diff)
INTEGRATION: CWS dba24b (1.8.46); FILE MERGED
2007/08/16 06:14:44 oj 1.8.46.1: #i56898# clean up of the class structure
Diffstat (limited to 'dbaccess/source/ui/relationdesign')
-rw-r--r--dbaccess/source/ui/relationdesign/RTableConnection.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/dbaccess/source/ui/relationdesign/RTableConnection.cxx b/dbaccess/source/ui/relationdesign/RTableConnection.cxx
index bd51c81a9110..304b36b96ff7 100644
--- a/dbaccess/source/ui/relationdesign/RTableConnection.cxx
+++ b/dbaccess/source/ui/relationdesign/RTableConnection.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: RTableConnection.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: kz $ $Date: 2007-05-10 10:40:40 $
+ * last change: $Author: hr $ $Date: 2007-11-01 15:36:29 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -58,7 +58,7 @@ using namespace dbaui;
DBG_NAME(ORelationTableConnection)
//------------------------------------------------------------------------
ORelationTableConnection::ORelationTableConnection( ORelationTableView* pContainer,
- ORelationTableConnectionData* pTabConnData )
+ const TTableConnectionData::value_type& pTabConnData )
:OTableConnection( pContainer, pTabConnData )
{
DBG_CTOR(ORelationTableConnection,NULL);
@@ -97,7 +97,7 @@ void ORelationTableConnection::Draw( const Rectangle& rRect )
DBG_CHKTHIS(ORelationTableConnection,NULL);
OTableConnection::Draw( rRect );
ORelationTableConnectionData* pData =
- static_cast< ORelationTableConnectionData* >(GetData());
+ static_cast< ORelationTableConnectionData* >(GetData().get());
if ( pData && (pData->GetCardinality() == CARDINAL_UNDEFINED) )
return;
@@ -135,7 +135,7 @@ void ORelationTableConnection::Draw( const Rectangle& rRect )
String aSourceText;
String aDestText;
- switch( ((ORelationTableConnectionData*)GetData())->GetCardinality() )
+ switch( pData->GetCardinality() )
{
case CARDINAL_ONE_MANY:
aSourceText ='1';
@@ -163,6 +163,3 @@ void ORelationTableConnection::Draw( const Rectangle& rRect )
GetParent()->DrawText( aDestPos, aDestText, TEXT_DRAW_CLIP | TEXT_DRAW_CENTER | TEXT_DRAW_BOTTOM);
}
// -----------------------------------------------------------------------------
-
-
-