[Libreoffice-commits] core.git: sw/inc sw/source

Noel Grandin noel at peralex.com
Mon Feb 29 09:11:51 UTC 2016


 sw/inc/IDocumentState.hxx                   |    2 -
 sw/inc/PostItMgr.hxx                        |    3 --
 sw/inc/bparr.hxx                            |    4 --
 sw/inc/calc.hxx                             |    5 +--
 sw/inc/crsrsh.hxx                           |   20 +++++++-------
 sw/inc/dbmgr.hxx                            |    6 ++--
 sw/inc/doc.hxx                              |    3 --
 sw/inc/docary.hxx                           |   10 ++-----
 sw/inc/editsh.hxx                           |   24 +++++++----------
 sw/inc/fesh.hxx                             |   17 +++++-------
 sw/inc/fldbas.hxx                           |    2 -
 sw/inc/flddat.hxx                           |    4 +-
 sw/inc/frmfmt.hxx                           |    3 --
 sw/inc/ndarr.hxx                            |    9 ++----
 sw/inc/ndnotxt.hxx                          |    4 +-
 sw/inc/ndtxt.hxx                            |   11 ++-----
 sw/inc/node.hxx                             |    5 +--
 sw/inc/redline.hxx                          |    6 +---
 sw/inc/section.hxx                          |    9 ++----
 sw/inc/shellio.hxx                          |    2 -
 sw/inc/swabstdlg.hxx                        |   22 +++++++--------
 sw/source/core/bastyp/bparr.cxx             |    4 +-
 sw/source/core/bastyp/calc.cxx              |   19 ++-----------
 sw/source/core/crsr/crsrsh.cxx              |    4 +-
 sw/source/core/doc/DocumentStateManager.cxx |    4 +-
 sw/source/core/doc/doclay.cxx               |    4 +-
 sw/source/core/doc/docredln.cxx             |   39 ++++++++++------------------
 sw/source/core/docnode/ndnotxt.cxx          |    8 ++---
 sw/source/core/docnode/node.cxx             |   13 ++-------
 sw/source/core/docnode/nodes.cxx            |    5 +--
 sw/source/core/docnode/section.cxx          |    6 ----
 sw/source/core/edit/edfcol.cxx              |    7 -----
 sw/source/core/edit/edfld.cxx               |   19 +------------
 sw/source/core/edit/edfmt.cxx               |   17 +++---------
 sw/source/core/edit/edglss.cxx              |   13 ---------
 sw/source/core/edit/ednumber.cxx            |    8 ++---
 sw/source/core/edit/edsect.cxx              |    7 ++---
 sw/source/core/edit/edtab.cxx               |    5 +--
 sw/source/core/edit/edws.cxx                |    4 +-
 sw/source/core/fields/fldbas.cxx            |    4 +-
 sw/source/core/fields/flddat.cxx            |    9 +-----
 sw/source/core/frmedt/fecopy.cxx            |   27 -------------------
 sw/source/core/frmedt/fefly1.cxx            |   18 +++++-------
 sw/source/core/frmedt/fetab.cxx             |    5 +--
 sw/source/core/frmedt/fews.cxx              |    8 ++---
 sw/source/core/graphic/ndgrf.cxx            |    5 +--
 sw/source/core/inc/DocumentStateManager.hxx |    2 -
 sw/source/core/layout/atrfrm.cxx            |    4 +-
 sw/source/core/ole/ndole.cxx                |    5 +--
 sw/source/core/text/itratr.cxx              |   12 +++-----
 sw/source/core/txtnode/ndtxt.cxx            |   13 +++------
 sw/source/filter/writer/writer.cxx          |    9 ++----
 sw/source/ui/dialog/swdlgfact.cxx           |   22 +++++++--------
 sw/source/ui/dialog/swdlgfact.hxx           |   18 +++++-------
 sw/source/uibase/dbui/dbmgr.cxx             |   16 +++--------
 sw/source/uibase/docvw/PostItMgr.cxx        |   20 ++++++--------
 56 files changed, 202 insertions(+), 352 deletions(-)

New commits:
commit ee74e401aae0543fd20d80ec4b5c11877e56dafe
Author: Noel Grandin <noel at peralex.com>
Date:   Mon Feb 29 10:59:14 2016 +0200

    loplugin:unuseddefaultparam in sw (part3)
    
    Change-Id: Ibff7ac9718929349ee7daa3febb0f8fe4a9fa4db

diff --git a/sw/inc/IDocumentState.hxx b/sw/inc/IDocumentState.hxx
index 95b7872..6c4ecaa 100644
--- a/sw/inc/IDocumentState.hxx
+++ b/sw/inc/IDocumentState.hxx
@@ -47,7 +47,7 @@ public:
 
     virtual void SetUpdateExpFieldStat(bool b) = 0;
 
-    virtual void SetLoaded(bool b = true) = 0;
+    virtual void SetLoaded() = 0;
 
 protected:
     virtual ~IDocumentState() {};
diff --git a/sw/inc/PostItMgr.hxx b/sw/inc/PostItMgr.hxx
index f8c3727..fb02496 100644
--- a/sw/inc/PostItMgr.hxx
+++ b/sw/inc/PostItMgr.hxx
@@ -204,8 +204,7 @@ class SwPostItMgr: public SfxListener
         void LayoutPostIts();
         bool CalcRects();
 
-        void MakeVisible( const sw::sidebarwindows::SwSidebarWin* pPostIt,
-                          long aPage = -1);
+        void MakeVisible( const sw::sidebarwindows::SwSidebarWin* pPostIt);
 
         bool ShowScrollbar(const unsigned long aPage) const;
         bool HasNotes() const ;
diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx
index c8a1acd..9ec8c91 100644
--- a/sw/inc/bparr.hxx
+++ b/sw/inc/bparr.hxx
@@ -74,9 +74,7 @@ protected:
     void        UpdIndex( sal_uInt16 );         ///< recalculate indices
 
     // fill all blocks
-    // the short parameter specifies in percent, how full the blocks should be
-    // made
-    sal_uInt16 Compress( short = COMPRESSLVL );
+    sal_uInt16 Compress();
 
 public:
     BigPtrArray();
diff --git a/sw/inc/calc.hxx b/sw/inc/calc.hxx
index def1964..5c76e0b 100644
--- a/sw/inc/calc.hxx
+++ b/sw/inc/calc.hxx
@@ -186,7 +186,7 @@ public:
         ~SwCalc();
 
     SwSbxValue  Calculate( const OUString &rStr );
-    OUString    GetStrResult( const SwSbxValue& rValue, bool bRound = true );
+    OUString    GetStrResult( const SwSbxValue& rValue );
     OUString    GetStrResult( double, bool bRound = true );
 
     SwCalcExp*  VarInsert( const OUString& r );
@@ -202,8 +202,7 @@ public:
     bool        IsCalcError() const                 { return 0 != eError; }
 
     static bool Str2Double( const OUString& rStr, sal_Int32& rPos,
-                                double& rVal,
-                                LocaleDataWrapper const*const pData = nullptr );
+                                double& rVal );
     static bool Str2Double( const OUString& rStr, sal_Int32& rPos,
                                 double& rVal, SwDoc *const pDoc );
 
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx
index f3850eb..79d0e23 100644
--- a/sw/inc/crsrsh.hxx
+++ b/sw/inc/crsrsh.hxx
@@ -327,7 +327,7 @@ public:
     bool StartsWithTable();
 
     SwPaM* GetCursor( bool bMakeTableCursor = true ) const;
-    inline SwCursor* GetSwCursor( bool bMakeTableCursor = true ) const;
+    inline SwCursor* GetSwCursor() const;
     // return only the current cursor
           SwShellCursor* _GetCursor()                       { return m_pCurrentCursor; }
     const SwShellCursor* _GetCursor() const                 { return m_pCurrentCursor; }
@@ -573,9 +573,9 @@ public:
     OUString GetText() const;
 
     // Check of SPoint or Mark of current cursor are placed within a table.
-    inline const SwTableNode* IsCursorInTable( bool bIsPtInTable = true ) const;
+    inline const SwTableNode* IsCursorInTable() const;
 
-    inline Point& GetCursorDocPos( bool bPoint = true ) const;
+    inline Point& GetCursorDocPos() const;
     inline bool IsCursorPtAtEnd() const;
 
     inline const  SwPaM* GetTableCrs() const;
@@ -807,7 +807,7 @@ public:
     // is cursor or the point in/over a vertical formatted text?
     bool IsInVerticalText( const Point* pPt = nullptr ) const;
     // is cursor or the point in/over a right to left formatted text?
-    bool IsInRightToLeftText( const Point* pPt = nullptr ) const;
+    bool IsInRightToLeftText() const;
 
     static void FirePageChangeEvent(sal_uInt16 nOldPage, sal_uInt16 nNewPage);
     bool   bColumnChange();
@@ -852,9 +852,9 @@ inline SwMoveFnCollection* SwCursorShell::MakeFindRange(
     return m_pCurrentCursor->MakeFindRange( (SwDocPositions)nStt, (SwDocPositions)nEnd, pPam );
 }
 
-inline SwCursor* SwCursorShell::GetSwCursor( bool bMakeTableCursor ) const
+inline SwCursor* SwCursorShell::GetSwCursor() const
 {
-    return static_cast<SwCursor*>(GetCursor( bMakeTableCursor ));
+    return static_cast<SwCursor*>(GetCursor());
 }
 
 inline SwPaM* SwCursorShell::GetStackCursor() const { return m_pCursorStack; }
@@ -879,9 +879,9 @@ inline bool SwCursorShell::IsSelOnePara() const
            m_pCurrentCursor->GetPoint()->nNode == m_pCurrentCursor->GetMark()->nNode;
 }
 
-inline const SwTableNode* SwCursorShell::IsCursorInTable( bool bIsPtInTable ) const
+inline const SwTableNode* SwCursorShell::IsCursorInTable() const
 {
-    return m_pCurrentCursor->GetNode( bIsPtInTable ).FindTableNode();
+    return m_pCurrentCursor->GetNode().FindTableNode();
 }
 
 inline bool SwCursorShell::IsCursorPtAtEnd() const
@@ -889,9 +889,9 @@ inline bool SwCursorShell::IsCursorPtAtEnd() const
     return m_pCurrentCursor->End() == m_pCurrentCursor->GetPoint();
 }
 
-inline Point& SwCursorShell::GetCursorDocPos( bool bPoint ) const
+inline Point& SwCursorShell::GetCursorDocPos() const
 {
-    return bPoint ? m_pCurrentCursor->GetPtPos() : m_pCurrentCursor->GetMkPos();
+    return m_pCurrentCursor->GetPtPos();
 }
 
 inline const SwPaM* SwCursorShell::GetTableCrs() const
diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx
index cf52569..f41adaa 100644
--- a/sw/inc/dbmgr.hxx
+++ b/sw/inc/dbmgr.hxx
@@ -332,7 +332,7 @@ public:
 
     /// Fill listbox with all column names of a database table.
     void            GetColumnNames(ListBox* pListBox,
-                            const OUString& rDBName, const OUString& rTableName, bool bAppend = false);
+                            const OUString& rDBName, const OUString& rTableName);
     static void GetColumnNames(ListBox* pListBox,
                             css::uno::Reference< css::sdbc::XConnection> xConnection,
                             const OUString& rTableName, bool bAppend = false);
@@ -367,7 +367,7 @@ public:
 
     /// open the source while fields are updated - for the calculator only!
     bool            OpenDataSource(const OUString& rDataSource, const OUString& rTableOrQuery,
-                        sal_Int32 nCommandType = -1, bool bCreate = false);
+                        sal_Int32 nCommandType = -1);
     sal_uInt32      GetSelectedRecordId(const OUString& rDataSource, const OUString& rTableOrQuery, sal_Int32 nCommandType = -1);
     bool            GetColumnCnt(const OUString& rSourceName, const OUString& rTableName,
                             const OUString& rColumnName, sal_uInt32 nAbsRecordId, long nLanguage,
@@ -389,7 +389,7 @@ public:
     bool            FillCalcWithMergeData(SvNumberFormatter *pDocFormatter,
                                           sal_uInt16 nLanguage, bool asString, SwCalc &aCalc);
     bool            ToNextMergeRecord();
-    bool            ToNextRecord(const OUString& rDataSource, const OUString& rTableOrQuery, sal_Int32 nCommandType = -1);
+    bool            ToNextRecord(const OUString& rDataSource, const OUString& rTableOrQuery);
 
     bool            ExistsNextRecord()const;
     sal_uInt32      GetSelectedRecordId();
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index d6c5c08..2eddfa9 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -702,8 +702,7 @@ public:
     bool IsInHeaderFooter( const SwNodeIndex& rIdx ) const;
     short GetTextDirection( const SwPosition& rPos,
                             const Point* pPt = nullptr ) const;
-    bool IsInVerticalText( const SwPosition& rPos,
-                               const Point* pPt = nullptr ) const;
+    bool IsInVerticalText( const SwPosition& rPos ) const;
 
     // Database  and DB-Manager
     void SetDBManager( SwDBManager* pNewMgr )     { mpDBManager = pNewMgr; }
diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx
index 305bcb3..6eff3f3 100644
--- a/sw/inc/docary.hxx
+++ b/sw/inc/docary.hxx
@@ -197,8 +197,8 @@ public:
     bool Contains(const SwRangeRedline* p) const { return maVector.find(const_cast<SwRangeRedline* const>(p)) != maVector.end(); }
     sal_uInt16 GetPos(const SwRangeRedline* p) const;
 
-    bool Insert( SwRangeRedline* p, bool bIns = true );
-    bool Insert( SwRangeRedline* p, sal_uInt16& rInsPos, bool bIns = true );
+    bool Insert( SwRangeRedline* p );
+    bool Insert( SwRangeRedline* p, sal_uInt16& rInsPos );
     bool InsertWithValidRanges( SwRangeRedline* p, sal_uInt16* pInsPos = nullptr );
 
     void Remove( sal_uInt16 nPos );
@@ -213,10 +213,8 @@ public:
     /** Search next or previous Redline with the same Seq. No.
        Search can be restricted via Lookahead.
        Using 0 makes search the whole array. */
-    sal_uInt16 FindNextSeqNo( sal_uInt16 nSeqNo, sal_uInt16 nSttPos,
-                            sal_uInt16 nLookahead = 20 ) const;
-    sal_uInt16 FindPrevSeqNo( sal_uInt16 nSeqNo, sal_uInt16 nSttPos,
-                            sal_uInt16 nLookahead = 20 ) const;
+    sal_uInt16 FindNextSeqNo( sal_uInt16 nSeqNo, sal_uInt16 nSttPos ) const;
+    sal_uInt16 FindPrevSeqNo( sal_uInt16 nSeqNo, sal_uInt16 nSttPos ) const;
 
     /**
      Find the redline at the given position.
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index 76de18a..6e7df6f 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -206,7 +206,7 @@ public:
        If table is copied into table, move all cursors away from it.
        Copy and Paste must be in FEShell because of FlyFrames!
        Copy all selections to the document. */
-    bool _CopySelToDoc( SwDoc* pInsDoc, SwNodeIndex* pNdInsPos = nullptr );
+    bool _CopySelToDoc( SwDoc* pInsDoc );
 
     long SplitNode( bool bAutoFormat = false, bool bCheckTableStart = true );
     bool AppendTextNode();
@@ -294,8 +294,8 @@ public:
     sal_uInt16 GetCharFormatCount() const;
     SwCharFormat& GetCharFormat(sal_uInt16 nFormat) const;
     SwCharFormat* GetCurCharFormat() const;
-    void FillByEx(SwCharFormat*, bool bReset = false);
-    SwCharFormat* MakeCharFormat( const OUString& rName, SwCharFormat* pDerivedFrom = nullptr );
+    void FillByEx(SwCharFormat*);
+    SwCharFormat* MakeCharFormat( const OUString& rName );
     SwCharFormat* FindCharFormatByName( const OUString& rName ) const;
 
     /* FormatCollections (new) - Explaining the general naming pattern:
@@ -338,7 +338,7 @@ public:
     void SetTextFormatColl(SwTextFormatColl*, const bool bResetListAttrs = false);
     SwTextFormatColl *MakeTextFormatColl(const OUString &rFormatCollName,
         SwTextFormatColl *pDerivedFrom = nullptr);
-    void FillByEx(SwTextFormatColl*, bool bReset = false);
+    void FillByEx(SwTextFormatColl*);
     SwTextFormatColl* FindTextFormatCollByName( const OUString& rName ) const;
 
     /// @return "Auto-Collection" with given Id. If it does not exist create it.
@@ -369,7 +369,7 @@ public:
     SwFieldType* GetFieldType(size_t nField, sal_uInt16 nResId = USHRT_MAX, bool bUsed = false) const;
     SwFieldType* GetFieldType(sal_uInt16 nResId, const OUString& rName) const;
 
-    void RemoveFieldType(size_t nField, sal_uInt16 nResId = USHRT_MAX);
+    void RemoveFieldType(size_t nField);
     void RemoveFieldType(sal_uInt16 nResId, const OUString& rName);
 
     void FieldToText( SwFieldType* pType );
@@ -523,13 +523,13 @@ public:
     bool SelectionHasNumber() const;
     bool SelectionHasBullet() const;
 
-    OUString GetUniqueNumRuleName( const OUString* pChkStr = nullptr, bool bAutoNum = true ) const;
+    OUString GetUniqueNumRuleName( const OUString* pChkStr = nullptr ) const;
     void ChgNumRuleFormats( const SwNumRule& rRule );
 
     /// Set (and query if) a numbering with StartFlag starts at current PointPos.
     void SetNumRuleStart( bool bFlag = true, SwPaM* pCursor = nullptr );
     bool IsNumRuleStart( SwPaM* pPaM = nullptr ) const;
-    void SetNodeNumStart( sal_uInt16 nStt, SwPaM* = nullptr );
+    void SetNodeNumStart( sal_uInt16 nStt );
 
     sal_uInt16 GetNodeNumStart( SwPaM* pPaM = nullptr ) const;
 
@@ -632,7 +632,7 @@ public:
     // #i73788#
     /// Remove default parameter, because method always called this default value.
     Graphic GetIMapGraphic() const; ///< @return a graphic for all Flys!
-    const SwFlyFrameFormat* FindFlyByName( const OUString& rName, sal_uInt8 nNdTyp = 0 ) const;
+    const SwFlyFrameFormat* FindFlyByName( const OUString& rName ) const;
 
     /** @return a ClientObject, if CurrentCursor->Point() points to a SwOLENode
      (and mark is neither set not pointint to same ClientObject)
@@ -687,8 +687,7 @@ public:
 
     void InsertDDETable( const SwInsertTableOptions& rInsTableOpts,  ///< HEADLINE_NO_BORDER
                          SwDDEFieldType* pDDEType,
-                         sal_uInt16 nRows, sal_uInt16 nCols,
-                         sal_Int16 eAdj = css::text::HoriOrientation::FULL );
+                         sal_uInt16 nRows, sal_uInt16 nCols  );
 
     void UpdateTable();
     void SetTableName( SwFrameFormat& rTableFormat, const OUString &rNewName );
@@ -831,8 +830,7 @@ public:
     void UpdateSection( size_t const nSect, SwSectionData &,
             SfxItemSet const*const  = nullptr);
     bool IsAnySectionInDoc( bool bChkReadOnly = false,
-                            bool bChkHidden = false,
-                            bool BChkTOX = false ) const;
+                            bool bChkHidden = false ) const;
 
     OUString GetUniqueSectionName( const OUString* pChkStr = nullptr ) const;
 
@@ -853,7 +851,7 @@ public:
     bool CanSpecialInsert() const;
 
     /// Optimizing UI.
-    void SetNewDoc(bool bNew = true);
+    void SetNewDoc();
 
     sfx2::LinkManager& GetLinkManager();
     inline const sfx2::LinkManager& GetLinkManager() const;
diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx
index 27ce4a6..d67c165 100644
--- a/sw/inc/fesh.hxx
+++ b/sw/inc/fesh.hxx
@@ -254,7 +254,7 @@ public:
 
     /// Copy and Paste methods for internal clipboard.
     bool Copy( SwDoc* pClpDoc, const OUString* pNewClpText = nullptr );
-    bool Paste( SwDoc* pClpDoc, bool bIncludingPageFrames = false);
+    bool Paste( SwDoc* pClpDoc );
 
     /// Paste some pages into another doc - used in mailmerge.
     bool PastePages( SwFEShell& rToFill, sal_uInt16 nStartPage, sal_uInt16 nEndPage);
@@ -314,7 +314,7 @@ public:
     bool IsSelContainsControl() const;
 
     ObjCntType GetObjCntType( const Point &rPt, SdrObject *&rpObj ) const;
-    ObjCntType GetObjCntTypeOfSelection( SdrObject** ppObj = nullptr ) const;
+    ObjCntType GetObjCntTypeOfSelection() const;
 
     /// For adjustment of PosAttr when anchor changes.
     SwRect  GetObjRect() const;
@@ -351,7 +351,7 @@ public:
 
     /// SS for envelopes: get all page-bound objects and set them to new page.
     void GetPageObjs( std::vector<SwFrameFormat*>& rFillArr );
-    void SetPageObjsNewPage( std::vector<SwFrameFormat*>& rFillArr, int nOffset = 1 );
+    void SetPageObjsNewPage( std::vector<SwFrameFormat*>& rFillArr );
 
     /// Show current selection (frame / draw object as required).
     virtual void MakeSelVisible() override;
@@ -401,7 +401,7 @@ public:
     SwFlyFrame* GetCurrFlyFrame(const bool bCalcFrame = true) const;
 
     // Get selected fly, but if none Get current fly in which the cursor is positioned
-    SwFlyFrame* GetSelectedOrCurrFlyFrame(const bool bCalcFrame = true) const;
+    SwFlyFrame* GetSelectedOrCurrFlyFrame() const;
 
     /// Find/delete fly containing the cursor.
     SwFrameFormat* WizardGetFly();
@@ -579,7 +579,7 @@ public:
     // --> #i972#
     /** for starmath formulas anchored 'as char' it aligns it baseline to baseline
      changing the previous vertical orientation */
-    void AlignFormulaToBaseline( const css::uno::Reference < css::embed::XEmbeddedObject >& xObj, SwFlyFrame * pFly = nullptr );
+    void AlignFormulaToBaseline( const css::uno::Reference < css::embed::XEmbeddedObject >& xObj );
 
     /// aligns all formulas with anchor 'as char' to baseline
     void AlignAllFormulasToBaseline();
@@ -702,7 +702,7 @@ public:
 
     sal_uInt16 GetRowsToRepeat() const;
     void SetRowsToRepeat( sal_uInt16 nNumOfRows );
-    sal_uInt16 GetVirtPageNum( const bool bCalcFrame = true );
+    sal_uInt16 GetVirtPageNum();
 
     /** @return the number of table rows currently selected
     if the selection start at the top of the table. */
@@ -749,11 +749,10 @@ public:
 
     /// The ruler needs some information too.
     sal_uInt16 GetCurColNum( SwGetCurColNumPara* pPara = nullptr ) const; //0 == not in any column.
-    sal_uInt16 GetCurMouseColNum( const Point &rPt,
-                            SwGetCurColNumPara* pPara = nullptr ) const;
+    sal_uInt16 GetCurMouseColNum( const Point &rPt ) const;
     size_t GetCurTabColNum() const;     //0 == not in any table.
     size_t GetCurMouseTabColNum( const Point &rPt ) const;
-    sal_uInt16 GetCurOutColNum( SwGetCurColNumPara* pPara = nullptr ) const;  ///< Current outer column.
+    sal_uInt16 GetCurOutColNum() const;  ///< Current outer column.
 
     bool IsColRightToLeft() const;
     bool IsTableRightToLeft() const;
diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx
index 6a49b5e..2023f8c 100644
--- a/sw/inc/fldbas.hxx
+++ b/sw/inc/fldbas.hxx
@@ -312,7 +312,7 @@ public:
                     SwTextFormatter::NewFieldPortion() sets things up properly.
         @return     the generated text (suitable for display)
       */
-    OUString            ExpandField(bool const bCached, ToxAuthorityField eField = AUTH_FIELD_IDENTIFIER) const;
+    OUString            ExpandField(bool const bCached) const;
 
     /// @return name or content.
     virtual OUString    GetFieldName() const;
diff --git a/sw/inc/flddat.hxx b/sw/inc/flddat.hxx
index 13a59cd..8eb39ca 100644
--- a/sw/inc/flddat.hxx
+++ b/sw/inc/flddat.hxx
@@ -114,8 +114,8 @@ public:
         inline void             SetOffset(long nMinutes)    { nOffset = nMinutes; }
         inline long             GetOffset() const           { return nOffset; }
 
-        Date                    GetDate(bool bUseOffset = false) const;
-        tools::Time             GetTime(bool bUseOffset = false) const;
+        Date                    GetDate() const;
+        tools::Time             GetTime() const;
         void                    SetDateTime(const DateTime& rDT);
         static double           GetDateTime(SwDoc* pDoc, const DateTime& rDT);
 
diff --git a/sw/inc/frmfmt.hxx b/sw/inc/frmfmt.hxx
index 52b0b132..50c8246 100644
--- a/sw/inc/frmfmt.hxx
+++ b/sw/inc/frmfmt.hxx
@@ -176,8 +176,7 @@ public:
     SwFlyFrame* GetFrame( const Point* pDocPos = nullptr,
                       const bool bCalcFrame = false ) const;
 
-    SwAnchoredObject* GetAnchoredObj( const Point* pDocPos = nullptr,
-                                      const bool bCalcFrame = false ) const;
+    SwAnchoredObject* GetAnchoredObj( const Point* pDocPos = nullptr ) const;
 
     virtual Graphic MakeGraphic( ImageMap* pMap = nullptr ) override;
 
diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx
index 3b55ec5..c2a4e6a 100644
--- a/sw/inc/ndarr.hxx
+++ b/sw/inc/ndarr.hxx
@@ -208,8 +208,7 @@ public:
                             SwAttrSet* pAutoAttr = nullptr ); ///< in ndtxt.cxx
     SwStartNode* MakeTextSection( const SwNodeIndex & rWhere,
                             SwStartNodeType eSttNdTyp,
-                            SwTextFormatColl *pColl,
-                            SwAttrSet* pAutoAttr = nullptr );
+                            SwTextFormatColl *pColl );
 
     static SwGrfNode *MakeGrfNode( const SwNodeIndex & rWhere,
                             const OUString& rGrfName,
@@ -221,13 +220,11 @@ public:
 
     static SwGrfNode *MakeGrfNode( const SwNodeIndex & rWhere,
                             const GraphicObject& rGrfObj,
-                            SwGrfFormatColl *pColl,
-                            SwAttrSet* pAutoAttr = nullptr ); ///< in ndgrf.cxx
+                            SwGrfFormatColl *pColl ); ///< in ndgrf.cxx
 
     SwOLENode *MakeOLENode( const SwNodeIndex & rWhere,
                             const svt::EmbeddedObjectRef&,
-                            SwGrfFormatColl *pColl,
-                            SwAttrSet* pAutoAttr = nullptr ); ///< in ndole.cxx
+                            SwGrfFormatColl *pColl ); ///< in ndole.cxx
     SwOLENode *MakeOLENode( const SwNodeIndex & rWhere,
                             const OUString &rName,
                             sal_Int64 nAspect,
diff --git a/sw/inc/ndnotxt.hxx b/sw/inc/ndnotxt.hxx
index 4a4e3c4..97cdfb5 100644
--- a/sw/inc/ndnotxt.hxx
+++ b/sw/inc/ndnotxt.hxx
@@ -61,9 +61,9 @@ public:
     virtual bool RestorePersistentData();
 
     OUString GetTitle() const;
-    void SetTitle( const OUString& rTitle, bool bBroadcast = false );
+    void SetTitle( const OUString& rTitle );
     OUString GetDescription() const;
-    void SetDescription( const OUString& rDescription, bool bBroadcast = false );
+    void SetDescription( const OUString& rDescription );
 
     void               SetContour( const tools::PolyPolygon *pPoly,
                                    bool bAutomatic = false );
diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx
index c5da396..efe9462 100644
--- a/sw/inc/ndtxt.hxx
+++ b/sw/inc/ndtxt.hxx
@@ -233,8 +233,7 @@ public:
     virtual sal_Int32 Len() const override;
 
     /// Is in itratr.
-    void GetMinMaxSize( sal_uLong nIndex, sal_uLong& rMin, sal_uLong &rMax, sal_uLong &rAbs,
-                        OutputDevice* pOut = nullptr ) const;
+    void GetMinMaxSize( sal_uLong nIndex, sal_uLong& rMin, sal_uLong &rMax, sal_uLong &rAbs ) const;
 
     /// overriding to handle change of certain paragraph attributes
     virtual bool SetAttr( const SfxPoolItem& ) override;
@@ -388,8 +387,7 @@ public:
      */
     ::std::vector<SwTextAttr *> GetTextAttrsAt(
         sal_Int32 const nIndex,
-        RES_TXTATR const nWhich,
-        enum GetTextAttrMode const eMode = DEFAULT ) const;
+        RES_TXTATR const nWhich ) const;
 
     /** get the text attribute at position nIndex which owns
         the dummy character CH_TXTATR_* at that position, if one exists.
@@ -697,8 +695,7 @@ public:
 
     OUString GetRedlineText( sal_Int32 nIdx = 0,
                           sal_Int32 nLen = SAL_MAX_INT32,
-                          bool bExpandFields = false,
-                          bool bWithNum = false ) const;
+                          bool bExpandFields = false ) const;
 
     /** @return actual count of initial chars for initial-function.
        If nWishLen == 0 that of first word. */
@@ -799,7 +796,7 @@ public:
     sal_uInt32 GetParRsid() const;
 
     bool CompareRsid( const SwTextNode &rTextNode, sal_Int32 nStt1, sal_Int32 nStt2,
-            sal_Int32 nEnd1 = 0,  sal_Int32 nEnd2 = 0 ) const;
+            sal_Int32 nEnd1 = 0 ) const;
     bool CompareParRsid( const SwTextNode &rTextNode ) const;
 
     DECL_FIXEDMEMPOOL_NEWDEL(SwTextNode)
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx
index a557f08..01ad943 100644
--- a/sw/inc/node.hxx
+++ b/sw/inc/node.hxx
@@ -410,8 +410,7 @@ public:
                             const Point* pPoint = nullptr,
                             const bool bCalcFrame = false  ) const;
     SwRect FindPageFrameRect( const bool bPrtArea = false,
-                            const Point* pPoint = nullptr,
-                            const bool bCalcFrame = false  ) const;
+                            const Point* pPoint = nullptr  ) const;
 
     /** Method creates all views of document for given node. The content
        frames that are created are put in the respective layout. */
@@ -437,7 +436,7 @@ public:
 
     /// If bInParent is FALSE search for attribute only in this node.
     const SfxPoolItem& GetAttr( sal_uInt16 nWhich, bool bInParent=true ) const;
-    bool GetAttr( SfxItemSet& rSet, bool bInParent=true ) const;
+    bool GetAttr( SfxItemSet& rSet ) const;
     /// made virtual
     virtual bool SetAttr( const SfxPoolItem& );
     virtual bool SetAttr( const SfxItemSet& rSet );
diff --git a/sw/inc/redline.hxx b/sw/inc/redline.hxx
index 6b3c2f5..7122563 100644
--- a/sw/inc/redline.hxx
+++ b/sw/inc/redline.hxx
@@ -278,17 +278,15 @@ public:
     bool PopData();
 
     /**
-       Returns textual description of this a redline data element of
+       Returns textual description of a redline data element of
        this redline.
 
-       @param nPos index of the redline data element to describe
-
        The textual description of the selected element contains the
        kind of redline and the possibly shortened text of the redline.
 
        @return textual description of the selected redline data element
      */
-    OUString GetDescr(sal_uInt16 nPos = 0);
+    OUString GetDescr();
 
     bool operator<( const SwRangeRedline& ) const;
     void dumpAsXml(struct _xmlTextWriter* pWriter) const;
diff --git a/sw/inc/section.hxx b/sw/inc/section.hxx
index b6008d9..b5b52ce 100644
--- a/sw/inc/section.hxx
+++ b/sw/inc/section.hxx
@@ -115,10 +115,9 @@ public:
     void SetCondition(OUString const& rNew) { m_sCondition = rNew; }
 
     OUString GetLinkFileName() const        { return m_sLinkFileName; }
-    void SetLinkFileName(OUString const& rNew, OUString const* pPassWd = nullptr)
+    void SetLinkFileName(OUString const& rNew)
     {
         m_sLinkFileName = rNew;
-        if (pPassWd) { SetLinkFilePassword(*pPassWd); }
     }
 
     OUString GetLinkFilePassword() const        { return m_sLinkFilePassword; }
@@ -201,7 +200,7 @@ public:
     void SetCondition(OUString const& rNew) { m_Data.SetCondition(rNew); }
 
     OUString GetLinkFileName() const;
-    void SetLinkFileName(OUString const& rNew, OUString const*const pPassWd = nullptr);
+    void SetLinkFileName(OUString const& rNew);
     // Password of linked file (only valid during runtime!)
     OUString GetLinkFilePassword() const
         { return m_Data.GetLinkFilePassword(); }
@@ -316,9 +315,9 @@ public:
     bool IsInNodesArr() const;
 
           SwSectionNode* GetSectionNode(bool const bEvenIfInUndo = false);
-    const SwSectionNode* GetSectionNode(bool const bEvenIfInUndo = false) const
+    const SwSectionNode* GetSectionNode() const
         { return const_cast<SwSectionFormat *>(this)
-                ->GetSectionNode(bEvenIfInUndo); }
+                ->GetSectionNode(); }
 
     // Is section a valid one for global document?
     const SwSection* GetGlobalDocSection() const;
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx
index fc7c612..02cfbe1 100644
--- a/sw/inc/shellio.hxx
+++ b/sw/inc/shellio.hxx
@@ -374,7 +374,7 @@ protected:
     bool CopyNextPam( SwPaM ** );
 
     void PutNumFormatFontsInAttrPool();
-    void PutEditEngFontsInAttrPool( bool bIncl_CJK_CTL = true );
+    void PutEditEngFontsInAttrPool();
 
     virtual sal_uLong WriteStream() = 0;
     void                SetBaseURL( const OUString& rURL ) { sBaseURL = rURL; }
diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx
index 6fd3e80..f6108fc 100644
--- a/sw/inc/swabstdlg.hxx
+++ b/sw/inc/swabstdlg.hxx
@@ -106,19 +106,19 @@ class AbstractFieldInputDlg : public VclAbstractTerminatedDialog
 public:
     //from class SalFrame
     virtual void         SetWindowState( const OString & rStr ) = 0;
-    virtual OString GetWindowState( sal_uLong nMask = WINDOWSTATE_MASK_ALL ) const = 0;
+    virtual OString      GetWindowState() const = 0;
     virtual void         EndDialog(long ) override = 0;
 };
 
 class AbstractInsFootNoteDlg : public VclAbstractDialog
 {
 public:
-    virtual OUString        GetFontName() = 0;
+    virtual OUString    GetFontName() = 0;
     virtual bool        IsEndNote() = 0;
-    virtual OUString        GetStr() = 0;
+    virtual OUString    GetStr() = 0;
     //from class Window
-    virtual void    SetHelpId( const OString& sHelpId ) = 0;
-    virtual void    SetText( const OUString& rStr ) = 0;
+    virtual void        SetHelpId( const OString& sHelpId ) = 0;
+    virtual void        SetText( const OUString& rStr ) = 0;
 };
 
 class AbstractInsTableDlg : public VclAbstractDialog
@@ -241,8 +241,8 @@ public:
 class AbstractDropDownFieldDialog : public VclAbstractDialog
 {
 public:
-     virtual OString GetWindowState( sal_uLong nMask = WINDOWSTATE_MASK_ALL ) const = 0; //this method inherit from SystemWindow
-     virtual void         SetWindowState( const OString & rStr ) =0;//this method inherit from SystemWindow
+     virtual OString GetWindowState() const = 0; //this method inherit from SystemWindow
+     virtual void    SetWindowState( const OString & rStr ) = 0; //this method inherit from SystemWindow
 };
 
 class AbstractSwLabDlg  : public SfxAbstractTabDialog
@@ -269,7 +269,7 @@ public:
 class AbstractSwFieldDlg : public SfxAbstractTabDialog
 {
 public:
-    virtual void                Start( bool bShow = true ) = 0;  //this method from sfxtabdialog
+    virtual void                Start() = 0;  //this method from sfxtabdialog
     virtual void                Initialize(SfxChildWinInfo *pInfo) = 0;
     virtual void                ReInitDlg() = 0;
     virtual void                ActivateDatabasePage() = 0;
@@ -442,14 +442,12 @@ public:
                                                        SfxBindings* pBindings,
                                                        SfxChildWindow* pChild,
                                                        vcl::Window *pParent,
-                                                       SfxChildWinInfo* pInfo,
-                                                       bool bNew=true) = 0;
+                                                       SfxChildWinInfo* pInfo) = 0;
     virtual AbstractMarkFloatDlg*       CreateAuthMarkFloatDlg(
                                                        SfxBindings* pBindings,
                                                        SfxChildWindow* pChild,
                                                        vcl::Window *pParent,
-                                                       SfxChildWinInfo* pInfo,
-                                                       bool bNew=true) = 0;
+                                                       SfxChildWinInfo* pInfo) = 0;
     virtual VclAbstractDialog *         CreateIndexMarkModalDlg(
                                                 vcl::Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark) = 0;
 
diff --git a/sw/source/core/bastyp/bparr.cxx b/sw/source/core/bastyp/bparr.cxx
index df38c74..f5e3166 100644
--- a/sw/source/core/bastyp/bparr.cxx
+++ b/sw/source/core/bastyp/bparr.cxx
@@ -397,7 +397,7 @@ void BigPtrArray::Replace( sal_uLong idx, const ElementPtr& rElem)
 }
 
 /** Compress the array */
-sal_uInt16 BigPtrArray::Compress( short nMax )
+sal_uInt16 BigPtrArray::Compress()
 {
     CHECKIDX( ppInf, nBlock, nSize, nCur );
 
@@ -412,7 +412,7 @@ sal_uInt16 BigPtrArray::Compress( short nMax )
     sal_uInt16 nFirstChgPos = USHRT_MAX; // at which position was the 1st change?
 
     // convert fill percentage into number of remaining elements
-    nMax = MAXENTRY - (long) MAXENTRY * nMax / 100;
+    short nMax = MAXENTRY - (long) MAXENTRY * COMPRESSLVL / 100;
 
     for( sal_uInt16 cur = 0; cur < nBlock; ++cur )
     {
diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx
index 69c6e0a..6e969d5 100644
--- a/sw/source/core/bastyp/calc.cxx
+++ b/sw/source/core/bastyp/calc.cxx
@@ -396,23 +396,13 @@ SwSbxValue SwCalc::Calculate( const OUString& rStr )
     return nResult;
 }
 
-//TODO: provide documentation
-/** ???
-
-  @param rVal ???
-  @param bRound In previous times <bRound> had a default value of <true>.
-                There it should be only changed when calculating table cells,
-                so that no rounding errors would occur while composing a formula.
-                Now this parameter is ignored.
-  @return ???
-*/
-OUString SwCalc::GetStrResult( const SwSbxValue& rVal, bool bRound )
+OUString SwCalc::GetStrResult( const SwSbxValue& rVal )
 {
     if( !rVal.IsDouble() )
     {
         return rVal.GetOUString();
     }
-    return GetStrResult( rVal.GetDouble(), bRound );
+    return GetStrResult( rVal.GetDouble() );
 }
 
 OUString SwCalc::GetStrResult( double nValue, bool )
@@ -1534,11 +1524,10 @@ namespace
 }
 
 bool SwCalc::Str2Double( const OUString& rCommand, sal_Int32& rCommandPos,
-                         double& rVal, const LocaleDataWrapper* const pLclData )
+                         double& rVal )
 {
     const SvtSysLocale aSysLocale;
-    return lcl_Str2Double( rCommand, rCommandPos, rVal,
-            pLclData ? pLclData : aSysLocale.GetLocaleDataPtr() );
+    return lcl_Str2Double( rCommand, rCommandPos, rVal, aSysLocale.GetLocaleDataPtr() );
 }
 
 bool SwCalc::Str2Double( const OUString& rCommand, sal_Int32& rCommandPos,
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 88f7fe2..9cc500f 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -3127,9 +3127,9 @@ bool SwCursorShell::IsInVerticalText( const Point* pPt ) const
     return FRMDIR_VERT_TOP_RIGHT == nDir || FRMDIR_VERT_TOP_LEFT == nDir;
 }
 
-bool SwCursorShell::IsInRightToLeftText( const Point* pPt ) const
+bool SwCursorShell::IsInRightToLeftText() const
 {
-    const short nDir = GetTextDirection( pPt );
+    const short nDir = GetTextDirection();
     // GetTextDirection uses FRMDIR_VERT_TOP_LEFT to indicate RTL in
     // vertical environment
     return FRMDIR_VERT_TOP_LEFT == nDir || FRMDIR_HORI_RIGHT_TOP == nDir;
diff --git a/sw/source/core/doc/DocumentStateManager.cxx b/sw/source/core/doc/DocumentStateManager.cxx
index 80869a6..22751c6 100644
--- a/sw/source/core/doc/DocumentStateManager.cxx
+++ b/sw/source/core/doc/DocumentStateManager.cxx
@@ -100,9 +100,9 @@ void DocumentStateManager::SetUpdateExpFieldStat(bool b)
     mbUpdateExpField = b;
 }
 
-void DocumentStateManager::SetLoaded(bool b)
+void DocumentStateManager::SetLoaded()
 {
-    mbLoaded = b;
+    mbLoaded = true;
 }
 
 }
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx
index 30f3f88..cb7c8c1 100644
--- a/sw/source/core/doc/doclay.cxx
+++ b/sw/source/core/doc/doclay.cxx
@@ -1632,9 +1632,9 @@ short SwDoc::GetTextDirection( const SwPosition& rPos,
     return nRet;
 }
 
-bool SwDoc::IsInVerticalText( const SwPosition& rPos, const Point* pPt ) const
+bool SwDoc::IsInVerticalText( const SwPosition& rPos ) const
 {
-    const short nDir = GetTextDirection( rPos, pPt );
+    const short nDir = GetTextDirection( rPos );
     return FRMDIR_VERT_TOP_RIGHT == nDir || FRMDIR_VERT_TOP_LEFT == nDir;
 }
 
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index d782084..9b7dc90 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -291,7 +291,7 @@ bool SwExtraRedlineTable::DeleteTableCellRedline( SwDoc* pDoc, const SwTableBox&
     return bChg;
 }
 
-bool SwRedlineTable::Insert( SwRangeRedline* p, bool bIns )
+bool SwRedlineTable::Insert( SwRangeRedline* p )
 {
     if( p->HasValidRange() )
     {
@@ -300,14 +300,10 @@ bool SwRedlineTable::Insert( SwRangeRedline* p, bool bIns )
         p->CallDisplayFunc(0, nP);
         return rv.second;
     }
-    if( bIns )
-        return InsertWithValidRanges( p );
-
-    OSL_ENSURE( false, "Redline: wrong range" );
-    return false;
+    return InsertWithValidRanges( p );
 }
 
-bool SwRedlineTable::Insert( SwRangeRedline* p, sal_uInt16& rP, bool bIns )
+bool SwRedlineTable::Insert( SwRangeRedline* p, sal_uInt16& rP )
 {
     if( p->HasValidRange() )
     {
@@ -316,11 +312,7 @@ bool SwRedlineTable::Insert( SwRangeRedline* p, sal_uInt16& rP, bool bIns )
         p->CallDisplayFunc(0, rP);
         return rv.second;
     }
-    if( bIns )
-        return InsertWithValidRanges( p, &rP );
-
-    OSL_ENSURE( false, "Redline: wrong range" );
-    return false;
+    return InsertWithValidRanges( p, &rP );
 }
 
 bool SwRedlineTable::InsertWithValidRanges( SwRangeRedline* p, sal_uInt16* pInsPos )
@@ -512,20 +504,17 @@ sal_uInt16 SwRedlineTable::FindPrevOfSeqNo( sal_uInt16 nSttPos ) const
 
 /// Find the next or preceding Redline with the same seq.no.
 /// We can limit the search using look ahead (0 searches the whole array).
-sal_uInt16 SwRedlineTable::FindNextSeqNo( sal_uInt16 nSeqNo, sal_uInt16 nSttPos,
-                                    sal_uInt16 nLookahead ) const
+sal_uInt16 SwRedlineTable::FindNextSeqNo( sal_uInt16 nSeqNo, sal_uInt16 nSttPos ) const
 {
+    sal_uInt16 nLookahead = 20;
     sal_uInt16 nRet = USHRT_MAX;
     if( nSeqNo && nSttPos < size() )
     {
         size_t nEnd = size();
-        if( nLookahead )
+        const size_t nTmp = static_cast<size_t>(nSttPos)+ static_cast<size_t>(nLookahead);
+        if (nTmp < nEnd)
         {
-            const size_t nTmp = static_cast<size_t>(nSttPos)+ static_cast<size_t>(nLookahead);
-            if (nTmp < nEnd)
-            {
-                nEnd = nTmp;
-            }
+            nEnd = nTmp;
         }
 
         for( ; nSttPos < nEnd; ++nSttPos )
@@ -538,14 +527,14 @@ sal_uInt16 SwRedlineTable::FindNextSeqNo( sal_uInt16 nSeqNo, sal_uInt16 nSttPos,
     return nRet;
 }
 
-sal_uInt16 SwRedlineTable::FindPrevSeqNo( sal_uInt16 nSeqNo, sal_uInt16 nSttPos,
-                                    sal_uInt16 nLookahead ) const
+sal_uInt16 SwRedlineTable::FindPrevSeqNo( sal_uInt16 nSeqNo, sal_uInt16 nSttPos ) const
 {
+    sal_uInt16 nLookahead = 20;
     sal_uInt16 nRet = USHRT_MAX;
     if( nSeqNo && nSttPos < size() )
     {
         size_t nEnd = 0;
-        if( nLookahead && nSttPos > nLookahead )
+        if( nSttPos > nLookahead )
             nEnd = nSttPos - nLookahead;
 
         ++nSttPos;
@@ -1581,10 +1570,10 @@ const SwRedlineData & SwRangeRedline::GetRedlineData(sal_uInt16 nPos) const
     return *pCur;
 }
 
-OUString SwRangeRedline::GetDescr(sal_uInt16 nPos)
+OUString SwRangeRedline::GetDescr()
 {
     // get description of redline data (e.g.: "insert $1")
-    OUString aResult = GetRedlineData(nPos).GetDescr();
+    OUString aResult = GetRedlineData().GetDescr();
 
     SwPaM * pPaM = nullptr;
     bool bDeletePaM = false;
diff --git a/sw/source/core/docnode/ndnotxt.cxx b/sw/source/core/docnode/ndnotxt.cxx
index 1c4673f..b156c4d 100644
--- a/sw/source/core/docnode/ndnotxt.cxx
+++ b/sw/source/core/docnode/ndnotxt.cxx
@@ -260,7 +260,7 @@ Graphic SwNoTextNode::GetGraphic() const
 }
 
 // #i73249#
-void SwNoTextNode::SetTitle( const OUString& rTitle, bool bBroadcast )
+void SwNoTextNode::SetTitle( const OUString& rTitle )
 {
     // Title attribute of <SdrObject> replaces own AlternateText attribute
     SwFlyFrameFormat* pFlyFormat = dynamic_cast<SwFlyFrameFormat*>(GetFlyFormat());
@@ -270,7 +270,7 @@ void SwNoTextNode::SetTitle( const OUString& rTitle, bool bBroadcast )
         return;
     }
 
-    pFlyFormat->SetObjTitle( rTitle, bBroadcast );
+    pFlyFormat->SetObjTitle( rTitle );
 }
 
 OUString SwNoTextNode::GetTitle() const
@@ -285,7 +285,7 @@ OUString SwNoTextNode::GetTitle() const
     return pFlyFormat->GetObjTitle();
 }
 
-void SwNoTextNode::SetDescription( const OUString& rDescription, bool bBroadcast )
+void SwNoTextNode::SetDescription( const OUString& rDescription )
 {
     SwFlyFrameFormat* pFlyFormat = dynamic_cast<SwFlyFrameFormat*>(GetFlyFormat());
     OSL_ENSURE( pFlyFormat, "<SwNoTextNode::SetDescription(..)> - missing <SwFlyFrameFormat> instance" );
@@ -294,7 +294,7 @@ void SwNoTextNode::SetDescription( const OUString& rDescription, bool bBroadcast
         return;
     }
 
-    pFlyFormat->SetObjDescription( rDescription, bBroadcast );
+    pFlyFormat->SetObjDescription( rDescription );
 }
 
 OUString SwNoTextNode::GetDescription() const
diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx
index 544ee12..cbd04e4 100644
--- a/sw/source/core/docnode/node.cxx
+++ b/sw/source/core/docnode/node.cxx
@@ -1124,12 +1124,11 @@ SwRect SwContentNode::FindLayoutRect( const bool bPrtArea, const Point* pPoint,
     return aRet;
 }
 
-SwRect SwContentNode::FindPageFrameRect( const bool bPrtArea, const Point* pPoint,
-                                    const bool bCalcFrame ) const
+SwRect SwContentNode::FindPageFrameRect( const bool bPrtArea, const Point* pPoint ) const
 {
     SwRect aRet;
     SwFrame* pFrame = ::GetFrameOfModify( nullptr, *const_cast<SwModify*>(static_cast<SwModify const *>(this)),
-                                            FRM_CNTNT, pPoint, nullptr, bCalcFrame );
+                                            FRM_CNTNT, pPoint );
     if( pFrame && nullptr != ( pFrame = pFrame->FindPageFrame() ))
         aRet = bPrtArea ? pFrame->Prt() : pFrame->Frame();
     return aRet;
@@ -1658,17 +1657,13 @@ sal_uInt16 SwContentNode::ResetAllAttr()
     return aNew.Count();
 }
 
-bool SwContentNode::GetAttr( SfxItemSet& rSet, bool bInParent ) const
+bool SwContentNode::GetAttr( SfxItemSet& rSet ) const
 {
     if( rSet.Count() )
         rSet.ClearItem();
 
     const SwAttrSet& rAttrSet = GetSwAttrSet();
-    if( bInParent )
-        return rSet.Set( rAttrSet );
-
-    rSet.Put( rAttrSet );
-    return rSet.Count() != 0;
+    return rSet.Set( rAttrSet );
 }
 
 sal_uInt16 SwContentNode::ClearItemsFromAttrSet( const std::vector<sal_uInt16>& rWhichIds )
diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx
index 8fe1bc0..d28606e 100644
--- a/sw/source/core/docnode/nodes.cxx
+++ b/sw/source/core/docnode/nodes.cxx
@@ -1906,12 +1906,11 @@ SwStartNode* SwNodes::MakeEmptySection( const SwNodeIndex& rIdx,
 
 SwStartNode* SwNodes::MakeTextSection( const SwNodeIndex & rWhere,
                                         SwStartNodeType eSttNdTyp,
-                                        SwTextFormatColl *pColl,
-                                        SwAttrSet* pAutoAttr )
+                                        SwTextFormatColl *pColl )
 {
     SwStartNode* pSttNd = new SwStartNode( rWhere, ND_STARTNODE, eSttNdTyp );
     new SwEndNode( rWhere, *pSttNd );
-    MakeTextNode( SwNodeIndex( rWhere, - 1 ), pColl, pAutoAttr );
+    MakeTextNode( SwNodeIndex( rWhere, - 1 ), pColl );
     return pSttNd;
 }
 
diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx
index 74fd835..fd849cc 100644
--- a/sw/source/core/docnode/section.cxx
+++ b/sw/source/core/docnode/section.cxx
@@ -581,17 +581,13 @@ OUString SwSection::GetLinkFileName() const
     return m_Data.GetLinkFileName();
 }
 
-void SwSection::SetLinkFileName(const OUString& rNew, OUString const*const pPassWd)
+void SwSection::SetLinkFileName(const OUString& rNew)
 {
     if (m_RefLink.Is())
     {
         m_RefLink->SetLinkSourceName( rNew );
     }
     m_Data.SetLinkFileName(rNew);
-    if( pPassWd )
-    {
-        SetLinkFilePassword( *pPassWd );
-    }
 }
 
 // If it was a Linked Section, we need to make all Child Links visible
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx
index 5f38a96..c5cadf9 100644
--- a/sw/source/core/edit/edfcol.cxx
+++ b/sw/source/core/edit/edfcol.cxx
@@ -421,13 +421,8 @@ SwTextFormatColl* SwEditShell::MakeTextFormatColl(const OUString& rFormatCollNam
 
 }
 
-void SwEditShell::FillByEx(SwTextFormatColl* pColl, bool bReset)
+void SwEditShell::FillByEx(SwTextFormatColl* pColl)
 {
-    if( bReset )
-    {
-        pColl->ResetAllFormatAttr();
-    }
-
     SwPaM * pCursor = GetCursor();
     SwContentNode * pCnt = pCursor->GetContentNode();
     const SfxItemSet* pSet = pCnt->GetpSwAttrSet();
diff --git a/sw/source/core/edit/edfld.cxx b/sw/source/core/edit/edfld.cxx
index 7bb4aa7..a2d5e0d 100644
--- a/sw/source/core/edit/edfld.cxx
+++ b/sw/source/core/edit/edfld.cxx
@@ -118,24 +118,9 @@ SwFieldType* SwEditShell::GetFieldType(sal_uInt16 nResId, const OUString& rName)
 }
 
 /// delete field type
-void SwEditShell::RemoveFieldType(size_t nField, sal_uInt16 nResId)
+void SwEditShell::RemoveFieldType(size_t nField)
 {
-    if( USHRT_MAX == nResId )
-    {
-        GetDoc()->getIDocumentFieldsAccess().RemoveFieldType(nField);
-        return;
-    }
-
-    const SwFieldTypes* pFieldTypes = GetDoc()->getIDocumentFieldsAccess().GetFieldTypes();
-    size_t nIdx = 0;
-    const SwFieldTypes::size_type nSize = pFieldTypes->size();
-    for( SwFieldTypes::size_type i = 0; i < nSize; ++i )
-        // Gleiche ResId -> Index erhoehen
-        if( (*pFieldTypes)[i]->Which() == nResId && nIdx++ == nField )
-        {
-            GetDoc()->getIDocumentFieldsAccess().RemoveFieldType( i );
-            return;
-        }
+    GetDoc()->getIDocumentFieldsAccess().RemoveFieldType(nField);
 }
 
 /// delete field type based on its name
diff --git a/sw/source/core/edit/edfmt.cxx b/sw/source/core/edit/edfmt.cxx
index d65fe3b..40d716e 100644
--- a/sw/source/core/edit/edfmt.cxx
+++ b/sw/source/core/edit/edfmt.cxx
@@ -52,13 +52,8 @@ SwCharFormat* SwEditShell::GetCurCharFormat() const
     return pFormat;
 }
 
-void SwEditShell::FillByEx(SwCharFormat* pCharFormat, bool bReset)
+void SwEditShell::FillByEx(SwCharFormat* pCharFormat)
 {
-    if ( bReset )
-    {
-        pCharFormat->ResetAllFormatAttr();
-    }
-
     SwPaM* pPam = GetCursor();
     const SwContentNode* pCNd = pPam->GetContentNode();
     if( pCNd->IsTextNode() )
@@ -120,11 +115,9 @@ OUString SwEditShell::GetUniqueTableName() const
     return GetDoc()->GetUniqueTableName();
 }
 
-SwCharFormat* SwEditShell::MakeCharFormat( const OUString& rName,
-                                    SwCharFormat* pDerivedFrom )
+SwCharFormat* SwEditShell::MakeCharFormat( const OUString& rName )
 {
-    if( !pDerivedFrom )
-        pDerivedFrom = GetDoc()->GetDfltCharFormat();
+    SwCharFormat* pDerivedFrom = GetDoc()->GetDfltCharFormat();
 
     return GetDoc()->MakeCharFormat( rName, pDerivedFrom );
 }
@@ -150,9 +143,9 @@ bool SwEditShell::IsUsed( const SwModify& rModify ) const
     return mpDoc->IsUsed( rModify );
 }
 
-const SwFlyFrameFormat* SwEditShell::FindFlyByName( const OUString& rName, sal_uInt8 nNdTyp ) const
+const SwFlyFrameFormat* SwEditShell::FindFlyByName( const OUString& rName ) const
 {
-    return mpDoc->FindFlyByName(rName, nNdTyp);
+    return mpDoc->FindFlyByName(rName);
 }
 
 SwCharFormat* SwEditShell::FindCharFormatByName( const OUString& rName ) const
diff --git a/sw/source/core/edit/edglss.cxx b/sw/source/core/edit/edglss.cxx
index 1e3ccac..325888b 100644
--- a/sw/source/core/edit/edglss.cxx
+++ b/sw/source/core/edit/edglss.cxx
@@ -150,7 +150,7 @@ sal_uInt16 SwEditShell::SaveGlossaryDoc( SwTextBlocks& rBlock,
 }
 
 /// copy all selections to the doc
-bool SwEditShell::_CopySelToDoc( SwDoc* pInsDoc, SwNodeIndex* pSttNd )
+bool SwEditShell::_CopySelToDoc( SwDoc* pInsDoc )
 {
     OSL_ENSURE( pInsDoc, "no Ins.Document"  );
 
@@ -161,13 +161,6 @@ bool SwEditShell::_CopySelToDoc( SwDoc* pInsDoc, SwNodeIndex* pSttNd )
     SwPosition aPos( aIdx,
         SwIndex(pContentNode, (pContentNode) ? pContentNode->Len() : 0));
 
-    // Should the index be reset to start?
-    if( pSttNd )
-    {
-        *pSttNd = aPos.nNode;
-        --(*pSttNd);
-    }
-
     bool bRet = false;
     SET_CURR_SHELL( this );
 
@@ -250,10 +243,6 @@ bool SwEditShell::_CopySelToDoc( SwDoc* pInsDoc, SwNodeIndex* pSttNd )
     if( !pInsDoc->getIDocumentFieldsAccess().IsExpFieldsLocked() )
         pInsDoc->getIDocumentFieldsAccess().UpdateExpFields(nullptr, true);
 
-    // set the saved Node position back to the correct Node
-    if( bRet && pSttNd )
-        ++(*pSttNd);
-
     return bRet;
 }
 
diff --git a/sw/source/core/edit/ednumber.cxx b/sw/source/core/edit/ednumber.cxx
index 7a585db..1ab81d8 100644
--- a/sw/source/core/edit/ednumber.cxx
+++ b/sw/source/core/edit/ednumber.cxx
@@ -775,9 +775,9 @@ void SwEditShell::SetCurNumRule( const SwNumRule& rRule,
     EndAllAction();
 }
 
-OUString SwEditShell::GetUniqueNumRuleName( const OUString* pChkStr, bool bAutoNum ) const
+OUString SwEditShell::GetUniqueNumRuleName( const OUString* pChkStr ) const
 {
-    return GetDoc()->GetUniqueNumRuleName( pChkStr, bAutoNum );
+    return GetDoc()->GetUniqueNumRuleName( pChkStr );
 }
 
 void SwEditShell::ChgNumRuleFormats( const SwNumRule& rRule )
@@ -821,11 +821,11 @@ bool SwEditShell::IsNumRuleStart( SwPaM* pPaM ) const
     return pTextNd && pTextNd->IsListRestart();
 }
 
-void SwEditShell::SetNodeNumStart( sal_uInt16 nStt, SwPaM* pPaM )
+void SwEditShell::SetNodeNumStart( sal_uInt16 nStt )
 {
     StartAllAction();
 
-    SwPaM* pCursor = pPaM ? pPaM : GetCursor();
+    SwPaM* pCursor = GetCursor();
     if( pCursor->IsMultiSelection() )         // multiple selection ?
     {
         GetDoc()->GetIDocumentUndoRedo().StartUndo( UNDO_START, nullptr );
diff --git a/sw/source/core/edit/edsect.cxx b/sw/source/core/edit/edsect.cxx
index f26d548..252cd26 100644
--- a/sw/source/core/edit/edsect.cxx
+++ b/sw/source/core/edit/edsect.cxx
@@ -115,7 +115,7 @@ size_t SwEditShell::GetSectionFormatCount() const
     return GetDoc()->GetSections().size();
 }
 
-bool SwEditShell::IsAnySectionInDoc( bool bChkReadOnly, bool bChkHidden, bool bChkTOX ) const
+bool SwEditShell::IsAnySectionInDoc( bool bChkReadOnly, bool bChkHidden ) const
 {
     const SwSectionFormats& rFormats = GetDoc()->GetSections();
 
@@ -123,9 +123,8 @@ bool SwEditShell::IsAnySectionInDoc( bool bChkReadOnly, bool bChkHidden, bool bC
     {
         SectionType eTmpType;
         if( pFormat->IsInNodesArr() &&
-            (bChkTOX  ||
-                ( (eTmpType = pFormat->GetSection()->GetType()) != TOX_CONTENT_SECTION
-                  && TOX_HEADER_SECTION != eTmpType ) ) )
+            ( (eTmpType = pFormat->GetSection()->GetType()) != TOX_CONTENT_SECTION
+               && TOX_HEADER_SECTION != eTmpType ) )
         {
             const SwSection& rSect = *pFormat->GetSection();
             if( (!bChkReadOnly && !bChkHidden ) ||
diff --git a/sw/source/core/edit/edtab.cxx b/sw/source/core/edit/edtab.cxx
index 531e51f..5d0113a 100644
--- a/sw/source/core/edit/edtab.cxx
+++ b/sw/source/core/edit/edtab.cxx
@@ -214,8 +214,7 @@ bool SwEditShell::IsTextToTableAvailable() const
 
 void SwEditShell::InsertDDETable( const SwInsertTableOptions& rInsTableOpts,
                                   SwDDEFieldType* pDDEType,
-                                  sal_uInt16 nRows, sal_uInt16 nCols,
-                                  sal_Int16 eAdj )
+                                  sal_uInt16 nRows, sal_uInt16 nCols )
 {
     SwPosition* pPos = GetCursor()->GetPoint();
 
@@ -231,7 +230,7 @@ void SwEditShell::InsertDDETable( const SwInsertTableOptions& rInsTableOpts,
     const SwInsertTableOptions aInsTableOpts( rInsTableOpts.mnInsMode | tabopts::DEFAULT_BORDER,
                                             rInsTableOpts.mnRowsToRepeat );
     SwTable* pTable = const_cast<SwTable*>(GetDoc()->InsertTable( aInsTableOpts, *pPos,
-                                                     nRows, nCols, eAdj ));
+                                                     nRows, nCols, css::text::HoriOrientation::FULL ));
 
     SwTableNode* pTableNode = const_cast<SwTableNode*>(pTable->GetTabSortBoxes()[ 0 ]->
                                                 GetSttNd()->FindTableNode());
diff --git a/sw/source/core/edit/edws.cxx b/sw/source/core/edit/edws.cxx
index e2376ea..ae5c681 100644
--- a/sw/source/core/edit/edws.cxx
+++ b/sw/source/core/edit/edws.cxx
@@ -255,9 +255,9 @@ void SwEditShell::AutoCorrect( SvxAutoCorrect& rACorr, bool bInsert,
     EndAllAction();
 }
 
-void SwEditShell::SetNewDoc(bool bNew)
+void SwEditShell::SetNewDoc()
 {
-    GetDoc()->getIDocumentState().SetNewDoc(bNew);
+    GetDoc()->getIDocumentState().SetNewDoc(true);
 }
 
 bool SwEditShell::GetPrevAutoCorrWord( SvxAutoCorrect& rACorr, OUString& rWord )
diff --git a/sw/source/core/fields/fldbas.cxx b/sw/source/core/fields/fldbas.cxx
index f0608d2..979a71e 100644
--- a/sw/source/core/fields/fldbas.cxx
+++ b/sw/source/core/fields/fldbas.cxx
@@ -399,7 +399,7 @@ bool SwField::IsFixed() const
     return bRet;
 }
 
-OUString SwField::ExpandField(bool const bCached, ToxAuthorityField eField) const
+OUString SwField::ExpandField(bool const bCached) const
 {
     if ( m_bUseFieldValueCache )
     {
@@ -408,7 +408,7 @@ OUString SwField::ExpandField(bool const bCached, ToxAuthorityField eField) cons
             if (GetTypeId() == TYP_AUTHORITY)
             {
                 const SwAuthorityField* pAuthorityField = static_cast<const SwAuthorityField*>(this);
-                m_Cache = pAuthorityField->ConditionalExpand(eField);
+                m_Cache = pAuthorityField->ConditionalExpand(AUTH_FIELD_IDENTIFIER);
             }
             else
                 m_Cache = Expand();
diff --git a/sw/source/core/fields/flddat.cxx b/sw/source/core/fields/flddat.cxx
index 42d14a2..6ff7f56 100644
--- a/sw/source/core/fields/flddat.cxx
+++ b/sw/source/core/fields/flddat.cxx
@@ -133,29 +133,24 @@ double SwDateTimeField::GetValue() const
         return GetDateTime(GetDoc(), DateTime( DateTime::SYSTEM ));
 }
 
-Date SwDateTimeField::GetDate(bool bUseOffset) const
+Date SwDateTimeField::GetDate() const
 {
     SvNumberFormatter* pFormatter = GetDoc()->GetNumberFormatter();
     Date* pNullDate = pFormatter->GetNullDate();
 
     long nVal = static_cast<long>( GetValue() );
 
-    if (bUseOffset && nOffset)
-        nVal += nOffset / 60 / 24;
-
     Date aDate = *pNullDate + nVal;
 
     return aDate;
 }
 
-tools::Time SwDateTimeField::GetTime(bool bUseOffset) const
+tools::Time SwDateTimeField::GetTime() const
 {
     double fDummy;
     double fFract = modf(GetValue(), &fDummy);
     DateTime aDT((long)fDummy, 0);
     aDT += fFract;
-    if (bUseOffset)
-         aDT += tools::Time(0, nOffset);
     return static_cast<tools::Time>(aDT);
 }
 
diff --git a/sw/source/core/frmedt/fecopy.cxx b/sw/source/core/frmedt/fecopy.cxx
index 5c95c4d4..1fdc283 100644
--- a/sw/source/core/frmedt/fecopy.cxx
+++ b/sw/source/core/frmedt/fecopy.cxx
@@ -683,11 +683,10 @@ namespace {
     }
 }
 
-bool SwFEShell::Paste( SwDoc* pClpDoc, bool bIncludingPageFrames )
+bool SwFEShell::Paste( SwDoc* pClpDoc )
 {
     SET_CURR_SHELL( this );
     OSL_ENSURE( pClpDoc, "no clipboard document"  );
-    const sal_uInt16 nStartPageNumber = GetPhyPageNum();
     // then till end of the nodes array
     SwNodeIndex aIdx( pClpDoc->GetNodes().GetEndOfExtras(), 2 );
     SwPaM aCpyPam( aIdx ); //DocStart
@@ -1052,8 +1051,6 @@ bool SwFEShell::Paste( SwDoc* pClpDoc, bool bIncludingPageFrames )
                 // ** Update SwDoc::Append, if you change the following code **
                 // **
 
-                // find out if the clipboard document starts with a table
-                bool bStartWithTable = nullptr != aCpyPam.Start()->nNode.GetNode().FindTableNode();
                 SwPosition aInsertPosition( rInsPos );
 
                 {
@@ -1086,28 +1083,6 @@ bool SwFEShell::Paste( SwDoc* pClpDoc, bool bIncludingPageFrames )
                 }
 
                 SaveTableBoxContent( &rInsPos );
-                if(bIncludingPageFrames && bStartWithTable)
-                {
-                    //remove the paragraph in front of the table
-                    SwPaM aPara(aInsertPosition);
-                    GetDoc()->getIDocumentContentOperations().DelFullPara(aPara);
-                }
-                //additionally copy page bound frames
-                if( bIncludingPageFrames && pClpDoc->GetSpzFrameFormats()->size() )
-                {
-                    // create a draw view if necessary
-                    if( !Imp()->GetDrawView() )
-                        MakeDrawView();
-
-                    for ( auto pCpyFormat : *pClpDoc->GetSpzFrameFormats() )
-                    {
-                        SwFormatAnchor aAnchor( pCpyFormat->GetAnchor() );
-                        if ( FLY_AT_PAGE != aAnchor.GetAnchorId() )
-                            continue;
-                        aAnchor.SetPageNum( aAnchor.GetPageNum() + nStartPageNumber - 1 );
-                        GetDoc()->getIDocumentLayoutAccess().CopyLayoutFormat( *pCpyFormat, aAnchor, true, true );
-                    }
-                }
             }
         }
     }
diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx
index a082fba..538805f 100644
--- a/sw/source/core/frmedt/fefly1.cxx
+++ b/sw/source/core/frmedt/fefly1.cxx
@@ -282,12 +282,12 @@ SwFlyFrame* SwFEShell::GetCurrFlyFrame(const bool bCalcFrame) const
 }
 
 // Get selected fly, but if none Get current fly in which the cursor is positioned
-SwFlyFrame* SwFEShell::GetSelectedOrCurrFlyFrame(const bool bCalcFrame) const
+SwFlyFrame* SwFEShell::GetSelectedOrCurrFlyFrame() const
 {
     SwFlyFrame *pFly = GetSelectedFlyFrame();
     if (pFly)
         return pFly;
-    return GetCurrFlyFrame(bCalcFrame);
+    return GetCurrFlyFrame();
 }
 
 // Returns non-null pointer, if the current Fly could be anchored to another one (so it is inside)
@@ -934,9 +934,9 @@ void SwFEShell::GetPageObjs( std::vector<SwFrameFormat*>& rFillArr )
     }
 }
 
-void SwFEShell::SetPageObjsNewPage( std::vector<SwFrameFormat*>& rFillArr, int nOffset )
+void SwFEShell::SetPageObjsNewPage( std::vector<SwFrameFormat*>& rFillArr )
 {
-    if( rFillArr.empty() || !nOffset )
+    if( rFillArr.empty() )
         return;
 
     StartAllAction();
@@ -954,7 +954,7 @@ void SwFEShell::SetPageObjsNewPage( std::vector<SwFrameFormat*>& rFillArr, int n
 
             SwFormatAnchor aNewAnchor( pFormat->GetAnchor() );
             if ((FLY_AT_PAGE != aNewAnchor.GetAnchorId()) ||
-                0 >= ( nNewPage = aNewAnchor.GetPageNum() + nOffset ) )
+                0 >= ( nNewPage = aNewAnchor.GetPageNum() + 1 ) )
                 // chaos::Anchor has been changed or invalid page number,
                 // therefore: do not change!
                 continue;
@@ -1717,7 +1717,7 @@ ObjCntType SwFEShell::GetObjCntType( const Point &rPt, SdrObject *&rpObj ) const
     return eType;
 }
 
-ObjCntType SwFEShell::GetObjCntTypeOfSelection( SdrObject** ppObj ) const
+ObjCntType SwFEShell::GetObjCntTypeOfSelection() const
 {
     ObjCntType eType = OBJCNT_NONE;
 
@@ -1733,7 +1733,6 @@ ObjCntType SwFEShell::GetObjCntTypeOfSelection( SdrObject** ppObj ) const
             if( !i )
             {
                 eType = eTmp;
-                if( ppObj ) *ppObj = pObj;
             }
             else if( eTmp != eType )
             {
@@ -2004,7 +2003,7 @@ void SwFEShell::SetObjDescription( const OUString& rDescription )
     }
 }
 
-void SwFEShell::AlignFormulaToBaseline( const uno::Reference < embed::XEmbeddedObject >& xObj, SwFlyFrame * pFly )
+void SwFEShell::AlignFormulaToBaseline( const uno::Reference < embed::XEmbeddedObject >& xObj )
 {
 #if OSL_DEBUG_LEVEL > 0
     SvGlobalName aCLSID( xObj->getClassID() );
@@ -2015,8 +2014,7 @@ void SwFEShell::AlignFormulaToBaseline( const uno::Reference < embed::XEmbeddedO
         return;
 #endif
 
-    if (!pFly)
-        pFly = FindFlyFrame( xObj );
+    SwFlyFrame * pFly = FindFlyFrame( xObj );
     OSL_ENSURE( pFly , "No fly frame!" );
     SwFrameFormat * pFrameFormat = pFly ? pFly->GetFormat() : nullptr;
 
diff --git a/sw/source/core/frmedt/fetab.cxx b/sw/source/core/frmedt/fetab.cxx
index 41a1c06..e745ef8 100644
--- a/sw/source/core/frmedt/fetab.cxx
+++ b/sw/source/core/frmedt/fetab.cxx
@@ -2034,10 +2034,9 @@ void SwFEShell::SetMouseTabCols( const SwTabCols &rNew, bool bCurRowOnly,
     }
 }
 
-sal_uInt16 SwFEShell::GetCurMouseColNum( const Point &rPt,
-                                    SwGetCurColNumPara* pPara ) const
+sal_uInt16 SwFEShell::GetCurMouseColNum( const Point &rPt ) const
 {
-    return _GetCurColNum( GetBox( rPt ), pPara );
+    return _GetCurColNum( GetBox( rPt ), nullptr );
 }
 
 size_t SwFEShell::GetCurMouseTabColNum( const Point &rPt ) const
diff --git a/sw/source/core/frmedt/fews.cxx b/sw/source/core/frmedt/fews.cxx
index 658b0bb..01dc520 100644
--- a/sw/source/core/frmedt/fews.cxx
+++ b/sw/source/core/frmedt/fews.cxx
@@ -307,9 +307,9 @@ sal_uInt16 SwFEShell::GetPhyPageNum()
     return 0;
 }
 
-sal_uInt16 SwFEShell::GetVirtPageNum( const bool bCalcFrame )
+sal_uInt16 SwFEShell::GetVirtPageNum()
 {
-    SwFrame *pFrame = GetCurrFrame( bCalcFrame );
+    SwFrame *pFrame = GetCurrFrame();
     if ( pFrame )
         return pFrame->GetVirtPageNum();
     return 0;
@@ -641,7 +641,7 @@ sal_uInt16 SwFEShell::GetCurColNum( SwGetCurColNumPara* pPara ) const
     return _GetCurColNum( GetCurrFrame(), pPara );
 }
 
-sal_uInt16 SwFEShell::GetCurOutColNum( SwGetCurColNumPara* pPara ) const
+sal_uInt16 SwFEShell::GetCurOutColNum() const
 {
     sal_uInt16 nRet = 0;
     SwFrame* pFrame = GetCurrFrame();
@@ -652,7 +652,7 @@ sal_uInt16 SwFEShell::GetCurOutColNum( SwGetCurColNumPara* pPara ) const
                                : static_cast<SwFrame*>(pFrame->FindSctFrame());
         OSL_ENSURE( pFrame, "No Tab, no Sect" );
         if( pFrame )
-            nRet = _GetCurColNum( pFrame, pPara );
+            nRet = _GetCurColNum( pFrame, nullptr );
     }
     return nRet;
 }
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index 9846953..cdf1fc1 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -434,11 +434,10 @@ SwGrfNode * SwNodes::MakeGrfNode( const SwNodeIndex & rWhere,
 
 SwGrfNode * SwNodes::MakeGrfNode( const SwNodeIndex & rWhere,
                                 const GraphicObject& rGrfObj,
-                                SwGrfFormatColl* pGrfColl,
-                                SwAttrSet* pAutoAttr )
+                                SwGrfFormatColl* pGrfColl )
 {
     OSL_ENSURE( pGrfColl, "MakeGrfNode: Formatpointer ist 0." );
-    return new SwGrfNode( rWhere, rGrfObj, pGrfColl, pAutoAttr );
+    return new SwGrfNode( rWhere, rGrfObj, pGrfColl, nullptr );
 }
 
 Size SwGrfNode::GetTwipSize() const
diff --git a/sw/source/core/inc/DocumentStateManager.hxx b/sw/source/core/inc/DocumentStateManager.hxx
index 6d2f831..ae765bdd 100644
--- a/sw/source/core/inc/DocumentStateManager.hxx
+++ b/sw/source/core/inc/DocumentStateManager.hxx
@@ -43,7 +43,7 @@ public:
     bool IsNewDoc() const override;
     void SetNewDoc(bool b) override;
     void SetUpdateExpFieldStat(bool b) override;
-    void SetLoaded(bool b) override;
+    void SetLoaded() override;
 
 private:
     SwDoc& m_rDoc;
diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx
index e0f9418..de8bdd8 100644
--- a/sw/source/core/layout/atrfrm.cxx
+++ b/sw/source/core/layout/atrfrm.cxx
@@ -3041,9 +3041,9 @@ SwFlyFrame* SwFlyFrameFormat::GetFrame( const Point* pPoint, const bool bCalcFra
                                             pPoint, nullptr, bCalcFrame ));
 }
 
-SwAnchoredObject* SwFlyFrameFormat::GetAnchoredObj( const Point* pPoint, const bool bCalcFrame ) const
+SwAnchoredObject* SwFlyFrameFormat::GetAnchoredObj( const Point* pPoint ) const
 {
-    SwFlyFrame* pFlyFrame( GetFrame( pPoint, bCalcFrame ) );
+    SwFlyFrame* pFlyFrame( GetFrame( pPoint ) );
     if ( pFlyFrame )
     {
         return dynamic_cast<SwAnchoredObject*>(pFlyFrame);
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx
index 2f3b75a..7358a69 100644
--- a/sw/source/core/ole/ndole.cxx
+++ b/sw/source/core/ole/ndole.cxx
@@ -370,13 +370,12 @@ bool SwOLENode::SavePersistentData()
 
 SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere,
                     const svt::EmbeddedObjectRef& xObj,
-                                    SwGrfFormatColl* pGrfColl,
-                                    SwAttrSet* pAutoAttr )
+                                    SwGrfFormatColl* pGrfColl )
 {
     OSL_ENSURE( pGrfColl,"SwNodes::MakeOLENode: Formatpointer is 0." );
 
     SwOLENode *pNode =
-        new SwOLENode( rWhere, xObj, pGrfColl, pAutoAttr );
+        new SwOLENode( rWhere, xObj, pGrfColl, nullptr );
 
     // set parent if XChild is supported
     //!! needed to supply Math objects with a valid reference device
diff --git a/sw/source/core/text/itratr.cxx b/sw/source/core/text/itratr.cxx
index 5a413ef..38d9702 100644
--- a/sw/source/core/text/itratr.cxx
+++ b/sw/source/core/text/itratr.cxx
@@ -555,16 +555,14 @@ static void lcl_MinMaxNode( SwFrameFormat* pNd, SwMinMaxNodeArgs* pIn )
  * Changing this method very likely requires changing of GetScalingOfSelectedText
  */
 void SwTextNode::GetMinMaxSize( sal_uLong nIndex, sal_uLong& rMin, sal_uLong &rMax,
-                               sal_uLong& rAbsMin, OutputDevice* pOut ) const
+                               sal_uLong& rAbsMin ) const
 {
     SwViewShell const * pSh = GetDoc()->getIDocumentLayoutAccess().GetCurrentViewShell();
+    OutputDevice* pOut = nullptr;
+    if( pSh )
+        pOut = pSh->GetWin();
     if( !pOut )
-    {
-        if( pSh )
-            pOut = pSh->GetWin();
-        if( !pOut )
-            pOut = Application::GetDefaultDevice();
-    }
+        pOut = Application::GetDefaultDevice();
 
     MapMode aOldMap( pOut->GetMapMode() );
     pOut->SetMapMode( MapMode( MAP_TWIP ) );
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index fb4235c..b0d349c 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -1340,11 +1340,10 @@ lcl_GetTextAttrs(
 }
 
 ::std::vector<SwTextAttr *>
-SwTextNode::GetTextAttrsAt(sal_Int32 const nIndex, RES_TXTATR const nWhich,
-                        enum GetTextAttrMode const eMode) const
+SwTextNode::GetTextAttrsAt(sal_Int32 const nIndex, RES_TXTATR const nWhich) const
 {
     ::std::vector<SwTextAttr *> ret;
-    lcl_GetTextAttrs(& ret, nullptr, m_pSwpHints, nIndex, nWhich, eMode);
+    lcl_GetTextAttrs(& ret, nullptr, m_pSwpHints, nIndex, nWhich, DEFAULT);
     return ret;
 }
 
@@ -3214,7 +3213,7 @@ bool SwTextNode::GetExpandText( SwTextNode& rDestNd, const SwIndex* pDestIdx,
 }
 
 OUString SwTextNode::GetRedlineText( sal_Int32 nIdx, sal_Int32 nLen,
-                                   bool bExpandFields, bool bWithNum ) const
+                                   bool bExpandFields ) const
 {
     std::vector<sal_Int32> aRedlArr;
     const SwDoc* pDoc = GetDoc();
@@ -3284,8 +3283,6 @@ OUString SwTextNode::GetRedlineText( sal_Int32 nIdx, sal_Int32 nLen,
     }
     Replace0xFF(*this, aText, nTextStt, aText.getLength(), bExpandFields);
 
-    if( bWithNum )
-        aText.insert(0, GetNumString());
     return aText.makeStringAndClear();
 }
 
@@ -4896,11 +4893,11 @@ bool SwTextNode::CompareParRsid( const SwTextNode &rTextNode ) const
 }
 
 bool SwTextNode::CompareRsid( const SwTextNode &rTextNode, sal_Int32 nStt1, sal_Int32 nStt2,
-                            sal_Int32 nEnd1, sal_Int32 nEnd2 ) const
+                            sal_Int32 nEnd1 ) const
 
 {
     sal_uInt32 nThisRsid = GetRsid( nStt1, nEnd1 ? nEnd1 : nStt1 );
-    sal_uInt32 nRsid = rTextNode.GetRsid( nStt2, nEnd2 ? nEnd2 : nStt2 );
+    sal_uInt32 nRsid = rTextNode.GetRsid( nStt2, nStt2 );
 
     return nThisRsid == nRsid;
 }
diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx
index f60c16a..fb22f18 100644
--- a/sw/source/filter/writer/writer.cxx
+++ b/sw/source/filter/writer/writer.cxx
@@ -337,17 +337,14 @@ void Writer::PutNumFormatFontsInAttrPool()
                 }
 }
 
-void Writer::PutEditEngFontsInAttrPool( bool bIncl_CJK_CTL )
+void Writer::PutEditEngFontsInAttrPool()
 {
     SfxItemPool& rPool = pDoc->GetAttrPool();
     if( rPool.GetSecondaryPool() )
     {
         _AddFontItems( rPool, EE_CHAR_FONTINFO );
-        if( bIncl_CJK_CTL )
-        {
-            _AddFontItems( rPool, EE_CHAR_FONTINFO_CJK );
-            _AddFontItems( rPool, EE_CHAR_FONTINFO_CTL );
-        }
+        _AddFontItems( rPool, EE_CHAR_FONTINFO_CJK );
+        _AddFontItems( rPool, EE_CHAR_FONTINFO_CTL );
     }
 }
 
diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx
index a097e03..a64a3bd 100644
--- a/sw/source/ui/dialog/swdlgfact.cxx
+++ b/sw/source/ui/dialog/swdlgfact.cxx
@@ -237,9 +237,9 @@ void AbstractSwInsertDBColAutoPilot_Impl::DataToDoc( const uno::Sequence< uno::A
     pDlg->DataToDoc(rSelection, rxSource, xConnection, xResultSet);
 }
 
-OString AbstractDropDownFieldDialog_Impl::GetWindowState( sal_uLong nMask  ) const
+OString AbstractDropDownFieldDialog_Impl::GetWindowState() const
 {
-    return pDlg->GetWindowState(nMask);
+    return pDlg->GetWindowState();
 }
 
 void AbstractDropDownFieldDialog_Impl::SetWindowState( const OString& rStr )
@@ -347,9 +347,9 @@ OUString AbstractSwFieldDlg_Impl::GetText() const
     return pDlg->GetText();
 }
 
-void AbstractSwFieldDlg_Impl::Start( bool bShowl )
+void AbstractSwFieldDlg_Impl::Start()
 {
-    pDlg->Start( bShowl );
+    pDlg->Start();
 }
 
 void AbstractSwFieldDlg_Impl::Initialize(SfxChildWinInfo *pInfo)
@@ -409,9 +409,9 @@ void AbstractFieldInputDlg_Impl::SetWindowState( const OString& rStr )
     pDlg->SetWindowState( rStr );
 }
 
-OString AbstractFieldInputDlg_Impl::GetWindowState( sal_uLong nMask ) const
+OString AbstractFieldInputDlg_Impl::GetWindowState() const
 {
-    return pDlg->GetWindowState( nMask );
+    return pDlg->GetWindowState();
 }
 
 void AbstractFieldInputDlg_Impl::EndDialog(long n)
@@ -1085,10 +1085,9 @@ AbstractMarkFloatDlg * SwAbstractDialogFactory_Impl::CreateIndexMarkFloatDlg(
                                                        SfxBindings* pBindings,
                                                        SfxChildWindow* pChild,
                                                        vcl::Window *pParent,
-                                                       SfxChildWinInfo* pInfo,
-                                                       bool bNew )
+                                                       SfxChildWinInfo* pInfo )
 {
-    VclPtr<SwIndexMarkFloatDlg> pDlg = VclPtr<SwIndexMarkFloatDlg>::Create(pBindings, pChild, pParent, pInfo, bNew);
+    VclPtr<SwIndexMarkFloatDlg> pDlg = VclPtr<SwIndexMarkFloatDlg>::Create(pBindings, pChild, pParent, pInfo, true/*bNew*/);
     return new AbstractIndexMarkFloatDlg_Impl(pDlg);
 }
 
@@ -1096,10 +1095,9 @@ AbstractMarkFloatDlg * SwAbstractDialogFactory_Impl::CreateAuthMarkFloatDlg(
                                                        SfxBindings* pBindings,
                                                        SfxChildWindow* pChild,
                                                        vcl::Window *pParent,
-                                                       SfxChildWinInfo* pInfo,
-                                                       bool bNew)
+                                                       SfxChildWinInfo* pInfo)
 {
-    VclPtr<SwAuthMarkFloatDlg> pDlg = VclPtr<SwAuthMarkFloatDlg>::Create( pBindings, pChild, pParent, pInfo, bNew );
+    VclPtr<SwAuthMarkFloatDlg> pDlg = VclPtr<SwAuthMarkFloatDlg>::Create( pBindings, pChild, pParent, pInfo, true/*bNew*/ );
     return new AbstractAuthMarkFloatDlg_Impl( pDlg );
 }
 
diff --git a/sw/source/ui/dialog/swdlgfact.hxx b/sw/source/ui/dialog/swdlgfact.hxx
index 45690eb..47d27b3 100644
--- a/sw/source/ui/dialog/swdlgfact.hxx
+++ b/sw/source/ui/dialog/swdlgfact.hxx
@@ -156,8 +156,8 @@ class AbstractSwInsertDBColAutoPilot_Impl :  public AbstractSwInsertDBColAutoPil
 class AbstractDropDownFieldDialog_Impl : public AbstractDropDownFieldDialog
 {
     DECL_ABSTDLG_BASE(AbstractDropDownFieldDialog_Impl, sw::DropDownFieldDialog)
-    virtual OString GetWindowState( sal_uLong nMask = WINDOWSTATE_MASK_ALL ) const override; //this method inherit from SystemWindow
-    virtual void         SetWindowState( const OString& rStr ) override;//this method inherit from SystemWindow
+    virtual OString GetWindowState() const override; //this method inherit from SystemWindow
+    virtual void    SetWindowState( const OString& rStr ) override; //this method inherit from SystemWindow
 };
 
 class AbstractSwLabDlg_Impl  : public AbstractSwLabDlg
@@ -200,7 +200,7 @@ class AbstractSwFieldDlg_Impl : public AbstractSwFieldDlg
         //From class Window.
     virtual void                SetText( const OUString& rStr ) override;
     virtual OUString            GetText() const override;
-    virtual void                Start( bool bShow = true ) override;  //this method from SfxTabDialog
+    virtual void                Start() override;  //this method from SfxTabDialog
     virtual void                ShowReferencePage() override;
     virtual void                Initialize(SfxChildWinInfo *pInfo) override;
     virtual void                ReInitDlg() override;
@@ -236,9 +236,9 @@ class AbstractFieldInputDlg_Impl : public AbstractFieldInputDlg
 {
     DECL_ABSTDLG_BASE(AbstractFieldInputDlg_Impl,SwFieldInputDlg)
     //from class SalFrame
-    virtual void         SetWindowState( const OString & rStr ) override ;
-    virtual OString GetWindowState( sal_uLong nMask = WINDOWSTATE_MASK_ALL ) const override ;
-    virtual void EndDialog(long) override;
+    virtual void     SetWindowState( const OString & rStr ) override;
+    virtual OString  GetWindowState() const override;
+    virtual void     EndDialog(long) override;
 };
 
 class SwInsFootNoteDlg;
@@ -480,14 +480,12 @@ public:
                                                        SfxBindings* pBindings,
                                                        SfxChildWindow* pChild,
                                                        vcl::Window *pParent,
-                                                       SfxChildWinInfo* pInfo,
-                                                       bool bNew=true) override;
+                                                       SfxChildWinInfo* pInfo) override;
     virtual AbstractMarkFloatDlg*       CreateAuthMarkFloatDlg(
                                                        SfxBindings* pBindings,
                                                        SfxChildWindow* pChild,
                                                        vcl::Window *pParent,
-                                                       SfxChildWinInfo* pInfo,
-                                                       bool bNew=true) override;
+                                                       SfxChildWinInfo* pInfo) override;
     virtual VclAbstractDialog *         CreateIndexMarkModalDlg(
                                                 vcl::Window *pParent, SwWrtShell& rSh, SwTOXMark* pCurTOXMark ) override;
 
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index b583923..85c283c 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -715,10 +715,9 @@ bool SwDBManager::GetTableNames(ListBox* pListBox, const OUString& rDBName)
 
 // fill Listbox with column names of a database
 void SwDBManager::GetColumnNames(ListBox* pListBox,
-                             const OUString& rDBName, const OUString& rTableName, bool bAppend)
+                             const OUString& rDBName, const OUString& rTableName)
 {
-    if (!bAppend)
-        pListBox->Clear();
+    pListBox->Clear();
     SwDBData aData;
     aData.sDataSource = rDBName;
     aData.sCommand = rTableName;
@@ -733,7 +732,7 @@ void SwDBManager::GetColumnNames(ListBox* pListBox,
         xConnection = RegisterConnection( sDBName );
     }
 
-    GetColumnNames(pListBox, xConnection, rTableName, bAppend);
+    GetColumnNames(pListBox, xConnection, rTableName);
 }
 
 void SwDBManager::GetColumnNames(ListBox* pListBox,
@@ -2250,7 +2249,7 @@ bool SwDBManager::FillCalcWithMergeData( SvNumberFormatter *pDocFormatter,
 }
 
 bool SwDBManager::ToNextRecord(
-    const OUString& rDataSource, const OUString& rCommand, sal_Int32 /*nCommandType*/)
+    const OUString& rDataSource, const OUString& rCommand)
 {
     SwDSParam* pFound = nullptr;
     if(pImpl->pMergeData &&
@@ -2370,7 +2369,7 @@ bool SwDBManager::ToRecordId(sal_Int32 nSet)
 }
 
 bool SwDBManager::OpenDataSource(const OUString& rDataSource, const OUString& rTableOrQuery,
-            sal_Int32 nCommandType, bool bCreate)
+            sal_Int32 nCommandType)
 {
     SwDBData aData;
     aData.sDataSource = rDataSource;
@@ -2385,11 +2384,6 @@ bool SwDBManager::OpenDataSource(const OUString& rDataSource, const OUString& rT
     uno::Reference< sdbc::XConnection> xConnection;
     if(pParam && pParam->xConnection.is())
         pFound->xConnection = pParam->xConnection;
-    else if(bCreate)
-    {
-        OUString sDataSource(rDataSource);
-        pFound->xConnection = RegisterConnection( sDataSource );
-    }
     if(pFound->xConnection.is())
     {
         try
diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx
index a09c6c9..0f28c5d 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -965,22 +965,20 @@ void SwPostItMgr::AutoScroll(const SwSidebarWin* pPostIt,const unsigned long aPa
     }
 }
 
-void SwPostItMgr::MakeVisible(const SwSidebarWin* pPostIt,long aPage )
+void SwPostItMgr::MakeVisible(const SwSidebarWin* pPostIt )
 {
-    if (aPage == -1)
+    long aPage = -1;
+    // we don't know the page yet, lets find it ourselves
+    for (unsigned long n=0;n<mPages.size();n++)
     {
-        // we don't know the page yet, lets find it ourselves
-        for (unsigned long n=0;n<mPages.size();n++)
+        if (mPages[n]->mList->size()>0)
         {
-            if (mPages[n]->mList->size()>0)
+            for(SwSidebarItem_iterator i = mPages[n]->mList->begin(); i != mPages[n]->mList->end(); ++i)
             {
-                for(SwSidebarItem_iterator i = mPages[n]->mList->begin(); i != mPages[n]->mList->end(); ++i)
+                if ((*i)->pPostIt==pPostIt)
                 {
-                    if ((*i)->pPostIt==pPostIt)
-                    {
-                        aPage = n+1;
-                        break;
-                    }
+                    aPage = n+1;
+                    break;
                 }
             }
         }


More information about the Libreoffice-commits mailing list