[Libreoffice-commits] core.git: 2 commits - scaddins/source sc/inc sc/qa sc/source sdext/source sd/inc sd/source

Noel Grandin noel at peralex.com
Thu Mar 24 09:41:33 UTC 2016


 sc/inc/column.hxx                             |    4 +-
 sc/inc/document.hxx                           |   12 +++---
 sc/inc/dpfilteredcache.hxx                    |    2 -
 sc/inc/drwlayer.hxx                           |    2 -
 sc/inc/progress.hxx                           |    2 -
 sc/inc/table.hxx                              |    8 ++--
 sc/inc/tokenarray.hxx                         |    2 -
 sc/qa/unit/ucalc.cxx                          |   30 ++++++++---------
 sc/qa/unit/ucalc_formula.cxx                  |    4 +-
 sc/source/core/data/column.cxx                |    4 +-
 sc/source/core/data/column4.cxx               |    4 +-
 sc/source/core/data/dociter.cxx               |    4 +-
 sc/source/core/data/documen3.cxx              |    6 +--
 sc/source/core/data/documen4.cxx              |    7 +---
 sc/source/core/data/documen8.cxx              |    2 -
 sc/source/core/data/documen9.cxx              |    2 -
 sc/source/core/data/document.cxx              |   40 +++++++----------------
 sc/source/core/data/dpcache.cxx               |    8 ++--
 sc/source/core/data/dpfilteredcache.cxx       |    4 +-
 sc/source/core/data/dptabdat.cxx              |    2 -
 sc/source/core/data/drwlayer.cxx              |    4 +-
 sc/source/core/data/formulacell.cxx           |    4 +-
 sc/source/core/data/table1.cxx                |    2 -
 sc/source/core/data/table2.cxx                |   16 ++++-----
 sc/source/core/data/table3.cxx                |    6 +--
 sc/source/core/data/table4.cxx                |    6 +--
 sc/source/core/tool/progress.cxx              |    6 +--
 sc/source/core/tool/token.cxx                 |   15 ++------
 sc/source/filter/dif/difexp.cxx               |    2 -
 sc/source/filter/ftools/fprogressbar.cxx      |    2 -
 sc/source/filter/rtf/eeimpars.cxx             |    2 -
 sc/source/ui/app/inputhdl.cxx                 |    2 -
 sc/source/ui/cctrl/cbuttonw.cxx               |    7 +---
 sc/source/ui/docshell/arealink.cxx            |    2 -
 sc/source/ui/docshell/dbdocfun.cxx            |    4 +-
 sc/source/ui/docshell/dbdocimp.cxx            |    4 +-
 sc/source/ui/docshell/docfunc.cxx             |    8 ++--
 sc/source/ui/docshell/docsh.cxx               |    2 -
 sc/source/ui/docshell/docsh3.cxx              |    6 +--
 sc/source/ui/docshell/docsh5.cxx              |    2 -
 sc/source/ui/docshell/docsh8.cxx              |    4 +-
 sc/source/ui/docshell/impex.cxx               |    2 -
 sc/source/ui/inc/cbutton.hxx                  |    3 -
 sc/source/ui/inc/csvgrid.hxx                  |   27 +++------------
 sc/source/ui/inc/pntlock.hxx                  |    4 +-
 sc/source/ui/inc/viewfunc.hxx                 |    2 -
 sc/source/ui/navipi/content.cxx               |    2 -
 sc/source/ui/undo/undoblk.cxx                 |    2 -
 sc/source/ui/undo/undoblk3.cxx                |    6 +--
 sc/source/ui/undo/undotab.cxx                 |    4 +-
 sc/source/ui/unoobj/funcuno.cxx               |    2 -
 sc/source/ui/vba/vbarange.cxx                 |    8 ++--
 sc/source/ui/vba/vbarange.hxx                 |    2 -
 sc/source/ui/view/gridwin.cxx                 |    2 -
 sc/source/ui/view/tabcont.cxx                 |    2 -
 sc/source/ui/view/tabvwsh3.cxx                |    2 -
 sc/source/ui/view/viewfun2.cxx                |    4 +-
 sc/source/ui/view/viewfun3.cxx                |    6 +--
 sc/source/ui/view/viewfun5.cxx                |    2 -
 scaddins/source/analysis/analysis.cxx         |    4 +-
 scaddins/source/analysis/analysishelper.cxx   |    7 +---
 scaddins/source/analysis/analysishelper.hxx   |    5 +-
 sd/inc/drawdoc.hxx                            |    2 -
 sd/inc/sdfilter.hxx                           |    3 -
 sd/source/core/drawdoc3.cxx                   |    3 -
 sd/source/filter/cgm/sdcgmfilter.cxx          |    2 -
 sd/source/filter/grf/sdgrffilter.cxx          |    2 -
 sd/source/filter/html/sdhtmlfilter.cxx        |    2 -
 sd/source/filter/sdfilter.cxx                 |    3 -
 sd/source/filter/sdpptwrp.cxx                 |    5 +-
 sd/source/filter/xml/sdxmlwrp.cxx             |   45 ++++++++++----------------
 sd/source/ui/animations/STLPropertySet.cxx    |    2 -
 sd/source/ui/animations/STLPropertySet.hxx    |    4 +-
 sd/source/ui/app/optsitem.cxx                 |   18 +++++-----
 sd/source/ui/func/fuinsert.cxx                |    2 -
 sd/source/ui/inc/DrawViewShell.hxx            |    2 -
 sd/source/ui/inc/PresentationViewShell.hxx    |    2 -
 sd/source/ui/inc/View.hxx                     |    6 ---
 sd/source/ui/inc/ViewShell.hxx                |    2 -
 sd/source/ui/inc/optsitem.hxx                 |    4 +-
 sd/source/ui/view/drviews1.cxx                |   15 ++------
 sd/source/ui/view/presvish.cxx                |    2 -
 sd/source/ui/view/sdview2.cxx                 |    2 -
 sd/source/ui/view/sdview4.cxx                 |   17 ++-------
 sd/source/ui/view/viewshe2.cxx                |    2 -
 sd/source/ui/view/viewshel.cxx                |    2 -
 sdext/source/pdfimport/inc/contentsink.hxx    |    5 +-
 sdext/source/pdfimport/wrapper/wrapper.cxx    |    1 
 sdext/source/presenter/PresenterScrollBar.cxx |   13 +------
 sdext/source/presenter/PresenterScrollBar.hxx |    4 --
 90 files changed, 221 insertions(+), 304 deletions(-)

New commits:
commit 682b9b33c71066bbf703c22e9689367e7bd569b6
Author: Noel Grandin <noel at peralex.com>
Date:   Thu Mar 24 11:38:51 2016 +0200

    loplugin:constantparam in sc
    
    Change-Id: I8608a6cb47972e9b838cc5ea431863348758ded0

diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx
index 38e49b6..aa1f4c1 100644
--- a/sc/inc/column.hxx
+++ b/sc/inc/column.hxx
@@ -256,7 +256,7 @@ public:
         SCROW nStartRow, SCROW nEndRow, InsertDeleteFlags nDelFlag,
         bool bBroadcast = true, sc::ColumnSpanSet* pBroadcastSpans = nullptr );
 
-    void DeleteRanges( const std::vector<sc::RowSpan>& rRanges, InsertDeleteFlags nDelFlag, bool bBroadcast );
+    void DeleteRanges( const std::vector<sc::RowSpan>& rRanges, InsertDeleteFlags nDelFlag );
 
     void CopyToClip(
         sc::CopyToClipContext& rCxt, SCROW nRow1, SCROW nRow2, ScColumn& rColumn ) const;
@@ -450,7 +450,7 @@ public:
                                   ScEditDataArray* pDataArray = nullptr );
     void        SetPattern( SCROW nRow, const ScPatternAttr& rPatAttr, bool bPutToPool = false );
     void        SetPatternArea( SCROW nStartRow, SCROW nEndRow,
-                                const ScPatternAttr& rPatAttr, bool bPutToPool = false );
+                                const ScPatternAttr& rPatAttr );
     void        ApplyPatternIfNumberformatIncompatible( const ScRange& rRange,
                             const ScPatternAttr& rPattern, short nNewType );
 
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 6153a2b..15130a5 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -684,7 +684,7 @@ public:
         SCTAB nPos, const OUString& rName, bool bExternalDocument = false, bool bUndoDeleteTab = false );
 
     SC_DLLPUBLIC bool           InsertTabs( SCTAB nPos, const std::vector<OUString>& rNames,
-                                bool bExternalDocument = false, bool bNamesValid = false );
+                                            bool bNamesValid = false );
     SC_DLLPUBLIC bool DeleteTabs( SCTAB nTab, SCTAB nSheets );
     SC_DLLPUBLIC bool DeleteTab( SCTAB nTab );
     SC_DLLPUBLIC bool           RenameTab( SCTAB nTab, const OUString& rName,
@@ -1272,8 +1272,8 @@ public:
     void            DeleteAreaTab(const ScRange& rRange, InsertDeleteFlags nDelFlag);
 
     void            CopyToClip(const ScClipParam& rClipParam, ScDocument* pClipDoc,
-                               const ScMarkData* pMarks = nullptr, bool bAllTabs = false, bool bKeepScenarioFlags = false,
-                               bool bIncludeObjects = false, bool bCloneNoteCaptions = true, bool bUseRangeForVBA = false );
+                               const ScMarkData* pMarks, bool bKeepScenarioFlags,
+                               bool bIncludeObjects );
 
     /**
      * Copy only raw cell values to another document.  Formula cells are
@@ -1756,7 +1756,7 @@ public:
         std::vector<ScTypedStrData>& rStrings, bool& rHasDates);
 
     void GetDataEntries(
-        SCCOL nCol, SCROW nRow, SCTAB nTab, bool bCaseSens,
+        SCCOL nCol, SCROW nRow, SCTAB nTab,
         std::vector<ScTypedStrData>& rStrings, bool bLimit = false );
     void GetFormulaEntries( ScTypedCaseStrSet& rStrings );
 
@@ -1778,7 +1778,7 @@ public:
 
     void            ReplaceStyle(const SvxSearchItem& rSearchItem,
                                  SCCOL nCol, SCROW nRow, SCTAB nTab,
-                                 ScMarkData& rMark, bool bIsUndo);
+                                 ScMarkData& rMark);
 
     void            InvalidateTextWidth( const OUString& rStyleName );
     void            InvalidateTextWidth( SCTAB nTab );
@@ -1937,7 +1937,7 @@ public:
     void                PutInFormulaTree( ScFormulaCell* pCell );
     void                RemoveFromFormulaTree( ScFormulaCell* pCell );
 
-    /**
+/**
      * Calculate formula cells that are on the formula tree either partially,
      * or in full.
      *
diff --git a/sc/inc/dpfilteredcache.hxx b/sc/inc/dpfilteredcache.hxx
index 546625d..cce0595 100644
--- a/sc/inc/dpfilteredcache.hxx
+++ b/sc/inc/dpfilteredcache.hxx
@@ -125,7 +125,7 @@ public:
         that the data grid doesn't include the header row.  Don't delete the
         returned object! */
     const ScDPItemData* getCell(SCCOL nCol, SCROW nRow, bool bRepeatIfEmpty) const;
-    void  getValue( ScDPValue& rVal, SCCOL nCol, SCROW nRow, bool bRepeatIfEmpty) const;
+    void  getValue( ScDPValue& rVal, SCCOL nCol, SCROW nRow) const;
     OUString getFieldName(SCCOL nIndex) const;
 
    /** Get the unique entries for a field specified by index.  The caller must
diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx
index 6dec7b7..54951b5 100644
--- a/sc/inc/drwlayer.hxx
+++ b/sc/inc/drwlayer.hxx
@@ -121,7 +121,7 @@ public:
     void            ScRemovePage( SCTAB nTab );
     void            ScRenamePage( SCTAB nTab, const OUString& rNewName );
     void            ScMovePage( sal_uInt16 nOldPos, sal_uInt16 nNewPos );
-    void            ScCopyPage( sal_uInt16 nOldPos, sal_uInt16 nNewPos, bool bSkipNotes = false );
+    void            ScCopyPage( sal_uInt16 nOldPos, sal_uInt16 nNewPos );
     void            ResetTab( SCTAB nStart, SCTAB nEnd );
 
     ScDocument*     GetDocument() const { return pDoc; }
diff --git a/sc/inc/progress.hxx b/sc/inc/progress.hxx
index 3fc2ba3..8d1f9c5 100644
--- a/sc/inc/progress.hxx
+++ b/sc/inc/progress.hxx
@@ -71,7 +71,7 @@ public:
 
                             ScProgress( SfxObjectShell* pObjSh,
                                          const OUString& rText,
-                                         sal_uLong nRange, bool bAllDocs = false,
+                                         sal_uLong nRange,
                                          bool bWait = true );
                             ~ScProgress();
 
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index 31b277f..6fac2cf 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -616,12 +616,12 @@ public:
     void        ApplyPatternArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
                                   const ScPatternAttr& rAttr, ScEditDataArray* pDataArray = nullptr );
 
-    void        SetPattern( const ScAddress& rPos, const ScPatternAttr& rAttr, bool bPutToPool = false )
+    void        SetPattern( const ScAddress& rPos, const ScPatternAttr& rAttr )
                     {
                         if (ValidColRow(rPos.Col(),rPos.Row()))
-                            aCol[rPos.Col()].SetPattern( rPos.Row(), rAttr, bPutToPool );
+                            aCol[rPos.Col()].SetPattern( rPos.Row(), rAttr, true/*bPutToPool*/ );
                     }
-    void        SetPattern( SCCOL nCol, SCROW nRow, const ScPatternAttr& rAttr, bool bPutToPool = false );
+    void        SetPattern( SCCOL nCol, SCROW nRow, const ScPatternAttr& rAttr );
     void        ApplyPatternIfNumberformatIncompatible( const ScRange& rRange,
                             const ScPatternAttr& rPattern, short nNewType );
     void        AddCondFormatData( const ScRangeList& rRange, sal_uInt32 nIndex );
@@ -643,7 +643,7 @@ public:
                                     double nPPTX, double nPPTY,
                                     const Fraction& rZoomX, const Fraction& rZoomY );
 
-    bool        IsStyleSheetUsed( const ScStyleSheet& rStyle, bool bGatherAllStyles ) const;
+    bool        IsStyleSheetUsed( const ScStyleSheet& rStyle ) const;
 
     bool        ApplyFlags( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, sal_Int16 nFlags );
     bool        RemoveFlags( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, sal_Int16 nFlags );
diff --git a/sc/inc/tokenarray.hxx b/sc/inc/tokenarray.hxx
index ac3c332..18fc6e5 100644
--- a/sc/inc/tokenarray.hxx
+++ b/sc/inc/tokenarray.hxx
@@ -134,7 +134,7 @@ public:
      * Make all absolute references pointing to the copied range if the range is copied too
      * @param bCheckCopyArea should references pointing into the copy area be adjusted independently from being absolute, should be true only for copy&paste between documents
      */
-    void AdjustAbsoluteRefs( const ScDocument* pOldDoc, const ScAddress& rOldPos, const ScAddress& rNewPos, bool bRangeName = false, bool bCheckCopyArea = false );
+    void AdjustAbsoluteRefs( const ScDocument* pOldDoc, const ScAddress& rOldPos, const ScAddress& rNewPos, bool bCheckCopyArea = false );
 
     /** When copying a sheet-local named expression, move sheet references that
         point to the originating sheet to point to the new sheet instead.
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 5dba406..fb78981 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -262,7 +262,7 @@ void Test::testPerf()
         // Copy cell A1 to clipboard.
         ScDocument aClipDoc(SCDOCMODE_CLIP);
         ScClipParam aParam(aPos, false);
-        m_pDoc->CopyToClip(aParam, &aClipDoc, &aMark);
+        m_pDoc->CopyToClip(aParam, &aClipDoc, &aMark, false, false);
         CPPUNIT_ASSERT_EQUAL(m_pDoc->GetString(aPos), aClipDoc.GetString(aPos));
 
         ScDocument* pUndoDoc = new ScDocument(SCDOCMODE_UNDO);
@@ -333,7 +333,7 @@ void Test::testPerf()
         // Copy to clipboard.
         ScDocument aClipDoc(SCDOCMODE_CLIP);
         ScClipParam aParam(aSrcRange, false);
-        m_pDoc->CopyToClip(aParam, &aClipDoc, &aMark);
+        m_pDoc->CopyToClip(aParam, &aClipDoc, &aMark, false, false);
         CPPUNIT_ASSERT_EQUAL(m_pDoc->GetString(aPos), aClipDoc.GetString(aPos));
 
         ScDocument* pUndoDoc = new ScDocument(SCDOCMODE_UNDO);
@@ -410,7 +410,7 @@ void Test::testPerf()
         // Copy to clipboard.
         ScDocument aClipDoc(SCDOCMODE_CLIP);
         ScClipParam aParam(aSrcRange, false);
-        m_pDoc->CopyToClip(aParam, &aClipDoc, &aMark);
+        m_pDoc->CopyToClip(aParam, &aClipDoc, &aMark, false, false);
         CPPUNIT_ASSERT_EQUAL(m_pDoc->GetString(aPos), aClipDoc.GetString(aPos));
 
         ScDocument* pUndoDoc = new ScDocument(SCDOCMODE_UNDO);
@@ -798,7 +798,7 @@ void Test::testDataEntries()
     m_pDoc->SetString(ScAddress(0,10,0), "Andy");
 
     std::vector<ScTypedStrData> aEntries;
-    m_pDoc->GetDataEntries(0, 0, 0, true, aEntries); // Try at the very top.
+    m_pDoc->GetDataEntries(0, 0, 0, aEntries); // Try at the very top.
 
     // Entries are supposed to be sorted in ascending order, and are all unique.
     CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(3), aEntries.size());
@@ -812,7 +812,7 @@ void Test::testDataEntries()
     CPPUNIT_ASSERT_MESSAGE("The entries should have ended here.", it == aEntries.end());
 
     aEntries.clear();
-    m_pDoc->GetDataEntries(0, MAXROW, 0, true, aEntries); // Try at the very bottom.
+    m_pDoc->GetDataEntries(0, MAXROW, 0, aEntries); // Try at the very bottom.
     CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(3), aEntries.size());
 
     // Make sure we get the same set of suggestions.
@@ -3589,7 +3589,7 @@ void Test::testCopyPasteMultiRange()
     aClipParam.maRanges.Append(ScRange(0,3,0,1,3,0)); // A4:B4
     aClipParam.maRanges.Append(ScRange(0,5,0,1,5,0)); // A6:B6
     aClipParam.meDirection = ScClipParam::Row;
-    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark);
+    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark, false, false);
 
     // Paste to D9:E11, and make sure it won't crash (rhbz#1080196).
     m_pDoc->CopyMultiRangeFromClip(ScAddress(3,8,0), aMark, InsertDeleteFlags::CONTENTS, &aClipDoc);
@@ -4044,7 +4044,7 @@ void Test::testCopyPasteRelativeFormula()
     ScMarkData aMark;
     aMark.SetMarkArea(aRange);
     ScDocument aClipDoc(SCDOCMODE_CLIP);
-    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark);
+    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark, false, false);
 
     // Paste it to B1:B2.
     InsertDeleteFlags nFlags = InsertDeleteFlags::ALL;
@@ -4067,7 +4067,7 @@ void Test::testCopyPasteRelativeFormula()
 
     // Copy A1 to clipboard.
     aClipParam = ScClipParam(ScAddress(0,0,0), false);
-    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark);
+    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark, false, false);
 
     pFC = aClipDoc.GetFormulaCell(ScAddress(0,0,0));
     CPPUNIT_ASSERT(pFC);
@@ -4127,7 +4127,7 @@ void Test::testCopyPasteRepeatOneFormula()
     // Copy C1 to clipboard.
     ScClipParam aClipParam(aPos, false);
     aMark.SetMarkArea(aPos);
-    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark);
+    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark, false, false);
 
     // Paste it to C2:C10.
     InsertDeleteFlags nFlags = InsertDeleteFlags::CONTENTS;
@@ -4396,7 +4396,7 @@ void Test::testUpdateReference()
     std::vector<OUString> aSheets;
     aSheets.push_back("Sheet1");
     aSheets.push_back("Sheet2");
-    m_pDoc->InsertTabs(0, aSheets, false, true);
+    m_pDoc->InsertTabs(0, aSheets, true);
     m_pDoc->GetValue(2, 0, 2, aValue);
     OUString aFormula;
     m_pDoc->GetFormula(2,0,2, aFormula);
@@ -4780,7 +4780,7 @@ void Test::testCopyPasteFormulasExternalDoc()
     ScMarkData aMark;
     aMark.SetMarkArea(aRange);
     ScDocument aClipDoc(SCDOCMODE_CLIP);
-    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark);
+    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark, false, false);
 
     InsertDeleteFlags nFlags = InsertDeleteFlags::ALL;
     aRange = ScRange(1,1,1,1,6,1);
@@ -5193,7 +5193,7 @@ void Test::testNoteLifeCycle()
     ScDocument aClipDoc(SCDOCMODE_CLIP);
     ScMarkData aMarkData;
     aMarkData.SelectOneTable(0);
-    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMarkData, false, false, true);
+    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMarkData, false, true);
 
     ScPostIt* pClipNote = aClipDoc.GetNote(aPos);
     CPPUNIT_ASSERT_MESSAGE("Failed to copy note to the clipboard.", pClipNote);
@@ -5273,7 +5273,7 @@ void Test::testNoteCopyPaste()
     ScDocument aClipDoc(SCDOCMODE_CLIP);
     aClipDoc.ResetClip(m_pDoc, &aMark);
     ScClipParam aClipParam(aCopyRange, false);
-    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark);
+    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark, false, false);
 
     // Make sure the notes are in the clipboard.
     pNote = aClipDoc.GetNote(ScAddress(1,1,0));
@@ -6148,7 +6148,7 @@ void Test::testCopyPasteMatrixFormula()
     ScAddress aPos(0,0,0);  // A1
     ScDocument aClipDoc(SCDOCMODE_CLIP);
     ScClipParam aParam(aPos, false);
-    m_pDoc->CopyToClip(aParam, &aClipDoc, &aMark);
+    m_pDoc->CopyToClip(aParam, &aClipDoc, &aMark, false, false);
     // Formula string should be equal.
     CPPUNIT_ASSERT_EQUAL(m_pDoc->GetString(aPos), aClipDoc.GetString(aPos));
 
@@ -6362,7 +6362,7 @@ void Test::copyToClip(ScDocument* pSrcDoc, const ScRange& rRange, ScDocument* pC
     ScClipParam aClipParam(rRange, false);
     ScMarkData aMark;
     aMark.SetMarkArea(rRange);
-    pSrcDoc->CopyToClip(aClipParam, pClipDoc, &aMark);
+    pSrcDoc->CopyToClip(aClipParam, pClipDoc, &aMark, false, false);
 }
 
 void Test::pasteFromClip(ScDocument* pDestDoc, const ScRange& rDestRange, ScDocument* pClipDoc)
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index 56ef228..5d5f3b0 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -7011,7 +7011,7 @@ public:
         // Copy formula cell to clipboard.
         ScClipParam aClipParam(aPos, false);
         aMark.SetMarkArea(aPos);
-        m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark);
+        m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark, false, false);
 
         // Paste it to first range.
         InsertDeleteFlags nFlags = InsertDeleteFlags::CONTENTS;
@@ -7131,7 +7131,7 @@ void Test::testTdf97587()
     // Copy formula cell to clipboard.
     ScClipParam aClipParam(aPos, false);
     aMark.SetMarkArea(aPos);
-    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark);
+    m_pDoc->CopyToClip(aClipParam, &aClipDoc, &aMark, false, false);
 
     // Paste it to first range.
     InsertDeleteFlags nFlags = InsertDeleteFlags::CONTENTS;
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index f3ae280..95411eb 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -689,9 +689,9 @@ void ScColumn::SetPattern( SCROW nRow, const ScPatternAttr& rPatAttr, bool bPutT
 }
 
 void ScColumn::SetPatternArea( SCROW nStartRow, SCROW nEndRow,
-                                const ScPatternAttr& rPatAttr, bool bPutToPool )
+                                const ScPatternAttr& rPatAttr )
 {
-    pAttrArray->SetPatternArea( nStartRow, nEndRow, &rPatAttr, bPutToPool );
+    pAttrArray->SetPatternArea( nStartRow, nEndRow, &rPatAttr, true/*bPutToPool*/ );
 }
 
 void ScColumn::ApplyAttr( SCROW nRow, const SfxPoolItem& rAttr )
diff --git a/sc/source/core/data/column4.cxx b/sc/source/core/data/column4.cxx
index f426d8d..6b81fe6 100644
--- a/sc/source/core/data/column4.cxx
+++ b/sc/source/core/data/column4.cxx
@@ -469,11 +469,11 @@ void ScColumn::SwapNonEmpty(
     CellStorageModified();
 }
 
-void ScColumn::DeleteRanges( const std::vector<sc::RowSpan>& rRanges, InsertDeleteFlags nDelFlag, bool bBroadcast )
+void ScColumn::DeleteRanges( const std::vector<sc::RowSpan>& rRanges, InsertDeleteFlags nDelFlag )
 {
     std::vector<sc::RowSpan>::const_iterator itSpan = rRanges.begin(), itSpanEnd = rRanges.end();
     for (; itSpan != itSpanEnd; ++itSpan)
-        DeleteArea(itSpan->mnRow1, itSpan->mnRow2, nDelFlag, bBroadcast);
+        DeleteArea(itSpan->mnRow1, itSpan->mnRow2, nDelFlag, false/*bBroadcast*/);
 }
 
 void ScColumn::CloneFormulaCell(
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index 828baec..af2c6de 100644
--- a/sc/source/core/data/dociter.cxx
+++ b/sc/source/core/data/dociter.cxx
@@ -2605,7 +2605,7 @@ void ScDocRowHeightUpdater::update()
         }
     }
 
-    ScProgress aProgress(mrDoc.GetDocumentShell(), ScGlobal::GetRscString(STR_PROGRESS_HEIGHTING), nCellCount);
+    ScProgress aProgress(mrDoc.GetDocumentShell(), ScGlobal::GetRscString(STR_PROGRESS_HEIGHTING), nCellCount, true);
 
     Fraction aZoom(1, 1);
     itr = mpTabRangesArray->begin();
@@ -2643,7 +2643,7 @@ void ScDocRowHeightUpdater::updateAll()
         nCellCount += mrDoc.maTabs[nTab]->GetWeightedCount();
     }
 
-    ScProgress aProgress(mrDoc.GetDocumentShell(), ScGlobal::GetRscString(STR_PROGRESS_HEIGHTING), nCellCount);
+    ScProgress aProgress(mrDoc.GetDocumentShell(), ScGlobal::GetRscString(STR_PROGRESS_HEIGHTING), nCellCount, true);
 
     Fraction aZoom(1, 1);
     sc::RowHeightContext aCxt(mfPPTX, mfPPTY, aZoom, aZoom, mpOutDev);
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index 79b4733..bbc0c42 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -1554,7 +1554,7 @@ void ScDocument::GetFilterEntriesArea(
  * Entries for selection list listbox (no numbers/formulas)
  */
 void ScDocument::GetDataEntries(
-    SCCOL nCol, SCROW nRow, SCTAB nTab, bool bCaseSens,
+    SCCOL nCol, SCROW nRow, SCTAB nTab,
     std::vector<ScTypedStrData>& rStrings, bool bLimit )
 {
     if( !bLimit )
@@ -1569,7 +1569,7 @@ void ScDocument::GetDataEntries(
             if( pData && pData->FillSelectionList( rStrings, ScAddress( nCol, nRow, nTab ) ) )
             {
                 if (pData->GetListType() == css::sheet::TableValidationVisibility::SORTEDASCENDING)
-                    sortAndRemoveDuplicates(rStrings, bCaseSens);
+                    sortAndRemoveDuplicates(rStrings, true/*bCaseSens*/);
 
                 return;
             }
@@ -1585,7 +1585,7 @@ void ScDocument::GetDataEntries(
     std::set<ScTypedStrData> aStrings;
     maTabs[nTab]->GetDataEntries(nCol, nRow, aStrings, bLimit);
     rStrings.insert(rStrings.end(), aStrings.begin(), aStrings.end());
-    sortAndRemoveDuplicates(rStrings, bCaseSens);
+    sortAndRemoveDuplicates(rStrings, true/*bCaseSens*/);
 }
 
 /**
diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx
index e17fada..780d361 100644
--- a/sc/source/core/data/documen4.cxx
+++ b/sc/source/core/data/documen4.cxx
@@ -531,11 +531,10 @@ bool ScDocument::GetNextMarkedCell( SCCOL& rCol, SCROW& rRow, SCTAB nTab,
 
 void ScDocument::ReplaceStyle(const SvxSearchItem& rSearchItem,
                               SCCOL nCol, SCROW nRow, SCTAB nTab,
-                              ScMarkData& rMark,
-                              bool bIsUndoP)
+                              ScMarkData& rMark)
 {
     if (nTab < static_cast<SCTAB>(maTabs.size()) && maTabs[nTab])
-        maTabs[nTab]->ReplaceStyle(rSearchItem, nCol, nRow, rMark, bIsUndoP);
+        maTabs[nTab]->ReplaceStyle(rSearchItem, nCol, nRow, rMark, true/*bIsUndoP*/);
 }
 
 void ScDocument::CompileDBFormula()
@@ -1165,7 +1164,7 @@ void ScDocument::CompareDocument( ScDocument& rOtherDoc )
             nIndex = 0;
             aProText.append(aTemplate.getToken( 1, '#', nIndex ));
             ScProgress aProgress( GetDocumentShell(),
-                                        aProText.makeStringAndClear(), 3*nThisEndRow );  // 2x FindOrder, 1x here
+                                        aProText.makeStringAndClear(), 3*nThisEndRow, true );  // 2x FindOrder, 1x here
             long nProgressStart = 2*nThisEndRow;                    // start for here
 
             std::unique_ptr<SCCOLROW[]> pTempRows(new SCCOLROW[nThisEndRow+1]);
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index 2f81db9..dd1a6c7 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -816,7 +816,7 @@ void ScDocument::UpdateExternalRefLinks(vcl::Window* pWin)
     sc::WaitPointerSwitch aWaitSwitch(pWin);
 
     pExternalRefMgr->enableDocTimer(false);
-    ScProgress aProgress(GetDocumentShell(), ScResId(SCSTR_UPDATE_EXTDOCS).toString(), aRefLinks.size());
+    ScProgress aProgress(GetDocumentShell(), ScResId(SCSTR_UPDATE_EXTDOCS).toString(), aRefLinks.size(), true);
     for (size_t i = 0, n = aRefLinks.size(); i < n; ++i)
     {
         aProgress.SetState(i+1);
diff --git a/sc/source/core/data/documen9.cxx b/sc/source/core/data/documen9.cxx
index 5d64307..e438b1e 100644
--- a/sc/source/core/data/documen9.cxx
+++ b/sc/source/core/data/documen9.cxx
@@ -264,7 +264,7 @@ void ScDocument::DrawMovePage( sal_uInt16 nOldPos, sal_uInt16 nNewPos )
 void ScDocument::DrawCopyPage( sal_uInt16 nOldPos, sal_uInt16 nNewPos )
 {
     // page is already created in ScTable ctor
-    pDrawLayer->ScCopyPage( nOldPos, nNewPos, true/*bSkipNotes*/ );
+    pDrawLayer->ScCopyPage( nOldPos, nNewPos );
 }
 
 void ScDocument::DeleteObjectsInArea( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index af7ae4f..63c24c8 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -578,7 +578,7 @@ bool ScDocument::InsertTab(
 }
 
 bool ScDocument::InsertTabs( SCTAB nPos, const std::vector<OUString>& rNames,
-            bool bExternalDocument, bool bNamesValid )
+            bool bNamesValid )
 {
     SCTAB   nNewSheets = static_cast<SCTAB>(rNames.size());
     SCTAB    nTabCount = static_cast<SCTAB>(maTabs.size());
@@ -591,8 +591,6 @@ bool ScDocument::InsertTabs( SCTAB nPos, const std::vector<OUString>& rNames,
             for ( SCTAB i = 0; i < nNewSheets; ++i )
             {
                 maTabs.push_back( new ScTable(this, nTabCount + i, rNames.at(i)) );
-                if ( bExternalDocument )
-                    maTabs[nTabCount+i]->SetVisible( false );
             }
         }
         else
@@ -2087,14 +2085,11 @@ void ScDocument::UndoToDocument(const ScRange& rRange,
         CopyToDocument( 0,0,nTab2+1, MAXCOL,MAXROW,maTabs.size(), InsertDeleteFlags::FORMULA, false, pDestDoc );
 }
 
-// bUseRangeForVBA added for VBA api support to allow content of a specified
-// range to be copied ( e.g. don't use marked data but the just the range
-// specified by rClipParam
 void ScDocument::CopyToClip(const ScClipParam& rClipParam,
                             ScDocument* pClipDoc, const ScMarkData* pMarks,
-                            bool bAllTabs, bool bKeepScenarioFlags, bool bIncludeObjects, bool bCloneNoteCaptions, bool bUseRangeForVBA )
+                            bool bKeepScenarioFlags, bool bIncludeObjects )
 {
-    OSL_ENSURE( !bUseRangeForVBA && ( bAllTabs ||  pMarks ), "CopyToClip: ScMarkData fails" );
+    OSL_ENSURE( pMarks, "CopyToClip: ScMarkData fails" );
 
     if (bIsClip)
         return;
@@ -2133,28 +2128,19 @@ void ScDocument::CopyToClip(const ScClipParam& rClipParam,
     pClipDoc->aDocName = aDocName;
     pClipDoc->SetClipParam(rClipParam);
     ScRange aClipRange = rClipParam.getWholeRange();
-    SCTAB nTab = aClipRange.aStart.Tab();
-    SCTAB i = 0;
     SCTAB nEndTab =  static_cast<SCTAB>(maTabs.size());
 
-    if ( bUseRangeForVBA )
-    {
-        pClipDoc->ResetClip( this, nTab );
-        i = nTab;
-        nEndTab = nTab + 1;
-    }
-    else
-        pClipDoc->ResetClip(this, pMarks);
+    pClipDoc->ResetClip(this, pMarks);
 
-    sc::CopyToClipContext aCxt(*pClipDoc, bKeepScenarioFlags, bCloneNoteCaptions);
-    CopyRangeNamesToClip(pClipDoc, aClipRange, pMarks, bAllTabs);
+    sc::CopyToClipContext aCxt(*pClipDoc, bKeepScenarioFlags, true/*bCloneNoteCaptions*/);
+    CopyRangeNamesToClip(pClipDoc, aClipRange, pMarks, false/*bAllTabs*/);
 
-    for ( ; i < nEndTab; ++i)
+    for (SCTAB i = 0; i < nEndTab; ++i)
     {
         if (!maTabs[i] || i >= static_cast<SCTAB>(pClipDoc->maTabs.size()) || !pClipDoc->maTabs[i])
             continue;
 
-        if ( !bUseRangeForVBA && ( pMarks && !pMarks->GetTableSelect(i) ) )
+        if ( pMarks && !pMarks->GetTableSelect(i) )
             continue;
 
         maTabs[i]->CopyToClip(aCxt, rClipParam.maRanges, pClipDoc->maTabs[i]);
@@ -3860,7 +3846,7 @@ void ScDocument::CompileXML()
     bool bOldAutoCalc = GetAutoCalc();
     SetAutoCalc( false );
     ScProgress aProgress( GetDocumentShell(), ScGlobal::GetRscString(
-                STR_PROGRESS_CALCULATING ), GetXMLImportedFormulaCount() );
+                STR_PROGRESS_CALCULATING ), GetXMLImportedFormulaCount(), true );
 
     sc::CompileFormulaContext aCxt(this);
 
@@ -4159,7 +4145,7 @@ void ScDocument::UpdateAllRowHeights( sc::RowHeightContext& rCxt, const ScMarkDa
         if ( maTabs[nTab] && ( !pTabMark || pTabMark->GetTableSelect(nTab) ) )
             nCellCount += maTabs[nTab]->GetWeightedCount();
 
-    ScProgress aProgress( GetDocumentShell(), ScGlobal::GetRscString(STR_PROGRESS_HEIGHTING), nCellCount );
+    ScProgress aProgress( GetDocumentShell(), ScGlobal::GetRscString(STR_PROGRESS_HEIGHTING), nCellCount, true );
 
     sal_uLong nProgressStart = 0;
     for ( SCTAB nTab=0; nTab< static_cast<SCTAB>(maTabs.size()); nTab++ )
@@ -4849,7 +4835,7 @@ bool ScDocument::IsStyleSheetUsed( const ScStyleSheet& rStyle ) const
         for (; it != maTabs.end(); ++it)
             if (*it)
             {
-                if ( (*it)->IsStyleSheetUsed( rStyle, true/*bGatherAllStyles*/ ) )
+                if ( (*it)->IsStyleSheetUsed( rStyle ) )
                 {
                     bIsUsed = true;
                 }
@@ -4889,14 +4875,14 @@ void ScDocument::SetPattern( SCCOL nCol, SCROW nRow, SCTAB nTab, const ScPattern
 {
     if (ValidTab(nTab) && nTab < static_cast<SCTAB>(maTabs.size()))
         if (maTabs[nTab])
-            maTabs[nTab]->SetPattern( nCol, nRow, rAttr, true/*bPutToPool*/ );
+            maTabs[nTab]->SetPattern( nCol, nRow, rAttr );
 }
 
 void ScDocument::SetPattern( const ScAddress& rPos, const ScPatternAttr& rAttr )
 {
     SCTAB nTab = rPos.Tab();
     if ( nTab < static_cast<SCTAB>(maTabs.size()) && maTabs[nTab])
-        maTabs[nTab]->SetPattern( rPos, rAttr, true/*bPutToPool*/ );
+        maTabs[nTab]->SetPattern( rPos, rAttr );
 }
 
 ScPatternAttr* ScDocument::CreateSelectionPattern( const ScMarkData& rMark, bool bDeep )
diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx
index ff343d3..4a23fc2 100644
--- a/sc/source/core/data/dpcache.cxx
+++ b/sc/source/core/data/dpcache.cxx
@@ -156,8 +156,8 @@ struct Bucket
     SCROW mnOrderIndex;
     SCROW mnDataIndex;
     SCROW mnValueSortIndex;
-    Bucket(const ScDPItemData& rValue, SCROW nOrder, SCROW nData) :
-        maValue(rValue), mnOrderIndex(nOrder), mnDataIndex(nData), mnValueSortIndex(0) {}
+    Bucket(const ScDPItemData& rValue, SCROW nData) :
+        maValue(rValue), mnOrderIndex(0), mnDataIndex(nData), mnValueSortIndex(0) {}
 };
 
 #if DEBUG_PIVOT_TABLE
@@ -353,7 +353,7 @@ void ScDPCache::InitFromDoc(ScDocument* pDoc, const ScRange& rRange)
             SCROW nRow = i + nOffset;
             sal_uLong nNumFormat = 0;
             initFromCell(*this, pDoc, nCol, nRow, nDocTab, aData, nNumFormat);
-            aBuckets.push_back(Bucket(aData, 0, i));
+            aBuckets.push_back(Bucket(aData, i));
 
             if (!aData.IsEmpty())
             {
@@ -418,7 +418,7 @@ bool ScDPCache::InitFromDataBase(DBConnector& rDB)
                 short nFormatType = css::util::NumberFormat::UNDEFINED;
                 aData.SetEmpty();
                 rDB.getValue(nCol, aData, nFormatType);
-                aBuckets.push_back(Bucket(aData, 0, nRow));
+                aBuckets.push_back(Bucket(aData, nRow));
                 if (!aData.IsEmpty())
                 {
                     maEmptyRows.insert_back(nRow, nRow+1, false);
diff --git a/sc/source/core/data/dpfilteredcache.cxx b/sc/source/core/data/dpfilteredcache.cxx
index f9ea8f2..134f26a 100644
--- a/sc/source/core/data/dpfilteredcache.cxx
+++ b/sc/source/core/data/dpfilteredcache.cxx
@@ -291,9 +291,9 @@ const ScDPItemData* ScDPFilteredCache::getCell(SCCOL nCol, SCROW nRow, bool bRep
    return mrCache.GetItemDataById( nCol, nId );
 }
 
-void  ScDPFilteredCache::getValue( ScDPValue& rVal, SCCOL nCol, SCROW nRow, bool bRepeatIfEmpty) const
+void  ScDPFilteredCache::getValue( ScDPValue& rVal, SCCOL nCol, SCROW nRow) const
 {
-    const ScDPItemData* pData = getCell( nCol, nRow, bRepeatIfEmpty );
+    const ScDPItemData* pData = getCell( nCol, nRow, false/*bRepeatIfEmpty*/ );
 
     if (pData)
     {
diff --git a/sc/source/core/data/dptabdat.cxx b/sc/source/core/data/dptabdat.cxx
index 9d9fac3..87ac0fd 100644
--- a/sc/source/core/data/dptabdat.cxx
+++ b/sc/source/core/data/dptabdat.cxx
@@ -169,7 +169,7 @@ void ScDPTableData::FillRowDataFromCacheTable(sal_Int32 nRow, const ScDPFiltered
         if ( nDim < nCacheColumnCount )
         {
             ScDPValue& rVal = rData.aValues.back();
-            rCacheTable.getValue( rVal, static_cast<SCCOL>(nDim), static_cast<SCROW>(nRow), false);
+            rCacheTable.getValue( rVal, static_cast<SCCOL>(nDim), static_cast<SCROW>(nRow));
         }
     }
 }
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index e90b81e..7ea6758 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -435,7 +435,7 @@ void ScDrawLayer::ScMovePage( sal_uInt16 nOldPos, sal_uInt16 nNewPos )
     ResetTab(nMinPos, pDoc->GetTableCount()-1);
 }
 
-void ScDrawLayer::ScCopyPage( sal_uInt16 nOldPos, sal_uInt16 nNewPos, bool bSkipNotes )
+void ScDrawLayer::ScCopyPage( sal_uInt16 nOldPos, sal_uInt16 nNewPos )
 {
     if (bDrawIsInUndo)
         return;
@@ -454,7 +454,7 @@ void ScDrawLayer::ScCopyPage( sal_uInt16 nOldPos, sal_uInt16 nNewPos, bool bSkip
         SdrObject* pOldObject = aIter.Next();
         while (pOldObject)
         {
-            if ( bSkipNotes && IsNoteCaption( pOldObject ) )
+            if ( IsNoteCaption( pOldObject ) )
             {
                 pOldObject = aIter.Next();
                 continue;
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 94677ff..679bd97 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -495,7 +495,7 @@ void adjustRangeName(formula::FormulaToken* pToken, ScDocument& rNewDoc, const S
         if (!bSameDoc)
         {
             pRangeNameToken->ReadjustAbsolute3DReferences(pOldDoc, &rNewDoc, pRangeData->GetPos(), true);
-            pRangeNameToken->AdjustAbsoluteRefs(pOldDoc, aOldPos, aNewPos, false, true);
+            pRangeNameToken->AdjustAbsoluteRefs(pOldDoc, aOldPos, aNewPos, true);
         }
 
         bool bInserted;
@@ -935,7 +935,7 @@ ScFormulaCell::ScFormulaCell( const ScFormulaCell& rCell, ScDocument& rDoc, cons
             pCode->ReadjustAbsolute3DReferences( rCell.pDocument, &rDoc, rCell.aPos);
         }
 
-        pCode->AdjustAbsoluteRefs( rCell.pDocument, rCell.aPos, aPos, false, bCopyBetweenDocs );
+        pCode->AdjustAbsoluteRefs( rCell.pDocument, rCell.aPos, aPos, bCopyBetweenDocs );
     }
 
     if (!pDocument->IsClipOrUndo())
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index af61151..1a8887a 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -75,7 +75,7 @@ ScProgress* GetProgressBar(
 
     if (nCount > 1)
         return new ScProgress(
-            pDoc->GetDocumentShell(), ScGlobal::GetRscString(STR_PROGRESS_HEIGHTING), nTotalCount);
+            pDoc->GetDocumentShell(), ScGlobal::GetRscString(STR_PROGRESS_HEIGHTING), nTotalCount, true);
 
     return nullptr;
 }
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 4a6536a..e83ecfe 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -875,7 +875,7 @@ void ScTable::TransposeClip( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
                 {
                     // no borders or merge items involved - use pattern as-is
                     for (nRow = nAttrRow1; nRow<=nAttrRow2; nRow++)
-                        pTransClip->SetPattern( static_cast<SCCOL>(nRow-nRow1), static_cast<SCROW>(nCol-nCol1), *pPattern, true );
+                        pTransClip->SetPattern( static_cast<SCCOL>(nRow-nRow1), static_cast<SCROW>(nCol-nCol1), *pPattern );
                 }
                 else
                 {
@@ -918,7 +918,7 @@ void ScTable::TransposeClip( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
 
                     for (nRow = nAttrRow1; nRow<=nAttrRow2; nRow++)
                         pTransClip->SetPattern( static_cast<SCCOL>(nRow-nRow1),
-                                static_cast<SCROW>(nCol-nCol1), aNewPattern, true);
+                                static_cast<SCROW>(nCol-nCol1), aNewPattern);
                 }
             }
         }
@@ -2557,16 +2557,14 @@ const ScStyleSheet* ScTable::GetAreaStyle( bool& rFound, SCCOL nCol1, SCROW nRow
     return bEqual ? pStyle : nullptr;
 }
 
-bool ScTable::IsStyleSheetUsed( const ScStyleSheet& rStyle, bool bGatherAllStyles ) const
+bool ScTable::IsStyleSheetUsed( const ScStyleSheet& rStyle ) const
 {
     bool bIsUsed = false;
 
     for ( SCCOL i=0; i<=MAXCOL; i++ )
     {
-        if ( aCol[i].IsStyleSheetUsed( rStyle, bGatherAllStyles ) )
+        if ( aCol[i].IsStyleSheetUsed( rStyle, true/*bGatherAllStyles*/ ) )
         {
-            if ( !bGatherAllStyles )
-                return true;
             bIsUsed = true;
         }
     }
@@ -2620,10 +2618,10 @@ bool ScTable::RemoveFlags( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCRO
     return bChanged;
 }
 
-void ScTable::SetPattern( SCCOL nCol, SCROW nRow, const ScPatternAttr& rAttr, bool bPutToPool )
+void ScTable::SetPattern( SCCOL nCol, SCROW nRow, const ScPatternAttr& rAttr )
 {
     if (ValidColRow(nCol,nRow))
-        aCol[nCol].SetPattern( nRow, rAttr, bPutToPool );
+        aCol[nCol].SetPattern( nRow, rAttr, true/*bPutToPool*/ );
 }
 
 void ScTable::ApplyAttr( SCCOL nCol, SCROW nRow, const SfxPoolItem& rAttr )
@@ -3544,7 +3542,7 @@ void ScTable::CopyData( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW n
             if (bThisTab)
             {
                 aCell.release(aCol[nDestX], nDestY);
-                SetPattern( nDestX, nDestY, *GetPattern( nCol, nRow ), true );
+                SetPattern( nDestX, nDestY, *GetPattern( nCol, nRow ) );
             }
             else
             {
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 9c6171a..29e5744 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -1129,7 +1129,7 @@ void ScTable::SortReorderByRow(
 
             for (it = aSpans.begin(); it != itEnd; ++it)
             {
-                aCol[nThisCol].SetPatternArea(it->mnRow1, it->mnRow2, *it->mpPattern, true);
+                aCol[nThisCol].SetPatternArea(it->mnRow1, it->mnRow2, *it->mpPattern);
                 pDocument->GetPool()->Remove(*it->mpPattern);
             }
         }
@@ -1327,7 +1327,7 @@ void ScTable::SortReorderByRowRefUpdate(
 
             for (it = aSpans.begin(); it != itEnd; ++it)
             {
-                aCol[nThisCol].SetPatternArea(it->mnRow1, it->mnRow2, *it->mpPattern, true);
+                aCol[nThisCol].SetPatternArea(it->mnRow1, it->mnRow2, *it->mpPattern);
                 pDocument->GetPool()->Remove(*it->mpPattern);
             }
         }
@@ -1895,7 +1895,7 @@ static void lcl_RemoveNumberFormat( ScTable* pTab, SCCOL nCol, SCROW nRow )
         SfxItemSet& rSet = aNewPattern.GetItemSet();
         rSet.ClearItem( ATTR_VALUE_FORMAT );
         rSet.ClearItem( ATTR_LANGUAGE_FORMAT );
-        pTab->SetPattern( nCol, nRow, aNewPattern, true );
+        pTab->SetPattern( nCol, nRow, aNewPattern );
     }
 }
 
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx
index 3c4cb8a..b2a1925 100644
--- a/sc/source/core/data/table4.cxx
+++ b/sc/source/core/data/table4.cxx
@@ -1174,7 +1174,7 @@ void ScTable::FillFormulaVertical(
     if (aSpans.empty())
         return;
 
-    aCol[nCol].DeleteRanges(aSpans, InsertDeleteFlags::VALUE | InsertDeleteFlags::DATETIME | InsertDeleteFlags::STRING | InsertDeleteFlags::FORMULA | InsertDeleteFlags::OUTLINE, false);
+    aCol[nCol].DeleteRanges(aSpans, InsertDeleteFlags::VALUE | InsertDeleteFlags::DATETIME | InsertDeleteFlags::STRING | InsertDeleteFlags::FORMULA | InsertDeleteFlags::OUTLINE);
     aCol[nCol].CloneFormulaCell(rSrcCell, sc::CellTextAttr(), aSpans, nullptr);
 
     std::shared_ptr<sc::ColumnBlockPositionSet> pSet(new sc::ColumnBlockPositionSet(*pDocument));
@@ -1567,7 +1567,7 @@ void ScTable::FillSeries( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
                 if(!bIsFiltered)
                 {
                     aCol[nCol].SetPatternArea( static_cast<SCROW>(nIMin),
-                            static_cast<SCROW>(nIMax), *pSrcPattern, true );
+                            static_cast<SCROW>(nIMax), *pSrcPattern );
 
                     for(std::vector<sal_uInt32>::const_iterator itr = rCondFormatIndex.begin(), itrEnd = rCondFormatIndex.end();
                             itr != itrEnd; ++itr)
@@ -1588,7 +1588,7 @@ void ScTable::FillSeries( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
                         if(!RowHidden(nAtRow))
                         {
                             aCol[nCol].SetPatternArea( static_cast<SCROW>(nAtRow),
-                                    static_cast<SCROW>(nAtRow), *pSrcPattern, true);
+                                    static_cast<SCROW>(nAtRow), *pSrcPattern);
                             for(std::vector<sal_uInt32>::const_iterator itr = rCondFormatIndex.begin(), itrEnd = rCondFormatIndex.end();
                                     itr != itrEnd; ++itr)
                             {
diff --git a/sc/source/core/tool/progress.cxx b/sc/source/core/tool/progress.cxx
index 26af709..789590e 100644
--- a/sc/source/core/tool/progress.cxx
+++ b/sc/source/core/tool/progress.cxx
@@ -71,7 +71,7 @@ static bool lcl_HasControllersLocked( SfxObjectShell& rObjSh )
 }
 
 ScProgress::ScProgress(SfxObjectShell* pObjSh, const OUString& rText,
-                       sal_uLong nRange, bool bAllDocs, bool bWait)
+                       sal_uLong nRange, bool bWait)
     : bEnabled(true)
 {
 
@@ -107,7 +107,7 @@ ScProgress::ScProgress(SfxObjectShell* pObjSh, const OUString& rText,
     }
     else
     {
-        pProgress = new SfxProgress( pObjSh, rText, nRange, bAllDocs, bWait );
+        pProgress = new SfxProgress( pObjSh, rText, nRange, false/*bAllDocs*/, bWait );
         pGlobalProgress = pProgress;
         nGlobalRange = nRange;
         nGlobalPercent = 0;
@@ -151,7 +151,7 @@ void ScProgress::CreateInterpretProgress( ScDocument* pDoc, bool bWait )
             if ( !pGlobalProgress )
                 pInterpretProgress = new ScProgress( pDoc->GetDocumentShell(),
                     ScGlobal::GetRscString( STR_PROGRESS_CALCULATING ),
-                    pDoc->GetFormulaCodeInTree()/MIN_NO_CODES_PER_PROGRESS_UPDATE, false, bWait );
+                    pDoc->GetFormulaCodeInTree()/MIN_NO_CODES_PER_PROGRESS_UPDATE, bWait );
             pInterpretDoc = pDoc;
         }
     }
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index ac2eed2..f5e3287 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -2428,9 +2428,9 @@ void ScTokenArray::ReadjustAbsolute3DReferences( const ScDocument* pOldDoc, cons
 }
 
 void ScTokenArray::AdjustAbsoluteRefs( const ScDocument* pOldDoc, const ScAddress& rOldPos, const ScAddress& rNewPos,
-        bool bRangeName, bool bCheckCopyRange)
+        bool bCheckCopyRange)
 {
-    TokenPointers aPtrs( pCode, nLen, pRPN, nRPN, !bRangeName);
+    TokenPointers aPtrs( pCode, nLen, pRPN, nRPN, true);
     for (size_t j=0; j<2; ++j)
     {
         FormulaToken** pp = aPtrs.maPointerRange[j].mpStart;
@@ -2452,11 +2452,8 @@ void ScTokenArray::AdjustAbsoluteRefs( const ScDocument* pOldDoc, const ScAddres
                         ScSingleRefData& rRef2 = rRef.Ref2;
                         ScSingleRefData& rRef1 = rRef.Ref1;
 
-                        // for range names only adjust if all parts are absolute
-                        if (!bRangeName || !(rRef1.IsColRel() || rRef1.IsRowRel() || rRef1.IsTabRel()))
-                            AdjustSingleRefData( rRef1, rOldPos, rNewPos );
-                        if (!bRangeName || !(rRef2.IsColRel() || rRef2.IsRowRel() || rRef2.IsTabRel()))
-                            AdjustSingleRefData( rRef2, rOldPos, rNewPos );
+                        AdjustSingleRefData( rRef1, rOldPos, rNewPos );
+                        AdjustSingleRefData( rRef2, rOldPos, rNewPos );
                     }
                     break;
                 case svSingleRef :
@@ -2466,9 +2463,7 @@ void ScTokenArray::AdjustAbsoluteRefs( const ScDocument* pOldDoc, const ScAddres
 
                         ScSingleRefData& rRef = *p->GetSingleRef();
 
-                        // for range names only adjust if all parts are absolute
-                        if (!bRangeName || !(rRef.IsColRel() || rRef.IsRowRel() || rRef.IsTabRel()))
-                            AdjustSingleRefData( rRef, rOldPos, rNewPos );
+                        AdjustSingleRefData( rRef, rOldPos, rNewPos );
                     }
                     break;
                 default:
diff --git a/sc/source/filter/dif/difexp.cxx b/sc/source/filter/dif/difexp.cxx
index 1c26df1..2f15ebe 100644
--- a/sc/source/filter/dif/difexp.cxx
+++ b/sc/source/filter/dif/difexp.cxx
@@ -99,7 +99,7 @@ FltError ScFormatFilterPluginImpl::ScExportDif( SvStream& rOut, ScDocument* pDoc
     SCROW               nNumRows = nEndRow - rRange.aStart.Row() + 1;
     SCTAB               nTab = rRange.aStart.Tab();
 
-    ScProgress          aPrgrsBar( pDoc->GetDocumentShell(), ScGlobal::GetRscString( STR_LOAD_DOC ), nNumRows );
+    ScProgress          aPrgrsBar( pDoc->GetDocumentShell(), ScGlobal::GetRscString( STR_LOAD_DOC ), nNumRows, true );
 
     aPrgrsBar.SetState( 0 );
 
diff --git a/sc/source/filter/ftools/fprogressbar.cxx b/sc/source/filter/ftools/fprogressbar.cxx
index 932444f..57097ff 100644
--- a/sc/source/filter/ftools/fprogressbar.cxx
+++ b/sc/source/filter/ftools/fprogressbar.cxx
@@ -93,7 +93,7 @@ void ScfProgressBar::SetCurrSegment( ScfProgressSegment* pSegment )
                 nSysTotalSize /= 2;
                 mnSysProgressScale *= 2;
             }
-            mxSysProgress.reset( new ScProgress( mpDocShell, maText, nSysTotalSize ) );
+            mxSysProgress.reset( new ScProgress( mpDocShell, maText, nSysTotalSize, true ) );
         }
 
         if( !mbInProgress && mpCurrSegment && (mnTotalSize > 0) )
diff --git a/sc/source/filter/rtf/eeimpars.cxx b/sc/source/filter/rtf/eeimpars.cxx
index 8200745..d4a39d9 100644
--- a/sc/source/filter/rtf/eeimpars.cxx
+++ b/sc/source/filter/rtf/eeimpars.cxx
@@ -108,7 +108,7 @@ sal_uLong ScEEImport::Read( SvStream& rStream, const OUString& rBaseURL )
 void ScEEImport::WriteToDocument( bool bSizeColsRows, double nOutputFactor, SvNumberFormatter* pFormatter, bool bConvertDate )
 {
     ScProgress* pProgress = new ScProgress( mpDoc->GetDocumentShell(),
-        ScGlobal::GetRscString( STR_LOAD_DOC ), mpParser->ListSize() );
+        ScGlobal::GetRscString( STR_LOAD_DOC ), mpParser->ListSize(), true );
     sal_uLong nProgress = 0;
 
     SCCOL nStartCol, nEndCol;
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index b8db1ee..b40f93d 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -1611,7 +1611,7 @@ void ScInputHandler::GetColData()
 
         std::vector<ScTypedStrData> aEntries;
         rDoc.GetDataEntries(
-            aCursorPos.Col(), aCursorPos.Row(), aCursorPos.Tab(), true, aEntries, true);
+            aCursorPos.Col(), aCursorPos.Row(), aCursorPos.Tab(), aEntries, true);
         if (!aEntries.empty())
             pColumnData->insert(aEntries.begin(), aEntries.end());
 
diff --git a/sc/source/ui/cctrl/cbuttonw.cxx b/sc/source/ui/cctrl/cbuttonw.cxx
index ad22426..46ebb21 100644
--- a/sc/source/ui/cctrl/cbuttonw.cxx
+++ b/sc/source/ui/cctrl/cbuttonw.cxx
@@ -81,7 +81,7 @@ void ScDDComboBoxButton::Draw( const Point& rAt,
     aInnerRect.Top()   = aInnerCenter.Y() - (aInnerSize.Width()>>1);
     aInnerRect.Bottom()= aInnerCenter.Y() + (aInnerSize.Width()>>1);
 
-    ImpDrawArrow( aInnerRect, false/*bState*/ );
+    ImpDrawArrow( aInnerRect );
 
     // restore old state
     pOut->EnableMapMode( bOldEnable );
@@ -95,8 +95,7 @@ void ScDDComboBoxButton::Draw( const Point& rAt,
         pOut->SetFillColor();
 }
 
-void ScDDComboBoxButton::ImpDrawArrow( const Rectangle& rRect,
-                                       bool             bState )
+void ScDDComboBoxButton::ImpDrawArrow( const Rectangle& rRect )
 {
     // no need to save old line and fill color here (is restored after the call)
 
@@ -115,7 +114,7 @@ void ScDDComboBoxButton::ImpDrawArrow( const Rectangle& rRect,
     Rectangle aTempRect = aPixRect;
 
     const StyleSettings& rSett = Application::GetSettings().GetStyleSettings();
-    Color aColor( bState ? COL_LIGHTBLUE : rSett.GetButtonTextColor().GetColor() );
+    Color aColor( rSett.GetButtonTextColor().GetColor() );
     pOut->SetFillColor( aColor );
     pOut->SetLineColor( aColor );
 
diff --git a/sc/source/ui/docshell/arealink.cxx b/sc/source/ui/docshell/arealink.cxx
index d9ef580..fc689e4 100644
--- a/sc/source/ui/docshell/arealink.cxx
+++ b/sc/source/ui/docshell/arealink.cxx
@@ -372,7 +372,7 @@ bool ScAreaLink::Refresh( const OUString& rNewFile, const OUString& rNewFilter,
                     aSourceMark.SetMarkArea( aTokenRange );
 
                     ScClipParam aClipParam(aTokenRange, false);
-                    rSrcDoc.CopyToClip(aClipParam, &aClipDoc, &aSourceMark);
+                    rSrcDoc.CopyToClip(aClipParam, &aClipDoc, &aSourceMark, false, false);
 
                     if ( aClipDoc.HasAttrib( 0,0,nSrcTab, MAXCOL,MAXROW,nSrcTab,
                                             HASATTR_MERGED | HASATTR_OVERLAPPED ) )
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index 05ea76a..73c0dc9 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -559,7 +559,7 @@ bool ScDBDocFunc::Sort( SCTAB nTab, const ScSortParam& rSortParam,
     {
         ScInputOptions aInputOption = SC_MOD()->GetInputOptions();
         bool bUpdateRefs = aInputOption.GetSortRefUpdate();
-        ScProgress aProgress(&rDocShell, ScGlobal::GetRscString(STR_PROGRESS_SORTING), 0);
+        ScProgress aProgress(&rDocShell, ScGlobal::GetRscString(STR_PROGRESS_SORTING), 0, true);
         rDoc.Sort(nTab, aLocalParam, bRepeatQuery, bUpdateRefs, &aProgress, &aUndoParam);
     }
 
@@ -823,7 +823,7 @@ bool ScDBDocFunc::Query( SCTAB nTab, const ScQueryParam& rQueryParam,
                 sal_uLong nProgCount = nFormulaCols;
                 nProgCount *= aLocalParam.nRow2 - nFStartY;
                 ScProgress aProgress( rDoc.GetDocumentShell(),
-                        ScGlobal::GetRscString(STR_FILL_SERIES_PROGRESS), nProgCount );
+                        ScGlobal::GetRscString(STR_FILL_SERIES_PROGRESS), nProgCount, true );
 
                 rDoc.Fill( aLocalParam.nCol2+1, nFStartY,
                             aLocalParam.nCol2+nFormulaCols, nFStartY, &aProgress, aMark,
diff --git a/sc/source/ui/docshell/dbdocimp.cxx b/sc/source/ui/docshell/dbdocimp.cxx
index 52cb9ed..45a68e6 100644
--- a/sc/source/ui/docshell/dbdocimp.cxx
+++ b/sc/source/ui/docshell/dbdocimp.cxx
@@ -190,7 +190,7 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam,
     {
         //  progress bar
         //  only text (title is still needed, for the cancel button)
-        ScProgress aProgress( &rDocShell, ScGlobal::GetRscString(STR_UNDO_IMPORTDATA), 0 );
+        ScProgress aProgress( &rDocShell, ScGlobal::GetRscString(STR_UNDO_IMPORTDATA), 0, true );
 
         uno::Reference<sdbc::XRowSet> xRowSet( xResultSet, uno::UNO_QUERY );
         bool bDispose = false;
@@ -554,7 +554,7 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam,
             sal_uLong nProgCount = nFormulaCols;
             nProgCount *= nEndRow-rParam.nRow1-1;
             ScProgress aProgress( rDoc.GetDocumentShell(),
-                    ScGlobal::GetRscString(STR_FILL_SERIES_PROGRESS), nProgCount );
+                    ScGlobal::GetRscString(STR_FILL_SERIES_PROGRESS), nProgCount, true );
 
             rDoc.Fill( nEndCol+1, rParam.nRow1+1, nEndCol+nFormulaCols, rParam.nRow1+1,
                             &aProgress, aMark, nEndRow-rParam.nRow1-1, FILL_TO_BOTTOM, FILL_SIMPLE );
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 81e7caa..a879464 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -2614,7 +2614,7 @@ bool ScDocFunc::MoveBlock( const ScRange& rSource, const ScAddress& rDestPos,
     ScDrawLayer::SetGlobalDrawPersist(aDragShellRef);
 
     ScClipParam aClipParam(ScRange(nStartCol, nStartRow, nStartTab, nEndCol, nEndRow, nStartTab), bCut);
-    rDoc.CopyToClip(aClipParam, pClipDoc, &aSourceMark, false, bScenariosAdded, true);
+    rDoc.CopyToClip(aClipParam, pClipDoc, &aSourceMark, bScenariosAdded, true);
 
     ScDrawLayer::SetGlobalDrawPersist(nullptr);
 
@@ -4348,7 +4348,7 @@ bool ScDocFunc::FillSimple( const ScRange& rRange, const ScMarkData* pTabMark,
             nProgCount = aSourceArea.aEnd.Row() - aSourceArea.aStart.Row() + 1;
         nProgCount *= nCount;
         ScProgress aProgress( rDoc.GetDocumentShell(),
-                ScGlobal::GetRscString(STR_FILL_SERIES_PROGRESS), nProgCount );
+                ScGlobal::GetRscString(STR_FILL_SERIES_PROGRESS), nProgCount, true );
 
         rDoc.Fill( aSourceArea.aStart.Col(), aSourceArea.aStart.Row(),
                 aSourceArea.aEnd.Col(), aSourceArea.aEnd.Row(), &aProgress,
@@ -4475,7 +4475,7 @@ bool ScDocFunc::FillSeries( const ScRange& rRange, const ScMarkData* pTabMark,
                 nProgCount = aSourceArea.aEnd.Row() - aSourceArea.aStart.Row() + 1;
             nProgCount *= nCount;
             ScProgress aProgress( rDoc.GetDocumentShell(),
-                    ScGlobal::GetRscString(STR_FILL_SERIES_PROGRESS), nProgCount );
+                    ScGlobal::GetRscString(STR_FILL_SERIES_PROGRESS), nProgCount, true );
 
             rDoc.Fill( aSourceArea.aStart.Col(), aSourceArea.aStart.Row(),
                         aSourceArea.aEnd.Col(), aSourceArea.aEnd.Row(), &aProgress,
@@ -4614,7 +4614,7 @@ bool ScDocFunc::FillAuto( ScRange& rRange, const ScMarkData* pTabMark, FillDir e
         nProgCount = aSourceArea.aEnd.Row() - aSourceArea.aStart.Row() + 1;
     nProgCount *= nCount;
     ScProgress aProgress( rDoc.GetDocumentShell(),
-            ScGlobal::GetRscString(STR_FILL_SERIES_PROGRESS), nProgCount );
+            ScGlobal::GetRscString(STR_FILL_SERIES_PROGRESS), nProgCount, true );
 
     rDoc.Fill( aSourceArea.aStart.Col(), aSourceArea.aStart.Row(),
             aSourceArea.aEnd.Col(), aSourceArea.aEnd.Row(), &aProgress,
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 4c69ed1..22f3af5 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -1855,7 +1855,7 @@ void ScDocShell::AsciiSave( SvStream& rStream, const ScImportOptions& rAsciiOpt
     SCROW nEndRow;
     aDocument.GetCellArea( nTab, nEndCol, nEndRow );
 
-    ScProgress aProgress( this, ScGlobal::GetRscString( STR_SAVE_DOC ), nEndRow );
+    ScProgress aProgress( this, ScGlobal::GetRscString( STR_SAVE_DOC ), nEndRow, true );
 
     OUString aString;
 
diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx
index f9bb671..a97add2 100644
--- a/sc/source/ui/docshell/docsh3.cxx
+++ b/sc/source/ui/docshell/docsh3.cxx
@@ -293,12 +293,12 @@ void ScDocShell::SetLockCount(sal_uInt16 nNew)
     {
         if ( !pPaintLockData )
             pPaintLockData = new ScPaintLockData;
-        pPaintLockData->SetLevel(nNew-1, true);
+        pPaintLockData->SetDocLevel(nNew-1);
         LockDocument_Impl(nNew);
     }
     else if (pPaintLockData)    // loeschen
     {
-        pPaintLockData->SetLevel(0, true);  // bei Unlock sofort ausfuehren
+        pPaintLockData->SetDocLevel(0);  // bei Unlock sofort ausfuehren
         UnlockPaint_Impl(true);                 // jetzt
         UnlockDocument_Impl(0);
     }
@@ -828,7 +828,7 @@ void ScDocShell::MergeDocument( ScDocument& rOtherDoc, bool bShared, bool bCheck
                             //  ab hier kein return mehr
 
     ScProgress aProgress( this, OUString("..."),
-                    nNewActionCount );
+                    nNewActionCount, true );
 
     sal_uLong nLastMergeAction = pSourceTrack->GetLast()->GetActionNumber();
     // UpdateReference-Undo, gueltige Referenzen fuer den letzten gemeinsamen Zustand
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx
index 74ddbd8..6d37173 100644
--- a/sc/source/ui/docshell/docsh5.cxx
+++ b/sc/source/ui/docshell/docsh5.cxx
@@ -974,7 +974,7 @@ bool ScDocShell::MoveTable( SCTAB nSrcTab, SCTAB nDestTab, bool bCopy, bool bRec
         }
 
         ScProgress* pProgress = new ScProgress(this, ScGlobal::GetRscString(STR_UNDO_MOVE_TAB),
-                                                aDocument.GetCodeCount());
+                                                aDocument.GetCodeCount(), true);
         bool bDone = aDocument.MoveTab( nSrcTab, nDestTab, pProgress );
         delete pProgress;
         if (!bDone)
diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx
index 35cd59f..2ea750f 100644
--- a/sc/source/ui/docshell/docsh8.cxx
+++ b/sc/source/ui/docshell/docsh8.cxx
@@ -316,7 +316,7 @@ sal_uLong ScDocShell::DBaseImport( const OUString& rFullFileName, rtl_TextEncodi
             return nRet;
         ::utl::DisposableComponent aConnectionHelper(xConnection);
 
-        ScProgress aProgress( this, ScGlobal::GetRscString( STR_LOAD_DOC ), 0 );
+        ScProgress aProgress( this, ScGlobal::GetRscString( STR_LOAD_DOC ), 0, true );
         uno::Reference<lang::XMultiServiceFactory> xFactory = comphelper::getProcessServiceFactory();
         uno::Reference<sdbc::XRowSet> xRowSet( xFactory->createInstance(SC_SERVICE_ROWSET),
                             uno::UNO_QUERY);
@@ -807,7 +807,7 @@ sal_uLong ScDocShell::DBaseExport( const OUString& rFullFileName, rtl_TextEncodi
     if ( nFirstRow > nLastRow )
         nFirstRow = nLastRow;
     ScProgress aProgress( this, ScGlobal::GetRscString( STR_SAVE_DOC ),
-                                                    nLastRow - nFirstRow );
+                                                    nLastRow - nFirstRow, true );
     SvNumberFormatter* pNumFmt = aDocument.GetFormatTable();
 
     bool bHasFieldNames = true;
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index 39cf5be..dd8a98d 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -1267,7 +1267,7 @@ bool ScImportExport::ExtText2Doc( SvStream& rStrm )
     sal_uInt64 const nOldPos = rStrm.Tell();
     sal_uInt64 const nRemaining = rStrm.remainingSize();
     std::unique_ptr<ScProgress> xProgress( new ScProgress( pDocSh,
-            ScGlobal::GetRscString( STR_LOAD_DOC ), nRemaining ));
+            ScGlobal::GetRscString( STR_LOAD_DOC ), nRemaining, true ));
     rStrm.StartReadingUnicodeText( rStrm.GetStreamCharSet() );
 
     SCCOL nStartCol = aRange.aStart.Col();
diff --git a/sc/source/ui/inc/cbutton.hxx b/sc/source/ui/inc/cbutton.hxx
index 027dd78..8cf9d75 100644
--- a/sc/source/ui/inc/cbutton.hxx
+++ b/sc/source/ui/inc/cbutton.hxx
@@ -48,8 +48,7 @@ public:
     Size    GetSizePixel() const                 { return aBtnSize; }
 
 private:
-    void    ImpDrawArrow( const Rectangle&  rRect,
-                          bool              bState );
+    void    ImpDrawArrow( const Rectangle&  rRect );
 
 protected:
     VclPtr<OutputDevice> pOut;
diff --git a/sc/source/ui/inc/csvgrid.hxx b/sc/source/ui/inc/csvgrid.hxx
index aa8a62e..f6503fb 100644
--- a/sc/source/ui/inc/csvgrid.hxx
+++ b/sc/source/ui/inc/csvgrid.hxx
@@ -36,36 +36,21 @@ class ScEditEngineDefaulter;
 class ScAsciiOptions;
 class ScAccessibleCsvControl;
 
-const sal_uInt8 CSV_COLFLAG_NONE    = 0x00;         /// Nothing set.
-const sal_uInt8 CSV_COLFLAG_SELECT  = 0x01;         /// Column is selected.
-
 const sal_uInt32 CSV_COLUMN_INVALID = CSV_VEC_NOTFOUND;
 
 /** This struct contains the state of one table column. */
 struct ScCsvColState
 {
-    sal_Int32                   mnType;             /// Data type.
-    sal_uInt8                   mnFlags;            /// Flags (i.e. selection state).
+    sal_Int32            mnType;             /// Data type.
+    bool                 mbColumnSelected;
 
-    inline explicit             ScCsvColState(
-                                        sal_Int32 nType = CSV_TYPE_DEFAULT,
-                                        sal_uInt8 nFlags = CSV_COLFLAG_NONE ) :
-                                    mnType( nType ), mnFlags( nFlags ) {}
+    explicit             ScCsvColState( sal_Int32 nType = CSV_TYPE_DEFAULT ) :
+                                    mnType( nType ), mbColumnSelected( false ) {}
 
-    inline bool                 IsSelected() const;
-    inline void                 Select( bool bSel );
+    bool                 IsSelected() const { return mbColumnSelected; }
+    void                 Select( bool bSel ) { mbColumnSelected = bSel; }
 };
 
-inline bool ScCsvColState::IsSelected() const
-{
-    return (mnFlags & CSV_COLFLAG_SELECT) != 0;
-}
-
-inline void ScCsvColState::Select( bool bSel )
-{
-    if( bSel ) mnFlags |= CSV_COLFLAG_SELECT; else mnFlags &= ~CSV_COLFLAG_SELECT;
-}
-
 typedef ::std::vector< ScCsvColState > ScCsvColStateVec;
 
 /** A data grid control for the CSV import dialog. The design of this control
diff --git a/sc/source/ui/inc/pntlock.hxx b/sc/source/ui/inc/pntlock.hxx
index 6a514c7..1e1163a 100644
--- a/sc/source/ui/inc/pntlock.hxx
+++ b/sc/source/ui/inc/pntlock.hxx
@@ -50,8 +50,8 @@ public:
     bool                    GetModified() const             { return bModified; }
 
     /** for recovery after reset */
-    void            SetLevel(sal_uInt16 nNew, bool bDoc)
-                        { if (bDoc) nDocLevel = nNew; else nLevel = nNew; }
+    void            SetDocLevel(sal_uInt16 nNew)
+                        { nDocLevel = nNew; }
 };
 
 #endif
diff --git a/sc/source/ui/inc/viewfunc.hxx b/sc/source/ui/inc/viewfunc.hxx
index 45ea187..6ce056b 100644
--- a/sc/source/ui/inc/viewfunc.hxx
+++ b/sc/source/ui/inc/viewfunc.hxx
@@ -214,7 +214,7 @@ public:
 
     void            RemoveManualBreaks();
 
-    void            SetPrintZoom(sal_uInt16 nScale, sal_uInt16 nPages);
+    void            SetPrintZoom(sal_uInt16 nScale);
     void            AdjustPrintZoom();
 
     bool            TestMergeCells();
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 6a92d19..7e7a043 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -1269,7 +1269,7 @@ static void lcl_DoDragCells( ScDocShell* pSrcShell, const ScRange& rRange, sal_u
     {
         ScDocument* pClipDoc = new ScDocument( SCDOCMODE_CLIP );
         ScClipParam aClipParam(rRange, false);
-        rSrcDoc.CopyToClip(aClipParam, pClipDoc, &aMark);
+        rSrcDoc.CopyToClip(aClipParam, pClipDoc, &aMark, false, false);
         // pClipDoc->ExtendMerge( rRange, sal_True );
 
         TransferableObjectDescriptor aObjDesc;
diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx
index 270830d..04e8e8f 100644
--- a/sc/source/ui/undo/undoblk.cxx
+++ b/sc/source/ui/undo/undoblk.cxx
@@ -1369,7 +1369,7 @@ void ScUndoDragDrop::Redo()
     // do not clone objects and note captions into clipdoc (see above)
     // but at least copy notes
     ScClipParam aClipParam(aSrcRange, bCut);
-    rDoc.CopyToClip(aClipParam, pClipDoc.get(), &aSourceMark, false, bKeepScenarioFlags);
+    rDoc.CopyToClip(aClipParam, pClipDoc.get(), &aSourceMark, bKeepScenarioFlags, false);
 
     if (bCut)
     {
diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx
index 06cdb5f..dfec1d1 100644
--- a/sc/source/ui/undo/undoblk3.cxx
+++ b/sc/source/ui/undo/undoblk3.cxx
@@ -599,7 +599,7 @@ void ScUndoAutoFill::Redo()
         nProgCount = aSource.aEnd.Row() - aSource.aStart.Row() + 1;
     nProgCount *= nCount;
     ScProgress aProgress( rDoc.GetDocumentShell(),
-            ScGlobal::GetRscString(STR_FILL_SERIES_PROGRESS), nProgCount );
+            ScGlobal::GetRscString(STR_FILL_SERIES_PROGRESS), nProgCount, true );
 
     rDoc.Fill( aSource.aStart.Col(), aSource.aStart.Row(),
             aSource.aEnd.Col(), aSource.aEnd.Row(), &aProgress,
@@ -1000,7 +1000,7 @@ void ScUndoReplace::Undo()
         pSearchItem->SetReplaceString(aTempStr);
         rDoc.ReplaceStyle( *pSearchItem,
                             aCursorPos.Col(), aCursorPos.Row(), aCursorPos.Tab(),
-                            aMarkData, true);
+                            aMarkData);
         pSearchItem->SetReplaceString(pSearchItem->GetSearchString());
         pSearchItem->SetSearchString(aTempStr);
         if (pViewShell)
@@ -1066,7 +1066,7 @@ void ScUndoReplace::Redo()
     {
         rDoc.ReplaceStyle( *pSearchItem,
                             aCursorPos.Col(), aCursorPos.Row(), aCursorPos.Tab(),
-                            aMarkData, true);
+                            aMarkData);
         pDocShell->PostPaintGridAll();
     }
     else
diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx
index f74667f..97d76a0 100644
--- a/sc/source/ui/undo/undotab.cxx
+++ b/sc/source/ui/undo/undotab.cxx
@@ -500,7 +500,7 @@ void ScUndoMoveTab::DoChange( bool bUndo ) const
     {
         size_t i = mpNewTabs->size();
         std::unique_ptr<ScProgress> pProgress(new ScProgress(pDocShell , ScGlobal::GetRscString(STR_UNDO_MOVE_TAB),
-                                                               i * rDoc.GetCodeCount()));
+                                                               i * rDoc.GetCodeCount(), true));
         for (; i > 0; --i)
         {
             SCTAB nDestTab = (*mpNewTabs)[i-1];
@@ -522,7 +522,7 @@ void ScUndoMoveTab::DoChange( bool bUndo ) const
     {
         size_t n = mpNewTabs->size();
         std::unique_ptr<ScProgress> pProgress(new ScProgress(pDocShell , ScGlobal::GetRscString(STR_UNDO_MOVE_TAB),
-                                                               n * rDoc.GetCodeCount()));
+                                                               n * rDoc.GetCodeCount(), true));
         for (size_t i = 0; i < n; ++i)
         {
             SCTAB nDestTab = (*mpNewTabs)[i];
diff --git a/sc/source/ui/unoobj/funcuno.cxx b/sc/source/ui/unoobj/funcuno.cxx
index 411f88b..90ecc9c 100644
--- a/sc/source/ui/unoobj/funcuno.cxx
+++ b/sc/source/ui/unoobj/funcuno.cxx
@@ -154,7 +154,7 @@ static bool lcl_CopyData( ScDocument* pSrcDoc, const ScRange& rSrcRange,
     aSourceMark.SelectOneTable( nSrcTab );      // for CopyToClip
     aSourceMark.SetMarkArea( rSrcRange );
     ScClipParam aClipParam(rSrcRange, false);
-    pSrcDoc->CopyToClip(aClipParam, pClipDoc.get(), &aSourceMark);
+    pSrcDoc->CopyToClip(aClipParam, pClipDoc.get(), &aSourceMark, false, false);
 
     if ( pClipDoc->HasAttrib( 0,0,nSrcTab, MAXCOL,MAXROW,nSrcTab,
                                 HASATTR_MERGED | HASATTR_OVERLAPPED ) )
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index 0d21f00..db7e146 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -1518,7 +1518,7 @@ ScVbaRange::getValue() throw (uno::RuntimeException, std::exception)
 }
 
 void
-ScVbaRange::setValue( const uno::Any& aValue, ValueSetter& valueSetter, bool bFireEvent ) throw (uno::RuntimeException)
+ScVbaRange::setValue( const uno::Any& aValue, ValueSetter& valueSetter ) throw (uno::RuntimeException)
 {
     uno::TypeClass aClass = aValue.getValueTypeClass();
     if ( aClass == uno::TypeClass_SEQUENCE )
@@ -1553,7 +1553,7 @@ ScVbaRange::setValue( const uno::Any& aValue, ValueSetter& valueSetter, bool bFi
     {
         visitArray( valueSetter );
     }
-    if( bFireEvent ) fireChangeEvent();
+    fireChangeEvent();
 }
 
 void SAL_CALL
@@ -1568,7 +1568,7 @@ ScVbaRange::setValue( const uno::Any  &aValue ) throw (uno::RuntimeException, st
         return;
     }
     CellValueSetter valueSetter( aValue );
-    setValue( aValue, valueSetter, true );
+    setValue( aValue, valueSetter );
 }
 
 void SAL_CALL
@@ -1642,7 +1642,7 @@ ScVbaRange::setFormulaValue( const uno::Any& rFormula, formula::FormulaGrammar::
         return;
     }
     CellFormulaValueSetter formulaValueSetter( rFormula, &getScDocument(), eGram );
-    setValue( rFormula, formulaValueSetter, true/*bFireEvent*/ );
+    setValue( rFormula, formulaValueSetter );
 }
 
 uno::Any
diff --git a/sc/source/ui/vba/vbarange.hxx b/sc/source/ui/vba/vbarange.hxx
index 9c134c2..444ff62 100644
--- a/sc/source/ui/vba/vbarange.hxx
+++ b/sc/source/ui/vba/vbarange.hxx
@@ -98,7 +98,7 @@ class ScVbaRange : public ScVbaRange_BASE
     void ClearContents( sal_Int32 nFlags, bool bFireEvent ) throw (css::uno::RuntimeException);
 
     css::uno::Any getValue( ValueGetter& rValueGetter ) throw (css::uno::RuntimeException);
-    void setValue( const css::uno::Any& aValue, ValueSetter& setter, bool bFireEvent ) throw ( css::uno::RuntimeException);
+    void setValue( const css::uno::Any& aValue, ValueSetter& setter ) throw ( css::uno::RuntimeException);
 
     css::uno::Any getFormulaValue( formula::FormulaGrammar::Grammar ) throw (css::uno::RuntimeException);
     void setFormulaValue( const css::uno::Any& aValue, formula::FormulaGrammar::Grammar ) throw ( css::uno::RuntimeException);
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 39c03f8..136cde1 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -1141,7 +1141,7 @@ void ScGridWindow::LaunchDataSelectMenu( SCCOL nCol, SCROW nRow )
     bool bEmpty = false;
     std::vector<ScTypedStrData> aStrings; // case sensitive
     // Fill List
-    pDoc->GetDataEntries(nCol, nRow, nTab, true, aStrings);
+    pDoc->GetDataEntries(nCol, nRow, nTab, aStrings);
     if (aStrings.empty())
         bEmpty = true;
 
diff --git a/sc/source/ui/view/tabcont.cxx b/sc/source/ui/view/tabcont.cxx
index 7b34af1..7e7c29df 100644
--- a/sc/source/ui/view/tabcont.cxx
+++ b/sc/source/ui/view/tabcont.cxx
@@ -461,7 +461,7 @@ void ScTabControl::DoDrag( const vcl::Region& /* rRegion */ )
 
     ScDocument* pClipDoc = new ScDocument( SCDOCMODE_CLIP );
     ScClipParam aClipParam(aTabRange, false);
-    rDoc.CopyToClip(aClipParam, pClipDoc, &aTabMark);
+    rDoc.CopyToClip(aClipParam, pClipDoc, &aTabMark, false, false);
 
     TransferableObjectDescriptor aObjDesc;
     pDocSh->FillTransferableObjectDescriptor( aObjDesc );
diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx
index 7b43c89..a91e807 100644
--- a/sc/source/ui/view/tabvwsh3.cxx
+++ b/sc/source/ui/view/tabvwsh3.cxx
@@ -230,7 +230,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
             break;
 
         case FID_RESET_PRINTZOOM:
-            SetPrintZoom( 100, 0 );     // 100%, not on pages
+            SetPrintZoom( 100 );     // 100%, not on pages
             rReq.Done();
             break;
 
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index b455fb9..7e36b3a 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -869,11 +869,11 @@ void ScViewFunc::RemoveManualBreaks()
     pDocSh->PostPaint( 0,0,nTab, MAXCOL,MAXROW,nTab, PAINT_GRID );
 }
 
-void ScViewFunc::SetPrintZoom(sal_uInt16 nScale, sal_uInt16 nPages)
+void ScViewFunc::SetPrintZoom(sal_uInt16 nScale)
 {
     ScDocShell* pDocSh = GetViewData().GetDocShell();
     SCTAB nTab = GetViewData().GetTabNo();
-    pDocSh->SetPrintZoom( nTab, nScale, nPages );
+    pDocSh->SetPrintZoom( nTab, nScale, 0/*nPages*/ );
 }
 
 void ScViewFunc::AdjustPrintZoom()
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx
index c08b20a..47217c1 100644
--- a/sc/source/ui/view/viewfun3.cxx
+++ b/sc/source/ui/view/viewfun3.cxx
@@ -235,7 +235,7 @@ bool ScViewFunc::CopyToClip( ScDocument* pClipDoc, const ScRangeList& rRanges, b
                 pClipDoc->SetClipOptions(aOptions);
             }
 
-            pDoc->CopyToClip( aClipParam, pClipDoc, &rMark, false, false, bIncludeObjects );
+            pDoc->CopyToClip( aClipParam, pClipDoc, &rMark, false, bIncludeObjects );
             if ( pDoc && pClipDoc )
             {
                 ScDrawLayer* pDrawLayer = pClipDoc->GetDrawLayer();
@@ -365,7 +365,7 @@ bool ScViewFunc::CopyToClip( ScDocument* pClipDoc, const ScRangeList& rRanges, b
             }
             if (!bValidRanges)
                 break;
-            pDoc->CopyToClip(aClipParam, pDocClip.get(), &rMark, false, false, bIncludeObjects );
+            pDoc->CopyToClip(aClipParam, pDocClip.get(), &rMark, false, bIncludeObjects );
 
             ScChangeTrack* pChangeTrack = pDoc->GetChangeTrack();
             if ( pChangeTrack )
@@ -422,7 +422,7 @@ ScTransferObj* ScViewFunc::CopyToTransferable()
             ScDrawLayer::SetGlobalDrawPersist( ScTransferObj::SetDrawClipDoc( bAnyOle ) );
 
             ScClipParam aClipParam(aRange, false);
-            pDoc->CopyToClip(aClipParam, pClipDoc, &rMark, false, false, true);
+            pDoc->CopyToClip(aClipParam, pClipDoc, &rMark, false, true);
 
             ScDrawLayer::SetGlobalDrawPersist(nullptr);
             pClipDoc->ExtendMerge( aRange, true );
diff --git a/sc/source/ui/view/viewfun5.cxx b/sc/source/ui/view/viewfun5.cxx
index 9358173..c08c791 100644
--- a/sc/source/ui/view/viewfun5.cxx
+++ b/sc/source/ui/view/viewfun5.cxx
@@ -152,7 +152,7 @@ bool ScViewFunc::PasteDataFormat( SotClipboardFormatId nFormatId,
                         nFirstRow = nLastRow = 0;
                     }
                     ScClipParam aClipParam(ScRange(nFirstCol, nFirstRow, nSrcTab, nLastCol, nLastRow, nSrcTab), false);
-                    rSrcDoc.CopyToClip(aClipParam, pClipDoc.get(), &aSrcMark);
+                    rSrcDoc.CopyToClip(aClipParam, pClipDoc.get(), &aSrcMark, false, false);
                     ScGlobal::SetClipDocName( xDocShRef->GetTitle( SFX_TITLE_FULLNAME ) );
 
                     SetCursor( nPosX, nPosY );
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx
index 92fb4e6..3375481 100644
--- a/scaddins/source/analysis/analysis.cxx
+++ b/scaddins/source/analysis/analysis.cxx
@@ -461,7 +461,7 @@ sal_Int32 SAL_CALL AnalysisAddIn::getWorkday( const uno::Reference< beans::XProp
 
     SortedIndividualInt32List   aSrtLst;
 
-    aSrtLst.InsertHolidayList( aAnyConv, xOptions, aHDay, nNullDate, false );
+    aSrtLst.InsertHolidayList( aAnyConv, xOptions, aHDay, nNullDate );
 
     sal_Int32                   nActDate = nDate + nNullDate;
 
@@ -569,7 +569,7 @@ sal_Int32 SAL_CALL AnalysisAddIn::getNetworkdays( const uno::Reference< beans::X
 
     SortedIndividualInt32List   aSrtLst;
 
-    aSrtLst.InsertHolidayList( aAnyConv, xOpt, aHDay, nNullDate, false );
+    aSrtLst.InsertHolidayList( aAnyConv, xOpt, aHDay, nNullDate );
 
     sal_Int32                   nActDate = nStartDate + nNullDate;
     sal_Int32                   nStopDate = nEndDate + nNullDate;
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index 3ce6a18..5598279 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -1533,8 +1533,7 @@ void SortedIndividualInt32List::InsertHolidayList(
         ScaAnyConverter& rAnyConv,
         const uno::Reference< beans::XPropertySet >& xOptions,
         const uno::Any& rHolAny,
-        sal_Int32 nNullDate,
-        bool bInsertOnWeekend ) throw( uno::RuntimeException, lang::IllegalArgumentException )
+        sal_Int32 nNullDate ) throw( uno::RuntimeException, lang::IllegalArgumentException )
 {
     rAnyConv.init( xOptions );
     if( rHolAny.getValueTypeClass() == uno::TypeClass_SEQUENCE )
@@ -1549,14 +1548,14 @@ void SortedIndividualInt32List::InsertHolidayList(
                 const uno::Any* pAnyArray = rSubSeq.getConstArray();
 
                 for( sal_Int32 nIndex2 = 0; nIndex2 < rSubSeq.getLength(); nIndex2++ )
-                    InsertHolidayList( rAnyConv, pAnyArray[ nIndex2 ], nNullDate, bInsertOnWeekend );
+                    InsertHolidayList( rAnyConv, pAnyArray[ nIndex2 ], nNullDate, false/*bInsertOnWeekend*/ );
             }
         }
         else
             throw lang::IllegalArgumentException();
     }
     else
-        InsertHolidayList( rAnyConv, rHolAny, nNullDate, bInsertOnWeekend );
+        InsertHolidayList( rAnyConv, rHolAny, nNullDate, false/*bInsertOnWeekend*/ );
 }
 
 
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx
index 6e7fca11..5ef162d 100644
--- a/scaddins/source/analysis/analysishelper.hxx
+++ b/scaddins/source/analysis/analysishelper.hxx
@@ -271,13 +271,12 @@ public:
     bool                        Find( sal_Int32 nVal ) const;
 
                                 /** @param rAnyConv  is an initialized or uninitialized ScaAnyConverter
-                                    @param bInsertOnWeekend  insertion mode: false = holidays on weekend are omitted */
+                                    holidays on weekend are omitted */
     void                        InsertHolidayList(
                                     ScaAnyConverter& rAnyConv,
                                     const css::uno::Reference< css::beans::XPropertySet >& xOptions,
                                     const css::uno::Any& rHolAny,
-                                    sal_Int32 nNullDate,
-                                    bool bInsertOnWeekend ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException );
+                                    sal_Int32 nNullDate) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException );
 };
 
 
commit c09d0aa46ceaeb96869eae1a23a86040189472f4
Author: Noel Grandin <noel at peralex.com>
Date:   Thu Mar 24 08:32:42 2016 +0200

    loplugin:constantparam in sd
    
    Change-Id: I1a7f4cab28a70c45e5232e1c44f6ca6f7b014bff

diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx
index a2434fa..5eeea8d 100644
--- a/sd/inc/drawdoc.hxx
+++ b/sd/inc/drawdoc.hxx
@@ -263,7 +263,7 @@ public:
 
     SAL_DLLPRIVATE void InsertBookmark(const std::vector<OUString> &rBookmarkList,
                             std::vector<OUString> &rExchangeList, bool bLink,
-                            bool bReplace, sal_uInt16 nPgPos, bool bNoDialogs,
+                            bool bReplace, sal_uInt16 nPgPos,
                             ::sd::DrawDocShell* pBookmarkDocSh,
                             Point* pObjPos);
 
diff --git a/sd/inc/sdfilter.hxx b/sd/inc/sdfilter.hxx
index 1a5b57a..c88a490 100644
--- a/sd/inc/sdfilter.hxx
+++ b/sd/inc/sdfilter.hxx
@@ -37,7 +37,7 @@ namespace osl { class Module; }
 class SdFilter
 {
 public:
-    SdFilter( SfxMedium& rMedium, ::sd::DrawDocShell& rDocShell, bool bShowProgress );
+    SdFilter( SfxMedium& rMedium, ::sd::DrawDocShell& rDocShell );
     virtual ~SdFilter();
 
     bool                    IsDraw() const { return mbIsDraw; }
@@ -51,7 +51,6 @@ protected:
     ::sd::DrawDocShell&         mrDocShell;
     SdDrawDocument&             mrDocument;
     bool                        mbIsDraw : 1;
-    bool                        mbShowProgress : 1;
 #ifndef DISABLE_DYNLOADING
     static ::osl::Module*       OpenLibrary( const OUString& rLibraryName );
 #endif
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index 58d80cd..49bc9bf 100644
--- a/sd/source/core/drawdoc3.cxx
+++ b/sd/source/core/drawdoc3.cxx
@@ -283,7 +283,6 @@ void SdDrawDocument::InsertBookmark(
     bool bLink,                                     // Insert bookmarks as links?
     bool bReplace,                                  // Replace current default and notes pages?
     sal_uInt16 nInsertPos,                          // Insertion position of pages
-    bool bNoDialogs,                                // Don't show dialogs
     ::sd::DrawDocShell* pBookmarkDocSh,             // If set, this is the source document
     Point* pObjPos)                                 // Insertion position of objects
 {
@@ -329,7 +328,7 @@ void SdDrawDocument::InsertBookmark(
     {
         // Insert all page bookmarks
         bOK = InsertBookmarkAsPage(rBookmarkList, &rExchangeList, bLink, bReplace,
-                                   nInsertPos, bNoDialogs, pBookmarkDocSh, true/*bCopy*/, true, false);
+                                   nInsertPos, false/*bNoDialogs*/, pBookmarkDocSh, true/*bCopy*/, true, false);
     }
 
     if ( bOK && !rBookmarkList.empty() )
diff --git a/sd/source/filter/cgm/sdcgmfilter.cxx b/sd/source/filter/cgm/sdcgmfilter.cxx
index f6b5e1f..e07a245 100644
--- a/sd/source/filter/cgm/sdcgmfilter.cxx
+++ b/sd/source/filter/cgm/sdcgmfilter.cxx
@@ -49,7 +49,7 @@ extern "C" sal_uInt32 ImportCGM( OUString const &, Reference< XModel > const &,
 #endif
 
 SdCGMFilter::SdCGMFilter( SfxMedium& rMedium, ::sd::DrawDocShell& rDocShell ) :
-    SdFilter( rMedium, rDocShell, true/*bShowProgress*/ )
+    SdFilter( rMedium, rDocShell )
 {
 }
 
diff --git a/sd/source/filter/grf/sdgrffilter.cxx b/sd/source/filter/grf/sdgrffilter.cxx
index 5a030e2..f6c6ca1 100644
--- a/sd/source/filter/grf/sdgrffilter.cxx
+++ b/sd/source/filter/grf/sdgrffilter.cxx
@@ -123,7 +123,7 @@ void SdGRFFilter_ImplInteractionHdl::handle( const css::uno::Reference< css::tas
 
 
 SdGRFFilter::SdGRFFilter( SfxMedium& rMedium, ::sd::DrawDocShell& rDocShell ) :
-    SdFilter( rMedium, rDocShell, true )
+    SdFilter( rMedium, rDocShell )
 {
 }
 
diff --git a/sd/source/filter/html/sdhtmlfilter.cxx b/sd/source/filter/html/sdhtmlfilter.cxx
index 56c7433..ac59c38 100644
--- a/sd/source/filter/html/sdhtmlfilter.cxx
+++ b/sd/source/filter/html/sdhtmlfilter.cxx
@@ -40,7 +40,7 @@
 
 
 SdHTMLFilter::SdHTMLFilter( SfxMedium& rMedium, ::sd::DrawDocShell& rDocShell ) :
-    SdFilter( rMedium, rDocShell, true/*bShowProgress*/ )
+    SdFilter( rMedium, rDocShell )
 {
 }
 
diff --git a/sd/source/filter/sdfilter.cxx b/sd/source/filter/sdfilter.cxx
index 990691d..558d443 100644
--- a/sd/source/filter/sdfilter.cxx
+++ b/sd/source/filter/sdfilter.cxx
@@ -41,13 +41,12 @@ using namespace ::com::sun::star::task;
 using namespace ::com::sun::star::frame;
 
 
-SdFilter::SdFilter( SfxMedium& rMedium, ::sd::DrawDocShell& rDocShell, bool bShowProgress )
+SdFilter::SdFilter( SfxMedium& rMedium, ::sd::DrawDocShell& rDocShell )
 :   mxModel( rDocShell.GetModel() )
 ,   mrMedium( rMedium )
 ,   mrDocShell( rDocShell )
 ,   mrDocument( *rDocShell.GetDoc() )
 ,   mbIsDraw( rDocShell.GetDocumentType() == DOCUMENT_TYPE_DRAW )
-,   mbShowProgress( bShowProgress )
 {
 }
 
diff --git a/sd/source/filter/sdpptwrp.cxx b/sd/source/filter/sdpptwrp.cxx
index 6f6b225..049d3da 100644
--- a/sd/source/filter/sdpptwrp.cxx
+++ b/sd/source/filter/sdpptwrp.cxx
@@ -62,7 +62,7 @@ extern "C" sal_Bool SaveVBA( SfxObjectShell&, SvMemoryStream*& );
 
 
 SdPPTFilter::SdPPTFilter( SfxMedium& rMedium, ::sd::DrawDocShell& rDocShell ) :
-    SdFilter( rMedium, rDocShell, true/*bShowProgress*/ ),
+    SdFilter( rMedium, rDocShell ),
     pBas    ( nullptr )
 {
 }
@@ -161,8 +161,7 @@ bool SdPPTFilter::Export()
 
                 mrDocument.SetSwapGraphicsMode( SdrSwapGraphicsMode::TEMP );
 
-                if( mbShowProgress )
-                    CreateStatusIndicator();
+                CreateStatusIndicator();
 
                 //OUString sBaseURI( "BaseURI");
                 std::vector< PropertyValue > aProperties;
diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx
index 8416ca5..7d9fbf7 100644
--- a/sd/source/filter/xml/sdxmlwrp.cxx
+++ b/sd/source/filter/xml/sdxmlwrp.cxx
@@ -158,7 +158,7 @@ XML_SERVICES* getServices( bool bImport, bool bDraw, sal_uLong nStoreVer )
 
 
 SdXMLFilter::SdXMLFilter( SfxMedium& rMedium, ::sd::DrawDocShell& rDocShell, SdXMLFilterMode eFilterMode, sal_uLong nStoreVer ) :
-    SdFilter( rMedium, rDocShell, true/*bShowProgress*/ ), meFilterMode( eFilterMode ), mnStoreVer( nStoreVer )
+    SdFilter( rMedium, rDocShell ), meFilterMode( eFilterMode ), mnStoreVer( nStoreVer )
 {
 }
 
@@ -528,7 +528,6 @@ bool SdXMLFilter::Import( ErrCode& nError )
     Reference< lang::XComponent > xModelComp( mxModel, uno::UNO_QUERY );
 
     // try to get an XStatusIndicator from the Medium
-    if( mbShowProgress )
     {
         SfxItemSet* pSet = mrMedium.GetItemSet();
         if(pSet)
@@ -910,26 +909,23 @@ bool SdXMLFilter::Export()
                 xGrfResolver = pGraphicHelper;
             }
 
-            if(mbShowProgress)
+            CreateStatusIndicator();
+            if(mxStatusIndicator.is())
             {
-                CreateStatusIndicator();
-                if(mxStatusIndicator.is())
-                {
-                    sal_Int32 nProgressRange(1000000);
-                    sal_Int32 nProgressCurrent(0);
-                    OUString aMsg(SD_RESSTR(STR_SAVE_DOC));
-                    mxStatusIndicator->start(aMsg, nProgressRange);
-
-                    // set ProgressRange
-                    uno::Any aProgRange;
-                    aProgRange <<= nProgressRange;
-                    xInfoSet->setPropertyValue( "ProgressRange" , aProgRange);
-
-                    // set ProgressCurrent
-                    uno::Any aProgCurrent;
-                    aProgCurrent <<= nProgressCurrent;
-                    xInfoSet->setPropertyValue( "ProgressCurrent" , aProgCurrent);
-                }
+                sal_Int32 nProgressRange(1000000);
+                sal_Int32 nProgressCurrent(0);
+                OUString aMsg(SD_RESSTR(STR_SAVE_DOC));
+                mxStatusIndicator->start(aMsg, nProgressRange);
+
+                // set ProgressRange
+                uno::Any aProgRange;
+                aProgRange <<= nProgressRange;
+                xInfoSet->setPropertyValue( "ProgressRange" , aProgRange);
+
+                // set ProgressCurrent
+                uno::Any aProgCurrent;
+                aProgCurrent <<= nProgressCurrent;
+                xInfoSet->setPropertyValue( "ProgressCurrent" , aProgCurrent);
             }
 
             uno::Reference< lang::XComponent > xComponent( mxModel, uno::UNO_QUERY );
@@ -1019,11 +1015,8 @@ bool SdXMLFilter::Export()
             }
             while( bDocRet && pServices->mpService );
 
-            if(mbShowProgress)
-            {
-                if(mxStatusIndicator.is())
-                    mxStatusIndicator->end();
-            }
+            if(mxStatusIndicator.is())
+                mxStatusIndicator->end();
         }
     }
     catch (const uno::Exception &e)
diff --git a/sd/source/ui/animations/STLPropertySet.cxx b/sd/source/ui/animations/STLPropertySet.cxx
index ea339af..dd4a112 100644
--- a/sd/source/ui/animations/STLPropertySet.cxx
+++ b/sd/source/ui/animations/STLPropertySet.cxx
@@ -38,7 +38,7 @@ STLPropertySet::~STLPropertySet()
 
 void STLPropertySet::setPropertyDefaultValue( sal_Int32 nHandle, const Any& rValue )
 {
-    STLPropertyMapEntry aEntry( rValue, STLPropertyState_DEFAULT );
+    STLPropertyMapEntry aEntry( rValue );
     maPropertyMap[ nHandle ] = aEntry;
 }
 
diff --git a/sd/source/ui/animations/STLPropertySet.hxx b/sd/source/ui/animations/STLPropertySet.hxx
index 54665cc..058e36e 100644
--- a/sd/source/ui/animations/STLPropertySet.hxx
+++ b/sd/source/ui/animations/STLPropertySet.hxx
@@ -39,8 +39,8 @@ struct STLPropertyMapEntry
 
     STLPropertyMapEntry()
         : mnState( STLPropertyState_AMBIGUOUS ) {}
-    STLPropertyMapEntry( css::uno::Any aValue, sal_Int32 nState = STLPropertyState_DEFAULT )
-        : maValue( aValue ), mnState( nState ) {}
+    STLPropertyMapEntry( css::uno::Any aValue )
+        : maValue( aValue ), mnState( STLPropertyState_DEFAULT ) {}
 
 };
 
diff --git a/sd/source/ui/app/optsitem.cxx b/sd/source/ui/app/optsitem.cxx
index c80cf87..6bca731 100644
--- a/sd/source/ui/app/optsitem.cxx
+++ b/sd/source/ui/app/optsitem.cxx
@@ -917,8 +917,8 @@ void SdOptionsSnapItem::SetOptions( SdOptions* pOpts ) const
 |*
 \************************************************************************/
 
-SdOptionsZoom::SdOptionsZoom( sal_uInt16 nConfigId, bool bUseConfig ) :
-    SdOptionsGeneric( nConfigId, ( bUseConfig &&  ( SDCFG_DRAW == nConfigId ) ) ?
+SdOptionsZoom::SdOptionsZoom( sal_uInt16 nConfigId ) :
+    SdOptionsGeneric( nConfigId, ( SDCFG_DRAW == nConfigId ) ?
                                  OUString( "Office.Draw/Zoom" ) :
                                  OUString() ),
     nX( 1 ),
@@ -970,12 +970,12 @@ bool SdOptionsZoom::WriteData( Any* pValues ) const
 |*
 \************************************************************************/
 
-SdOptionsGrid::SdOptionsGrid( sal_uInt16 nConfigId, bool bUseConfig ) :
-    SdOptionsGeneric( nConfigId, bUseConfig ?
-                      ( ( SDCFG_DRAW == nConfigId ) ?
+SdOptionsGrid::SdOptionsGrid( sal_uInt16 nConfigId ) :
+    SdOptionsGeneric( nConfigId,
+                      ( SDCFG_DRAW == nConfigId ) ?
                         OUString( "Office.Draw/Grid" ) :
-                        OUString( "Office.Impress/Grid" ) ) :
-                      OUString() )
+                        OUString( "Office.Impress/Grid" )
+                    )
 {
     EnableModify( false );
     SetDefaults();
@@ -1399,8 +1399,8 @@ SdOptions::SdOptions( sal_uInt16 nConfigId ) :
     SdOptionsContents( nConfigId, true ),
     SdOptionsMisc( nConfigId, true ),
     SdOptionsSnap( nConfigId, true ),
-    SdOptionsZoom( nConfigId, true ),
-    SdOptionsGrid( nConfigId, true ),
+    SdOptionsZoom( nConfigId ),
+    SdOptionsGrid( nConfigId ),
     SdOptionsPrint( nConfigId, true )
 {
 }
diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx
index b35a43f..c26054d 100644
--- a/sd/source/ui/func/fuinsert.cxx
+++ b/sd/source/ui/func/fuinsert.cxx
@@ -817,7 +817,7 @@ void FuInsert3DModel::DoExecute( SfxRequest& )
             aPos.Y() -= aSize.Height() >> 1;
         }
 
-        mpView->Insert3DModelURL( sURL, nAction, aPos, aSize, false ) ;
+        mpView->Insert3DModelURL( sURL, nAction, aPos, aSize ) ;
 
         if( mpWindow )
             mpWindow->LeaveWait();
diff --git a/sd/source/ui/inc/DrawViewShell.hxx b/sd/source/ui/inc/DrawViewShell.hxx
index 7450a3a..b5d724b 100644
--- a/sd/source/ui/inc/DrawViewShell.hxx
+++ b/sd/source/ui/inc/DrawViewShell.hxx
@@ -390,7 +390,7 @@ protected:
     void            DeleteActualPage();
     void            DeleteActualLayer();
 
-    virtual SvxRuler* CreateHRuler(::sd::Window* pWin, bool bIsFirst) override;
+    virtual SvxRuler* CreateHRuler(::sd::Window* pWin) override;
     virtual SvxRuler* CreateVRuler(::sd::Window* pWin) override;
     virtual void    UpdateHRuler() override;
     virtual void    UpdateVRuler() override;
diff --git a/sd/source/ui/inc/PresentationViewShell.hxx b/sd/source/ui/inc/PresentationViewShell.hxx
index cd414dc..0f7a481 100644
--- a/sd/source/ui/inc/PresentationViewShell.hxx
+++ b/sd/source/ui/inc/PresentationViewShell.hxx
@@ -53,7 +53,7 @@ public:
     virtual void Resize() override;
 
 protected:
-    virtual SvxRuler* CreateHRuler(::sd::Window* pWin, bool bIsFirst) override;
+    virtual SvxRuler* CreateHRuler(::sd::Window* pWin) override;
     virtual SvxRuler* CreateVRuler(::sd::Window* pWin) override;
 
 private:
diff --git a/sd/source/ui/inc/View.hxx b/sd/source/ui/inc/View.hxx
index dc4893a..17e6fe6 100644
--- a/sd/source/ui/inc/View.hxx
+++ b/sd/source/ui/inc/View.hxx
@@ -142,18 +142,14 @@ public:
     bool                    InsertMetaFile( TransferableDataHelper& rDataHelper,
                                             const Point& rInsertPos,
                                             ImageMap* pImageMap, bool bOptimize );
-
     SdrGrafObj*             InsertGraphic( const Graphic& rGraphic,
                                            sal_Int8& rAction, const Point& rPos,
                                            SdrObject* pSelectedObj, ImageMap* pImageMap );
     void                    InsertMediaURL( const OUString& rMediaURL, sal_Int8& rAction,
                                             const Point& rPos, const Size& rSize,
                                             bool const bLink );
-
     void                    Insert3DModelURL( const OUString& rModelURL, sal_Int8& rAction,
-                                              const Point& rPos, const Size& rSize,
-                                              bool const bLink );
-
+                                              const Point& rPos, const Size& rSize );
     SdrMediaObj*            InsertMediaObj( const OUString& rURL, const OUString& rMimeType, sal_Int8& rAction,
                                             const Point& rPos, const Size& rSize );
 
diff --git a/sd/source/ui/inc/ViewShell.hxx b/sd/source/ui/inc/ViewShell.hxx
index e4e2ad4..ff51ab5 100644
--- a/sd/source/ui/inc/ViewShell.hxx
+++ b/sd/source/ui/inc/ViewShell.hxx
@@ -513,7 +513,7 @@ protected:
     virtual void VirtVScrollHdl(ScrollBar* pVScroll);
 
     // virtual functions ruler handling
-    virtual SvxRuler* CreateHRuler(::sd::Window* pWin, bool bIsFirst);
+    virtual SvxRuler* CreateHRuler(::sd::Window* pWin);
     virtual SvxRuler* CreateVRuler(::sd::Window* pWin);
     virtual void UpdateHRuler();
     virtual void UpdateVRuler();
diff --git a/sd/source/ui/inc/optsitem.hxx b/sd/source/ui/inc/optsitem.hxx
index e01e955..c0bf17a 100644
--- a/sd/source/ui/inc/optsitem.hxx
+++ b/sd/source/ui/inc/optsitem.hxx
@@ -420,7 +420,7 @@ protected:
 
 public:
 
-            SdOptionsZoom( sal_uInt16 nConfigId, bool bUseConfig );
+            SdOptionsZoom( sal_uInt16 nConfigId );
             virtual ~SdOptionsZoom() {}
 
     void    GetScale( sal_Int32& rX, sal_Int32& rY ) const { Init(); rX = nX; rY = nY; }
@@ -437,7 +437,7 @@ protected:
 
 public:
 
-            SdOptionsGrid( sal_uInt16 nConfigId, bool bUseConfig );
+            SdOptionsGrid( sal_uInt16 nConfigId );
             virtual ~SdOptionsGrid();
 
     void    SetDefaults();
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx
index 0d8e8bc..29b1b00 100644
--- a/sd/source/ui/view/drviews1.cxx
+++ b/sd/source/ui/view/drviews1.cxx
@@ -498,21 +498,16 @@ void DrawViewShell::ChangeEditMode(EditMode eEMode, bool bIsLayerModeActive)
  * Generate horizontal ruler
  */
 
-SvxRuler* DrawViewShell::CreateHRuler (::sd::Window* pWin, bool bIsFirst)
+SvxRuler* DrawViewShell::CreateHRuler (::sd::Window* pWin)
 {
     Ruler* pRuler;
     WinBits  aWBits;
     SvxRulerSupportFlags nFlags = SvxRulerSupportFlags::OBJECT;
 
-    if ( bIsFirst )
-    {
-        aWBits  = WB_HSCROLL | WB_3DLOOK | WB_BORDER | WB_EXTRAFIELD;
-        nFlags |= ( SvxRulerSupportFlags::SET_NULLOFFSET |
-                    SvxRulerSupportFlags::TABS |
-                    SvxRulerSupportFlags::PARAGRAPH_MARGINS ); // Neu
-    }
-    else
-        aWBits = WB_HSCROLL | WB_3DLOOK | WB_BORDER;
+    aWBits  = WB_HSCROLL | WB_3DLOOK | WB_BORDER | WB_EXTRAFIELD;
+    nFlags |= SvxRulerSupportFlags::SET_NULLOFFSET |
+              SvxRulerSupportFlags::TABS |
+              SvxRulerSupportFlags::PARAGRAPH_MARGINS; // Neu
 
     pRuler = VclPtr<Ruler>::Create(*this, GetParentWindow(), pWin, nFlags,
         GetViewFrame()->GetBindings(), aWBits);
diff --git a/sd/source/ui/view/presvish.cxx b/sd/source/ui/view/presvish.cxx
index f96fad5..d673e06 100644
--- a/sd/source/ui/view/presvish.cxx
+++ b/sd/source/ui/view/presvish.cxx
@@ -107,7 +107,7 @@ void PresentationViewShell::FinishInitialization( FrameView* pFrameView )
     GetActiveWindow()->GrabFocus();
 }
 
-SvxRuler* PresentationViewShell::CreateHRuler(::sd::Window*, bool)
+SvxRuler* PresentationViewShell::CreateHRuler(::sd::Window*)
 {
     return nullptr;
 }
diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx
index 4cc7c56..ce67bfe 100644
--- a/sd/source/ui/view/sdview2.cxx
+++ b/sd/source/ui/view/sdview2.cxx
@@ -843,7 +843,7 @@ IMPL_LINK_TYPED( View, ExecuteNavigatorDrop, void*, p, void )
         if( bNameOK )
         {
             mrDoc.InsertBookmark( aBookmarkList, aExchangeList,
-                                  bLink, bReplace, nPgPos, false,
+                                  bLink, bReplace, nPgPos,
                                   &pPageObjsTransferable->GetDocShell(),
                                   &aPos );
         }
diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx
index c13639f..d68de3a 100644
--- a/sd/source/ui/view/sdview4.cxx
+++ b/sd/source/ui/view/sdview4.cxx
@@ -296,21 +296,14 @@ void View::InsertMediaURL( const OUString& rMediaURL, sal_Int8& rAction,
 #if HAVE_FEATURE_GLTF
 void View::Insert3DModelURL(
     const OUString& rModelURL, sal_Int8& rAction,
-    const Point& rPos, const Size& rSize,
-    bool const bLink )
+    const Point& rPos, const Size& rSize )
 {
     OUString sRealURL;
-    if (bLink)
-    {
-        sRealURL = rModelURL;
-    }
-    else
-    {
-        uno::Reference<frame::XModel> const xModel(
+    uno::Reference<frame::XModel> const xModel(
                 GetDoc().GetObjectShell()->GetModel());
-        bool const bRet = ::avmedia::Embed3DModel(xModel, rModelURL, sRealURL);
-        if (!bRet) { return; }
-    }
+    bool const bRet = ::avmedia::Embed3DModel(xModel, rModelURL, sRealURL);
+    if (!bRet)
+        return;
 
     SdrMediaObj* pRetObject = InsertMediaObj( sRealURL, "model/vnd.gltf+json", rAction, rPos, rSize );
     avmedia::MediaItem aItem = pRetObject->getMediaProperties();
diff --git a/sd/source/ui/view/viewshe2.cxx b/sd/source/ui/view/viewshe2.cxx
index 8e8aeab..c4b9f57 100644
--- a/sd/source/ui/view/viewshe2.cxx
+++ b/sd/source/ui/view/viewshe2.cxx
@@ -244,7 +244,7 @@ void ViewShell::VirtVScrollHdl(ScrollBar* pVScroll)
     }
 }
 
-SvxRuler* ViewShell::CreateHRuler(::sd::Window* , bool )
+SvxRuler* ViewShell::CreateHRuler(::sd::Window* )
 {
     return nullptr;
 }
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index 9e2889c..e7543a0 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -849,7 +849,7 @@ void ViewShell::SetupRulers()
         }
         if ( mpHorizontalRuler.get() == nullptr )
         {
-            mpHorizontalRuler.reset(CreateHRuler(GetActiveWindow(), true));
+            mpHorizontalRuler.reset(CreateHRuler(GetActiveWindow()));
             if ( mpHorizontalRuler.get() != nullptr )
             {
                 mpHorizontalRuler->SetWinPos(nHRulerOfs);
diff --git a/sdext/source/pdfimport/inc/contentsink.hxx b/sdext/source/pdfimport/inc/contentsink.hxx
index e3bcb21..0b25fcc 100644
--- a/sdext/source/pdfimport/inc/contentsink.hxx
+++ b/sdext/source/pdfimport/inc/contentsink.hxx
@@ -51,14 +51,13 @@ namespace pdfi
                         bool                 isBold_,
                         bool                 isItalic_,
                         bool                 isUnderline_,
-                        bool                 isOutline_,
                         double               size_,
                         double               ascent_) :
             familyName(familyName_),
             isBold(isBold_),
             isItalic(isItalic_),
             isUnderline(isUnderline_),
-            isOutline(isOutline_),
+            isOutline(false),
             size(size_),
             ascent(ascent_)
         {}
@@ -73,7 +72,7 @@ namespace pdfi
             ascent(1.0)
         {}
 
-        OUString     familyName;
+        OUString            familyName;
         bool                isBold;
         bool                isItalic;
         bool                isUnderline;
diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx
index e536a80..06a9763 100644
--- a/sdext/source/pdfimport/wrapper/wrapper.cxx
+++ b/sdext/source/pdfimport/wrapper/wrapper.cxx
@@ -610,7 +610,6 @@ void Parser::readFont()
                             nIsBold != 0,
                             nIsItalic != 0,
                             nIsUnderline != 0,
-                            false,
                             nSize,
                             1.0);
 
diff --git a/sdext/source/presenter/PresenterScrollBar.cxx b/sdext/source/presenter/PresenterScrollBar.cxx
index 758a3d6..d731295 100644
--- a/sdext/source/presenter/PresenterScrollBar.cxx
+++ b/sdext/source/presenter/PresenterScrollBar.cxx
@@ -186,16 +186,7 @@ void PresenterScrollBar::SetThumbPosition (
     double nPosition,
     const bool bAsynchronousUpdate)
 {
-    SetThumbPosition(nPosition, bAsynchronousUpdate, true);
-}
-
-void PresenterScrollBar::SetThumbPosition (
-    double nPosition,
-    const bool bAsynchronousUpdate,
-    const bool bValidate)
-{
-    if (bValidate)
-        nPosition = ValidateThumbPosition(nPosition);
+    nPosition = ValidateThumbPosition(nPosition);
 
     if (nPosition != mnThumbPosition && ! mbIsNotificationActive)
     {
@@ -442,7 +433,7 @@ void SAL_CALL PresenterScrollBar::mouseDragged (const css::awt::MouseEvent& rEve
     UpdateDragAnchor(nDragDistance);
     if (nDragDistance != 0)
     {
-        SetThumbPosition(mnThumbPosition + nDragDistance, false, true);
+        SetThumbPosition(mnThumbPosition + nDragDistance, false);
     }
 }
 
diff --git a/sdext/source/presenter/PresenterScrollBar.hxx b/sdext/source/presenter/PresenterScrollBar.hxx

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list