User: hr      
Date: 06/06/19 20:26:04

Modified:
 /dba/dbaccess/source/ui/querydesign/
  JoinTableView.cxx

Log:
 INTEGRATION: CWS warnings01 (1.52.6); FILE MERGED
 2006/03/24 15:36:25 fs 1.52.6.1: #i57457# warning-free code (unxlngi6/.pro + 
unxsoli4.pro)

File Changes:

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

File [changed]: JoinTableView.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/querydesign/JoinTableView.cxx?r1=1.52&r2=1.53
Delta lines:  +35 -41
---------------------
--- JoinTableView.cxx   16 Jan 2006 15:30:08 -0000      1.52
+++ JoinTableView.cxx   20 Jun 2006 03:26:01 -0000      1.53
@@ -122,12 +122,12 @@
 #define TABWIN_WIDTH_STD       120
 #define TABWIN_HEIGHT_STD      120
 
-DBG_NAME(OScrollWindowHelper);
+DBG_NAME(OScrollWindowHelper)
 OScrollWindowHelper::OScrollWindowHelper( Window* pParent) : Window( pParent)
        ,m_aHScrollBar( this, WB_HSCROLL|WB_REPEAT|WB_DRAG )
        ,m_aVScrollBar( this, WB_VSCROLL|WB_REPEAT|WB_DRAG )
-       ,m_pTableView(NULL)
        ,m_pCornerWindow(new ScrollBarBox(this, WB_3DLOOK))
+       ,m_pTableView(NULL)
 {
        DBG_CTOR(OScrollWindowHelper,NULL);
 
@@ -218,17 +218,17 @@
 //const long WINDOW_HEIGHT = 1000;
 DBG_NAME(OJoinTableView);
 
//------------------------------------------------------------------------------
-OJoinTableView::OJoinTableView( Window* pParent, OJoinDesignView* pView ) :
-        Window( pParent,WB_BORDER )
+OJoinTableView::OJoinTableView( Window* pParent, OJoinDesignView* pView )
+    :Window( pParent,WB_BORDER )
        ,DropTargetHelper(this)
-       ,m_pView( pView )
+    ,m_aDragOffset( Point(0,0) )
+    ,m_aScrollOffset( Point(0,0) )
        ,m_pDragWin( NULL )
        ,m_pSizingWin( NULL )
        ,m_pSelectedConn( NULL )
-       ,m_aDragOffset( Point(0,0) )
-       ,m_aScrollOffset( Point(0,0) )
        ,m_bTrackingInitiallyMoved(FALSE)
        ,m_pLastFocusTabWin(NULL)
+       ,m_pView( pView )
        ,m_pAccessible(NULL)
 {
        DBG_CTOR(OJoinTableView,NULL);
@@ -253,7 +253,7 @@
 {
        //////////////////////////////////////////////////////////////////////
        // Alle Fenster verschieben
-       Scroll( pScrollBar->GetDelta(), (pScrollBar == GetHScrollBar()), FALSE 
);
+       ScrollPane( pScrollBar->GetDelta(), (pScrollBar == GetHScrollBar()), 
FALSE );
 
        return 0;
 }
@@ -297,20 +297,13 @@
 }
 
 
//------------------------------------------------------------------------------
-void OJoinTableView::AddConnection(const OJoinExchangeData& jxdSource, const 
OJoinExchangeData& jxdDest)
-{
-       DBG_CHKTHIS(OJoinTableView,NULL);
-       sal_Int32 nOldCount = m_vTableConnection.size();
-}
-
-//------------------------------------------------------------------------------
 ::std::vector<OTableConnection*>::const_iterator 
OJoinTableView::RemoveConnection( OTableConnection* _pConn,sal_Bool _bDelete )
 {
        DBG_CHKTHIS(OJoinTableView,NULL);
        DeselectConn(_pConn);
 
        // to force a redraw
-       _pConn->Invalidate();
+       _pConn->InvalidateConnection();
 
        m_pView->getController()->removeConnectionData( _pConn->GetData() );
 
@@ -332,7 +325,7 @@
 }
 
 //------------------------------------------------------------------------
-OTableWindow* OJoinTableView::GetWindow( const String& rName )
+OTableWindow* OJoinTableView::GetTabWindow( const String& rName )
 {
        DBG_CHKTHIS(OJoinTableView,NULL);
        OTableWindowMapIterator aIter = m_aTableMap.find(rName);
@@ -346,7 +339,7 @@
        return new OTableWindowData( _rComposedName, _rWinName );
 }
 
//------------------------------------------------------------------------------
-void OJoinTableView::AddTabWin(const ::rtl::OUString& _rComposedName, const 
::rtl::OUString& rWinName, BOOL bNewTable)
+void OJoinTableView::AddTabWin(const ::rtl::OUString& _rComposedName, const 
::rtl::OUString& rWinName, BOOL /*bNewTable*/)
 {
        DBG_CHKTHIS(OJoinTableView,NULL);
        OSL_ENSURE(_rComposedName.getLength(),"There must be a table name 
supplied!");
@@ -560,10 +553,10 @@
        {
                BOOL bVisbile = TRUE;
                if (nScrollX)
-                       bVisbile = Scroll(nScrollX, TRUE, TRUE);
+                       bVisbile = ScrollPane(nScrollX, TRUE, TRUE);
 
                if (nScrollY)
-                       bVisbile = bVisbile && Scroll(nScrollY, FALSE, TRUE);
+                       bVisbile = bVisbile && ScrollPane(nScrollY, FALSE, 
TRUE);
        }
 }
 
@@ -716,7 +709,7 @@
 }
 
 
//------------------------------------------------------------------------------
-BOOL OJoinTableView::Scroll( long nDelta, BOOL bHoriz, BOOL bPaintScrollBars )
+BOOL OJoinTableView::ScrollPane( long nDelta, BOOL bHoriz, BOOL 
bPaintScrollBars )
 {
        DBG_CHKTHIS(OJoinTableView,NULL);
        BOOL bRet = TRUE;
@@ -895,7 +888,7 @@
 }
 
 
//------------------------------------------------------------------------------
-void OJoinTableView::ConnDoubleClicked( OTableConnection* pConnection )
+void OJoinTableView::ConnDoubleClicked( OTableConnection* /*pConnection*/ )
 {
        DBG_CHKTHIS(OJoinTableView,NULL);
 }
@@ -1044,7 +1037,7 @@
        //////////////////////////////////////////////////////////////////////
        // Die Joins zeichnen
        ::std::for_each(m_vTableConnection.begin(),m_vTableConnection.end(),
-               ::std::mem_fun(& OTableConnection::Invalidate));
+               ::std::mem_fun(& OTableConnection::InvalidateConnection));
 }
 
 
//------------------------------------------------------------------------------
@@ -1100,8 +1093,8 @@
        m_pSelectedConn         = NULL;
 
        // scroll to the upper left
-       Scroll(-GetScrollOffset().X(), TRUE, TRUE);
-       Scroll(-GetScrollOffset().Y(), FALSE, TRUE);
+       ScrollPane(-GetScrollOffset().X(), TRUE, TRUE);
+       ScrollPane(-GetScrollOffset().Y(), FALSE, TRUE);
        Invalidate();
 }
 
@@ -1132,7 +1125,7 @@
        // TODO : nur dann abfangen, wenn das Fenster komplett verschwinden 
wuerde (nicht, solange noch ein Pixel sichtbar ist)
        if( aDragWinPos.X() < 5 )
        {
-               bScrolling = Scroll( -LINE_SIZE, TRUE, TRUE );
+               bScrolling = ScrollPane( -LINE_SIZE, TRUE, TRUE );
                if( !bScrolling && (aDragWinPos.X()<0) )
                        aDragWinPos.X() = 0;
 
@@ -1142,7 +1135,7 @@
 
        if( aLowerRight.X() > m_aOutputSize.Width() - 5 )
        {
-               bScrolling = Scroll( LINE_SIZE, TRUE, TRUE ) ;
+               bScrolling = ScrollPane( LINE_SIZE, TRUE, TRUE ) ;
                if( !bScrolling && ( aLowerRight.X() > m_aOutputSize.Width() ) )
                        aDragWinPos.X() = m_aOutputSize.Width() - 
aDragWinSize.Width();
 
@@ -1152,7 +1145,7 @@
 
        if( aDragWinPos.Y() < 5 )
        {
-               bScrolling = Scroll( -LINE_SIZE, FALSE, TRUE );
+               bScrolling = ScrollPane( -LINE_SIZE, FALSE, TRUE );
                if( !bScrolling && (aDragWinPos.Y()<0) )
                        aDragWinPos.Y() = 0;
 
@@ -1161,7 +1154,7 @@
 
        if( aLowerRight.Y() > m_aOutputSize.Height() - 5 )
        {
-               bScrolling = Scroll( LINE_SIZE, FALSE, TRUE );
+               bScrolling = ScrollPane( LINE_SIZE, FALSE, TRUE );
                if( !bScrolling && ( (aDragWinPos.Y() + aDragWinSize.Height()) 
> m_aOutputSize.Height() ) )
                        aDragWinPos.Y() =  m_aOutputSize.Height() - 
aDragWinSize.Height();
 
@@ -1373,9 +1366,9 @@
                                if (pData->GetMode() == COMMAND_WHEEL_SCROLL)
                                {
                                        if (pData->GetDelta() > 0)
-                                               Scroll(-10 * 
pData->GetScrollLines(), pData->IsHorz(), TRUE);
+                                               ScrollPane(-10 * 
pData->GetScrollLines(), pData->IsHorz(), TRUE);
                                        else
-                                               Scroll(10 * 
pData->GetScrollLines(), pData->IsHorz(), TRUE);
+                                               ScrollPane(10 * 
pData->GetScrollLines(), pData->IsHorz(), TRUE);
                                        bHandled = TRUE;
                                }
                        }
@@ -1449,10 +1442,12 @@
                                                {       // no active tab win -> 
travel the connections
                                                        // find the currently 
selected conn within the conn list
                                                        sal_Int32 i(0);
-                                                       
::std::vector<OTableConnection*>::iterator aIter = m_vTableConnection.begin();
-                                                       for(;aIter != 
m_vTableConnection.end();++aIter,++i)
+                                                       for (   
::std::vector<OTableConnection*>::iterator connectionIter = 
m_vTableConnection.begin();
+                                    connectionIter != m_vTableConnection.end();
+                                    ++connectionIter, ++i
+                                )
                                                        {
-                                                               if ((*aIter) == 
GetSelectedConn())
+                                                               if ( 
(*connectionIter) == GetSelectedConn() )
                                                                        break;
                                                        }
                                                        if (i == 
sal_Int32(m_vTableConnection.size() - 1) && bForward)
@@ -1616,12 +1611,12 @@
 
 }
 // 
-----------------------------------------------------------------------------
-sal_Int8 OJoinTableView::AcceptDrop( const AcceptDropEvent& _rEvt )
+sal_Int8 OJoinTableView::AcceptDrop( const AcceptDropEvent& /*_rEvt*/ )
 {
        return DND_ACTION_NONE;
 }
 // 
-----------------------------------------------------------------------------
-sal_Int8 OJoinTableView::ExecuteDrop( const ExecuteDropEvent& _rEvt )
+sal_Int8 OJoinTableView::ExecuteDrop( const ExecuteDropEvent& /*_rEvt*/ )
 {
        return DND_ACTION_NONE;
 }
@@ -1630,7 +1625,7 @@
 {
 }
 
//------------------------------------------------------------------------------
-void OJoinTableView::StartDrag( sal_Int8 nAction, const Point& rPosPixel )
+void OJoinTableView::StartDrag( sal_Int8 /*nAction*/, const Point& 
/*rPosPixel*/ )
 {
 }
 // 
-----------------------------------------------------------------------------
@@ -1638,7 +1633,6 @@
 {
        m_pLastFocusTabWin      = NULL;
        m_pSelectedConn         = NULL;
-       sal_Int32 nOldCount = m_aTableMap.size() + m_vTableConnection.size();
        //////////////////////////////////////////////////////////////////////
        // Listen loeschen
        OTableWindowMapIterator aIter = m_aTableMap.begin();
@@ -1712,7 +1706,7 @@
        }
        m_vTableConnection.push_back(_pConnection);
        _pConnection->RecalcLines();
-       _pConnection->Invalidate();
+       _pConnection->InvalidateConnection();
 
        modified();
        if ( m_pAccessible )




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

Reply via email to