[Libreoffice-commits] core.git: sc/source

Noel Grandin noel at peralex.com
Wed Jul 13 10:54:48 UTC 2016


 sc/source/ui/StatisticsDialogs/TableFillingAndNavigationTools.cxx |   17 ++-----
 sc/source/ui/cctrl/tbzoomsliderctrl.cxx                           |    8 ---
 sc/source/ui/dbgui/tpsort.cxx                                     |    6 --
 sc/source/ui/drawfunc/fusel.cxx                                   |   23 +---------
 sc/source/ui/formdlg/privsplt.cxx                                 |    1 
 sc/source/ui/inc/TableFillingAndNavigationTools.hxx               |    1 
 sc/source/ui/inc/acredlin.hxx                                     |    1 
 sc/source/ui/inc/content.hxx                                      |    1 
 sc/source/ui/inc/fusel.hxx                                        |    3 -
 sc/source/ui/inc/gridwin.hxx                                      |    2 
 sc/source/ui/inc/inscodlg.hxx                                     |    3 -
 sc/source/ui/inc/privsplt.hxx                                     |    1 
 sc/source/ui/inc/tabvwsh.hxx                                      |    1 
 sc/source/ui/inc/tpsort.hxx                                       |    2 
 sc/source/ui/inc/undocell.hxx                                     |    1 
 sc/source/ui/miscdlgs/acredlin.cxx                                |   10 ----
 sc/source/ui/miscdlgs/inscodlg.cxx                                |   18 +------
 sc/source/ui/navipi/content.cxx                                   |    1 
 sc/source/ui/undo/undocell.cxx                                    |   14 ------
 sc/source/ui/view/gridwin.cxx                                     |   20 ++------
 sc/source/ui/view/tabvwsh4.cxx                                    |    3 -
 21 files changed, 19 insertions(+), 118 deletions(-)

New commits:
commit 6431f5554bd585935e7a9bc354609a4363a09509
Author: Noel Grandin <noel at peralex.com>
Date:   Sun Jun 26 15:59:55 2016 +0200

    loplugin:singlevalfields in sc(part1)
    
    Change-Id: I25760def2c12e4ca87843c2f3ce1a60b5a9b2e44
    Reviewed-on: https://gerrit.libreoffice.org/26680
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/ui/StatisticsDialogs/TableFillingAndNavigationTools.cxx b/sc/source/ui/StatisticsDialogs/TableFillingAndNavigationTools.cxx
index d6b7d36..8622dcf 100644
--- a/sc/source/ui/StatisticsDialogs/TableFillingAndNavigationTools.cxx
+++ b/sc/source/ui/StatisticsDialogs/TableFillingAndNavigationTools.cxx
@@ -93,8 +93,7 @@ void FormulaTemplate::applyNumber(const OUString& aVariable, sal_Int32 aValue)
 AddressWalker::AddressWalker(ScAddress aInitialAddress) :
     mCurrentAddress(aInitialAddress),
     mMinimumAddress(aInitialAddress),
-    mMaximumAddress(aInitialAddress),
-    mTrackRange(true)
+    mMaximumAddress(aInitialAddress)
 {
     mAddressStack.push_back(mCurrentAddress);
 }
@@ -132,21 +131,15 @@ void AddressWalker::nextColumn()
 {
     mCurrentAddress.IncCol();
 
-    if (mTrackRange)
-    {
-        if(mMaximumAddress.Col() < mCurrentAddress.Col())
-            mMaximumAddress.SetCol(mCurrentAddress.Col());
-    }
+    if(mMaximumAddress.Col() < mCurrentAddress.Col())
+        mMaximumAddress.SetCol(mCurrentAddress.Col());
 }
 
 void AddressWalker::nextRow()
 {
     mCurrentAddress.IncRow();
-    if (mTrackRange)
-    {
-        if(mMaximumAddress.Row() < mCurrentAddress.Row())
-            mMaximumAddress.SetRow(mCurrentAddress.Row());
-    }
+    if(mMaximumAddress.Row() < mCurrentAddress.Row())
+        mMaximumAddress.SetRow(mCurrentAddress.Row());
 }
 
 void AddressWalker::push(SCCOL aRelativeCol, SCROW aRelativeRow, SCTAB aRelativeTab)
diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
index cac2d48..bc83194 100644
--- a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
+++ b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
@@ -100,7 +100,6 @@ struct ScZoomSliderWnd::ScZoomSliderWnd_Impl
     Image                    maSliderButton;
     Image                    maIncreaseButton;
     Image                    maDecreaseButton;
-    bool                     mbValuesSet;
     bool                     mbOmitPaint;
 
     explicit ScZoomSliderWnd_Impl( sal_uInt16 nCurrentZoom ) :
@@ -113,10 +112,8 @@ struct ScZoomSliderWnd::ScZoomSliderWnd_Impl
         maSliderButton(),
         maIncreaseButton(),
         maDecreaseButton(),
-        mbValuesSet( true ),
         mbOmitPaint( false )
         {
-
         }
 };
 
@@ -244,8 +241,6 @@ void ScZoomSliderWnd::dispose()
 
 void ScZoomSliderWnd::MouseButtonDown( const MouseEvent& rMEvt )
 {
-    if ( !mpImpl->mbValuesSet )
-        return ;
     Size aSliderWindowSize = GetOutputSizePixel();
 
     const Point aPoint = rMEvt.GetPosPixel();
@@ -300,9 +295,6 @@ void ScZoomSliderWnd::MouseButtonDown( const MouseEvent& rMEvt )
 
 void ScZoomSliderWnd::MouseMove( const MouseEvent& rMEvt )
 {
-    if ( !mpImpl->mbValuesSet )
-        return ;
-
     Size aSliderWindowSize   = GetOutputSizePixel();
     const long nControlWidth = aSliderWindowSize.Width();
     const short nButtons     = rMEvt.GetButtons();
diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx
index c095810f..15d53ee 100644
--- a/sc/source/ui/dbgui/tpsort.cxx
+++ b/sc/source/ui/dbgui/tpsort.cxx
@@ -133,8 +133,6 @@ void ScTabPageSortFields::Init()
     OSL_ENSURE( pViewData, "ViewData not found!" );
 
     nFieldArr.push_back( 0 );
-    nFirstCol = 0;
-    nFirstRow = 0;
 
     // Create three sort key dialogs by default
     for ( sal_uInt16 i=0; i<nSortKeyCount; i++ )
@@ -269,9 +267,7 @@ bool ScTabPageSortFields::FillItemSet( SfxItemSet* rArgSet )
         if ( pDlg && bSortByRows != pDlg->GetByRows() )
         {
             for ( sal_uInt16 i=0; i<nSortKeyCount; i++ )
-                aNewSortData.maKeyState[i].nField = ( bSortByRows ?
-                        static_cast<SCCOLROW>(nFirstRow) :
-                        static_cast<SCCOLROW>(nFirstCol) );
+                aNewSortData.maKeyState[i].nField = 0;
         }
         else
         {
diff --git a/sc/source/ui/drawfunc/fusel.cxx b/sc/source/ui/drawfunc/fusel.cxx
index 9cb144b..c151c97 100644
--- a/sc/source/ui/drawfunc/fusel.cxx
+++ b/sc/source/ui/drawfunc/fusel.cxx
@@ -65,8 +65,7 @@ using namespace com::sun::star;
 
 FuSelection::FuSelection(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawView* pViewP,
                SdrModel* pDoc, SfxRequest& rReq ) :
-    FuDraw(pViewSh, pWin, pViewP, pDoc, rReq),
-    bVCAction(false)
+    FuDraw(pViewSh, pWin, pViewP, pDoc, rReq)
 {
 }
 
@@ -103,7 +102,6 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
         return true;
     }
 
-    bVCAction = false;
     bIsInDragMode = false;      //  irgendwo muss es ja zurueckgesetzt werden (#50033#)
 
     bool bReturn = FuDraw::MouseButtonDown(rMEvt);
@@ -315,8 +313,8 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
 
     if (!bIsInDragMode)
     {
-        if (!bVCAction)                 // VC rufen selber CaptureMouse
-            pWindow->CaptureMouse();
+        // VC rufen selber CaptureMouse
+        pWindow->CaptureMouse();
         ForcePointer(&rMEvt);
     }
 
@@ -352,13 +350,6 @@ bool FuSelection::MouseMove(const MouseEvent& rMEvt)
         bReturn = true;
     }
 
-    // Ein VCControl ist aktiv
-    // Event an den Manager weiterleiten
-    if( bVCAction )
-    {
-        bReturn = true;
-    }
-
     ForcePointer(&rMEvt);
 
     return bReturn;
@@ -554,14 +545,6 @@ bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt)
             bReturn = true;
     }
 
-    // Ein VCControl ist aktiv
-    // Event an den Manager weiterleiten
-    if( bVCAction )
-    {
-        bVCAction = false;
-        bReturn = true;
-    }
-
     ForcePointer(&rMEvt);
 
     if (pWindow->IsMouseCaptured())
diff --git a/sc/source/ui/formdlg/privsplt.cxx b/sc/source/ui/formdlg/privsplt.cxx
index 72adb6d..a59a32d 100644
--- a/sc/source/ui/formdlg/privsplt.cxx
+++ b/sc/source/ui/formdlg/privsplt.cxx
@@ -50,7 +50,6 @@ ScPrivatSplit::ScPrivatSplit(vcl::Window* pParent, const ResId& rResId)
 
     aWinPointer=GetPointer();
 
-    aMovingFlag=false;
     aWinPointer=Pointer(PointerStyle::VSplit);
     SetPointer(aWinPointer);
 }
diff --git a/sc/source/ui/inc/TableFillingAndNavigationTools.hxx b/sc/source/ui/inc/TableFillingAndNavigationTools.hxx
index f1fe8e5..8d0bbfe 100644
--- a/sc/source/ui/inc/TableFillingAndNavigationTools.hxx
+++ b/sc/source/ui/inc/TableFillingAndNavigationTools.hxx
@@ -60,7 +60,6 @@ public:
     ScAddress mCurrentAddress;
     ScAddress mMinimumAddress;
     ScAddress mMaximumAddress;
-    bool      mTrackRange;
 
     AddressWalker(ScAddress aInitialAddress);
 
diff --git a/sc/source/ui/inc/acredlin.hxx b/sc/source/ui/inc/acredlin.hxx
index c5ce73d..6ec0d79 100644
--- a/sc/source/ui/inc/acredlin.hxx
+++ b/sc/source/ui/inc/acredlin.hxx
@@ -87,7 +87,6 @@ private:
     sal_uLong                   nRejectCount;
     bool                    bAcceptEnableFlag:1;
     bool                    bRejectEnableFlag:1;
-    bool                    bNeedsUpdate:1;
     bool                    bIgnoreMsg:1;
     bool                    bNoSelection:1;
     bool                    bHasFilterEntry:1;
diff --git a/sc/source/ui/inc/content.hxx b/sc/source/ui/inc/content.hxx
index 2353f15..e043c63 100644
--- a/sc/source/ui/inc/content.hxx
+++ b/sc/source/ui/inc/content.hxx
@@ -102,7 +102,6 @@ class ScContentTree : public SvTreeListBox
     DECL_LINK_TYPED( ExecDragHdl, void*, void );
 public:
     SvTreeListEntry* pTmpEntry;
-    bool m_bFirstPaint;
 
 protected:
 
diff --git a/sc/source/ui/inc/fusel.hxx b/sc/source/ui/inc/fusel.hxx
index c70fec0..32bff11 100644
--- a/sc/source/ui/inc/fusel.hxx
+++ b/sc/source/ui/inc/fusel.hxx
@@ -44,9 +44,6 @@ public:
 
     void    ActivateNoteHandles(SdrObject* pObj);
 
-protected:
-    bool            bVCAction;
-
 private:
     bool TestDetective( SdrPageView* pPV, const Point& rPos );  // -> fusel2
 
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx
index 53c03b5..326441a 100644
--- a/sc/source/ui/inc/gridwin.hxx
+++ b/sc/source/ui/inc/gridwin.hxx
@@ -166,8 +166,6 @@ class ScGridWindow : public vcl::Window, public DropTargetHelper, public DragSou
     SCROW                   nDragEndY;
     InsCellCmd              meDragInsertMode;
 
-    sal_uInt16              nCurrentPointer;
-
     ScDDComboBoxButton      aComboButton;
 
     Point                   aCurMousePos;
diff --git a/sc/source/ui/inc/inscodlg.hxx b/sc/source/ui/inc/inscodlg.hxx
index a1824a8..8b164c0 100644
--- a/sc/source/ui/inc/inscodlg.hxx
+++ b/sc/source/ui/inc/inscodlg.hxx
@@ -84,10 +84,7 @@ private:
     bool              bUsedShortCut;
 
     InsertDeleteFlags nShortCutInsContentsCmdBits;
-    ScPasteFunc       nShortCutFormulaCmdBits;
-    bool              bShortCutSkipEmptyCells;
     bool              bShortCutTranspose;
-    bool              bShortCutIsLink;
     InsCellCmd        nShortCutMoveMode;
 
     static bool         bPreviousAllCheck;
diff --git a/sc/source/ui/inc/privsplt.hxx b/sc/source/ui/inc/privsplt.hxx
index 84c3e66..0b7211c 100644
--- a/sc/source/ui/inc/privsplt.hxx
+++ b/sc/source/ui/inc/privsplt.hxx
@@ -27,7 +27,6 @@ class ScPrivatSplit : public Control
 private:
 
         Link<ScPrivatSplit&,void> aCtrModifiedLink;
-        bool                aMovingFlag;
         Pointer             aWinPointer;
         short               nOldX;
         short               nOldY;
diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx
index 1dc1753..b937da8 100644
--- a/sc/source/ui/inc/tabvwsh.hxx
+++ b/sc/source/ui/inc/tabvwsh.hxx
@@ -152,7 +152,6 @@ private:
 
     bool                    bIsActive;
 
-    bool                    bChartAreaValid; // if chart is drawn
     bool                    bForceFocusOnCurCell; // #i123629#
 
     ScRangeListRef          aChartSource;
diff --git a/sc/source/ui/inc/tpsort.hxx b/sc/source/ui/inc/tpsort.hxx
index c579c2b..8410250 100644
--- a/sc/source/ui/inc/tpsort.hxx
+++ b/sc/source/ui/inc/tpsort.hxx
@@ -79,8 +79,6 @@ private:
     sal_uInt16          nFieldCount;
     sal_uInt16          nSortKeyCount;
 
-    SCCOL               nFirstCol;
-    SCROW               nFirstRow;
     bool                bHasHeader;
     bool                bSortByRows;
 
diff --git a/sc/source/ui/inc/undocell.hxx b/sc/source/ui/inc/undocell.hxx
index 9815782..611fbc8 100644
--- a/sc/source/ui/inc/undocell.hxx
+++ b/sc/source/ui/inc/undocell.hxx
@@ -72,7 +72,6 @@ private:
     ScPatternAttr*  pApplyPattern;
     std::shared_ptr<EditTextObject> pOldEditData;
     std::shared_ptr<EditTextObject> pNewEditData;
-    bool            bIsAutomatic;
 
     void            DoChange( const ScPatternAttr* pWhichPattern, const std::shared_ptr<EditTextObject>& pEditData ) const;
 };
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index ade5249..94fe85c 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -100,7 +100,6 @@ ScAcceptChgDlg::ScAcceptChgDlg(SfxBindings* pB, SfxChildWindow* pCW, vcl::Window
         aUnknown("Unknown"),
         bAcceptEnableFlag(true),
         bRejectEnableFlag(true),
-        bNeedsUpdate(false),
         bIgnoreMsg(false),
         bNoSelection(false),
         bHasFilterEntry(false),
@@ -178,7 +177,6 @@ void ScAcceptChgDlg::ReInit(ScViewData* ptrViewData)
         pDoc=nullptr;
 
     bNoSelection=false;
-    bNeedsUpdate=false;
     bIgnoreMsg=false;
     nAcceptCount=0;
     nRejectCount=0;
@@ -750,19 +748,11 @@ SvTreeListEntry* ScAcceptChgDlg::InsertChangeActionContent(const ScChangeActionC
 
 bool ScAcceptChgDlg::PreNotify( NotifyEvent& rNEvt )
 {
-    if(rNEvt.GetType()==MouseNotifyEvent::GETFOCUS && bNeedsUpdate)
-    {
-        ClearView();
-        UpdateView();
-        bNoSelection=false;
-    }
-
     return SfxModelessDialog::PreNotify(rNEvt);
 }
 
 void ScAcceptChgDlg::UpdateView()
 {
-    bNeedsUpdate=false;
     SvTreeListEntry* pParent=nullptr;
     ScChangeTrack* pChanges=nullptr;
     const ScChangeAction* pScChangeAction=nullptr;
diff --git a/sc/source/ui/miscdlgs/inscodlg.cxx b/sc/source/ui/miscdlgs/inscodlg.cxx
index 31f3ea3..fe284c4 100644
--- a/sc/source/ui/miscdlgs/inscodlg.cxx
+++ b/sc/source/ui/miscdlgs/inscodlg.cxx
@@ -41,10 +41,7 @@ ScInsertContentsDlg::ScInsertContentsDlg( vcl::Window*       pParent,
     bMoveRightDisabled( false ),
     bUsedShortCut   ( false ),
     nShortCutInsContentsCmdBits( InsertDeleteFlags::NONE ),
-    nShortCutFormulaCmdBits(ScPasteFunc::NONE),
-    bShortCutSkipEmptyCells(false),
     bShortCutTranspose(false),
-    bShortCutIsLink(false),
     nShortCutMoveMode(INS_NONE)
 {
     get( mpBtnInsAll, "paste_all" );
@@ -170,7 +167,7 @@ InsCellCmd ScInsertContentsDlg::GetMoveMode()
 bool ScInsertContentsDlg::IsSkipEmptyCells() const
 {
     if (bUsedShortCut)
-        return bShortCutSkipEmptyCells;
+        return false;
     return mpBtnSkipEmptyCells->IsChecked();
 }
 
@@ -184,7 +181,7 @@ bool ScInsertContentsDlg::IsTranspose() const
 bool ScInsertContentsDlg::IsLink() const
 {
     if (bUsedShortCut)
-        return bShortCutIsLink;
+        return false;
     return mpBtnLink->IsChecked();
 }
 
@@ -312,10 +309,7 @@ IMPL_LINK_TYPED( ScInsertContentsDlg, ShortCutHdl, Button*, pBtn, void )
     {
         bUsedShortCut = true;
         nShortCutInsContentsCmdBits = InsertDeleteFlags::STRING | InsertDeleteFlags::VALUE | InsertDeleteFlags::DATETIME;
-        nShortCutFormulaCmdBits = ScPasteFunc::NONE;
-        bShortCutSkipEmptyCells = false;
         bShortCutTranspose = false;
-        bShortCutIsLink = false;
         nShortCutMoveMode = INS_NONE;
         EndDialog(RET_OK);
     }
@@ -323,10 +317,7 @@ IMPL_LINK_TYPED( ScInsertContentsDlg, ShortCutHdl, Button*, pBtn, void )
     {
         bUsedShortCut = true;
         nShortCutInsContentsCmdBits = InsertDeleteFlags::STRING | InsertDeleteFlags::VALUE | InsertDeleteFlags::DATETIME | InsertDeleteFlags::ATTRIB;
-        nShortCutFormulaCmdBits = ScPasteFunc::NONE;
-        bShortCutSkipEmptyCells = false;
         bShortCutTranspose = false;
-        bShortCutIsLink = false;
         nShortCutMoveMode = INS_NONE;
         EndDialog(RET_OK);
     }
@@ -334,10 +325,7 @@ IMPL_LINK_TYPED( ScInsertContentsDlg, ShortCutHdl, Button*, pBtn, void )
     {
         bUsedShortCut = true;
         nShortCutInsContentsCmdBits = InsertDeleteFlags::ALL;
-        nShortCutFormulaCmdBits = ScPasteFunc::NONE;
-        bShortCutSkipEmptyCells = false;
         bShortCutTranspose = true;
-        bShortCutIsLink = false;
         nShortCutMoveMode = INS_NONE;
         EndDialog(RET_OK);
     }
@@ -415,7 +403,7 @@ ScPasteFunc  ScInsertContentsDlg::GetFormulaCmdBits() const
     else if(mpRbDiv->IsChecked())
         ScInsertContentsDlg::nPreviousFormulaChecks = ScPasteFunc::DIV;
     if (bUsedShortCut)
-        return nShortCutFormulaCmdBits;
+        return ScPasteFunc::NONE;
     return ScInsertContentsDlg::nPreviousFormulaChecks;
 }
 
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 1817750..0f2a4d4 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -134,7 +134,6 @@ ScContentTree::ScContentTree( vcl::Window* pParent, const ResId& rResId ) :
     SetDoubleClickHdl( LINK( this, ScContentTree, ContentDoubleClickHdl ) );
 
     pTmpEntry= nullptr;
-    m_bFirstPaint=true;
 
     SetStyle( GetStyle() | WB_QUICK_SEARCH );
 }
diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx
index f243308..74711df 100644
--- a/sc/source/ui/undo/undocell.cxx
+++ b/sc/source/ui/undo/undocell.cxx
@@ -76,8 +76,7 @@ ScUndoCursorAttr::ScUndoCursorAttr( ScDocShell* pNewDocShell,
     nRow( nNewRow ),
     nTab( nNewTab ),
     pOldEditData( static_cast<EditTextObject*>(nullptr) ),
-    pNewEditData( static_cast<EditTextObject*>(nullptr) ),
-    bIsAutomatic( false )
+    pNewEditData( static_cast<EditTextObject*>(nullptr) )
 {
     ScDocumentPool* pPool = pDocShell->GetDocument().GetPool();
     pNewPattern = const_cast<ScPatternAttr*>(static_cast<const ScPatternAttr*>( &pPool->Put( *pNewPat ) ));
@@ -141,17 +140,6 @@ void ScUndoCursorAttr::Undo()
 {
     BeginUndo();
     DoChange(pOldPattern, pOldEditData);
-
-    if ( bIsAutomatic )
-    {
-        // if automatic formatting is reversed, then
-        // automatic formatting should also not continue to be done
-
-        ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
-        if (pViewShell)
-            pViewShell->ForgetFormatArea();
-    }
-
     EndUndo();
 }
 
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 6d17141..1075931 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -211,11 +211,9 @@ private:
     VclPtr<ScGridWindow>   pGridWin;
     SCCOL           nCol;
     SCROW           nRow;
-    bool            bButtonDown;
     bool            bInit;
     bool            bCancelled;
     bool            bInSelect;
-    bool            mbListHasDates;
     sal_uLong           nSel;
     ScFilterBoxMode eMode;
 
@@ -238,7 +236,6 @@ public:
     bool            IsInInit() const        { return bInit; }
     void            SetCancelled()          { bCancelled = true; }
     bool            IsInSelect() const      { return bInSelect; }
-    bool            HasDates() const        { return mbListHasDates; }
 };
 
 //  ListBox in a FloatingWindow (pParent)
@@ -248,11 +245,9 @@ ScFilterListBox::ScFilterListBox( vcl::Window* pParent, ScGridWindow* pGrid,
     pGridWin( pGrid ),
     nCol( nNewCol ),
     nRow( nNewRow ),
-    bButtonDown( false ),
     bInit( true ),
     bCancelled( false ),
     bInSelect( false ),
-    mbListHasDates(false),
     nSel( 0 ),
     eMode( eNewMode )
 {
@@ -322,13 +317,10 @@ void ScFilterListBox::SelectHdl()
         if ( LISTBOX_ENTRY_NOTFOUND != nPos )
         {
             nSel = nPos;
-            if (!bButtonDown)
-            {
-                // #i81298# set bInSelect flag, so the box isn't deleted from modifications within FilterSelect
-                bInSelect = true;
-                pGridWin->FilterSelect( nSel );
-                bInSelect = false;
-            }
+            // #i81298# set bInSelect flag, so the box isn't deleted from modifications within FilterSelect
+            bInSelect = true;
+            pGridWin->FilterSelect( nSel );
+            bInSelect = false;
         }
     }
 }
@@ -465,7 +457,6 @@ ScGridWindow::ScGridWindow( vcl::Window* pParent, ScViewData* pData, ScSplitPos
             nDragEndX( -1 ),
             nDragEndY( -1 ),
             meDragInsertMode( INS_NONE ),
-            nCurrentPointer( 0 ),
             aComboButton( this ),
             aCurMousePos( 0,0 ),
             nPaintCount( 0 ),
@@ -1244,7 +1235,7 @@ void ScGridWindow::FilterSelect( sal_uLong nSel )
             ExecDataSelect(nCol, nRow, aString);
             break;
         case SC_FILTERBOX_FILTER:
-            ExecFilter(nSel, nCol, nRow, aString, mpFilterBox->HasDates());
+            ExecFilter(nSel, nCol, nRow, aString, false/*bHasDates*/);
             break;
         case SC_FILTERBOX_SCENARIO:
             pViewData->GetView()->UseScenario(aString);
@@ -1401,7 +1392,6 @@ void ScGridWindow::ExecFilter( sal_uLong nSel,
 
 void ScGridWindow::SetPointer( const Pointer& rPointer )
 {
-    nCurrentPointer = 0;
     Window::SetPointer( rPointer );
 }
 
diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx
index 2af8395..51837a3 100644
--- a/sc/source/ui/view/tabvwsh4.cxx
+++ b/sc/source/ui/view/tabvwsh4.cxx
@@ -1666,7 +1666,6 @@ ScTabViewShell::ScTabViewShell( SfxViewFrame* pViewFrame,
     bDontSwitch(false),
     bInFormatDialog(false),
     bReadOnly(false),
-    bChartAreaValid(false),
     bForceFocusOnCurCell(false),
     nCurRefDlgId(0),
     pAccessibilityBroadcaster(nullptr),
@@ -1815,7 +1814,7 @@ bool ScTabViewShell::GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SC
     rSource = aChartSource;
     rDest   = aChartPos;
     rTab    = nChartDestTab;
-    return bChartAreaValid;
+    return false;
 }
 
 ScNavigatorSettings* ScTabViewShell::GetNavigatorSettings()


More information about the Libreoffice-commits mailing list