[PATCH 5/9] dead code removed in calc ui pagedlg

pjacquod pjacquod at alumni.ethz.ch
Sat Nov 20 13:01:44 PST 2010


---
 sc/source/ui/pagedlg/areasdlg.cxx |    4 -
 sc/source/ui/pagedlg/tphfedit.cxx |  126 -------------------------------------
 2 files changed, 0 insertions(+), 130 deletions(-)

diff --git a/sc/source/ui/pagedlg/areasdlg.cxx b/sc/source/ui/pagedlg/areasdlg.cxx
index 5ff14b2..0df17bc 100644
--- a/sc/source/ui/pagedlg/areasdlg.cxx
+++ b/sc/source/ui/pagedlg/areasdlg.cxx
@@ -211,9 +211,6 @@ void ScPrintAreasDlg::SetReference( const ScRange& rRef, ScDocument* /* pDoc */
         if ( &aEdPrintArea == pRefInputEdit )
         {
             rRef.Format( aStr, SCR_ABS, pDoc, eConv );
-
-//			aEdPrintArea.ReplaceSelected( aStr );
-
             String aVal = aEdPrintArea.GetText();
             Selection aSel = aEdPrintArea.GetSelection();
             aSel.Justify();
@@ -473,7 +470,6 @@ void ScPrintAreasDlg::Impl_FillLists()
     {
         String			aName;
         String			aSymbol;
-//        ScRange         aRange;
         ScRangeData*	pData = NULL;
 
         for ( USHORT i=0; i<nCount; i++ )
diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx
index e6ec741..8dbbd4c 100644
--- a/sc/source/ui/pagedlg/tphfedit.cxx
+++ b/sc/source/ui/pagedlg/tphfedit.cxx
@@ -336,19 +336,16 @@ void __EXPORT ScEditWindow::LoseFocus()
     case Left:
         {
             sName = String(ScResId(STR_ACC_LEFTAREA_NAME));
-//            sDescription = String(ScResId(STR_ACC_LEFTAREA_DESCR));
         }
         break;
     case Center:
         {
             sName = String(ScResId(STR_ACC_CENTERAREA_NAME));
-//            sDescription = String(ScResId(STR_ACC_CENTERAREA_DESCR));
         }
         break;
     case Right:
         {
             sName = String(ScResId(STR_ACC_RIGHTAREA_NAME));
-//            sDescription = String(ScResId(STR_ACC_RIGHTAREA_DESCR));
         }
         break;
     }
@@ -359,38 +356,6 @@ void __EXPORT ScEditWindow::LoseFocus()
     return pAcc;
 }
 
-/*
-class ScExtIButton : public ImageButton
-{
-private:
-
-    Timer			aTimer;
-    ScPopupMenu*	pPopupMenu;
-
-    DECL_LINK( TimerHdl, Timer*);
-
-    void			DrawArrow();
-
-protected:
-
-    virtual void	MouseButtonDown( const MouseEvent& rMEvt );
-    virtual void	MouseButtonUp( const MouseEvent& rMEvt);
-
-    virtual void	StartPopup();
-
-public:
-
-    ScExtIButton(Window* pParent, const ResId& rResId );
-
-    void			SetPopupMenu(ScPopupMenu* pPopUp);
-
-    USHORT			GetSelected();
-
-    void            SetMenuHdl( const Link& rLink ) { aFxLink = rLink; }
-    const Link&     GetMenuHdl() const { return aFxLink; }
-
-}
-*/
 ScExtIButton::ScExtIButton(Window* pParent, const ResId& rResId )
 :	ImageButton(pParent,rResId),
     pPopupMenu(NULL)
@@ -398,8 +363,6 @@ ScExtIButton::ScExtIButton(Window* pParent, const ResId& rResId )
     nSelected=0;
     aTimer.SetTimeout(600);
     SetDropDown( TRUE);
-
-//	DrawArrow();
 }
 
 void ScExtIButton::SetPopupMenu(ScPopupMenu* pPopUp)
@@ -474,94 +437,5 @@ IMPL_LINK( ScExtIButton, TimerHdl, Timer*, EMPTYARG )
     return 0;
 }
 
-/*
-static void ImplDrawToolArrow( ToolBox* pBox, long nX, long nY, BOOL bBlack,
-                               BOOL bLeft = FALSE, BOOL bTop = FALSE )
-{
-    Color			aOldFillColor = pBox->GetFillColor();
-    WindowAlign 	eAlign = pBox->meAlign;
-    if ( bLeft )
-        eAlign = WINDOWALIGN_RIGHT;
-    else if ( bTop )
-        eAlign = WINDOWALIGN_BOTTOM;
-
-    switch ( eAlign )
-    {
-        case WINDOWALIGN_LEFT:
-            if ( bBlack )
-                pBox->SetFillColor( Color( COL_BLACK ) );
-            pBox->DrawRect( Rectangle( nX+0, nY+0, nX+0, nY+6 ) );
-            pBox->DrawRect( Rectangle( nX+1, nY+1, nX+1, nY+5 ) );
-            pBox->DrawRect( Rectangle( nX+2, nY+2, nX+2, nY+4 ) );
-            pBox->DrawRect( Rectangle( nX+3, nY+3, nX+3, nY+3 ) );
-            if ( bBlack )
-            {
-                pBox->SetFillColor( aOldFillColor );
-                pBox->DrawRect( Rectangle( nX+1, nY+2, nX+1, nY+4 ) );
-                pBox->DrawRect( Rectangle( nX+2, nY+3, nX+2, nY+3 ) );
-            }
-            break;
-        case WINDOWALIGN_TOP:
-            if ( bBlack )
-                pBox->SetFillColor( Color( COL_BLACK ) );
-            pBox->DrawRect( Rectangle( nX+0, nY+0, nX+6, nY+0 ) );
-            pBox->DrawRect( Rectangle( nX+1, nY+1, nX+5, nY+1 ) );
-            pBox->DrawRect( Rectangle( nX+2, nY+2, nX+4, nY+2 ) );
-            pBox->DrawRect( Rectangle( nX+3, nY+3, nX+3, nY+3 ) );
-            if ( bBlack )
-            {
-                pBox->SetFillColor( aOldFillColor );
-                pBox->DrawRect( Rectangle( nX+2, nY+1, nX+4, nY+1 ) );
-                pBox->DrawRect( Rectangle( nX+3, nY+2, nX+3, nY+2 ) );
-            }
-            break;
-        case WINDOWALIGN_RIGHT:
-            if ( bBlack )
-                pBox->SetFillColor( Color( COL_BLACK ) );
-            pBox->DrawRect( Rectangle( nX+3, nY+0, nX+3, nY+6 ) );
-            pBox->DrawRect( Rectangle( nX+2, nY+1, nX+2, nY+5 ) );
-            pBox->DrawRect( Rectangle( nX+1, nY+2, nX+1, nY+4 ) );
-            pBox->DrawRect( Rectangle( nX+0, nY+3, nX+0, nY+3 ) );
-            if ( bBlack )
-            {
-                pBox->SetFillColor( aOldFillColor );
-                pBox->DrawRect( Rectangle( nX+2, nY+2, nX+2, nY+4 ) );
-                pBox->DrawRect( Rectangle( nX+1, nY+3, nX+1, nY+3 ) );
-            }
-            break;
-        case WINDOWALIGN_BOTTOM:
-            if ( bBlack )
-                pBox->SetFillColor( Color( COL_BLACK ) );
-            pBox->DrawRect( Rectangle( nX+0, nY+3, nX+6, nY+3 ) );
-            pBox->DrawRect( Rectangle( nX+1, nY+2, nX+5, nY+2 ) );
-            pBox->DrawRect( Rectangle( nX+2, nY+1, nX+4, nY+1 ) );
-            pBox->DrawRect( Rectangle( nX+3, nY+0, nX+3, nY+0 ) );
-            if ( bBlack )
-            {
-                pBox->SetFillColor( aOldFillColor );
-                pBox->DrawRect( Rectangle( nX+2, nY+2, nX+4, nY+2 ) );
-                pBox->DrawRect( Rectangle( nX+3, nY+1, nX+3, nY+1 ) );
-            }
-            break;
-    }
-}
-Down
-    - Timer starten
-
-Click
-    - Timer abbrechen
-
-Timer
-    if ( ??? )
-    {
-    - SetPressed( TRUE );
-    - EndSelection();
-    - Menu anzeigen
-    - SetPressed( FALSE );
-    }
-
-
-*/
-
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
-- 
1.7.1


--------------070903000307090300090306
Content-Type: text/x-patch;
 name="0006-remove-dead-code-in-calc-ui-inc.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0006-remove-dead-code-in-calc-ui-inc.patch"



More information about the LibreOffice mailing list