[Libreoffice-commits] .: editeng/inc editeng/source

Caolán McNamara caolan at kemper.freedesktop.org
Fri Sep 30 05:03:22 PDT 2011


 editeng/inc/editeng/outliner.hxx   |    1 
 editeng/source/outliner/outlvw.cxx |   46 -------------------------------------
 2 files changed, 47 deletions(-)

New commits:
commit 7af852b3f4070b10e98a49c4ddc098e89a5b9cca
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 30 13:03:16 2011 +0100

    callcatcher: remove newly unused code

diff --git a/editeng/inc/editeng/outliner.hxx b/editeng/inc/editeng/outliner.hxx
index 49e615b..89ee624 100644
--- a/editeng/inc/editeng/outliner.hxx
+++ b/editeng/inc/editeng/outliner.hxx
@@ -235,7 +235,6 @@ private:
     EDITENG_DLLPRIVATE sal_uLong       ImpCheckMousePos( const Point& rPosPixel, MouseTarget& reTarget);
     EDITENG_DLLPRIVATE void        ImpToggleExpand( Paragraph* pParentPara );
     EDITENG_DLLPRIVATE ParaRange    ImpGetSelectedParagraphs( sal_Bool bIncludeHiddenChilds );
-    EDITENG_DLLPRIVATE void        ImpPaintDDCursor();
 
     EDITENG_DLLPRIVATE Pointer     ImpGetMousePointer( MouseTarget eTarget );
     EDITENG_DLLPRIVATE sal_uInt16      ImpInitPaste( sal_uLong& rStart );
diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx
index 0205e4c..eb5944d 100644
--- a/editeng/source/outliner/outlvw.cxx
+++ b/editeng/source/outliner/outlvw.cxx
@@ -402,52 +402,6 @@ sal_Bool OutlinerView::MouseButtonUp( const MouseEvent& rMEvt )
     return pEditView->MouseButtonUp( rMEvt );
 }
 
-void OutlinerView::ImpPaintDDCursor()
-{
-    DBG_CHKTHIS(OutlinerView,0);
-
-    Window* pWindow = pEditView->GetWindow();
-    RasterOp eOldOp = pWindow->GetRasterOp();
-    pWindow->SetRasterOp( ROP_INVERT );
-
-    const Color& rOldLineColor = pWindow->GetLineColor();
-    pWindow->SetLineColor( Color( COL_BLACK ) );
-
-    Point aStartPointWin, aEndPointWin;
-    Rectangle aOutputArWin = pEditView->GetOutputArea();
-
-    if( bDDChangingDepth )
-    {
-        aStartPointWin.X() = pHorTabArrDoc[ nDDCurDepth ];
-        aStartPointWin.X() += aOutputArWin.Left();
-        aStartPointWin.Y() = aOutputArWin.Top();
-        aEndPointWin.X() = aStartPointWin.X();
-        aEndPointWin.Y() = aOutputArWin.Bottom();
-    }
-    else
-    {
-        sal_uLong nPara = nDDCurPara;
-        if ( nDDCurPara == LIST_APPEND )
-        {
-            Paragraph* pTemp = pOwner->pParaList->LastVisible();
-            nPara = pOwner->pParaList->GetAbsPos( pTemp );
-        }
-        aStartPointWin = pEditView->GetWindowPosTopLeft((sal_uInt16) nPara );
-        if ( nDDCurPara == LIST_APPEND )
-        {
-            long nHeight = pOwner->pEditEngine->GetTextHeight((sal_uInt16)nPara );
-            aStartPointWin.Y() += nHeight;
-        }
-        aStartPointWin.X() = aOutputArWin.Left();
-        aEndPointWin.Y() = aStartPointWin.Y();
-        aEndPointWin.X() = aOutputArWin.Right();
-    }
-
-    pWindow->DrawLine( aStartPointWin, aEndPointWin );
-    pWindow->SetLineColor( rOldLineColor );
-    pWindow->SetRasterOp( eOldOp );
-}
-
 void OutlinerView::ImpToggleExpand( Paragraph* pPara )
 {
     DBG_CHKTHIS(OutlinerView,0);


More information about the Libreoffice-commits mailing list