From 6cb9e6dad798ec59f055aebe84a9c4a21e4be40d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 3 Mar 2017 20:57:02 +0100 Subject: Remove redundant 'inline' keyword ...from function definitions occurring within class definitions. Done with a rewriting Clang plugin (to be pushed later). Change-Id: I9c6f2818a57ccdb361548895a7743107cbacdff8 Reviewed-on: https://gerrit.libreoffice.org/34874 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sw/inc/AnnotationWin.hxx | 2 +- sw/inc/SidebarWin.hxx | 30 +-- sw/inc/SwNumberTree.hxx | 6 +- sw/inc/accessibilityoptions.hxx | 12 +- sw/inc/accmap.hxx | 2 +- sw/inc/anchoreddrawobject.hxx | 4 +- sw/inc/anchoredobject.hxx | 14 +- sw/inc/authfld.hxx | 2 +- sw/inc/authratr.hxx | 2 +- sw/inc/ccoll.hxx | 2 +- sw/inc/cellatr.hxx | 8 +- sw/inc/crsrsh.hxx | 4 +- sw/inc/dbfld.hxx | 14 +- sw/inc/dbmgr.hxx | 16 +- sw/inc/dcontact.hxx | 4 +- sw/inc/doc.hxx | 6 +- sw/inc/docary.hxx | 6 +- sw/inc/docsh.hxx | 4 +- sw/inc/docufld.hxx | 20 +- sw/inc/edglbldc.hxx | 4 +- sw/inc/expfld.hxx | 4 +- sw/inc/fldbas.hxx | 12 +- sw/inc/flddat.hxx | 4 +- sw/inc/fmtcol.hxx | 4 +- sw/inc/fmtflcnt.hxx | 4 +- sw/inc/fmtftntx.hxx | 2 +- sw/inc/fmtpdsc.hxx | 2 +- sw/inc/fmtrfmrk.hxx | 4 +- sw/inc/format.hxx | 8 +- sw/inc/frmfmt.hxx | 4 +- sw/inc/grfatr.hxx | 8 +- sw/inc/ndnotxt.hxx | 2 +- sw/inc/ndtxt.hxx | 22 +- sw/inc/node.hxx | 24 +- sw/inc/numrule.hxx | 2 +- sw/inc/pagepreviewlayout.hxx | 12 +- sw/inc/pam.hxx | 4 +- sw/inc/paratr.hxx | 24 +- sw/inc/redline.hxx | 2 +- sw/inc/swmodule.hxx | 4 +- sw/inc/swregion.hxx | 4 +- sw/inc/txatbase.hxx | 2 +- sw/inc/txtftn.hxx | 2 +- sw/inc/txttxmrk.hxx | 2 +- sw/inc/view.hxx | 24 +- sw/inc/viewopt.hxx | 172 ++++++------ sw/inc/viewsh.hxx | 18 +- sw/inc/viscrs.hxx | 2 +- sw/source/core/access/acccontext.hxx | 12 +- sw/source/core/access/accframe.hxx | 8 +- sw/source/core/access/accfrmobjslist.hxx | 26 +- sw/source/core/access/accmap.cxx | 34 +-- sw/source/core/access/acctable.cxx | 4 +- sw/source/core/access/acctable.hxx | 2 +- sw/source/core/crsr/overlayrangesoutline.hxx | 2 +- sw/source/core/doc/CntntIdxStore.cxx | 4 +- sw/source/core/doc/docedt.cxx | 8 +- sw/source/core/doc/number.cxx | 8 +- sw/source/core/docnode/section.cxx | 2 +- sw/source/core/edit/edlingu.cxx | 20 +- sw/source/core/inc/UndoNumbering.hxx | 2 +- sw/source/core/inc/anchoredobjectposition.hxx | 16 +- sw/source/core/inc/dview.hxx | 2 +- sw/source/core/inc/flowfrm.hxx | 4 +- sw/source/core/inc/flyfrm.hxx | 2 +- sw/source/core/inc/flyfrms.hxx | 10 +- sw/source/core/inc/fntcache.hxx | 22 +- sw/source/core/inc/frame.hxx | 20 +- sw/source/core/inc/frminf.hxx | 2 +- sw/source/core/inc/frmtool.hxx | 12 +- sw/source/core/inc/ftnboss.hxx | 4 +- sw/source/core/inc/ftnfrm.hxx | 10 +- sw/source/core/inc/ifinishedthreadlistener.hxx | 4 +- sw/source/core/inc/layact.hxx | 2 +- sw/source/core/inc/objectformatter.hxx | 6 +- sw/source/core/inc/observablethread.hxx | 4 +- sw/source/core/inc/pagefrm.hxx | 4 +- sw/source/core/inc/scriptinfo.hxx | 8 +- sw/source/core/inc/sectfrm.hxx | 10 +- sw/source/core/inc/swcache.hxx | 22 +- sw/source/core/inc/swfntcch.hxx | 8 +- sw/source/core/inc/swfont.hxx | 78 +++--- sw/source/core/inc/threadmanager.hxx | 4 +- sw/source/core/inc/txmsrt.hxx | 4 +- sw/source/core/inc/txtfrm.hxx | 74 +++--- sw/source/core/inc/viewimp.hxx | 2 +- sw/source/core/inc/wrong.hxx | 20 +- sw/source/core/layout/objectformatter.cxx | 14 +- sw/source/core/text/atrhndl.hxx | 8 +- sw/source/core/text/frmcrsr.cxx | 6 +- sw/source/core/text/frmform.cxx | 6 +- sw/source/core/text/frmpaint.cxx | 10 +- sw/source/core/text/guess.hxx | 2 +- sw/source/core/text/inftxt.hxx | 354 ++++++++++++------------- sw/source/core/text/itrform2.cxx | 2 +- sw/source/core/text/itrpaint.hxx | 8 +- sw/source/core/text/itrtxt.hxx | 90 +++---- sw/source/core/text/pordrop.hxx | 30 +-- sw/source/core/text/porexp.hxx | 4 +- sw/source/core/text/porfld.hxx | 50 ++-- sw/source/core/text/porfly.hxx | 16 +- sw/source/core/text/porglue.hxx | 4 +- sw/source/core/text/porhyph.hxx | 2 +- sw/source/core/text/porlay.hxx | 158 +++++------ sw/source/core/text/porlin.hxx | 102 +++---- sw/source/core/text/pormulti.cxx | 2 +- sw/source/core/text/pormulti.hxx | 52 ++-- sw/source/core/text/porref.hxx | 2 +- sw/source/core/text/porrst.hxx | 4 +- sw/source/core/text/portab.hxx | 20 +- sw/source/core/text/portox.hxx | 2 +- sw/source/core/text/portxt.hxx | 4 +- sw/source/core/text/redlnitr.hxx | 18 +- sw/source/core/text/txtcache.hxx | 6 +- sw/source/core/text/txtpaint.hxx | 6 +- sw/source/core/text/widorp.hxx | 2 +- sw/source/core/txtnode/fntcap.cxx | 10 +- sw/source/core/unocore/XMLRangeHelper.hxx | 2 +- sw/source/core/unocore/unocoll.cxx | 12 +- sw/source/core/unocore/unodraw.cxx | 4 +- sw/source/filter/html/htmltab.cxx | 26 +- sw/source/filter/html/swhtml.hxx | 6 +- sw/source/filter/ww8/wrtw8nds.cxx | 2 +- sw/source/filter/xml/xmltbli.hxx | 2 +- sw/source/ui/envelp/envprt.hxx | 2 +- sw/source/ui/envelp/labprt.hxx | 2 +- sw/source/ui/envelp/swuilabimp.hxx | 4 +- sw/source/ui/fldui/fldpage.hxx | 4 +- sw/source/uibase/docvw/AnchorOverlayObject.hxx | 8 +- sw/source/uibase/docvw/OverlayRanges.hxx | 2 +- sw/source/uibase/docvw/ShadowOverlayObject.hxx | 2 +- sw/source/uibase/inc/basesh.hxx | 6 +- sw/source/uibase/inc/caption.hxx | 40 +-- sw/source/uibase/inc/chldwrap.hxx | 4 +- sw/source/uibase/inc/drawbase.hxx | 4 +- sw/source/uibase/inc/edtwin.hxx | 8 +- sw/source/uibase/inc/frmmgr.hxx | 4 +- sw/source/uibase/inc/frmpage.hxx | 2 +- sw/source/uibase/inc/mailmrge.hxx | 2 +- sw/source/uibase/inc/numfmtlb.hxx | 6 +- sw/source/uibase/inc/optpage.hxx | 4 +- sw/source/uibase/inc/pview.hxx | 8 +- sw/source/uibase/inc/redlndlg.hxx | 6 +- sw/source/uibase/inc/uivwimp.hxx | 6 +- sw/source/uibase/inc/wrap.hxx | 6 +- sw/source/uibase/wrtsh/move.cxx | 4 +- 146 files changed, 1104 insertions(+), 1104 deletions(-) (limited to 'sw') diff --git a/sw/inc/AnnotationWin.hxx b/sw/inc/AnnotationWin.hxx index 69e817c60d34..5b2c186dae67 100644 --- a/sw/inc/AnnotationWin.hxx +++ b/sw/inc/AnnotationWin.hxx @@ -44,7 +44,7 @@ class SwAnnotationWin : public sw::sidebarwindows::SwSidebarWin virtual void SetPostItText() override; virtual void Delete() override; virtual void GotoPos() override; - inline const SwPostItField* GetPostItField() { return mpField; } + const SwPostItField* GetPostItField() { return mpField; } void UpdateText(const OUString& aText); virtual OUString GetAuthor() override; diff --git a/sw/inc/SidebarWin.hxx b/sw/inc/SidebarWin.hxx index af4e5a41d4dc..95ac4fb1ab31 100644 --- a/sw/inc/SidebarWin.hxx +++ b/sw/inc/SidebarWin.hxx @@ -80,21 +80,21 @@ class SwSidebarWin : public vcl::Window void TranslateTopPosition(const long aAmount); void CheckMetaText(); - inline Point GetAnchorPos() { return mAnchorRect.Pos(); } - inline const SwRect& GetAnchorRect() { return mAnchorRect; } - inline bool IsAnchorRectChanged() { return mbAnchorRectChanged; } - inline void ResetAnchorRectChanged() { mbAnchorRectChanged = false; } - inline const std::vector& GetAnnotationTextRanges() { return maAnnotationTextRanges; } + Point GetAnchorPos() { return mAnchorRect.Pos(); } + const SwRect& GetAnchorRect() { return mAnchorRect; } + bool IsAnchorRectChanged() { return mbAnchorRectChanged; } + void ResetAnchorRectChanged() { mbAnchorRectChanged = false; } + const std::vector& GetAnnotationTextRanges() { return maAnnotationTextRanges; } SwEditWin& EditWin(); - inline SwSidebarItem& GetSidebarItem() { return mrSidebarItem; } + SwSidebarItem& GetSidebarItem() { return mrSidebarItem; } - inline OutlinerView* GetOutlinerView() { return mpOutlinerView;} + OutlinerView* GetOutlinerView() { return mpOutlinerView;} bool HasScrollbar() const; bool IsScrollbarVisible() const; - inline ScrollBar* Scrollbar() { return mpVScrollbar; } - inline ::sw::sidebarwindows::AnchorOverlayObject* Anchor() { return mpAnchor;} - inline ::sw::sidebarwindows::ShadowOverlayObject* Shadow() { return mpShadow;} - inline ::sw::overlay::OverlayRanges* TextRange() { return mpTextRangeOverlay;} + ScrollBar* Scrollbar() { return mpVScrollbar; } + ::sw::sidebarwindows::AnchorOverlayObject* Anchor() { return mpAnchor;} + ::sw::sidebarwindows::ShadowOverlayObject* Shadow() { return mpShadow;} + ::sw::overlay::OverlayRanges* TextRange() { return mpTextRangeOverlay;} long GetPostItTextHeight(); @@ -176,7 +176,7 @@ class SwSidebarWin : public vcl::Window } DECL_LINK( WindowEventListener, VclWindowEvent&, void ); - inline bool IsMouseOverSidebarWin() const { return mbMouseOver; } + bool IsMouseOverSidebarWin() const { return mbMouseOver; } void SetLanguage(const SvxLanguageItem& rNewItem); @@ -207,9 +207,9 @@ class SwSidebarWin : public vcl::Window DECL_LINK(ScrollHdl, ScrollBar*, void); DECL_LINK(DeleteHdl, void*, void); - inline SwView& DocView() { return mrView;} - inline SwPostItMgr& Mgr() { return mrMgr; } - inline Outliner* Engine() { return mpOutliner;} + SwView& DocView() { return mrView;} + SwPostItMgr& Mgr() { return mrMgr; } + Outliner* Engine() { return mpOutliner;} private: SwSidebarWin* GetTopReplyNote(); diff --git a/sw/inc/SwNumberTree.hxx b/sw/inc/SwNumberTree.hxx index 6be2c8b9652b..166ad1fd18ce 100644 --- a/sw/inc/SwNumberTree.hxx +++ b/sw/inc/SwNumberTree.hxx @@ -148,7 +148,7 @@ public: @return the parent */ - inline SwNumberTreeNode* GetParent() const + SwNumberTreeNode* GetParent() const { return mpParent; } @@ -309,7 +309,7 @@ public: Usage: on state change its needed to invalidate the complete numbering tree due to wide influence of this change. */ - inline void InvalidateAndNotifyTree() + void InvalidateAndNotifyTree() { if ( GetRoot() ) { @@ -462,7 +462,7 @@ protected: Usage: on state change the children have to be invalidated */ - inline void InvalidateChildren() + void InvalidateChildren() { SetLastValid( mChildren.end() ); } diff --git a/sw/inc/accessibilityoptions.hxx b/sw/inc/accessibilityoptions.hxx index ce3a64564254..9e54e7449f73 100644 --- a/sw/inc/accessibilityoptions.hxx +++ b/sw/inc/accessibilityoptions.hxx @@ -32,14 +32,14 @@ struct SwAccessibilityOptions bIsStopAnimatedText(false), bIsStopAnimatedGraphics(false) {} - inline bool IsAlwaysAutoColor() const { return bIsAlwaysAutoColor; } - inline void SetAlwaysAutoColor( bool b ) { bIsAlwaysAutoColor = b; } + bool IsAlwaysAutoColor() const { return bIsAlwaysAutoColor; } + void SetAlwaysAutoColor( bool b ) { bIsAlwaysAutoColor = b; } - inline bool IsStopAnimatedGraphics() const { return bIsStopAnimatedText;} - inline void SetStopAnimatedGraphics( bool b ) { bIsStopAnimatedText = b; } + bool IsStopAnimatedGraphics() const { return bIsStopAnimatedText;} + void SetStopAnimatedGraphics( bool b ) { bIsStopAnimatedText = b; } - inline bool IsStopAnimatedText() const { return bIsStopAnimatedGraphics; } - inline void SetStopAnimatedText( bool b ) { bIsStopAnimatedGraphics = b;} + bool IsStopAnimatedText() const { return bIsStopAnimatedGraphics; } + void SetStopAnimatedText( bool b ) { bIsStopAnimatedGraphics = b;} }; #endif diff --git a/sw/inc/accmap.hxx b/sw/inc/accmap.hxx index 814b210460ed..9d155dcb2edb 100644 --- a/sw/inc/accmap.hxx +++ b/sw/inc/accmap.hxx @@ -168,7 +168,7 @@ public: SwAccessibleContext *pParentImpl, bool bCreate = true ); - inline SwViewShell* GetShell() const + SwViewShell* GetShell() const { return mpVSh; } diff --git a/sw/inc/anchoreddrawobject.hxx b/sw/inc/anchoreddrawobject.hxx index 38561d79e8a8..8c0c36e46c2f 100644 --- a/sw/inc/anchoreddrawobject.hxx +++ b/sw/inc/anchoreddrawobject.hxx @@ -128,7 +128,7 @@ class SW_DLLPUBLIC SwAnchoredDrawObject : public SwAnchoredObject // declaration of pure virtual methods of base class virtual void MakeObjPos() override; virtual void InvalidateObjPos() override; - inline bool IsValidPos() const + bool IsValidPos() const { return mbValidPos; } @@ -172,7 +172,7 @@ class SW_DLLPUBLIC SwAnchoredDrawObject : public SwAnchoredObject const SwRect& _rRect, PrepareHint _eHint ) override; - inline bool NotYetPositioned() const + bool NotYetPositioned() const { return mbNotYetPositioned; } diff --git a/sw/inc/anchoredobject.hxx b/sw/inc/anchoredobject.hxx index a91b530425bc..3b734e928d54 100644 --- a/sw/inc/anchoredobject.hxx +++ b/sw/inc/anchoredobject.hxx @@ -120,7 +120,7 @@ class SW_DLLPUBLIC SwAnchoredObject @author OD */ friend class SwObjPositioningInProgress; - inline void SetPositioningInProgress( const bool _bPosInProgress ) + void SetPositioningInProgress( const bool _bPosInProgress ) { mbPositioningInProgress = _bPosInProgress; } @@ -316,7 +316,7 @@ class SW_DLLPUBLIC SwAnchoredObject @author OD */ - inline bool IsPositioningInProgress() const + bool IsPositioningInProgress() const { return mbPositioningInProgress; } @@ -380,7 +380,7 @@ class SW_DLLPUBLIC SwAnchoredObject */ const SwRect& GetObjRectWithSpaces() const; - inline void InvalidateObjRectWithSpaces() const + void InvalidateObjRectWithSpaces() const { mbObjRectWithSpacesValid = false; } @@ -399,11 +399,11 @@ class SW_DLLPUBLIC SwAnchoredObject bool ConsiderForTextWrap() const; void SetConsiderForTextWrap( const bool _bConsiderForTextWrap ); bool PositionLocked() const; - inline void LockPosition() + void LockPosition() { mbPositionLocked = true; } - inline void UnlockPosition() + void UnlockPosition() { if ( !mbKeepPositionLockedForSection ) { @@ -411,7 +411,7 @@ class SW_DLLPUBLIC SwAnchoredObject } } - inline void SetKeepPosLocked( const bool _bKeepPosLocked ) + void SetKeepPosLocked( const bool _bKeepPosLocked ) { mbKeepPositionLockedForSection = _bKeepPosLocked; } @@ -423,7 +423,7 @@ class SW_DLLPUBLIC SwAnchoredObject void SetClearedEnvironment( const bool _bClearedEnvironment ); // reset booleans for layout process - inline void ResetLayoutProcessBools() + void ResetLayoutProcessBools() { mbPositioningInProgress = false; mbConsiderForTextWrap = false; diff --git a/sw/inc/authfld.hxx b/sw/inc/authfld.hxx index fb345dba02b3..2696ef619b26 100644 --- a/sw/inc/authfld.hxx +++ b/sw/inc/authfld.hxx @@ -83,7 +83,7 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhichId ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhichId ) override; - inline void SetDoc(SwDoc* pNewDoc) { m_pDoc = pNewDoc; } + void SetDoc(SwDoc* pNewDoc) { m_pDoc = pNewDoc; } SwDoc* GetDoc(){ return m_pDoc; } void RemoveField(sal_IntPtr nHandle); sal_IntPtr AddField(const OUString& rFieldContents); diff --git a/sw/inc/authratr.hxx b/sw/inc/authratr.hxx index 85873104a7e6..814e914f3f9d 100644 --- a/sw/inc/authratr.hxx +++ b/sw/inc/authratr.hxx @@ -33,7 +33,7 @@ public: AuthorCharAttr(); - inline bool operator == ( const AuthorCharAttr& rAttr ) const + bool operator == ( const AuthorCharAttr& rAttr ) const { return nItemId == rAttr.nItemId && nAttr == rAttr.nAttr && nColor == rAttr.nColor; diff --git a/sw/inc/ccoll.hxx b/sw/inc/ccoll.hxx index d2d02a99ded3..b8115e1169b2 100644 --- a/sw/inc/ccoll.hxx +++ b/sw/inc/ccoll.hxx @@ -57,7 +57,7 @@ public: virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual bool operator==( const SfxPoolItem& ) const override; - static inline const CommandStruct* GetCmds() { return aCmds; } + static const CommandStruct* GetCmds() { return aCmds; } OUString GetStyle(sal_uInt16 nPos) const; void SetStyle(const OUString* pStyle, sal_uInt16 nPos); diff --git a/sw/inc/cellatr.hxx b/sw/inc/cellatr.hxx index 36e0fc5e0f7c..af49f782070a 100644 --- a/sw/inc/cellatr.hxx +++ b/sw/inc/cellatr.hxx @@ -39,7 +39,7 @@ public: virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; - inline SwTableBoxNumFormat& operator=( const SwTableBoxNumFormat& rAttr ) + SwTableBoxNumFormat& operator=( const SwTableBoxNumFormat& rAttr ) { SetValue( rAttr.GetValue() ); bAuto = rAttr.bAuto; @@ -59,8 +59,8 @@ public: virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; - inline const SwModify* GetDefinedIn() const { return pDefinedIn; } - inline void ChgDefinedIn( const SwModify* pNew ) + const SwModify* GetDefinedIn() const { return pDefinedIn; } + void ChgDefinedIn( const SwModify* pNew ) { pDefinedIn = const_cast(pNew); } // BoxAttribut -> BoxStartNode virtual const SwNode* GetNodeOfFormula() const override; @@ -84,7 +84,7 @@ public: virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; - inline SwTableBoxValue& operator=( const SwTableBoxValue& rCmp ) + SwTableBoxValue& operator=( const SwTableBoxValue& rCmp ) { nValue = rCmp.nValue; return *this; diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx index ef2e9539859c..554a6c37c919 100644 --- a/sw/inc/crsrsh.hxx +++ b/sw/inc/crsrsh.hxx @@ -816,11 +816,11 @@ public: // remove all invalid cursors void ClearUpCursors(); - inline void SetMacroExecAllowed( const bool _bMacroExecAllowed ) + void SetMacroExecAllowed( const bool _bMacroExecAllowed ) { m_bMacroExecAllowed = _bMacroExecAllowed; } - inline bool IsMacroExecAllowed() + bool IsMacroExecAllowed() { return m_bMacroExecAllowed; } diff --git a/sw/inc/dbfld.hxx b/sw/inc/dbfld.hxx index 83cfdf733fd0..3bb687bed369 100644 --- a/sw/inc/dbfld.hxx +++ b/sw/inc/dbfld.hxx @@ -43,7 +43,7 @@ public: virtual OUString GetName() const override; virtual SwFieldType* Copy() const override; - inline void AddRef() { nRefCnt++; } + void AddRef() { nRefCnt++; } void ReleaseRef(); const OUString& GetColumnName() const {return sColumn;} @@ -93,9 +93,9 @@ public: inline void ChgBodyTextFlag( bool bIsInBody ); - inline bool IsInitialized() const { return bInitialized; } - inline void ClearInitialized() { bInitialized = false; } - inline void SetInitialized() { bInitialized = true; } + bool IsInitialized() const { return bInitialized; } + void ClearInitialized() { bInitialized = false; } + void SetInitialized() { bInitialized = true; } /// Get name. virtual OUString GetPar1() const override; @@ -104,7 +104,7 @@ public: void SetFieldCode(const OUString& rStr) { sFieldCode = rStr; } /// DBName - inline const SwDBData& GetDBData() const { return static_cast(GetTyp())->GetDBData(); } + const SwDBData& GetDBData() const { return static_cast(GetTyp())->GetDBData(); } virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override; @@ -133,8 +133,8 @@ protected: public: /// DBName - inline const SwDBData& GetRealDBData() const { return aDBData; } - inline SwDBData& GetRealDBData() { return aDBData; } + const SwDBData& GetRealDBData() const { return aDBData; } + SwDBData& GetRealDBData() { return aDBData; } SwDBData GetDBData(SwDoc* pDoc); void SetDBData(const SwDBData& rDBData); diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx index e1ad5f7a523f..e97d400267e6 100644 --- a/sw/inc/dbmgr.hxx +++ b/sw/inc/dbmgr.hxx @@ -129,7 +129,7 @@ struct SwDSParam : public SwDBData nSelectionIndex(0) {} - inline bool HasValidRecord() const + bool HasValidRecord() const { return( !bEndOfDB && xResultSet.is() ); } }; @@ -299,21 +299,21 @@ public: const SwXMailMerge * GetMailMergeEvtSrc() const { return pMergeEvtSrc; } void SetMailMergeEvtSrc( const SwXMailMerge *pSrc ) { pMergeEvtSrc = pSrc; } - inline bool IsMergeSilent() const { return bMergeSilent; } - inline void SetMergeSilent( bool bVal ) { bMergeSilent = bVal; } + bool IsMergeSilent() const { return bMergeSilent; } + void SetMergeSilent( bool bVal ) { bMergeSilent = bVal; } /// Merging of data records into fields. bool Merge( const SwMergeDescriptor& rMergeDesc ); void MergeCancel(); - inline bool IsMergeOk() { return MergeStatus::OK == m_aMergeStatus; }; - inline bool IsMergeError() { return MergeStatus::ERROR <= m_aMergeStatus; }; + bool IsMergeOk() { return MergeStatus::OK == m_aMergeStatus; }; + bool IsMergeError() { return MergeStatus::ERROR <= m_aMergeStatus; }; static std::shared_ptr PerformMailMerge(SwView* pView); /// Initialize data fields that lack name of database. - inline bool IsInitDBFields() const { return bInitDBFields; } - inline void SetInitDBFields(bool b) { bInitDBFields = b; } + bool IsInitDBFields() const { return bInitDBFields; } + void SetInitDBFields(bool b) { bInitDBFields = b; } /// Fill listbox with all table names of a database. bool GetTableNames(ListBox* pListBox, const OUString& rDBName ); @@ -340,7 +340,7 @@ public: const OUString& rTableName, const OUString& rColNm ); - inline bool IsInMerge() const { return bInMerge; } + bool IsInMerge() const { return bInMerge; } void ExecuteFormLetter(SwWrtShell& rSh, const css::uno::Sequence< css::beans::PropertyValue>& rProperties); diff --git a/sw/inc/dcontact.hxx b/sw/inc/dcontact.hxx index 351d59824f9f..fe2a7f0dfe17 100644 --- a/sw/inc/dcontact.hxx +++ b/sw/inc/dcontact.hxx @@ -363,11 +363,11 @@ class SwDrawContact final : public SwContact const SwFrame* GetAnchorFrame( const SdrObject* _pDrawObj = nullptr ) const; SwFrame* GetAnchorFrame( SdrObject* _pDrawObj = nullptr ); - inline const SwPageFrame* GetPageFrame() const + const SwPageFrame* GetPageFrame() const { return maAnchoredDrawObj.GetPageFrame(); } - inline SwPageFrame* GetPageFrame() + SwPageFrame* GetPageFrame() { return maAnchoredDrawObj.GetPageFrame(); } diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 458d3bda4578..6b013fcff94a 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -1032,7 +1032,7 @@ public: bool bMoveCursor = false ); // Query / set rules for Outline. - inline SwNumRule* GetOutlineNumRule() const + SwNumRule* GetOutlineNumRule() const { return mpOutlineRule; } @@ -1326,8 +1326,8 @@ public: ::sw::IShellCursorSupplier * GetIShellCursorSupplier(); // OLE 2.0-notification. - inline void SetOle2Link(const Link& rLink) {maOle2Link = rLink;} - inline const Link& GetOle2Link() const {return maOle2Link;} + void SetOle2Link(const Link& rLink) {maOle2Link = rLink;} + const Link& GetOle2Link() const {return maOle2Link;} // insert section (the ODF kind of section, not the nodesarray kind) SwSection * InsertSwSection(SwPaM const& rRange, SwSectionData &, diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx index 015ee47b047b..f9aa44231eca 100644 --- a/sw/inc/docary.hxx +++ b/sw/inc/docary.hxx @@ -157,9 +157,9 @@ public: virtual Value GetFormat(size_t idx) const override { return SwVectorModifyBase::operator[](idx); } - inline size_t GetPos(const SwFormat *p) const + size_t GetPos(const SwFormat *p) const { return SwVectorModifyBase::GetPos( static_cast( const_cast( p ) ) ); } - inline bool Contains(const SwFormat *p) const { + bool Contains(const SwFormat *p) const { Value p2 = dynamic_cast(const_cast(p)); return p2 != nullptr && SwVectorModifyBase::Contains(p2); } @@ -239,7 +239,7 @@ public: rangeFind( const value_type& x ) const; // So we can actually check for end() const_range_iterator rangeEnd() const { return m_TypeAndNameIndex.end(); } - inline const_iterator rangeProject( const_range_iterator const& position ) + const_iterator rangeProject( const_range_iterator const& position ) { return m_Array.project<0>( position ); } const value_type& operator[]( size_t index_ ) const diff --git a/sw/inc/docsh.hxx b/sw/inc/docsh.hxx index afc451f9eb95..f443db828551 100644 --- a/sw/inc/docsh.hxx +++ b/sw/inc/docsh.hxx @@ -192,8 +192,8 @@ public: void StateStyleSheet(SfxItemSet&, SwWrtShell* pSh = nullptr ); /// returns Doc. But be careful! - inline SwDoc* GetDoc() { return m_pDoc; } - inline const SwDoc* GetDoc() const { return m_pDoc; } + SwDoc* GetDoc() { return m_pDoc; } + const SwDoc* GetDoc() const { return m_pDoc; } IDocumentDeviceAccess& getIDocumentDeviceAccess(); IDocumentChartDataProviderAccess& getIDocumentChartDataProviderAccess(); diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx index b55fb6fa989d..d1ad7ecbf232 100644 --- a/sw/inc/docufld.hxx +++ b/sw/inc/docufld.hxx @@ -190,7 +190,7 @@ public: virtual OUString Expand() const override; virtual SwField* Copy() const override; - inline void SetExpansion(const OUString& rStr) { aContent = rStr; } + void SetExpansion(const OUString& rStr) { aContent = rStr; } virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override; @@ -216,7 +216,7 @@ public: virtual OUString Expand() const override; virtual SwField* Copy() const override; - inline void SetExpansion(const OUString& rStr) { aContent = rStr; } + void SetExpansion(const OUString& rStr) { aContent = rStr; } virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override; @@ -254,7 +254,7 @@ public: OUString Expand(sal_uInt16 nSubType, SvxNumType nFormat) const; virtual SwFieldType* Copy() const override; - inline void SetNumFormat( SvxNumType eFormat ) { nNumberingType = eFormat; } + void SetNumFormat( SvxNumType eFormat ) { nNumberingType = eFormat; } }; class SW_DLLPUBLIC SwDocStatField : public SwField @@ -285,7 +285,7 @@ public: virtual SwFieldType* Copy() const override; void SetHiddenFlag( bool bSetHidden ); - inline bool GetHiddenFlag() const { return bHidden; } + bool GetHiddenFlag() const { return bHidden; } }; class SwHiddenTextField : public SwField @@ -322,7 +322,7 @@ public: void Evaluate(SwDoc*); - inline void SetValue(bool bHidden) { bIsHidden = bHidden; } + void SetValue(bool bHidden) { bIsHidden = bHidden; } static OUString GetColumnName(const OUString& rName); static OUString GetDBName(const OUString& rName, SwDoc *pDoc); @@ -464,9 +464,9 @@ public: virtual SwField* Copy() const override; const DateTime& GetDateTime() const { return aDateTime; } - inline const Date GetDate() const { return Date(aDateTime.GetDate()); } - inline const tools::Time GetTime() const { return aDateTime.GetTime(); } - inline sal_uInt32 GetPostItId() const { return m_nPostItId; } + const Date GetDate() const { return Date(aDateTime.GetDate()); } + const tools::Time GetTime() const { return aDateTime.GetTime(); } + sal_uInt32 GetPostItId() const { return m_nPostItId; } /// Author virtual OUString GetPar1() const override; @@ -519,7 +519,7 @@ public: virtual OUString GetFieldName() const override; const OUString& GetName() const { return aName; } void SetName( const OUString& rName ) { aName = rName; } - inline void SetExpansion(const OUString& rStr) { aContent = rStr; } + void SetExpansion(const OUString& rStr) { aContent = rStr; } virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override; }; @@ -548,7 +548,7 @@ public: virtual sal_uInt16 GetSubType() const override; virtual void SetSubType(sal_uInt16 nSub) override; - inline void SetExpansion(const OUString& rStr) { aContent = rStr; } + void SetExpansion(const OUString& rStr) { aContent = rStr; } virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override; diff --git a/sw/inc/edglbldc.hxx b/sw/inc/edglbldc.hxx index 53ba14d7497a..2dabd5165643 100644 --- a/sw/inc/edglbldc.hxx +++ b/sw/inc/edglbldc.hxx @@ -54,9 +54,9 @@ public: sal_uLong GetDocPos() const { return nDocPos; } /// For sorting. - inline bool operator==( const SwGlblDocContent& rCmp ) const + bool operator==( const SwGlblDocContent& rCmp ) const { return GetDocPos() == rCmp.GetDocPos(); } - inline bool operator<( const SwGlblDocContent& rCmp ) const + bool operator<( const SwGlblDocContent& rCmp ) const { return GetDocPos() < rCmp.GetDocPos(); } }; diff --git a/sw/inc/expfld.hxx b/sw/inc/expfld.hxx index fb970dbde735..51cf4f6f1c75 100644 --- a/sw/inc/expfld.hxx +++ b/sw/inc/expfld.hxx @@ -241,8 +241,8 @@ public: inline bool IsSequenceField() const; /// Logical number, sequence fields. - inline void SetSeqNumber( sal_uInt16 n ) { nSeqNo = n; } - inline sal_uInt16 GetSeqNumber() const { return nSeqNo; } + void SetSeqNumber( sal_uInt16 n ) { nSeqNo = n; } + sal_uInt16 GetSeqNumber() const { return nSeqNo; } /// Query name only. virtual OUString GetPar1() const override; diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx index 35988c4dbccf..ed520543f4a3 100644 --- a/sw/inc/fldbas.hxx +++ b/sw/inc/fldbas.hxx @@ -394,17 +394,17 @@ protected: SwValueFieldType( const SwValueFieldType& rTyp ); public: - inline SwDoc* GetDoc() const { + SwDoc* GetDoc() const { return m_pDoc; } - inline void SetDoc(SwDoc* pNewDoc) { + void SetDoc(SwDoc* pNewDoc) { m_pDoc = pNewDoc; } - inline bool UseFormat() const { + bool UseFormat() const { return m_bUseFormat; } - inline void EnableFormat(bool bFormat = true) { + void EnableFormat(bool bFormat = true) { m_bUseFormat = bFormat; } @@ -428,14 +428,14 @@ public: virtual SwFieldType* ChgTyp( SwFieldType* ) override; virtual void SetLanguage(sal_uInt16 nLng) override; - inline SwDoc* GetDoc() const { + SwDoc* GetDoc() const { return static_cast(GetTyp())->GetDoc(); } virtual double GetValue() const; virtual void SetValue( const double& rVal ); - inline OUString ExpandValue(const double& rVal, sal_uInt32 nFormat, sal_uInt16 nLng) const { + OUString ExpandValue(const double& rVal, sal_uInt32 nFormat, sal_uInt16 nLng) const { return static_cast(GetTyp())->ExpandValue(rVal, nFormat, nLng); } diff --git a/sw/inc/flddat.hxx b/sw/inc/flddat.hxx index 0fd946059e5e..825f08b7ab89 100644 --- a/sw/inc/flddat.hxx +++ b/sw/inc/flddat.hxx @@ -60,8 +60,8 @@ public: virtual void SetPar2(const OUString& rStr) override; virtual OUString GetPar2() const override; - inline void SetOffset(long nMinutes) { nOffset = nMinutes; } - inline long GetOffset() const { return nOffset; } + void SetOffset(long nMinutes) { nOffset = nMinutes; } + long GetOffset() const { return nOffset; } Date GetDate() const; tools::Time GetTime() const; diff --git a/sw/inc/fmtcol.hxx b/sw/inc/fmtcol.hxx index 1f707cdcbf70..951084b2dc61 100644 --- a/sw/inc/fmtcol.hxx +++ b/sw/inc/fmtcol.hxx @@ -105,7 +105,7 @@ public: // to which the Paragraph Style is assigned. int GetAssignedOutlineStyleLevel() const; - inline bool IsAssignedToListLevelOfOutlineStyle() const + bool IsAssignedToListLevelOfOutlineStyle() const { return mbAssignedToOutlineStyle; } @@ -124,7 +124,7 @@ public: /// Override to stay assigned to list level of outline style. virtual sal_uInt16 ResetAllFormatAttr() override; - inline bool StayAssignedToListLevelOfOutlineStyle() const + bool StayAssignedToListLevelOfOutlineStyle() const { return mbStayAssignedToListLevelOfOutlineStyle; } diff --git a/sw/inc/fmtflcnt.hxx b/sw/inc/fmtflcnt.hxx index 64480288334c..57873510d8b0 100644 --- a/sw/inc/fmtflcnt.hxx +++ b/sw/inc/fmtflcnt.hxx @@ -42,9 +42,9 @@ public: virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; - inline SwFrameFormat *GetFrameFormat() const { return pFormat; } + SwFrameFormat *GetFrameFormat() const { return pFormat; } /// For Undo: delete the FlyFrameFormat "logically"; it is kept in Undo-object. - inline void SetFlyFormat( SwFrameFormat* pNew = nullptr ) { pFormat = pNew; } + void SetFlyFormat( SwFrameFormat* pNew = nullptr ) { pFormat = pNew; } const SwTextFlyCnt *GetTextFlyCnt() const { return pTextAttr; } }; diff --git a/sw/inc/fmtftntx.hxx b/sw/inc/fmtftntx.hxx index c2bc8cf84efd..2e928eaa8e9f 100644 --- a/sw/inc/fmtftntx.hxx +++ b/sw/inc/fmtftntx.hxx @@ -65,7 +65,7 @@ public: OUString &rText, const IntlWrapper* pIntl = nullptr ) const override; - inline bool IsAtEnd() const { return FTNEND_ATPGORDOCEND != GetValue(); } + bool IsAtEnd() const { return FTNEND_ATPGORDOCEND != GetValue(); } SwFormatFootnoteEndAtTextEnd & operator=( const SwFormatFootnoteEndAtTextEnd & rAttr ); diff --git a/sw/inc/fmtpdsc.hxx b/sw/inc/fmtpdsc.hxx index 8386c5ab1785..98bb1bdf5dec 100644 --- a/sw/inc/fmtpdsc.hxx +++ b/sw/inc/fmtpdsc.hxx @@ -70,7 +70,7 @@ public: void SetNumOffset( const ::boost::optional& oNum ) { oNumOffset = oNum; } /// Query / set where attribute is anchored. - inline const SwModify* GetDefinedIn() const { return pDefinedIn; } + const SwModify* GetDefinedIn() const { return pDefinedIn; } void ChgDefinedIn( const SwModify* pNew ) { pDefinedIn = const_cast(pNew); } void RegisterToPageDesc( SwPageDesc& ); bool KnowsPageDesc() const; diff --git a/sw/inc/fmtrfmrk.hxx b/sw/inc/fmtrfmrk.hxx index 33bcc2361b6c..eb0d2cce61bd 100644 --- a/sw/inc/fmtrfmrk.hxx +++ b/sw/inc/fmtrfmrk.hxx @@ -62,8 +62,8 @@ public: const SwTextRefMark *GetTextRefMark() const { return pTextAttr; } - inline OUString &GetRefName() { return aRefName; } - inline const OUString &GetRefName() const { return aRefName; } + OUString &GetRefName() { return aRefName; } + const OUString &GetRefName() const { return aRefName; } css::uno::WeakReference const& GetXRefMark() const { return m_wXReferenceMark; } diff --git a/sw/inc/format.hxx b/sw/inc/format.hxx index a30af53a581f..a3a166182d45 100644 --- a/sw/inc/format.hxx +++ b/sw/inc/format.hxx @@ -105,15 +105,15 @@ public: @return count of deleted hints. */ virtual sal_uInt16 ResetAllFormatAttr(); - inline SwFormat* DerivedFrom() const { return const_cast(static_cast(GetRegisteredIn())); } - inline bool IsDefault() const { return DerivedFrom() == nullptr; } + SwFormat* DerivedFrom() const { return const_cast(static_cast(GetRegisteredIn())); } + bool IsDefault() const { return DerivedFrom() == nullptr; } const OUString& GetName() const { return m_aFormatName; } - inline bool HasName(const OUString &rName) const { return m_aFormatName == rName; } + bool HasName(const OUString &rName) const { return m_aFormatName == rName; } virtual void SetName( const OUString& rNewName, bool bBroadcast=false ); /// For querying the attribute array. - inline const SwAttrSet& GetAttrSet() const { return m_aSet; } + const SwAttrSet& GetAttrSet() const { return m_aSet; } /** Das Doc wird jetzt am SwAttrPool gesetzt. Dadurch hat man es immer im Zugriff. */ diff --git a/sw/inc/frmfmt.hxx b/sw/inc/frmfmt.hxx index b55ca5d7abd0..19a509d6b5da 100644 --- a/sw/inc/frmfmt.hxx +++ b/sw/inc/frmfmt.hxx @@ -402,8 +402,8 @@ public: virtual sal_Int16 GetPositionLayoutDir() const override; virtual void SetPositionLayoutDir( const sal_Int16 _nPositionLayoutDir ) override; - inline bool IsPosAttrSet() const { return mbPosAttrSet; } - inline void PosAttrSet() { mbPosAttrSet = true; } + bool IsPosAttrSet() const { return mbPosAttrSet; } + void PosAttrSet() { mbPosAttrSet = true; } virtual OUString GetDescription() const override; diff --git a/sw/inc/grfatr.hxx b/sw/inc/grfatr.hxx index 9c9b625c7590..43d8c977ba01 100644 --- a/sw/inc/grfatr.hxx +++ b/sw/inc/grfatr.hxx @@ -68,15 +68,15 @@ public: virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - inline SwMirrorGrf& operator=( const SwMirrorGrf& rMirrorGrf ) + SwMirrorGrf& operator=( const SwMirrorGrf& rMirrorGrf ) { SfxEnumItem::SetValue( rMirrorGrf.GetValue() ); bGrfToggle = rMirrorGrf.IsGrfToggle(); return *this; } - inline bool IsGrfToggle() const { return bGrfToggle; } - inline void SetGrfToggle( bool bNew ) { bGrfToggle = bNew; } + bool IsGrfToggle() const { return bGrfToggle; } + void SetGrfToggle( bool bNew ) { bGrfToggle = bNew; } }; class SW_DLLPUBLIC SwCropGrf : public SvxGrfCrop @@ -201,7 +201,7 @@ public: : SfxPoolItem( RES_GRFATR_GAMMA ), nValue( rVal ) {} - inline SwGammaGrf& operator=( const SwGammaGrf& rCopy ) + SwGammaGrf& operator=( const SwGammaGrf& rCopy ) { nValue = rCopy.nValue; return *this; diff --git a/sw/inc/ndnotxt.hxx b/sw/inc/ndnotxt.hxx index 531e17c32506..85b21486de18 100644 --- a/sw/inc/ndnotxt.hxx +++ b/sw/inc/ndnotxt.hxx @@ -53,7 +53,7 @@ public: virtual SwContentFrame *MakeFrame( SwFrame* ) override; - inline SwGrfFormatColl *GetGrfColl() const { return const_cast(static_cast(GetRegisteredIn())); } + SwGrfFormatColl *GetGrfColl() const { return const_cast(static_cast(GetRegisteredIn())); } virtual Size GetTwipSize() const = 0; diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx index 6bbaf2e7a243..384782bc6254 100644 --- a/sw/inc/ndtxt.hxx +++ b/sw/inc/ndtxt.hxx @@ -139,9 +139,9 @@ class SW_DLLPUBLIC SwTextNode: public SwContentNode, public ::sfx2::Metadatable /// Optimization: Asking for information about hidden characters at SwScriptInfo /// updates these flags. - inline bool IsCalcHiddenCharFlags() const + bool IsCalcHiddenCharFlags() const { return m_bRecalcHiddenCharFlags; } - inline void SetHiddenCharAttribute( bool bNewHiddenCharsHidePara, bool bNewContainsHiddenChars ) const + void SetHiddenCharAttribute( bool bNewHiddenCharsHidePara, bool bNewContainsHiddenChars ) const { m_bHiddenCharsHidePara = bNewHiddenCharsHidePara; m_bContainsHiddenChars = bNewContainsHiddenChars; @@ -215,9 +215,9 @@ public: /// getters for SwpHints inline SwpHints &GetSwpHints(); inline const SwpHints &GetSwpHints() const; - inline SwpHints *GetpSwpHints() { return m_pSwpHints; } - inline const SwpHints *GetpSwpHints() const { return m_pSwpHints; } - inline bool HasHints() const { return m_pSwpHints != nullptr; } + SwpHints *GetpSwpHints() { return m_pSwpHints; } + const SwpHints *GetpSwpHints() const { return m_pSwpHints; } + bool HasHints() const { return m_pSwpHints != nullptr; } inline SwpHints &GetOrCreateSwpHints(); virtual ~SwTextNode() override; @@ -421,7 +421,7 @@ public: */ SwNumRule *GetNumRule(bool bInParent = true) const; - inline const SwNodeNum* GetNum() const + const SwNodeNum* GetNum() const { return mpNodeNum; } @@ -695,26 +695,26 @@ public: bool GetDropSize(int& rFontHeight, int& rDropHeight, int& rDropDescent) const; /// Hidden Paragraph Field: - inline bool CalcHiddenParaField() + bool CalcHiddenParaField() { return m_pSwpHints && m_pSwpHints->CalcHiddenParaField(); } /// set CalcVisible flags - inline void SetCalcHiddenParaField() + void SetCalcHiddenParaField() { if (m_pSwpHints) m_pSwpHints->SetCalcHiddenParaField(); } /// is the paragraph visible? - inline bool HasHiddenParaField() const + bool HasHiddenParaField() const { return m_pSwpHints && m_pSwpHints->HasHiddenParaField(); } /// Hidden Paragraph Field: - inline bool HasHiddenCharAttribute( bool bWholePara ) const + bool HasHiddenCharAttribute( bool bWholePara ) const { if ( m_bRecalcHiddenCharFlags ) CalcHiddenCharFlags(); return bWholePara ? m_bHiddenCharsHidePara : m_bContainsHiddenChars; } - inline void SetCalcHiddenCharFlags() const + void SetCalcHiddenCharFlags() const { m_bRecalcHiddenCharFlags = true; } /** @return if the node is hidden due to diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx index f0ab99ff253d..04d883b19d62 100644 --- a/sw/inc/node.hxx +++ b/sw/inc/node.hxx @@ -119,20 +119,20 @@ public: sal_uInt16 GetSectionLevel() const; inline sal_uLong StartOfSectionIndex() const; - inline const SwStartNode* StartOfSectionNode() const { return m_pStartOfSection; } - inline SwStartNode* StartOfSectionNode() { return m_pStartOfSection; } + const SwStartNode* StartOfSectionNode() const { return m_pStartOfSection; } + SwStartNode* StartOfSectionNode() { return m_pStartOfSection; } inline sal_uLong EndOfSectionIndex() const; inline const SwEndNode* EndOfSectionNode() const; inline SwEndNode* EndOfSectionNode(); - inline sal_uInt8 GetAutoFormatLvl() const { return m_nAFormatNumLvl; } - inline void SetAutoFormatLvl( sal_uInt8 nVal ) { m_nAFormatNumLvl = nVal; } + sal_uInt8 GetAutoFormatLvl() const { return m_nAFormatNumLvl; } + void SetAutoFormatLvl( sal_uInt8 nVal ) { m_nAFormatNumLvl = nVal; } - inline void SetNumLSpace( bool bFlag ) { m_bSetNumLSpace = bFlag; } + void SetNumLSpace( bool bFlag ) { m_bSetNumLSpace = bFlag; } - inline bool IsIgnoreDontExpand() const { return m_bIgnoreDontExpand; } - inline void SetIgnoreDontExpand( bool bNew ) { m_bIgnoreDontExpand = bNew; } + bool IsIgnoreDontExpand() const { return m_bIgnoreDontExpand; } + void SetIgnoreDontExpand( bool bNew ) { m_bIgnoreDontExpand = bNew; } SwNodeType GetNodeType() const { return m_nNodeType; } @@ -275,7 +275,7 @@ public: /// If node is in a table return the respective table box. SwTableBox* GetTableBox() const; - inline sal_uLong GetIndex() const { return GetPos(); } + sal_uLong GetIndex() const { return GetPos(); } const SwTextNode* FindOutlineNodeOfLevel( sal_uInt8 nLvl ) const; @@ -448,8 +448,8 @@ public: /** Does node has already its own auto-attributes? Access to SwAttrSet. */ inline const SwAttrSet &GetSwAttrSet() const; - inline const SwAttrSet *GetpSwAttrSet() const { return static_cast(mpAttrSet.get()); } - inline bool HasSwAttrSet() const { return mpAttrSet != nullptr; } + const SwAttrSet *GetpSwAttrSet() const { return static_cast(mpAttrSet.get()); } + bool HasSwAttrSet() const { return mpAttrSet != nullptr; } virtual SwFormatColl* ChgFormatColl( SwFormatColl* ); SwFormatColl* GetFormatColl() const { return const_cast(static_cast(GetRegisteredIn())); } @@ -472,8 +472,8 @@ public: short GetTextDirection( const SwPosition& rPos, const Point* pPt ) const; - inline void SetModifyAtAttr( bool bSetModifyAtAttr ) const { mbSetModifyAtAttr = bSetModifyAtAttr; } - inline bool GetModifyAtAttr() const { return mbSetModifyAtAttr; } + void SetModifyAtAttr( bool bSetModifyAtAttr ) const { mbSetModifyAtAttr = bSetModifyAtAttr; } + bool GetModifyAtAttr() const { return mbSetModifyAtAttr; } static SwOLENodes* CreateOLENodesArray( const SwFormatColl& rColl, bool bOnlyWithInvalidSize ); diff --git a/sw/inc/numrule.hxx b/sw/inc/numrule.hxx index 5ca5dd8d94dd..5975916e21e3 100644 --- a/sw/inc/numrule.hxx +++ b/sw/inc/numrule.hxx @@ -188,7 +188,7 @@ public: void AddParagraphStyle( SwTextFormatColl& rTextFormatColl ); void RemoveParagraphStyle( SwTextFormatColl& rTextFormatColl ); - inline void SetDefaultListId( const OUString& sDefaultListId ) + void SetDefaultListId( const OUString& sDefaultListId ) { msDefaultListId = sDefaultListId; } diff --git a/sw/inc/pagepreviewlayout.hxx b/sw/inc/pagepreviewlayout.hxx index 46ca66d1759f..8185e8fb96b2 100644 --- a/sw/inc/pagepreviewlayout.hxx +++ b/sw/inc/pagepreviewlayout.hxx @@ -242,7 +242,7 @@ public: @author */ - inline ~SwPagePreviewLayout() + ~SwPagePreviewLayout() { ClearPreviewPageData(); } @@ -333,7 +333,7 @@ public: @author OD */ - inline sal_uInt16 SelectedPage() + sal_uInt16 SelectedPage() { return mnSelectedPageNum; } @@ -342,7 +342,7 @@ public: @author OD */ - inline void SetSelectedPage( sal_uInt16 _nSelectedPageNum ) + void SetSelectedPage( sal_uInt16 _nSelectedPageNum ) { mnSelectedPageNum = _nSelectedPageNum; } @@ -465,17 +465,17 @@ public: bool& _obPosInEmptyPage, sal_uInt16& _onPageNum ) const; - inline bool DoesPreviewLayoutRowsFitIntoWindow() const + bool DoesPreviewLayoutRowsFitIntoWindow() const { return mbDoesLayoutRowsFitIntoWindow; } - inline bool DoesPreviewLayoutColsFitIntoWindow() const + bool DoesPreviewLayoutColsFitIntoWindow() const { return mbDoesLayoutColsFitIntoWindow; } - inline bool PreviewLayoutValid() const + bool PreviewLayoutValid() const { return mbLayoutInfoValid && mbLayoutSizesValid && mbPaintInfoValid; } diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx index ca69c7a104f3..2fe0e6acb310 100644 --- a/sw/inc/pam.hxx +++ b/sw/inc/pam.hxx @@ -204,8 +204,8 @@ public: SwMoveFnCollection const & fnMove, bool bSrchForward, bool bRegSearch, bool bChkEmptyPara, bool bChkParaEnd, sal_Int32 &nStart, sal_Int32 &nEnd, sal_Int32 nTextLen, SwNode* pNode, SwPaM* pPam); - inline bool IsInFrontOfLabel() const { return m_bIsInFrontOfLabel; } - inline void SetInFrontOfLabel_( bool bNew ) { m_bIsInFrontOfLabel = bNew; } + bool IsInFrontOfLabel() const { return m_bIsInFrontOfLabel; } + void SetInFrontOfLabel_( bool bNew ) { m_bIsInFrontOfLabel = bNew; } /// Unless this is called, the getter method of Mark will return Point. virtual void SetMark(); diff --git a/sw/inc/paratr.hxx b/sw/inc/paratr.hxx index 2dff35adba8e..6bc9f694c336 100644 --- a/sw/inc/paratr.hxx +++ b/sw/inc/paratr.hxx @@ -85,27 +85,27 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - inline sal_uInt8 GetLines() const { return nLines; } - inline sal_uInt8 &GetLines() { return nLines; } + sal_uInt8 GetLines() const { return nLines; } + sal_uInt8 &GetLines() { return nLines; } - inline sal_uInt8 GetChars() const { return nChars; } - inline sal_uInt8 &GetChars() { return nChars; } + sal_uInt8 GetChars() const { return nChars; } + sal_uInt8 &GetChars() { return nChars; } - inline bool GetWholeWord() const { return bWholeWord; } - inline bool &GetWholeWord() { return bWholeWord; } + bool GetWholeWord() const { return bWholeWord; } + bool &GetWholeWord() { return bWholeWord; } - inline sal_uInt16 GetDistance() const { return nDistance; } - inline sal_uInt16 &GetDistance() { return nDistance; } + sal_uInt16 GetDistance() const { return nDistance; } + sal_uInt16 &GetDistance() { return nDistance; } - inline const SwCharFormat *GetCharFormat() const { return static_cast(GetRegisteredIn()); } - inline SwCharFormat *GetCharFormat() { return static_cast(GetRegisteredIn()); } + const SwCharFormat *GetCharFormat() const { return static_cast(GetRegisteredIn()); } + SwCharFormat *GetCharFormat() { return static_cast(GetRegisteredIn()); } void SetCharFormat( SwCharFormat *pNew ); /// Get information from Client. virtual bool GetInfo( SfxPoolItem& ) const override; /// Get and set Modify pointer. - inline const SwModify* GetDefinedIn() const { return pDefinedIn; } - inline void ChgDefinedIn( const SwModify* pNew ) + const SwModify* GetDefinedIn() const { return pDefinedIn; } + void ChgDefinedIn( const SwModify* pNew ) { pDefinedIn = const_cast(pNew); } }; diff --git a/sw/inc/redline.hxx b/sw/inc/redline.hxx index fbe0ccc0ec84..dbdedc4a2b89 100644 --- a/sw/inc/redline.hxx +++ b/sw/inc/redline.hxx @@ -142,7 +142,7 @@ public: sal_uInt16 GetAuthor() const { return nAuthor; } const OUString& GetComment() const { return sComment; } const DateTime& GetTimeStamp() const { return aStamp; } - inline const SwRedlineData* Next() const{ return pNext; } + const SwRedlineData* Next() const{ return pNext; } void SetComment( const OUString& rS ) { sComment = rS; } void SetTimeStamp( const DateTime& rDT ) { aStamp = rDT; } diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx index 047814d3b1ac..b124bba088db 100644 --- a/sw/inc/swmodule.hxx +++ b/sw/inc/swmodule.hxx @@ -135,8 +135,8 @@ public: virtual ~SwModule() override; // Set view for internal use only. It is public only for technical reasons. - inline void SetView(SwView* pVw) { m_pView = pVw; } - inline SwView* GetView() { return m_pView; } + void SetView(SwView* pVw) { m_pView = pVw; } + SwView* GetView() { return m_pView; } // Handler for slots. void StateOther(SfxItemSet &); diff --git a/sw/inc/swregion.hxx b/sw/inc/swregion.hxx index f241da538d42..7ba3ffdee024 100644 --- a/sw/inc/swregion.hxx +++ b/sw/inc/swregion.hxx @@ -44,8 +44,8 @@ public: // Combine adjacent rectangles. void Compress(); - inline const SwRect &GetOrigin() const { return m_aOrigin; } - inline void ChangeOrigin( const SwRect &rRect ) { m_aOrigin = rRect; } + const SwRect &GetOrigin() const { return m_aOrigin; } + void ChangeOrigin( const SwRect &rRect ) { m_aOrigin = rRect; } }; #endif // INCLUDED_SW_INC_SWREGION_HXX diff --git a/sw/inc/txatbase.hxx b/sw/inc/txatbase.hxx index 0a01e00f0f11..5415c9904586 100644 --- a/sw/inc/txatbase.hxx +++ b/sw/inc/txatbase.hxx @@ -106,7 +106,7 @@ public: inline const SfxPoolItem& GetAttr() const; inline SfxPoolItem& GetAttr(); - inline sal_uInt16 Which() const { return GetAttr().Which(); } + sal_uInt16 Which() const { return GetAttr().Which(); } bool operator==( const SwTextAttr& ) const; diff --git a/sw/inc/txtftn.hxx b/sw/inc/txtftn.hxx index 7bd3bad988b5..8d805f54fcc0 100644 --- a/sw/inc/txtftn.hxx +++ b/sw/inc/txtftn.hxx @@ -39,7 +39,7 @@ public: SwTextFootnote( SwFormatFootnote& rAttr, sal_Int32 nStart ); virtual ~SwTextFootnote() override; - inline SwNodeIndex *GetStartNode() const { return m_pStartNode; } + SwNodeIndex *GetStartNode() const { return m_pStartNode; } void SetStartNode( const SwNodeIndex *pNode, bool bDelNodes = true ); void SetNumber( const sal_uInt16 nNumber, const OUString &sNumStr ); void CopyFootnote(SwTextFootnote & rDest, SwTextNode & rDestNode) const; diff --git a/sw/inc/txttxmrk.hxx b/sw/inc/txttxmrk.hxx index 77c043420e29..931dd10c72a4 100644 --- a/sw/inc/txttxmrk.hxx +++ b/sw/inc/txttxmrk.hxx @@ -40,7 +40,7 @@ public: void CopyTOXMark( SwDoc* pDestDoc ); // get and set TextNode pointer - inline const SwTextNode* GetpTextNd() const { return m_pTextNode; } + const SwTextNode* GetpTextNd() const { return m_pTextNode; } inline const SwTextNode& GetTextNode() const; void ChgTextNode( SwTextNode* pNew ) { m_pTextNode = pNew; } }; diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx index 71ee3e984690..bf9f54160477 100644 --- a/sw/inc/view.hxx +++ b/sw/inc/view.hxx @@ -400,11 +400,11 @@ public: // immediately switch shell -> for GetSelectionObject void StopShellTimer(); - inline SwWrtShell& GetWrtShell () const { return *m_pWrtShell; } - inline SwWrtShell* GetWrtShellPtr() const { return m_pWrtShell; } + SwWrtShell& GetWrtShell () const { return *m_pWrtShell; } + SwWrtShell* GetWrtShellPtr() const { return m_pWrtShell; } - inline SwEditWin &GetEditWin() { return *m_pEditWin; } - inline const SwEditWin &GetEditWin () const { return *m_pEditWin; } + SwEditWin &GetEditWin() { return *m_pEditWin; } + const SwEditWin &GetEditWin () const { return *m_pEditWin; } #if defined(_WIN32) || defined UNX void ScannerEventHdl( const css::lang::EventObject& rEventObject ); @@ -413,7 +413,7 @@ public: // hand the handler for text blocks to the shell; create if applicable SwGlossaryHdl* GetGlosHdl(); - inline const Rectangle& GetVisArea() const { return m_aVisArea; } + const Rectangle& GetVisArea() const { return m_aVisArea; } bool IsScroll(const Rectangle& rRect) const; void Scroll( const Rectangle& rRect, @@ -512,14 +512,14 @@ public: // functions for drawing void SetDrawFuncPtr(SwDrawBase* pFuncPtr); - inline SwDrawBase* GetDrawFuncPtr() const { return m_pDrawActual; } + SwDrawBase* GetDrawFuncPtr() const { return m_pDrawActual; } void GetDrawState(SfxItemSet &rSet); void ExitDraw(); - inline bool IsDrawRotate() { return m_bDrawRotate; } - inline void FlipDrawRotate() { m_bDrawRotate = !m_bDrawRotate; } - inline bool IsDrawSelMode() { return m_bDrawSelMode; } + bool IsDrawRotate() { return m_bDrawRotate; } + void FlipDrawRotate() { m_bDrawRotate = !m_bDrawRotate; } + bool IsDrawSelMode() { return m_bDrawSelMode; } void SetSelDrawSlot(); - inline void FlipDrawSelMode() { m_bDrawSelMode = !m_bDrawSelMode; } + void FlipDrawSelMode() { m_bDrawSelMode = !m_bDrawSelMode; } void NoRotate(); // turn off rotate mode bool EnterDrawTextMode(const Point& aDocPos); /// Same as EnterDrawTextMode(), but takes an SdrObject instead of guessing it by document position. @@ -562,8 +562,8 @@ public: SfxShell *GetCurShell() { return m_pShell; } SwDocShell *GetDocShell(); inline const SwDocShell *GetDocShell() const; - inline virtual FmFormShell *GetFormShell() override { return m_pFormShell; } - inline virtual const FmFormShell *GetFormShell() const override { return m_pFormShell; } + virtual FmFormShell *GetFormShell() override { return m_pFormShell; } + virtual const FmFormShell *GetFormShell() const override { return m_pFormShell; } // so that in the SubShells' DTors m_pShell can be reset if applicable void ResetSubShell() { m_pShell = nullptr; } diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx index 556e134d1724..b44dd1d8a479 100644 --- a/sw/inc/viewopt.hxx +++ b/sw/inc/viewopt.hxx @@ -197,184 +197,184 @@ public: static void Init( vcl::Window *pWin ); // Initializing of static data. - inline ViewOptFlags1 GetCoreOptions() const {return m_nCoreOptions;} + ViewOptFlags1 GetCoreOptions() const {return m_nCoreOptions;} inline void SetUIOptions( const SwViewOption& ); // Options from nCoreOptions - inline bool IsIdle() const + bool IsIdle() const { return m_bIdle; } // Logically this is a const function since it does not modify the viewoptions // but only effects idle formatting. Of course that member is already implement // in the wrong place here... Also currently there are many const modifying casts in the code // just to call this function on otherwise const objects. Thus declaring it as const now. - inline void SetIdle( bool b ) const + void SetIdle( bool b ) const { m_bIdle = b; } - inline bool IsTab(bool bHard = false) const + bool IsTab(bool bHard = false) const { return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::Tab) && ((m_nCoreOptions & ViewOptFlags1::ViewMetachars)||bHard); } - inline void SetTab( bool b ) { + void SetTab( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Tab ) : ( m_nCoreOptions &= ~ViewOptFlags1::Tab); } - inline bool IsBlank(bool bHard = false) const + bool IsBlank(bool bHard = false) const { return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::Blank) && ((m_nCoreOptions & ViewOptFlags1::ViewMetachars)||bHard); } - inline void SetBlank( bool b ) + void SetBlank( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Blank ) : ( m_nCoreOptions &= ~ViewOptFlags1::Blank); } - inline bool IsHardBlank() const + bool IsHardBlank() const { return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::HardBlank); } - inline void SetHardBlank( bool b ) + void SetHardBlank( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::HardBlank ) : ( m_nCoreOptions &= ~ViewOptFlags1::HardBlank); } - inline bool IsParagraph(bool bHard = false) const + bool IsParagraph(bool bHard = false) const { return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::Paragraph) && ((m_nCoreOptions & ViewOptFlags1::ViewMetachars)||bHard); } - inline void SetParagraph( bool b ) + void SetParagraph( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Paragraph ) : ( m_nCoreOptions &= ~ViewOptFlags1::Paragraph); } - inline bool IsLineBreak(bool bHard = false) const + bool IsLineBreak(bool bHard = false) const { return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::Linebreak) && ((m_nCoreOptions & ViewOptFlags1::ViewMetachars)||bHard); } - inline void SetLineBreak( bool b ) + void SetLineBreak( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Linebreak ) : ( m_nCoreOptions &= ~ViewOptFlags1::Linebreak); } - inline void SetPageBreak( bool b ) + void SetPageBreak( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Pagebreak ) : ( m_nCoreOptions &= ~ViewOptFlags1::Pagebreak); } - inline void SetColumnBreak( bool b) + void SetColumnBreak( bool b) { b ? (m_nCoreOptions |= ViewOptFlags1::Columnbreak ) : ( m_nCoreOptions &= ~ViewOptFlags1::Columnbreak); } - inline bool IsSoftHyph() const + bool IsSoftHyph() const { return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::SoftHyph); } - inline void SetSoftHyph( bool b ) + void SetSoftHyph( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::SoftHyph ) : ( m_nCoreOptions &= ~ViewOptFlags1::SoftHyph); } - inline bool IsFieldName() const { return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::FieldName); } - inline void SetFieldName( bool b ) + bool IsFieldName() const { return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::FieldName); } + void SetFieldName( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::FieldName ) : ( m_nCoreOptions &= ~ViewOptFlags1::FieldName); } - inline bool IsPostIts() const + bool IsPostIts() const { return bool(m_nCoreOptions & ViewOptFlags1::Postits); } - inline void SetPostIts( bool b ) + void SetPostIts( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Postits ) : ( m_nCoreOptions &= ~ViewOptFlags1::Postits); } static void PaintPostIts( OutputDevice *pOut, const SwRect &rRect, bool bIsScript ); static sal_uInt16 GetPostItsWidth( const OutputDevice *pOut ); - inline bool IsShowHiddenChar(bool bHard = false) const + bool IsShowHiddenChar(bool bHard = false) const { return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::CharHidden) && ((m_nCoreOptions & ViewOptFlags1::ViewMetachars)||bHard); } - inline void SetShowHiddenChar( bool b ) + void SetShowHiddenChar( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::CharHidden ) : ( m_nCoreOptions &= ~ViewOptFlags1::CharHidden); } - inline bool IsShowHiddenField() const + bool IsShowHiddenField() const { return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::FieldHidden); } - inline void SetShowHiddenField( bool b ) + void SetShowHiddenField( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::FieldHidden ) : ( m_nCoreOptions &= ~ViewOptFlags1::FieldHidden); } - inline bool IsGraphic() const + bool IsGraphic() const { return bool(m_nCoreOptions & ViewOptFlags1::Graphic); } - inline void SetGraphic( bool b ) + void SetGraphic( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Graphic ) : ( m_nCoreOptions &= ~ViewOptFlags1::Graphic); } - inline bool IsPageBack() const + bool IsPageBack() const { return bool(m_nCoreOptions & ViewOptFlags1::Pageback); } - inline void SetPageBack( bool b ) + void SetPageBack( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Pageback) : ( m_nCoreOptions &= ~ViewOptFlags1::Pageback); } - inline bool IsTable() const + bool IsTable() const { return bool(m_nCoreOptions & ViewOptFlags1::Table); } - inline void SetTable( bool b ) + void SetTable( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Table ) : ( m_nCoreOptions &= ~ViewOptFlags1::Table); } - inline bool IsDraw() const + bool IsDraw() const { return bool(m_nCoreOptions & ViewOptFlags1::Draw); } - inline void SetDraw( bool b ) + void SetDraw( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Draw ) : ( m_nCoreOptions &= ~ViewOptFlags1::Draw); } - inline bool IsControl() const + bool IsControl() const { return bool(m_nCoreOptions & ViewOptFlags1::Control); } - inline void SetControl( bool b ) + void SetControl( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Control ) : ( m_nCoreOptions &= ~ViewOptFlags1::Control); } - inline bool IsSnap() const + bool IsSnap() const { return bool(m_nCoreOptions & ViewOptFlags1::Snap); } - inline void SetSnap( bool b ) + void SetSnap( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Snap ) : ( m_nCoreOptions &= ~ViewOptFlags1::Snap); } - inline void SetSnapSize( Size &rSz ){ m_aSnapSize = rSz; } - inline const Size &GetSnapSize() const { return m_aSnapSize; } + void SetSnapSize( Size &rSz ){ m_aSnapSize = rSz; } + const Size &GetSnapSize() const { return m_aSnapSize; } - inline bool IsGridVisible() const + bool IsGridVisible() const { return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::GridVisible); } - inline void SetGridVisible( bool b ) + void SetGridVisible( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::GridVisible ) : ( m_nCoreOptions &= ~ViewOptFlags1::GridVisible); } - inline bool IsOnlineSpell() const + bool IsOnlineSpell() const { return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::OnlineSpell); } void SetOnlineSpell( bool b ); - inline bool IsViewMetaChars() const + bool IsViewMetaChars() const { return !m_bReadonly && (m_nCoreOptions & ViewOptFlags1::ViewMetachars); } - inline void SetViewMetaChars( bool b) + void SetViewMetaChars( bool b) { b ? (m_nCoreOptions |= ViewOptFlags1::ViewMetachars ) : ( m_nCoreOptions &= ~ViewOptFlags1::ViewMetachars); } - inline bool IsSynchronize() const + bool IsSynchronize() const { return bool(m_nCoreOptions & ViewOptFlags1::Synchronize); } - inline void SetSynchronize( bool b ) + void SetSynchronize( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Synchronize ) : ( m_nCoreOptions &= ~ViewOptFlags1::Synchronize); } - inline bool IsCrossHair() const + bool IsCrossHair() const { return bool(m_nCoreOptions & ViewOptFlags1::Crosshair); } - inline void SetCrossHair( bool b ) + void SetCrossHair( bool b ) { b ? (m_nCoreOptions |= ViewOptFlags1::Crosshair ) : ( m_nCoreOptions &= ~ViewOptFlags1::Crosshair); } // Options from nCore2Options - inline bool IsBlackFont() const + bool IsBlackFont() const {return bool(m_nCore2Options & ViewOptCoreFlags2::BlackFont); } - inline void SetBlackFont(bool b) + void SetBlackFont(bool b) { b ? (m_nCore2Options |= ViewOptCoreFlags2::BlackFont) : (m_nCore2Options &= ~ViewOptCoreFlags2::BlackFont);} - inline bool IsShowHiddenPara() const + bool IsShowHiddenPara() const {return bool(m_nCore2Options & ViewOptCoreFlags2::HiddenPara); } - inline void SetShowHiddenPara(bool b) + void SetShowHiddenPara(bool b) { b ? (m_nCore2Options |= ViewOptCoreFlags2::HiddenPara) : (m_nCore2Options &= ~ViewOptCoreFlags2::HiddenPara);} - inline bool IsSmoothScroll() const + bool IsSmoothScroll() const {return bool(m_nCore2Options & ViewOptCoreFlags2::SmoothScroll); } - inline void SetSmoothScroll(bool b) + void SetSmoothScroll(bool b) { b ? (m_nCore2Options |= ViewOptCoreFlags2::SmoothScroll) : (m_nCore2Options &= ~ViewOptCoreFlags2::SmoothScroll);} - inline bool IsCursorInProtectedArea() const + bool IsCursorInProtectedArea() const {return bool(m_nCore2Options & ViewOptCoreFlags2::CursorInProt); } - inline void SetCursorInProtectedArea(bool b) + void SetCursorInProtectedArea(bool b) { b ? (m_nCore2Options |= ViewOptCoreFlags2::CursorInProt) : (m_nCore2Options &= ~ViewOptCoreFlags2::CursorInProt);} static bool IsIgnoreProtectedArea(); - inline bool IsPDFExport() const + bool IsPDFExport() const {return bool(m_nCore2Options & ViewOptCoreFlags2::PdfExport); } - inline void SetPDFExport(bool b) + void SetPDFExport(bool b) { b ? (m_nCore2Options |= ViewOptCoreFlags2::PdfExport) : (m_nCore2Options &= ~ViewOptCoreFlags2::PdfExport);} - inline bool IsPrinting() const + bool IsPrinting() const {return bool(m_nCore2Options & ViewOptCoreFlags2::Printing); } - inline void SetPrinting(bool b) + void SetPrinting(bool b) { b ? (m_nCore2Options |= ViewOptCoreFlags2::Printing) : (m_nCore2Options &= ~ViewOptCoreFlags2::Printing);} - inline short GetDivisionX() const { return m_nDivisionX; } - inline void SetDivisionX( short n ){ m_nDivisionX = n; } - inline short GetDivisionY() const { return m_nDivisionY; } - inline void SetDivisionY( short n ){ m_nDivisionY = n; } + short GetDivisionX() const { return m_nDivisionX; } + void SetDivisionX( short n ){ m_nDivisionX = n; } + short GetDivisionY() const { return m_nDivisionY; } + void SetDivisionY( short n ){ m_nDivisionY = n; } // Default margin left and above document: 284 twips == 5.0 mm. static constexpr sal_uInt16 GetDefDocumentBorder() { return 284; } @@ -383,13 +383,13 @@ public: // Minimum edge-to-text distance: 22 twips == 0.4 mm. static constexpr sal_uInt16 GetMinGapBetweenPages() { return 22; } - inline sal_uInt16 GetDocumentBorder() const { return IsWhitespaceHidden() ? GetMinGapBetweenPages() : GetDefDocumentBorder(); } - inline sal_uInt16 GetGapBetweenPages() const { return IsWhitespaceHidden() ? GetMinGapBetweenPages() : GetDefGapBetweenPages(); } + sal_uInt16 GetDocumentBorder() const { return IsWhitespaceHidden() ? GetMinGapBetweenPages() : GetDefDocumentBorder(); } + sal_uInt16 GetGapBetweenPages() const { return IsWhitespaceHidden() ? GetMinGapBetweenPages() : GetDefGapBetweenPages(); } - inline sal_uInt8 GetPagePrevRow() const { return m_nPagePreviewRow; } - inline void SetPagePrevRow( sal_uInt8 n ) { m_nPagePreviewRow = n; } - inline sal_uInt8 GetPagePrevCol() const { return m_nPagePreviewCol; } - inline void SetPagePrevCol( sal_uInt8 n ) { m_nPagePreviewCol = n; } + sal_uInt8 GetPagePrevRow() const { return m_nPagePreviewRow; } + void SetPagePrevRow( sal_uInt8 n ) { m_nPagePreviewRow = n; } + sal_uInt8 GetPagePrevCol() const { return m_nPagePreviewCol; } + void SetPagePrevCol( sal_uInt8 n ) { m_nPagePreviewCol = n; } bool IsReadonly() const { return m_bReadonly; } void SetReadonly(bool bSet) { m_bReadonly = bSet; } @@ -399,10 +399,10 @@ public: bool IsFormView() const { return mbFormView; } void SetFormView( bool bSet ) { mbFormView = bSet; } - inline bool getBrowseMode() const { return mbBrowseMode; } - inline void setBrowseMode(bool bSet) { mbBrowseMode = bSet; } - inline bool IsPagePrevBookview() const { return mbBookView; } - inline void SetPagePrevBookview(bool bSet) { mbBookView = bSet; } + bool getBrowseMode() const { return mbBrowseMode; } + void setBrowseMode(bool bSet) { mbBrowseMode = bSet; } + bool IsPagePrevBookview() const { return mbBookView; } + void SetPagePrevBookview(bool bSet) { mbBookView = bSet; } static bool IsAutoCompleteWords(); @@ -421,19 +421,19 @@ public: #ifdef DBG_UTIL // Correspond to statements in ui/config/cfgvw.src. - inline bool IsTest1() const { return m_bTest1; } - inline bool IsTest2() const { return m_bTest2; } - inline bool IsTest3() const { return m_bTest3; } - inline bool IsTest4() const { return m_bTest4; } - inline bool IsTest5() const { return m_bTest5; } - inline bool IsTest6() const { return m_bTest6; } - inline bool IsTest7() const { return m_bTest7; } - inline bool IsTest8() const { return m_bTest8; } - inline bool IsTest10() const { return m_bTest10; } + bool IsTest1() const { return m_bTest1; } + bool IsTest2() const { return m_bTest2; } + bool IsTest3() const { return m_bTest3; } + bool IsTest4() const { return m_bTest4; } + bool IsTest5() const { return m_bTest5; } + bool IsTest6() const { return m_bTest6; } + bool IsTest7() const { return m_bTest7; } + bool IsTest8() const { return m_bTest8; } + bool IsTest10() const { return m_bTest10; } #endif - inline sal_uInt16 GetZoom() const { return m_nZoom; } - inline void SetZoom( sal_uInt16 n ){ m_nZoom = n; } + sal_uInt16 GetZoom() const { return m_nZoom; } + void SetZoom( sal_uInt16 n ){ m_nZoom = n; } static void DrawRect( OutputDevice* pOut, const SwRect &rRect, long nCol ); static void DrawRectPrinter( OutputDevice* pOut, const SwRect& rRect ); @@ -443,7 +443,7 @@ public: // Compare methods. bool IsEqualFlags ( const SwViewOption &rOpt ) const; inline bool operator == ( const SwViewOption &rOpt ) const; - inline bool operator != ( const SwViewOption &rOpt ) const { return !(*this == rOpt); } + bool operator != ( const SwViewOption &rOpt ) const { return !(*this == rOpt); } // Options from nUIOptions bool IsViewVScrollBar() const diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx index 96ddd10c6d3b..c6e7b6ed81a4 100644 --- a/sw/inc/viewsh.hxx +++ b/sw/inc/viewsh.hxx @@ -219,7 +219,7 @@ public: void SetRestoreActions(sal_uInt16 nSet); sal_uInt16 GetRestoreActions() const; - inline bool HasInvalidRect() const { return maInvalidRect.HasArea(); } + bool HasInvalidRect() const { return maInvalidRect.HasArea(); } void ChgHyphenation() { Reformat(); } void ChgNumberDigits(); @@ -286,7 +286,7 @@ public: const Size GetPageSize( sal_uInt16 nPageNum, bool bSkipEmptyPages ) const; - inline SwDoc *GetDoc() const { return mpDoc; } //Never 0. + SwDoc *GetDoc() const { return mpDoc; } //Never 0. /** Provides access to the document setting interface */ @@ -342,12 +342,12 @@ public: // 2. GetWin: Available if we not printing // 3. GetOut: Printer, Window or Virtual device vcl::RenderContext& GetRefDev() const; - inline vcl::Window* GetWin() const { return mpWin; } - inline vcl::RenderContext* GetOut() const { return mpOut; } + vcl::Window* GetWin() const { return mpWin; } + vcl::RenderContext* GetOut() const { return mpOut; } void SetWin(vcl::Window* win) { mpWin = win; } void SetOut(vcl::RenderContext* pOut) { mpOut = pOut; } - static inline bool IsLstEndAction() { return SwViewShell::mbLstAct; } + static bool IsLstEndAction() { return SwViewShell::mbLstAct; } // Change of all page descriptors. void ChgAllPageOrientation( Orientation eOri ); @@ -423,7 +423,7 @@ public: // Calls Idle-formatter of Layout. void LayoutIdle(); - inline const SwViewOption *GetViewOptions() const { return mpOpt; } + const SwViewOption *GetViewOptions() const { return mpOpt; } virtual void ApplyViewOptions( const SwViewOption &rOpt ); void SetUIOptions( const SwViewOption &rOpt ); virtual void SetReadonlyOption(bool bSet); // Set readonly-bit of ViewOptions. @@ -441,8 +441,8 @@ public: { return (*mpCareWindow.get()) ? mpCareWindow.get()->get() : CareChildWin(rVSh); } static vcl::Window* CareChildWin(SwViewShell& rVSh); - inline SfxViewShell *GetSfxViewShell() const { return mpSfxViewShell; } - inline void SetSfxViewShell(SfxViewShell *pNew) { mpSfxViewShell = pNew; } + SfxViewShell *GetSfxViewShell() const { return mpSfxViewShell; } + void SetSfxViewShell(SfxViewShell *pNew) { mpSfxViewShell = pNew; } // Selection of Draw Engine has been changed. virtual void DrawSelChanged(); @@ -554,7 +554,7 @@ public: sal_Int32 GetPageNumAndSetOffsetForPDF( OutputDevice& rOut, const SwRect& rRect ) const; - inline bool IsInConstructor() const { return mbInConstructor; } + bool IsInConstructor() const { return mbInConstructor; } const BitmapEx& GetReplacementBitmap(bool bIsErrorState); void DeleteReplacementBitmaps(); diff --git a/sw/inc/viscrs.hxx b/sw/inc/viscrs.hxx index c5ba1947424b..318cc9d427d9 100644 --- a/sw/inc/viscrs.hxx +++ b/sw/inc/viscrs.hxx @@ -103,7 +103,7 @@ public: void Hide(); void Invalidate( const SwRect& rRect ); - inline void SetShowTextInputFieldOverlay( const bool bShow ) + void SetShowTextInputFieldOverlay( const bool bShow ) { m_bShowTextInputFieldOverlay = bShow; } diff --git a/sw/source/core/access/acccontext.hxx b/sw/source/core/access/acccontext.hxx index 4206a135c957..9119a6a6336f 100644 --- a/sw/source/core/access/acccontext.hxx +++ b/sw/source/core/access/acccontext.hxx @@ -91,7 +91,7 @@ private: protected: void SetName( const OUString& rName ) { m_sName = rName; } - inline sal_Int16 GetRole() const + sal_Int16 GetRole() const { return m_nRole; } @@ -107,11 +107,11 @@ protected: const SwAccessibleMap *GetMap() const { return m_pMap; } /** convenience method to get the SwViewShell through accessibility map */ - inline SwViewShell* GetShell() + SwViewShell* GetShell() { return GetMap()->GetShell(); } - inline const SwViewShell* GetShell() const + const SwViewShell* GetShell() const { return GetMap()->GetShell(); } @@ -183,7 +183,7 @@ protected: getBoundsImpl(bool bRelative); // #i85634# - inline void NotRegisteredAtAccessibleMap() + void NotRegisteredAtAccessibleMap() { m_isRegisteredAtAccessibleMap = false; } @@ -334,11 +334,11 @@ public: virtual bool HasCursor(); // required by map to remember that object bool Select( SwPaM *pPaM, SdrObject *pObj, bool bAdd ); - inline bool Select( SwPaM& rPaM ) + bool Select( SwPaM& rPaM ) { return Select( &rPaM, nullptr, false ); } - inline bool Select( SdrObject *pObj, bool bAdd ) + bool Select( SdrObject *pObj, bool bAdd ) { return Select( nullptr, pObj, bAdd ); } diff --git a/sw/source/core/access/accframe.hxx b/sw/source/core/access/accframe.hxx index 56e8814f42ae..a6455da18952 100644 --- a/sw/source/core/access/accframe.hxx +++ b/sw/source/core/access/accframe.hxx @@ -87,12 +87,12 @@ public: inline bool IsShowing( const SwAccessibleMap& rAccMap ) const; protected: - inline bool IsInPagePreview() const + bool IsInPagePreview() const { return mbIsInPagePreview; } - inline void ClearFrame() + void ClearFrame() { mpFrame = nullptr; } @@ -134,12 +134,12 @@ protected: void GetChildren( SwAccessibleMap& rAccMap, std::list< sw::access::SwAccessibleChild >& rChildren ) const; - inline void SetVisArea( const SwRect& rNewVisArea ) + void SetVisArea( const SwRect& rNewVisArea ) { maVisArea = rNewVisArea; } - inline const SwRect& GetVisArea() const + const SwRect& GetVisArea() const { return maVisArea; } diff --git a/sw/source/core/access/accfrmobjslist.hxx b/sw/source/core/access/accfrmobjslist.hxx index 0ade63d8da0d..d92adf9eee1a 100644 --- a/sw/source/core/access/accfrmobjslist.hxx +++ b/sw/source/core/access/accfrmobjslist.hxx @@ -35,7 +35,7 @@ private: sw::access::SwAccessibleChild m_aCurr; // The current object size_t m_nNextObj; // The index of the current sdr object - inline SwAccessibleChildSList_const_iterator( const SwAccessibleChildSList& rLst ) + SwAccessibleChildSList_const_iterator( const SwAccessibleChildSList& rLst ) : m_rList( rLst ) , m_nNextObj( 0 ) {} @@ -47,18 +47,18 @@ private: SwAccessibleChildSList_const_iterator& next_visible(); public: - inline SwAccessibleChildSList_const_iterator( const SwAccessibleChildSList_const_iterator& rIter ) + SwAccessibleChildSList_const_iterator( const SwAccessibleChildSList_const_iterator& rIter ) : m_rList( rIter.m_rList ) , m_aCurr( rIter.m_aCurr ) , m_nNextObj( rIter.m_nNextObj ) {} - inline bool operator==( const SwAccessibleChildSList_const_iterator& r ) const + bool operator==( const SwAccessibleChildSList_const_iterator& r ) const { return m_aCurr == r.m_aCurr; } - inline bool operator!=( + bool operator!=( const SwAccessibleChildSList_const_iterator& r ) const { return !(*this == r); @@ -66,7 +66,7 @@ public: SwAccessibleChildSList_const_iterator& operator++(); - inline const sw::access::SwAccessibleChild& operator*() const + const sw::access::SwAccessibleChild& operator*() const { return m_aCurr; } @@ -83,7 +83,7 @@ class SwAccessibleChildSList public: typedef SwAccessibleChildSList_const_iterator const_iterator; - inline SwAccessibleChildSList( const SwFrame& rFrame, + SwAccessibleChildSList( const SwFrame& rFrame, SwAccessibleMap& rAccMap ) : maVisArea() , mrFrame( rFrame ) @@ -91,7 +91,7 @@ public: , mrAccMap( rAccMap ) {} - inline SwAccessibleChildSList( const SwRect& rVisArea, + SwAccessibleChildSList( const SwRect& rVisArea, const SwFrame& rFrame, SwAccessibleMap& rAccMap ) : maVisArea( rVisArea ) @@ -101,32 +101,32 @@ public: { } - inline const_iterator begin() const + const_iterator begin() const { return SwAccessibleChildSList_const_iterator( *this, mrAccMap ); } - inline const_iterator end() const + const_iterator end() const { return SwAccessibleChildSList_const_iterator( *this ); } - inline const SwFrame& GetFrame() const + const SwFrame& GetFrame() const { return mrFrame; } - inline bool IsVisibleChildrenOnly() const + bool IsVisibleChildrenOnly() const { return mbVisibleChildrenOnly; } - inline const SwRect& GetVisArea() const + const SwRect& GetVisArea() const { return maVisArea; } - inline SwAccessibleMap& GetAccMap() const + SwAccessibleMap& GetAccMap() const { return mrAccMap; } diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index d47e20d5e470..421461f076d2 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -426,16 +426,16 @@ public: } // only used in method - inline void SetType( EventType eT ) + void SetType( EventType eT ) { meType = eT; } - inline EventType GetType() const + EventType GetType() const { return meType; } - inline ::rtl::Reference < SwAccessibleContext > GetContext() const + ::rtl::Reference < SwAccessibleContext > GetContext() const { uno::Reference < XAccessible > xTmp( mxAcc ); ::rtl::Reference < SwAccessibleContext > xAccImpl( @@ -444,55 +444,55 @@ public: return xAccImpl; } - inline const SwRect& GetOldBox() const + const SwRect& GetOldBox() const { return maOldBox; } // only used in method - inline void SetOldBox( const SwRect& rOldBox ) + void SetOldBox( const SwRect& rOldBox ) { maOldBox = rOldBox; } - inline const SwAccessibleChild& GetFrameOrObj() const + const SwAccessibleChild& GetFrameOrObj() const { return maFrameOrObj; } // only used in method - inline void SetStates( AccessibleStates _nStates ) + void SetStates( AccessibleStates _nStates ) { mnStates |= _nStates; } - inline bool IsUpdateCursorPos() const + bool IsUpdateCursorPos() const { return bool(mnStates & AccessibleStates::CARET); } - inline bool IsInvalidateStates() const + bool IsInvalidateStates() const { return bool(mnStates & (AccessibleStates::EDITABLE | AccessibleStates::OPAQUE)); } - inline bool IsInvalidateRelation() const + bool IsInvalidateRelation() const { return bool(mnStates & (AccessibleStates::RELATION_FROM | AccessibleStates::RELATION_TO)); } - inline bool IsInvalidateTextSelection() const + bool IsInvalidateTextSelection() const { return bool( mnStates & AccessibleStates::TEXT_SELECTION_CHANGED ); } - inline bool IsInvalidateTextAttrs() const + bool IsInvalidateTextAttrs() const { return bool( mnStates & AccessibleStates::TEXT_ATTRIBUTE_CHANGED ); } - inline AccessibleStates GetStates() const + AccessibleStates GetStates() const { return mnStates; } - inline AccessibleStates GetAllStates() const + AccessibleStates GetAllStates() const { return mnStates; } @@ -508,11 +508,11 @@ public: : mbFiring( false ) {} - inline void SetFiring() + void SetFiring() { mbFiring = true; } - inline bool IsFiring() const + bool IsFiring() const { return mbFiring; } @@ -685,7 +685,7 @@ public: void AdjustMapMode( MapMode& rMapMode, const Point& rPoint ) const; - inline const SwPageFrame *GetSelPage() const { return mpSelPage; } + const SwPageFrame *GetSelPage() const { return mpSelPage; } void DisposePage(const SwPageFrame *pPageFrame ); }; diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx index 11beb6340833..e4a68e420f08 100644 --- a/sw/source/core/access/acctable.cxx +++ b/sw/source/core/access/acctable.cxx @@ -97,7 +97,7 @@ class SwAccessibleTableData_Impl bool bColumns ) const; // #i77106# - inline bool IncludeRow( const SwFrame& rFrame ) const + bool IncludeRow( const SwFrame& rFrame ) const { return !mbOnlyTableColumnHeader || mpTabFrame->IsInHeadline( rFrame ); @@ -579,7 +579,7 @@ public: virtual ~SwAccSingleTableSelHander_Impl() {} - inline bool IsSelected() const { return bSelected; } + bool IsSelected() const { return bSelected; } virtual void Unselect( sal_Int32, sal_Int32 ) override; }; diff --git a/sw/source/core/access/acctable.hxx b/sw/source/core/access/acctable.hxx index a7e40036d603..f2fc518209ec 100644 --- a/sw/source/core/access/acctable.hxx +++ b/sw/source/core/access/acctable.hxx @@ -64,7 +64,7 @@ protected: virtual ~SwAccessibleTable() override; // #i77106# - inline void SetDesc( const OUString& sNewDesc ) + void SetDesc( const OUString& sNewDesc ) { m_sDesc = sNewDesc; } diff --git a/sw/source/core/crsr/overlayrangesoutline.hxx b/sw/source/core/crsr/overlayrangesoutline.hxx index 63cff0e07c7a..997a4c48fa0b 100644 --- a/sw/source/core/crsr/overlayrangesoutline.hxx +++ b/sw/source/core/crsr/overlayrangesoutline.hxx @@ -45,7 +45,7 @@ namespace sw virtual ~OverlayRangesOutline() override; // data read access - inline const std::vector< basegfx::B2DRange >& getRanges() const + const std::vector< basegfx::B2DRange >& getRanges() const { return maRanges; } diff --git a/sw/source/core/doc/CntntIdxStore.cxx b/sw/source/core/doc/CntntIdxStore.cxx index cb6fe9fd782e..102d4873f202 100644 --- a/sw/source/core/doc/CntntIdxStore.cxx +++ b/sw/source/core/doc/CntntIdxStore.cxx @@ -182,9 +182,9 @@ namespace inline void RestoreUnoCursors(updater_t& rUpdater); inline void SaveShellCursors(SwDoc* pDoc, sal_uLong nNode, sal_Int32 nContent); inline void RestoreShellCursors(updater_t& rUpdater); - static inline const SwPosition& GetRightMarkPos(::sw::mark::IMark* pMark, bool bOther) + static const SwPosition& GetRightMarkPos(::sw::mark::IMark* pMark, bool bOther) { return bOther ? pMark->GetOtherMarkPos() : pMark->GetMarkPos(); }; - static inline void SetRightMarkPos(MarkBase* pMark, bool bOther, const SwPosition* const pPos) + static void SetRightMarkPos(MarkBase* pMark, bool bOther, const SwPosition* const pPos) { bOther ? pMark->SetOtherMarkPos(*pPos) : pMark->SetMarkPos(*pPos); }; }; inline void lcl_ChkPaM( std::vector& rPaMEntries, const sal_uLong nNode, const sal_Int32 nContent, SwPaM& rPaM, const bool bGetPoint, bool bSetMark) diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx index c6934905b32f..5f2c8d0d1d27 100644 --- a/sw/source/core/doc/docedt.cxx +++ b/sw/source/core/doc/docedt.cxx @@ -683,11 +683,11 @@ public: SwHyphArgs( const SwPaM *pPam, const Point &rPoint, sal_uInt16* pPageCount, sal_uInt16* pPageStart ); void SetPam( SwPaM *pPam ) const; - inline void SetNode( SwNode *pNew ) { pNode = pNew; } + void SetNode( SwNode *pNew ) { pNode = pNew; } inline void SetRange( const SwNode *pNew ); - inline void NextNode() { ++nNode; } - inline sal_uInt16 *GetPageCnt() { return pPageCnt; } - inline sal_uInt16 *GetPageSt() { return pPageSt; } + void NextNode() { ++nNode; } + sal_uInt16 *GetPageCnt() { return pPageCnt; } + sal_uInt16 *GetPageSt() { return pPageSt; } }; SwHyphArgs::SwHyphArgs( const SwPaM *pPam, const Point &rCursorPos, diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx index 1beb43c1d254..782c8c40fb68 100644 --- a/sw/source/core/doc/number.cxx +++ b/sw/source/core/doc/number.cxx @@ -1049,17 +1049,17 @@ namespace numfunc return msFontname; } - inline bool IsFontnameUserDefined() const + bool IsFontnameUserDefined() const { return mbUserDefinedFontname; } - inline const vcl::Font& GetFont() const + const vcl::Font& GetFont() const { return *mpFont; } - inline sal_Unicode GetChar( sal_uInt8 p_nListLevel ) const + sal_Unicode GetChar( sal_uInt8 p_nListLevel ) const { if (p_nListLevel >= MAXLEVEL) { @@ -1275,7 +1275,7 @@ namespace numfunc public: static SwNumberingUIBehaviorConfig& getInstance(); - inline bool ChangeIndentOnTabAtFirstPosOfFirstListItem() const + bool ChangeIndentOnTabAtFirstPosOfFirstListItem() const { return mbChangeIndentOnTabAtFirstPosOfFirstListItem; } diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx index 0791f37309a9..21ac8346dd1f 100644 --- a/sw/source/core/docnode/section.cxx +++ b/sw/source/core/docnode/section.cxx @@ -84,7 +84,7 @@ public: virtual bool IsInRange( sal_uLong nSttNd, sal_uLong nEndNd, sal_Int32 nStt = 0, sal_Int32 nEnd = -1 ) const override; - inline SwSectionNode* GetSectNode() + SwSectionNode* GetSectNode() { const SwNode* pSectNd( GetAnchor() ); return const_cast( dynamic_cast( pSectNd ) ); diff --git a/sw/source/core/edit/edlingu.cxx b/sw/source/core/edit/edlingu.cxx index 74507f5bb34e..7397114ec600 100644 --- a/sw/source/core/edit/edlingu.cxx +++ b/sw/source/core/edit/edlingu.cxx @@ -75,21 +75,21 @@ class SwLinguIter public: SwLinguIter(); - inline SwEditShell *GetSh() { return pSh; } + SwEditShell *GetSh() { return pSh; } - inline const SwPosition *GetEnd() const { return pEnd; } - inline void SetEnd( SwPosition* pNew ){ delete pEnd; pEnd = pNew; } + const SwPosition *GetEnd() const { return pEnd; } + void SetEnd( SwPosition* pNew ){ delete pEnd; pEnd = pNew; } - inline const SwPosition *GetStart() const { return pStart; } - inline void SetStart( SwPosition* pNew ){ delete pStart; pStart = pNew; } + const SwPosition *GetStart() const { return pStart; } + void SetStart( SwPosition* pNew ){ delete pStart; pStart = pNew; } - inline const SwPosition *GetCurr() const { return pCurr; } - inline void SetCurr( SwPosition* pNew ){ delete pCurr; pCurr = pNew; } + const SwPosition *GetCurr() const { return pCurr; } + void SetCurr( SwPosition* pNew ){ delete pCurr; pCurr = pNew; } - inline const SwPosition *GetCurrX() const { return pCurrX; } - inline void SetCurrX( SwPosition* pNew ){ delete pCurrX; pCurrX = pNew; } + const SwPosition *GetCurrX() const { return pCurrX; } + void SetCurrX( SwPosition* pNew ){ delete pCurrX; pCurrX = pNew; } - inline sal_uInt16& GetCursorCnt(){ return nCursorCnt; } + sal_uInt16& GetCursorCnt(){ return nCursorCnt; } // for the UI: void Start_( SwEditShell *pSh, SwDocPositions eStart, diff --git a/sw/source/core/inc/UndoNumbering.hxx b/sw/source/core/inc/UndoNumbering.hxx index 7d2c6f9b84a8..e5f24a4290c6 100644 --- a/sw/source/core/inc/UndoNumbering.hxx +++ b/sw/source/core/inc/UndoNumbering.hxx @@ -62,7 +62,7 @@ class SwUndoDelNum : public SwUndo, private SwUndRng { sal_uLong index; int level; - inline NodeLevel(sal_uLong idx, int lvl) : index(idx), level(lvl) {}; + NodeLevel(sal_uLong idx, int lvl) : index(idx), level(lvl) {}; }; std::vector aNodes; std::unique_ptr pHistory; diff --git a/sw/source/core/inc/anchoredobjectposition.hxx b/sw/source/core/inc/anchoredobjectposition.hxx index afe6717c3de4..db35e88e3053 100644 --- a/sw/source/core/inc/anchoredobjectposition.hxx +++ b/sw/source/core/inc/anchoredobjectposition.hxx @@ -84,28 +84,28 @@ namespace objectpositioning virtual ~SwAnchoredObjectPosition(); // accessors for object and its corresponding data/information - inline SdrObject& GetObject() const + SdrObject& GetObject() const { return mrDrawObj; } - inline bool IsObjFly() const + bool IsObjFly() const { return mbIsObjFly; } - inline SwAnchoredObject& GetAnchoredObj() const + SwAnchoredObject& GetAnchoredObj() const { return *mpAnchoredObj; } - inline SwFrame& GetAnchorFrame() const + SwFrame& GetAnchorFrame() const { return *mpAnchorFrame; } - inline const SwFrameFormat& GetFrameFormat() const + const SwFrameFormat& GetFrameFormat() const { return *mpFrameFormat; } // #i62875# - inline bool DoesObjFollowsTextFlow() const + bool DoesObjFollowsTextFlow() const { return mbFollowTextFlow; } @@ -181,7 +181,7 @@ namespace objectpositioning object has to be checked and thus, (if needed) the proposed relative position has to be adjusted. default value */ - inline SwTwips AdjustVertRelPos( const SwTwips nTopOfAnch, + SwTwips AdjustVertRelPos( const SwTwips nTopOfAnch, const bool bVert, const bool bVertL2R, const SwFrame& rPageAlignLayFrame, @@ -261,7 +261,7 @@ namespace objectpositioning @return adjusted relative horizontal position in SwTwips. */ - inline SwTwips AdjustHoriRelPos( const SwFrame& _rPageAlignLayFrame, + SwTwips AdjustHoriRelPos( const SwFrame& _rPageAlignLayFrame, const SwTwips _nProposedRelPosX ) const { return !mbDoNotCaptureAnchoredObj diff --git a/sw/source/core/inc/dview.hxx b/sw/source/core/inc/dview.hxx index 34a1de4d21e1..54a74913df63 100644 --- a/sw/source/core/inc/dview.hxx +++ b/sw/source/core/inc/dview.hxx @@ -104,7 +104,7 @@ public: virtual void DeleteMarked() override; - inline void ValidateMarkList() { FlushComeBackTimer(); } + void ValidateMarkList() { FlushComeBackTimer(); } // #i99665# bool IsAntiAliasing() const; diff --git a/sw/source/core/inc/flowfrm.hxx b/sw/source/core/inc/flowfrm.hxx index 774c8d2a7225..f293b879cf58 100644 --- a/sw/source/core/inc/flowfrm.hxx +++ b/sw/source/core/inc/flowfrm.hxx @@ -152,8 +152,8 @@ public: static bool IsMoveBwdJump() { return m_bMoveBwdJump; } static void SetMoveBwdJump( bool bNew ){ m_bMoveBwdJump = bNew; } - inline void SetUndersized( const bool bNew ) { m_bUndersized = bNew; } - inline bool IsUndersized() const { return m_bUndersized; } + void SetUndersized( const bool bNew ) { m_bUndersized = bNew; } + bool IsUndersized() const { return m_bUndersized; } bool IsPrevObjMove() const; diff --git a/sw/source/core/inc/flyfrm.hxx b/sw/source/core/inc/flyfrm.hxx index 4fbb81868b7f..2b2b21d1a7ab 100644 --- a/sw/source/core/inc/flyfrm.hxx +++ b/sw/source/core/inc/flyfrm.hxx @@ -203,7 +203,7 @@ public: bool IsHeightClipped() const { return m_bHeightClipped; } bool IsLowerOf( const SwLayoutFrame* pUpper ) const; - inline bool IsUpperOf( const SwFlyFrame& _rLower ) const + bool IsUpperOf( const SwFlyFrame& _rLower ) const { return _rLower.IsLowerOf( this ); } diff --git a/sw/source/core/inc/flyfrms.hxx b/sw/source/core/inc/flyfrms.hxx index ac7a6ca5ad84..7c8425064957 100644 --- a/sw/source/core/inc/flyfrms.hxx +++ b/sw/source/core/inc/flyfrms.hxx @@ -71,23 +71,23 @@ public: virtual void MakeAll(vcl::RenderContext* pRenderContext) override; // #i37068# - accessors for member - inline void SetNoMoveOnCheckClip( const bool _bNewNoMoveOnCheckClip ) + void SetNoMoveOnCheckClip( const bool _bNewNoMoveOnCheckClip ) { mbNoMoveOnCheckClip = _bNewNoMoveOnCheckClip; } - inline bool IsNoMoveOnCheckClip() const + bool IsNoMoveOnCheckClip() const { return mbNoMoveOnCheckClip; } // #i34753# - accessors for member - inline void SetNoMakePos( const bool _bNoMakePos ) + void SetNoMakePos( const bool _bNoMakePos ) { if ( IsFlyLayFrame() ) { mbNoMakePos = _bNoMakePos; } } - inline bool IsNoMakePos() const + bool IsNoMakePos() const { if ( IsFlyLayFrame() ) { @@ -99,7 +99,7 @@ public: } } - inline const SwRect& GetUnclippedFrame( ) const + const SwRect& GetUnclippedFrame( ) const { if ( maUnclippedFrame.HasArea( ) ) return maUnclippedFrame; diff --git a/sw/source/core/inc/fntcache.hxx b/sw/source/core/inc/fntcache.hxx index 3ebd3d1711d7..e6c4fa47f0e7 100644 --- a/sw/source/core/inc/fntcache.hxx +++ b/sw/source/core/inc/fntcache.hxx @@ -38,7 +38,7 @@ class Point; class SwFntCache : public SwCache { public: - inline SwFntCache() : SwCache(50 + SwFntCache() : SwCache(50 #ifdef DBG_UTIL , OString(RTL_CONSTASCII_STRINGPARAM("Global Font-Cache pFntCache")) #endif @@ -87,12 +87,12 @@ public: virtual ~SwFntObj() override; - inline vcl::Font *GetScrFont() { return m_pScrFont; } - inline vcl::Font& GetFont() { return m_aFont; } - inline const vcl::Font& GetFont() const { return m_aFont; } + vcl::Font *GetScrFont() { return m_pScrFont; } + vcl::Font& GetFont() { return m_aFont; } + const vcl::Font& GetFont() const { return m_aFont; } - inline sal_uInt16 GetGuessedLeading() const { return m_nGuessedLeading; } - inline sal_uInt16 GetExternalLeading() const { return m_nExtLeading; } + sal_uInt16 GetGuessedLeading() const { return m_nGuessedLeading; } + sal_uInt16 GetExternalLeading() const { return m_nExtLeading; } sal_uInt16 GetFontAscent( const SwViewShell *pSh, const OutputDevice& rOut ); sal_uInt16 GetFontHeight( const SwViewShell *pSh, const OutputDevice& rOut ); @@ -101,10 +101,10 @@ public: void GuessLeading( const SwViewShell& rSh, const FontMetric& rMet ); void SetDevFont( const SwViewShell *pSh, OutputDevice& rOut ); - inline OutputDevice* GetPrt() const { return m_pPrinter; } - inline sal_uInt16 GetZoom() const { return m_nZoom; } - inline sal_uInt16 GetPropWidth() const { return m_nPropWidth; } - inline bool IsSymbol() const { return m_bSymbol; } + OutputDevice* GetPrt() const { return m_pPrinter; } + sal_uInt16 GetZoom() const { return m_nZoom; } + sal_uInt16 GetPropWidth() const { return m_nPropWidth; } + bool IsSymbol() const { return m_bSymbol; } void DrawText( SwDrawTextInfo &rInf ); /// determine the TextSize (of the printer) @@ -135,7 +135,7 @@ public: SwFntAccess( const void * &rMagic, sal_uInt16 &rIndex, const void *pOwner, SwViewShell const *pShell, bool bCheck = false ); - inline SwFntObj* Get() { return static_cast( SwCacheAccess::Get() ); } + SwFntObj* Get() { return static_cast( SwCacheAccess::Get() ); } }; #endif diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx index 47c7835d8738..8171908b71a7 100644 --- a/sw/source/core/inc/frame.hxx +++ b/sw/source/core/inc/frame.hxx @@ -411,14 +411,14 @@ public: inline void SetCompletePaint() const; inline void ResetCompletePaint() const; - inline bool IsCompletePaint() const { return mbCompletePaint; } + bool IsCompletePaint() const { return mbCompletePaint; } inline void SetRetouche() const; inline void ResetRetouche() const; - inline bool IsRetouche() const { return mbRetouche; } + bool IsRetouche() const { return mbRetouche; } void SetInfFlags(); - inline void InvalidateInfFlags() { mbInfInvalid = true; } + void InvalidateInfFlags() { mbInfInvalid = true; } inline bool IsInDocBody() const; // use InfoFlags, determine flags inline bool IsInFootnote() const; // if necessary inline bool IsInTab() const; @@ -435,15 +435,15 @@ public: bool IsInBalancedSection() const; - inline bool IsReverse() const { return mbReverse; } + bool IsReverse() const { return mbReverse; } inline bool IsVertical() const; inline bool IsVertLR() const; - inline void SetDerivedVert( bool bNew ){ mbDerivedVert = bNew; } - inline void SetInvalidVert( bool bNew) { mbInvalidVert = bNew; } + void SetDerivedVert( bool bNew ){ mbDerivedVert = bNew; } + void SetInvalidVert( bool bNew) { mbInvalidVert = bNew; } inline bool IsRightToLeft() const; - inline void SetDerivedR2L( bool bNew ) { mbDerivedR2L = bNew; } + void SetDerivedR2L( bool bNew ) { mbDerivedR2L = bNew; } void CheckDirChange(); // returns upper left frame position for LTR and @@ -477,7 +477,7 @@ public: const SwAttrSet *GetAttrSet() const; - inline bool HasFixSize() const { return mbFixSize; } + bool HasFixSize() const { return mbFixSize; } // check all pages (starting from the given) and correct them if needed static void CheckPageDescs( SwPageFrame *pStart, bool bNotifyFields = true, SwPageFrame** ppPrev = nullptr); @@ -732,11 +732,11 @@ public: void MakeUpperPos( const SwFrame*, const SwFrame*, bool ); void MakeLeftPos( const SwFrame*, const SwFrame*, bool ); void MakeRightPos( const SwFrame*, const SwFrame*, bool ); - inline bool IsNeighbourFrame() const + bool IsNeighbourFrame() const { return bool(GetType() & FRM_NEIGHBOUR); } // #i65250# - inline sal_uInt32 GetFrameId() const { return mnFrameId; } + sal_uInt32 GetFrameId() const { return mnFrameId; } // NEW TABLES // Some functions for covered/covering table cells. This way unnecessary diff --git a/sw/source/core/inc/frminf.hxx b/sw/source/core/inc/frminf.hxx index 99713647b5de..8ec58e1a94d9 100644 --- a/sw/source/core/inc/frminf.hxx +++ b/sw/source/core/inc/frminf.hxx @@ -34,7 +34,7 @@ class SwTextFrameInfo static SwTwips GetLineStart( const SwTextCursor &rLine ); public: - inline SwTextFrameInfo( const SwTextFrame *pTextFrame ) : pFrame(pTextFrame) { } + SwTextFrameInfo( const SwTextFrame *pTextFrame ) : pFrame(pTextFrame) { } // Does the paragraph fit into a single line? bool IsOneLine() const; diff --git a/sw/source/core/inc/frmtool.hxx b/sw/source/core/inc/frmtool.hxx index b6b56e031717..81453b10487c 100644 --- a/sw/source/core/inc/frmtool.hxx +++ b/sw/source/core/inc/frmtool.hxx @@ -329,10 +329,10 @@ public: SwBorderAttrs( const SwModify *pOwner, const SwFrame *pConstructor ); virtual ~SwBorderAttrs() override; - inline const SwAttrSet &GetAttrSet() const { return m_rAttrSet; } - inline const SvxULSpaceItem &GetULSpace() const { return m_rUL; } - inline const SvxBoxItem &GetBox() const { return m_rBox; } - inline const SvxShadowItem &GetShadow() const { return m_rShadow; } + const SwAttrSet &GetAttrSet() const { return m_rAttrSet; } + const SvxULSpaceItem &GetULSpace() const { return m_rUL; } + const SvxBoxItem &GetBox() const { return m_rBox; } + const SvxShadowItem &GetShadow() const { return m_rShadow; } inline sal_uInt16 CalcTopLine() const; inline sal_uInt16 CalcBottomLine() const; @@ -345,9 +345,9 @@ public: inline bool IsLine() const; - inline const Size &GetSize() const { return m_aFrameSize; } + const Size &GetSize() const { return m_aFrameSize; } - inline bool IsBorderDist() const { return m_bBorderDist; } + bool IsBorderDist() const { return m_bBorderDist; } // Should upper (or lower) border be evaluated for this frame? // #i25029# - If <_pPrevFrame> is set, its value is taken for testing, if diff --git a/sw/source/core/inc/ftnboss.hxx b/sw/source/core/inc/ftnboss.hxx index b001a948c413..907b8e3d98cf 100644 --- a/sw/source/core/inc/ftnboss.hxx +++ b/sw/source/core/inc/ftnboss.hxx @@ -64,14 +64,14 @@ protected: static void ResetFootnote( const SwFootnoteFrame *pAssumed ); public: - inline SwFootnoteBossFrame( SwFrameFormat* pFormat, SwFrame* pSib ) + SwFootnoteBossFrame( SwFrameFormat* pFormat, SwFrame* pSib ) : SwLayoutFrame( pFormat, pSib ) , nMaxFootnoteHeight(0) {} SwLayoutFrame *FindBodyCont(); inline const SwLayoutFrame *FindBodyCont() const; - inline void SetMaxFootnoteHeight( const SwTwips nNewMax ) { nMaxFootnoteHeight = nNewMax; } + void SetMaxFootnoteHeight( const SwTwips nNewMax ) { nMaxFootnoteHeight = nNewMax; } // footnote interface void AppendFootnote( SwContentFrame *, SwTextFootnote * ); diff --git a/sw/source/core/inc/ftnfrm.hxx b/sw/source/core/inc/ftnfrm.hxx index 974ad841783f..d9770da00662 100644 --- a/sw/source/core/inc/ftnfrm.hxx +++ b/sw/source/core/inc/ftnfrm.hxx @@ -110,19 +110,19 @@ public: bool IsBackMoveLocked() { return bBackMoveLocked; } // prevents that the last content deletes the SwFootnoteFrame as well (Cut()) - inline void ColLock() { mbColLocked = true; } - inline void ColUnlock() { mbColLocked = false; } + void ColLock() { mbColLocked = true; } + void ColUnlock() { mbColLocked = false; } // #i49383# - inline void UnlockPosOfLowerObjs() + void UnlockPosOfLowerObjs() { mbUnlockPosOfLowerObjs = true; } - inline void KeepLockPosOfLowerObjs() + void KeepLockPosOfLowerObjs() { mbUnlockPosOfLowerObjs = false; } - inline bool IsUnlockPosOfLowerObjs() + bool IsUnlockPosOfLowerObjs() { return mbUnlockPosOfLowerObjs; } diff --git a/sw/source/core/inc/ifinishedthreadlistener.hxx b/sw/source/core/inc/ifinishedthreadlistener.hxx index 6bc78b9adcd2..2ff8197d2ccc 100644 --- a/sw/source/core/inc/ifinishedthreadlistener.hxx +++ b/sw/source/core/inc/ifinishedthreadlistener.hxx @@ -30,14 +30,14 @@ class IFinishedThreadListener { public: - inline virtual ~IFinishedThreadListener() + virtual ~IFinishedThreadListener() { }; virtual void NotifyAboutFinishedThread( const oslInterlockedCount nThreadID ) = 0; protected: - inline IFinishedThreadListener() + IFinishedThreadListener() { }; }; diff --git a/sw/source/core/inc/layact.hxx b/sw/source/core/inc/layact.hxx index 0541a20d6eae..51b71f056e16 100644 --- a/sw/source/core/inc/layact.hxx +++ b/sw/source/core/inc/layact.hxx @@ -150,7 +150,7 @@ public: void SetUpdateExpFields() {m_bUpdateExpFields = true; } inline void SetCheckPageNum( sal_uInt16 nNew ); - inline void SetCheckPageNumDirect( sal_uInt16 nNew ) { m_nCheckPageNum = nNew; } + void SetCheckPageNumDirect( sal_uInt16 nNew ) { m_nCheckPageNum = nNew; } void Action(OutputDevice* pRenderContext); // here it begins void Reset(); // back to CTor-defaults diff --git a/sw/source/core/inc/objectformatter.hxx b/sw/source/core/inc/objectformatter.hxx index ddeb9d189074..e28839310e83 100644 --- a/sw/source/core/inc/objectformatter.hxx +++ b/sw/source/core/inc/objectformatter.hxx @@ -83,17 +83,17 @@ class SwObjectFormatter virtual SwFrame& GetAnchorFrame() = 0; - inline const SwPageFrame& GetPageFrame() const + const SwPageFrame& GetPageFrame() const { return mrPageFrame; } - inline bool ConsiderWrapOnObjPos() const + bool ConsiderWrapOnObjPos() const { return mbConsiderWrapOnObjPos; } - inline SwLayAction* GetLayAction() + SwLayAction* GetLayAction() { return mpLayAction; } diff --git a/sw/source/core/inc/observablethread.hxx b/sw/source/core/inc/observablethread.hxx index 22ded200ca23..313cc29493e3 100644 --- a/sw/source/core/inc/observablethread.hxx +++ b/sw/source/core/inc/observablethread.hxx @@ -46,10 +46,10 @@ class ObservableThread : public osl::Thread, void SetListener( std::weak_ptr< IFinishedThreadListener > const & pThreadListener, const oslInterlockedCount nThreadID ); - static inline void * operator new(std::size_t size) + static void * operator new(std::size_t size) { return SimpleReferenceObject::operator new(size); } - static inline void operator delete(void * pointer) + static void operator delete(void * pointer) { SimpleReferenceObject::operator delete(pointer); } protected: diff --git a/sw/source/core/inc/pagefrm.hxx b/sw/source/core/inc/pagefrm.hxx index f1505fa63ba7..3bb152e40cef 100644 --- a/sw/source/core/inc/pagefrm.hxx +++ b/sw/source/core/inc/pagefrm.hxx @@ -188,8 +188,8 @@ public: void SetFootnotePage( bool b ) { m_bFootnotePage = b; } void SetEndNotePage( bool b ) { m_bEndNotePage = b; } - inline sal_uInt16 GetPhyPageNum() const { return m_nPhyPageNum;} - inline void SetPhyPageNum( sal_uInt16 nNum ) { m_nPhyPageNum = nNum;} + sal_uInt16 GetPhyPageNum() const { return m_nPhyPageNum;} + void SetPhyPageNum( sal_uInt16 nNum ) { m_nPhyPageNum = nNum;} /// Validate, invalidate and query the Page status /// Layout/Content and Fly/non-Fly respectively are inspected separately diff --git a/sw/source/core/inc/scriptinfo.hxx b/sw/source/core/inc/scriptinfo.hxx index 983c1c39b4fc..8ff8bcca6279 100644 --- a/sw/source/core/inc/scriptinfo.hxx +++ b/sw/source/core/inc/scriptinfo.hxx @@ -46,7 +46,7 @@ private: { sal_Int32 position; //!< Character position at which we change script sal_uInt8 type; //!< Script type (Latin/Asian/Complex) that we change to. - inline ScriptChangeInfo(sal_Int32 pos, sal_uInt8 typ) : position(pos), type(typ) {}; + ScriptChangeInfo(sal_Int32 pos, sal_uInt8 typ) : position(pos), type(typ) {}; }; //TODO - This is sorted, so should probably be a std::set rather than vector. // But we also use random access (probably unnecessarily). @@ -56,7 +56,7 @@ private: { sal_Int32 position; //!< Character position at which we change direction. sal_uInt8 type; //!< Direction that we change to. - inline DirectionChangeInfo(sal_Int32 pos, sal_uInt8 typ) : position(pos), type(typ) {}; + DirectionChangeInfo(sal_Int32 pos, sal_uInt8 typ) : position(pos), type(typ) {}; }; std::vector aDirectionChanges; std::deque< sal_Int32 > aKashida; @@ -70,7 +70,7 @@ private: sal_Int32 position; //!< Character position where the change occurs. sal_Int32 length; //!< Length of the segment. CompType type; //!< Type of compression that we change to. - inline CompressionChangeInfo(sal_Int32 pos, sal_Int32 len, CompType typ) : position(pos), length(len), type(typ) {}; + CompressionChangeInfo(sal_Int32 pos, sal_Int32 len, CompType typ) : position(pos), length(len), type(typ) {}; }; std::vector aCompressionChanges; #ifdef DBG_UTIL @@ -112,7 +112,7 @@ public: } // get default direction for paragraph - inline sal_uInt8 GetDefaultDir() const { return nDefaultDir; }; + sal_uInt8 GetDefaultDir() const { return nDefaultDir; }; // array operations, nCnt refers to array position size_t CountScriptChg() const { return aScriptChanges.size(); } diff --git a/sw/source/core/inc/sectfrm.hxx b/sw/source/core/inc/sectfrm.hxx index 5a9431f63eb1..4bad9cf5b1e0 100644 --- a/sw/source/core/inc/sectfrm.hxx +++ b/sw/source/core/inc/sectfrm.hxx @@ -82,10 +82,10 @@ public: SwContentFrame *FindLastContent( SwFindMode nMode = SwFindMode::None ); inline const SwContentFrame *FindLastContent() const; - inline SwSection* GetSection() { return m_pSection; } - inline const SwSection* GetSection() const { return m_pSection; } - inline void ColLock() { mbColLocked = true; } - inline void ColUnlock() { mbColLocked = false; } + SwSection* GetSection() { return m_pSection; } + const SwSection* GetSection() const { return m_pSection; } + void ColLock() { mbColLocked = true; } + void ColUnlock() { mbColLocked = false; } void CalcFootnoteContent(); void SimpleFormat(); @@ -110,7 +110,7 @@ public: * if bCheckFollow is set. */ bool ToMaximize( bool bCheckFollow ) const; - inline bool ToMaximize_() const { + bool ToMaximize_() const { if( !m_pSection ) return false; return ToMaximize( false ); } diff --git a/sw/source/core/inc/swcache.hxx b/sw/source/core/inc/swcache.hxx index d8dfe25687b4..5e6a81d07781 100644 --- a/sw/source/core/inc/swcache.hxx +++ b/sw/source/core/inc/swcache.hxx @@ -110,10 +110,10 @@ public: inline void IncreaseMax( const sal_uInt16 nAdd ); inline void DecreaseMax( const sal_uInt16 nSub ); sal_uInt16 GetCurMax() const { return m_nCurMax; } - inline SwCacheObj *First() { return m_pRealFirst; } + SwCacheObj *First() { return m_pRealFirst; } static inline SwCacheObj *Next( SwCacheObj *pCacheObj); - inline SwCacheObj* operator[](sal_uInt16 nIndex) { return m_aCacheObjects[nIndex]; } - inline sal_uInt16 size() { return m_aCacheObjects.size(); } + SwCacheObj* operator[](sal_uInt16 nIndex) { return m_aCacheObjects[nIndex]; } + sal_uInt16 size() { return m_aCacheObjects.size(); } }; /// Safely manipulate the cache @@ -143,12 +143,12 @@ class SwCacheObj sal_uInt8 m_nLock; - inline SwCacheObj *GetNext() { return m_pNext; } - inline SwCacheObj *GetPrev() { return m_pPrev; } - inline void SetNext( SwCacheObj *pNew ) { m_pNext = pNew; } - inline void SetPrev( SwCacheObj *pNew ) { m_pPrev = pNew; } + SwCacheObj *GetNext() { return m_pNext; } + SwCacheObj *GetPrev() { return m_pPrev; } + void SetNext( SwCacheObj *pNew ) { m_pNext = pNew; } + void SetPrev( SwCacheObj *pNew ) { m_pPrev = pNew; } - inline void SetCachePos( const sal_uInt16 nNew ) { m_nCachePos = nNew; } + void SetCachePos( const sal_uInt16 nNew ) { m_nCachePos = nNew; } protected: const void *m_pOwner; @@ -158,12 +158,12 @@ public: SwCacheObj( const void *pOwner ); virtual ~SwCacheObj(); - inline const void *GetOwner() const { return m_pOwner; } + const void *GetOwner() const { return m_pOwner; } inline bool IsOwner( const void *pNew ) const; - inline sal_uInt16 GetCachePos() const { return m_nCachePos; } + sal_uInt16 GetCachePos() const { return m_nCachePos; } - inline bool IsLocked() const { return 0 != m_nLock; } + bool IsLocked() const { return 0 != m_nLock; } #ifdef DBG_UTIL void Lock(); diff --git a/sw/source/core/inc/swfntcch.hxx b/sw/source/core/inc/swfntcch.hxx index 19d50e3808a0..244291e4c555 100644 --- a/sw/source/core/inc/swfntcch.hxx +++ b/sw/source/core/inc/swfntcch.hxx @@ -33,7 +33,7 @@ class SwFontCache : public SwCache { public: - inline SwFontCache() : SwCache(50 + SwFontCache() : SwCache(50 #ifdef DBG_UTIL , "Global AttributSet/Font-Cache pSwFontCache" #endif @@ -59,9 +59,9 @@ public: virtual ~SwFontObj() override; - inline SwFont& GetFont() { return aSwFont; } - inline const SwFont& GetFont() const { return aSwFont; } - inline const SfxPoolItem** GetDefault() { return pDefaultArray; } + SwFont& GetFont() { return aSwFont; } + const SwFont& GetFont() const { return aSwFont; } + const SfxPoolItem** GetDefault() { return pDefaultArray; } }; class SwFontAccess : public SwCacheAccess diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx index caef07ddc31d..4b94ff256bdb 100644 --- a/sw/source/core/inc/swfont.hxx +++ b/sw/source/core/inc/swfont.hxx @@ -108,12 +108,12 @@ class SwSubFont : public SvxFont inline void SetSize( const Size& rSize ); inline void SetWeight( const FontWeight eWeight ); inline void SetLanguage( LanguageType eNewLang ); - inline short CheckKerning() + short CheckKerning() { return GetFixKerning() >= 0 ? GetFixKerning() : CheckKerning_( ); } - inline void SetPropWidth( const sal_uInt16 nNew ) + void SetPropWidth( const sal_uInt16 nNew ) { m_pMagic = nullptr; m_nProportionalWidth = nNew; } public: - inline SwSubFont() : m_aSize(0,0) + SwSubFont() : m_aSize(0,0) { m_pMagic = nullptr; m_nFontIndex = m_nOrgHeight = m_nOrgAscent = 0; m_nProportionalWidth =100; m_bSmallCapsPercentage66 = false; } sal_uInt16 GetPropWidth() const { return m_nProportionalWidth; } }; @@ -175,48 +175,48 @@ public: SwFont( const SwAttrSet* pSet, const IDocumentSettingAccess* pIDocumentSettingAccess ); SwFont( const SwFont& rFont ); - inline void ChgFnt( SwViewShell const *pSh, OutputDevice& rOut ) + void ChgFnt( SwViewShell const *pSh, OutputDevice& rOut ) { m_bPaintBlank = m_aSub[m_nActual].ChgFnt( pSh, rOut ); } ~SwFont(); SwFont& operator=( const SwFont &rFont ); - inline SwFontScript GetActual() const { return m_nActual; } + SwFontScript GetActual() const { return m_nActual; } inline void SetActual( SwFontScript nNew ); - inline const SvxFont& GetActualFont() const { return m_aSub[m_nActual]; } + const SvxFont& GetActualFont() const { return m_aSub[m_nActual]; } // gets a MagicNumber via SwFntAccess void GoMagic( SwViewShell *pSh, SwFontScript nWhich ); // set background color void SetBackColor( Color* pNewColor ); - inline const Color* GetBackColor() const{ return m_pBackColor.get(); } + const Color* GetBackColor() const{ return m_pBackColor.get(); } void SetHighlightColor( const Color& aNewColor ); const Color& GetHighlightColor() const { return m_aHighlightColor; } - inline void ChkMagic( SwViewShell *pSh, SwFontScript nWhich ) + void ChkMagic( SwViewShell *pSh, SwFontScript nWhich ) { if( !m_aSub[ nWhich ].m_pMagic ) GoMagic( pSh, nWhich ); } - inline void GetMagic( const void* &rMagic, sal_uInt16 &rIdx, SwFontScript nWhich ) + void GetMagic( const void* &rMagic, sal_uInt16 &rIdx, SwFontScript nWhich ) { rMagic = m_aSub[nWhich].m_pMagic; rIdx = m_aSub[nWhich].m_nFontIndex; } - inline void SetMagic( const void* pNew, const sal_uInt16 nIdx, SwFontScript nWhich ) + void SetMagic( const void* pNew, const sal_uInt16 nIdx, SwFontScript nWhich ) { m_aSub[nWhich].m_pMagic = pNew; m_aSub[nWhich].m_nFontIndex = nIdx; } - inline bool DifferentMagic( const SwFont* pFnt, SwFontScript nWhich ) + bool DifferentMagic( const SwFont* pFnt, SwFontScript nWhich ) { return m_aSub[nWhich].m_pMagic != pFnt->m_aSub[nWhich].m_pMagic || !m_aSub[nWhich].m_pMagic || !pFnt->m_aSub[nWhich].m_pMagic; } - inline const Size &GetSize( SwFontScript nWhich ) const + const Size &GetSize( SwFontScript nWhich ) const { return m_aSub[nWhich].m_aSize; } - inline bool IsFntChg() const { return m_bFontChg; } - inline void SetFntChg( const bool bNew ) { m_bFontChg = bNew; } + bool IsFntChg() const { return m_bFontChg; } + void SetFntChg( const bool bNew ) { m_bFontChg = bNew; } // the encapsulated SV-Font-methods (set bFntChg to true) inline void SetColor( const Color& rColor ); inline void SetFillColor( const Color& rColor ); inline void SetAlign( const FontAlign eAlign ); inline void SetUnderline( const FontLineStyle eUnderline ); - inline void SetUnderColor( const Color &rColor ) { m_aUnderColor = rColor; } + void SetUnderColor( const Color &rColor ) { m_aUnderColor = rColor; } inline void SetOverline( const FontLineStyle eOverline ); - inline void SetOverColor( const Color &rColor ) { m_aOverColor = rColor; } + void SetOverColor( const Color &rColor ) { m_aOverColor = rColor; } inline void SetStrikeout( const FontStrikeout eStrikeout ); inline void SetOutline( const bool bOutline ); void SetVertical( sal_uInt16 nDir, const bool bVertLayout = false ); @@ -248,26 +248,26 @@ public: // Get/Set-methods for the current setting inline void SetNoHyph( const bool bNew ); inline void SetBlink( const bool bBlink ); - inline bool IsBlink() const { return m_bBlink; } - inline sal_uInt8 &GetTox() { return m_nToxCount; } - inline bool IsTox() const { return ( 0 != m_nToxCount ); } - inline sal_uInt8 &GetRef() { return m_nRefCount; } - inline bool IsRef() const { return ( 0 != m_nRefCount ); } - inline sal_uInt8 &GetMeta() { return m_nMetaCount; } - inline bool IsMeta() const { return (0 != m_nMetaCount); } - inline sal_uInt8 &GetInputField() { return m_nInputFieldCount; } - inline bool IsInputField() const { return (0 != m_nInputFieldCount); } - inline bool IsURL() const { return m_bURL; } + bool IsBlink() const { return m_bBlink; } + sal_uInt8 &GetTox() { return m_nToxCount; } + bool IsTox() const { return ( 0 != m_nToxCount ); } + sal_uInt8 &GetRef() { return m_nRefCount; } + bool IsRef() const { return ( 0 != m_nRefCount ); } + sal_uInt8 &GetMeta() { return m_nMetaCount; } + bool IsMeta() const { return (0 != m_nMetaCount); } + sal_uInt8 &GetInputField() { return m_nInputFieldCount; } + bool IsInputField() const { return (0 != m_nInputFieldCount); } + bool IsURL() const { return m_bURL; } inline void SetGreyWave( const bool bNew ); - inline bool IsGreyWave() const { return m_bGreyWave; } + bool IsGreyWave() const { return m_bGreyWave; } inline void SetNoCol( const bool bNew ); - inline bool IsPaintBlank() const { return m_bPaintBlank; } + bool IsPaintBlank() const { return m_bPaintBlank; } // setting of the base class font for SwTextCharFormat void SetDiffFnt( const SfxItemSet* pSet, const IDocumentSettingAccess* pIDocumentSettingAccess ); - inline const SvxFont &GetFnt( const SwFontScript nWhich ) const + const SvxFont &GetFnt( const SwFontScript nWhich ) const { return m_aSub[nWhich]; }; bool IsSymbol( SwViewShell *pSh ) @@ -290,13 +290,13 @@ public: { return m_aSub[m_nActual].GetEmphasisMark(); } sal_uInt16 GetOrientation( const bool bVertLayout = false ) const; - inline const OUString& GetName( const SwFontScript nWhich ) const + const OUString& GetName( const SwFontScript nWhich ) const { return m_aSub[nWhich].GetFamilyName(); } - inline LanguageType GetLanguage( const SwFontScript nWhich ) const + LanguageType GetLanguage( const SwFontScript nWhich ) const { return m_aSub[nWhich].GetLanguage(); } - inline rtl_TextEncoding GetCharSet( const SwFontScript nWhich ) const + rtl_TextEncoding GetCharSet( const SwFontScript nWhich ) const { return m_aSub[nWhich].GetCharSet(); } - inline long GetHeight( const SwFontScript nWhich ) const + long GetHeight( const SwFontScript nWhich ) const { return m_aSub[nWhich].GetFontSize().Height(); } // makes the logical font be effective in the OutputDevice @@ -318,21 +318,21 @@ public: sal_Int32 GetCursorOfst_( SwDrawTextInfo& rInf ) { return m_aSub[m_nActual].GetCursorOfst_( rInf ); } - inline void DrawText_( SwDrawTextInfo &rInf ) + void DrawText_( SwDrawTextInfo &rInf ) { m_aSub[m_nActual].DrawText_( rInf, IsGreyWave() ); } - inline void DrawStretchText_( SwDrawTextInfo &rInf ) + void DrawStretchText_( SwDrawTextInfo &rInf ) { m_aSub[m_nActual].DrawStretchText_( rInf ); } - inline short CheckKerning() + short CheckKerning() { return m_aSub[m_nActual].CheckKerning(); } - inline sal_uInt16 GetAscent( SwViewShell *pSh, const OutputDevice& rOut ) + sal_uInt16 GetAscent( SwViewShell *pSh, const OutputDevice& rOut ) { return m_aSub[m_nActual].GetAscent( pSh, rOut ); } - inline sal_uInt16 GetHeight( SwViewShell *pSh, const OutputDevice& rOut ) + sal_uInt16 GetHeight( SwViewShell *pSh, const OutputDevice& rOut ) { return m_aSub[m_nActual].GetHeight( pSh, rOut ); } - inline void Invalidate() + void Invalidate() { m_bFontChg = m_bOrgChg = true; } void SetTopBorder( const editeng::SvxBorderLine* pTopBorder ); diff --git a/sw/source/core/inc/threadmanager.hxx b/sw/source/core/inc/threadmanager.hxx index 4c9dcff0b202..f52d26feb06a 100644 --- a/sw/source/core/inc/threadmanager.hxx +++ b/sw/source/core/inc/threadmanager.hxx @@ -76,7 +76,7 @@ class ThreadManager final Suspending the starting of further threads is sensible during the destruction of a Writer document. */ - inline void SuspendStartingOfThreads() + void SuspendStartingOfThreads() { osl::MutexGuard aGuard(maMutex); @@ -87,7 +87,7 @@ class ThreadManager final */ void ResumeStartingOfThreads(); - inline bool StartingOfThreadsSuspended() + bool StartingOfThreadsSuspended() { osl::MutexGuard aGuard(maMutex); diff --git a/sw/source/core/inc/txmsrt.hxx b/sw/source/core/inc/txmsrt.hxx index a028b04c865d..c4a8b9924cac 100644 --- a/sw/source/core/inc/txmsrt.hxx +++ b/sw/source/core/inc/txmsrt.hxx @@ -88,7 +88,7 @@ public: const TextAndReading& rTaR2, const css::lang::Locale& rLocale2 ) const; - inline bool IsEqual( const TextAndReading& rTaR1, + bool IsEqual( const TextAndReading& rTaR1, const css::lang::Locale& rLocale1, const TextAndReading& rTaR2, const css::lang::Locale& rLocale2 ) const @@ -96,7 +96,7 @@ public: return 0 == Compare( rTaR1, rLocale1, rTaR2, rLocale2 ); } - inline bool IsLess( const TextAndReading& rTaR1, + bool IsLess( const TextAndReading& rTaR1, const css::lang::Locale& rLocale1, const TextAndReading& rTaR2, const css::lang::Locale& rLocale2 ) const diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx index 36f93275b247..6fe54f9e4088 100644 --- a/sw/source/core/inc/txtfrm.hxx +++ b/sw/source/core/inc/txtfrm.hxx @@ -121,12 +121,12 @@ class SW_DLLPUBLIC SwTextFrame: public SwContentFrame bool mbFollowFormatAllowed : 1; void ResetPreps(); - inline void Lock() { mbLocked = true; } - inline void Unlock() { mbLocked = false; } - inline void SetWidow( const bool bNew ) { mbWidow = bNew; } - inline void SetJustWidow( const bool bNew ) { mbJustWidow = bNew; } - inline void SetEmpty( const bool bNew ) { mbEmpty = bNew; } - inline void SetFieldFollow( const bool bNew ) { mbFieldFollow = bNew; } + void Lock() { mbLocked = true; } + void Unlock() { mbLocked = false; } + void SetWidow( const bool bNew ) { mbWidow = bNew; } + void SetJustWidow( const bool bNew ) { mbJustWidow = bNew; } + void SetEmpty( const bool bNew ) { mbEmpty = bNew; } + void SetFieldFollow( const bool bNew ) { mbFieldFollow = bNew; } bool IsIdxInside( const sal_Int32 nPos, const sal_Int32 nLen ) const; @@ -273,7 +273,7 @@ public: * Makes sure that the Frame is not switched (e.g. switched for a * character-bound Frame) */ - inline bool GetKeyCursorOfst(SwPosition *pPos, const Point &rPoint ) const + bool GetKeyCursorOfst(SwPosition *pPos, const Point &rPoint ) const { return GetCursorOfst_( pPos, rPoint, false ); } void PaintExtraData( const SwRect & rRect ) const; /// Page number etc. @@ -309,22 +309,22 @@ public: /// Methods to manage the FollowFrame void SplitFrame( const sal_Int32 nTextPos ); SwContentFrame *JoinFrame(); - inline sal_Int32 GetOfst() const { return mnOffset; } + sal_Int32 GetOfst() const { return mnOffset; } void SetOfst_( const sal_Int32 nNewOfst ); inline void SetOfst ( const sal_Int32 nNewOfst ); - inline void ManipOfst ( const sal_Int32 nNewOfst ){ mnOffset = nNewOfst; } + void ManipOfst ( const sal_Int32 nNewOfst ){ mnOffset = nNewOfst; } SwTextFrame *GetFrameAtPos ( const SwPosition &rPos); inline const SwTextFrame *GetFrameAtPos ( const SwPosition &rPos) const; SwTextFrame& GetFrameAtOfst( const sal_Int32 nOfst ); /// If there's a Follow and we don't contain text ourselves - inline bool IsEmptyMaster() const + bool IsEmptyMaster() const { return GetFollow() && !GetFollow()->GetOfst(); } /// Returns the text portion we want to edit (for inline see underneath) const OUString& GetText() const; - inline SwTextNode *GetTextNode() + SwTextNode *GetTextNode() { return static_cast< SwTextNode* >( SwContentFrame::GetNode()); } - inline const SwTextNode *GetTextNode() const + const SwTextNode *GetTextNode() const { return static_cast< const SwTextNode* >( SwContentFrame::GetNode()); } SwTextFrame(SwTextNode * const, SwFrame* ); @@ -377,26 +377,26 @@ public: DECL_FIXEDMEMPOOL_NEWDEL(SwTextFrame) // Locking - inline bool IsLocked() const { return mbLocked; } + bool IsLocked() const { return mbLocked; } - inline bool IsWidow() const { return mbWidow; } - inline bool IsJustWidow() const { return mbJustWidow; } - inline bool IsEmpty() const { return mbEmpty; } - inline bool HasFootnote() const { return mbFootnote; } - inline bool IsInFootnoteConnect()const { return mbInFootnoteConnect;} - inline bool IsFieldFollow() const { return mbFieldFollow;} + bool IsWidow() const { return mbWidow; } + bool IsJustWidow() const { return mbJustWidow; } + bool IsEmpty() const { return mbEmpty; } + bool HasFootnote() const { return mbFootnote; } + bool IsInFootnoteConnect()const { return mbInFootnoteConnect;} + bool IsFieldFollow() const { return mbFieldFollow;} inline void SetRepaint() const; inline void ResetRepaint() const; - inline bool HasRepaint() const { return mbRepaint; } + bool HasRepaint() const { return mbRepaint; } inline void SetBlinkPor() const; inline void ResetBlinkPor() const; - inline bool HasBlinkPor() const { return mbHasBlinkPortions; } - inline void SetAnimation() const + bool HasBlinkPor() const { return mbHasBlinkPortions; } + void SetAnimation() const { const_cast(this)->mbHasAnimation = true; } - inline bool HasAnimation() const { return mbHasAnimation; } + bool HasAnimation() const { return mbHasAnimation; } - inline bool IsSwapped() const { return mbIsSwapped; } + bool IsSwapped() const { return mbIsSwapped; } /// Does the Frame have a local footnote (in this Frame or Follow)? #ifdef DBG_UTIL @@ -422,7 +422,7 @@ public: const sal_Int32 nLen = COMPLETE_STRING ); inline SwTwips GetFootnoteFrameHeight() const; SwTextFrame *FindFootnoteRef( const SwTextFootnote *pFootnote ); - inline const SwTextFrame *FindFootnoteRef( const SwTextFootnote *pFootnote ) const + const SwTextFrame *FindFootnoteRef( const SwTextFootnote *pFootnote ) const { return const_cast(this)->FindFootnoteRef( pFootnote ); } void ConnectFootnote( SwTextFootnote *pFootnote, const SwTwips nDeadLine ); @@ -455,7 +455,7 @@ public: SwTextFrame* GetFormatted( bool bForceQuickFormat = false ); /// Will be moved soon - inline void SetFootnote( const bool bNew ) { mbFootnote = bNew; } + void SetFootnote( const bool bNew ) { mbFootnote = bNew; } /// Respect the Follows inline bool IsInside( const sal_Int32 nPos ) const; @@ -463,7 +463,7 @@ public: const SwBodyFrame *FindBodyFrame() const; /// DropCaps and selections - inline bool GetDropRect( SwRect &rRect ) const + bool GetDropRect( SwRect &rRect ) const { return HasPara() && GetDropRect_( rRect ); } static SwCache *GetTextCache() { return pTextCache; } @@ -471,14 +471,14 @@ public: static long GetMinPrtLine() { return nMinPrtLine; } - inline sal_uInt16 GetCacheIdx() const { return mnCacheIndex; } - inline void SetCacheIdx( const sal_uInt16 nNew ) { mnCacheIndex = nNew; } + sal_uInt16 GetCacheIdx() const { return mnCacheIndex; } + void SetCacheIdx( const sal_uInt16 nNew ) { mnCacheIndex = nNew; } /// Removes the Line information from the Cache void ClearPara(); /// Am I a FootnoteFrame, with a number at the start of the paragraph? - inline bool IsFootnoteNumFrame() const + bool IsFootnoteNumFrame() const { return IsInFootnote() && !GetIndPrev() && IsFootnoteNumFrame_(); } /** @@ -495,7 +495,7 @@ public: */ void CalcAdditionalFirstLineOffset(); - inline SwTwips GetAdditionalFirstLineOffset() const + SwTwips GetAdditionalFirstLineOffset() const { return mnAdditionalFirstLineOffset; } @@ -591,25 +591,25 @@ public: * Calculates the coordinates of a rectangle when switching from * RTL to LTR layout */ - inline void SwitchRTLtoLTR( SwRect& rRect ) const { SwitchLTRtoRTL( rRect ); } + void SwitchRTLtoLTR( SwRect& rRect ) const { SwitchLTRtoRTL( rRect ); } /** * Calculates the coordinates of a point when switching from * RTL to LTR layout */ - inline void SwitchRTLtoLTR( Point& rPoint ) const { SwitchLTRtoRTL( rPoint ); }; + void SwitchRTLtoLTR( Point& rPoint ) const { SwitchLTRtoRTL( rPoint ); }; - inline bool FollowFormatAllowed() const + bool FollowFormatAllowed() const { return mbFollowFormatAllowed; } - inline void AllowFollowFormat() + void AllowFollowFormat() { mbFollowFormatAllowed = true; } - inline void ForbidFollowFormat() + void ForbidFollowFormat() { mbFollowFormatAllowed = false; } @@ -623,7 +623,7 @@ public: SwTwips GetBaseVertOffsetForFly(bool bIgnoreFlysAnchoredAtThisFrame) const; - inline SwTwips GetHeightOfLastLine() const + SwTwips GetHeightOfLastLine() const { return mnHeightOfLastLine; } diff --git a/sw/source/core/inc/viewimp.hxx b/sw/source/core/inc/viewimp.hxx index 87b7b24fc708..011132457c5b 100644 --- a/sw/source/core/inc/viewimp.hxx +++ b/sw/source/core/inc/viewimp.hxx @@ -211,7 +211,7 @@ public: void InitPagePreviewLayout(); - inline SwPagePreviewLayout* PagePreviewLayout() + SwPagePreviewLayout* PagePreviewLayout() { return m_pPagePreviewLayout; } diff --git a/sw/source/core/inc/wrong.hxx b/sw/source/core/inc/wrong.hxx index 67b11e1cb780..d0e38a0ca4e0 100644 --- a/sw/source/core/inc/wrong.hxx +++ b/sw/source/core/inc/wrong.hxx @@ -201,11 +201,11 @@ public: virtual SwWrongList* Clone(); virtual void CopyFrom( const SwWrongList& rCopy ); - inline WrongListType GetWrongListType() const { return meType; } - inline sal_Int32 GetBeginInv() const { return nBeginInvalid; } - inline sal_Int32 GetEndInv() const { return nEndInvalid; } + WrongListType GetWrongListType() const { return meType; } + sal_Int32 GetBeginInv() const { return nBeginInvalid; } + sal_Int32 GetEndInv() const { return nEndInvalid; } void SetInvalid( sal_Int32 nBegin, sal_Int32 nEnd ); - inline void Validate(){ nBeginInvalid = nEndInvalid = COMPLETE_STRING; } + void Validate(){ nBeginInvalid = nEndInvalid = COMPLETE_STRING; } void Invalidate( sal_Int32 nBegin, sal_Int32 nEnd ); bool InvalidateWrong(); enum class FreshState { FRESH, CURSOR, NOTHING }; @@ -227,19 +227,19 @@ public: // the other wrong list has to be inserted. void JoinList( SwWrongList* pNext, sal_Int32 nInsertPos ); - inline sal_Int32 Len( sal_uInt16 nIdx ) const + sal_Int32 Len( sal_uInt16 nIdx ) const { return nIdx < maList.size() ? maList[nIdx].mnLen : 0; } - inline sal_Int32 Pos( sal_uInt16 nIdx ) const + sal_Int32 Pos( sal_uInt16 nIdx ) const { return nIdx < maList.size() ? maList[nIdx].mnPos : 0; } - inline sal_uInt16 Count() const { return (sal_uInt16)maList.size(); } + sal_uInt16 Count() const { return (sal_uInt16)maList.size(); } - inline void Insert( const OUString& rType, + void Insert( const OUString& rType, css::uno::Reference< css::container::XStringKeyMap > const & xPropertyBag, sal_Int32 nNewPos, sal_Int32 nNewLen, sal_uInt16 nWhere ) { @@ -256,14 +256,14 @@ public: css::uno::Reference< css::container::XStringKeyMap > const & xPropertyBag, sal_Int32 nNewPos, sal_Int32 nNewLen ); - inline SwWrongList* SubList( sal_uInt16 nIdx ) const + SwWrongList* SubList( sal_uInt16 nIdx ) const { return nIdx < maList.size() ? maList[nIdx].mpSubList : nullptr; } void InsertSubList( sal_Int32 nNewPos, sal_Int32 nNewLen, sal_uInt16 nWhere, SwWrongList* pSubList ); - inline const SwWrongArea* GetElement( sal_uInt16 nIdx ) const + const SwWrongArea* GetElement( sal_uInt16 nIdx ) const { return nIdx < maList.size() ? &maList[nIdx] : nullptr; } diff --git a/sw/source/core/layout/objectformatter.cxx b/sw/source/core/layout/objectformatter.cxx index 434e4bcc597b..99455bbe8b0f 100644 --- a/sw/source/core/layout/objectformatter.cxx +++ b/sw/source/core/layout/objectformatter.cxx @@ -47,10 +47,10 @@ class SwPageNumAndTypeOfAnchors std::vector< tEntry* > maObjList; public: - inline SwPageNumAndTypeOfAnchors() + SwPageNumAndTypeOfAnchors() { } - inline ~SwPageNumAndTypeOfAnchors() + ~SwPageNumAndTypeOfAnchors() { for ( std::vector< tEntry* >::iterator aIter = maObjList.begin(); aIter != maObjList.end(); ++aIter ) @@ -60,7 +60,7 @@ class SwPageNumAndTypeOfAnchors maObjList.clear(); } - inline void Collect( SwAnchoredObject& _rAnchoredObj ) + void Collect( SwAnchoredObject& _rAnchoredObj ) { tEntry* pNewEntry = new tEntry; pNewEntry->mpAnchoredObj = &_rAnchoredObj; @@ -89,7 +89,7 @@ class SwPageNumAndTypeOfAnchors maObjList.push_back( pNewEntry ); } - inline SwAnchoredObject* operator[]( sal_uInt32 _nIndex ) + SwAnchoredObject* operator[]( sal_uInt32 _nIndex ) { SwAnchoredObject* bRetObj = nullptr; @@ -101,7 +101,7 @@ class SwPageNumAndTypeOfAnchors return bRetObj; } - inline sal_uInt32 GetPageNum( sal_uInt32 _nIndex ) const + sal_uInt32 GetPageNum( sal_uInt32 _nIndex ) const { sal_uInt32 nRetPgNum = 0L; @@ -114,7 +114,7 @@ class SwPageNumAndTypeOfAnchors } // --> #i26945# - inline bool AnchoredAtMaster( sal_uInt32 _nIndex ) + bool AnchoredAtMaster( sal_uInt32 _nIndex ) { bool bAnchoredAtMaster( true ); @@ -126,7 +126,7 @@ class SwPageNumAndTypeOfAnchors return bAnchoredAtMaster; } - inline sal_uInt32 Count() const + sal_uInt32 Count() const { return maObjList.size(); } diff --git a/sw/source/core/text/atrhndl.hxx b/sw/source/core/text/atrhndl.hxx index d9dc3c95bed4..fa6b0830c990 100644 --- a/sw/source/core/text/atrhndl.hxx +++ b/sw/source/core/text/atrhndl.hxx @@ -52,14 +52,14 @@ private: public: // Ctor, Dtor inline SwAttrStack(); - inline ~SwAttrStack() { + ~SwAttrStack() { if ( nSize > INITIAL_NUM_ATTR ) delete [] pArray; } // reset stack - inline void Reset() { nCount = 0; }; + void Reset() { nCount = 0; }; // insert on top - inline void Push( const SwTextAttr& rAttr ) { Insert( rAttr, nCount ); }; + void Push( const SwTextAttr& rAttr ) { Insert( rAttr, nCount ); }; // insert at specified position, take care for not inserting behind // the value returned by Count() void Insert( const SwTextAttr& rAttr, const sal_uInt16 nPos ); @@ -71,7 +71,7 @@ private: const SwTextAttr* Top() const; // number of elements on stack - inline sal_uInt16 Count() const { return nCount; }; + sal_uInt16 Count() const { return nCount; }; // returns position of rAttr on Stack if found, otherwise USHRT_MAX // can be used for Remove of an attribute diff --git a/sw/source/core/text/frmcrsr.cxx b/sw/source/core/text/frmcrsr.cxx index 5fd1529d6539..3697c6417e3f 100644 --- a/sw/source/core/text/frmcrsr.cxx +++ b/sw/source/core/text/frmcrsr.cxx @@ -744,9 +744,9 @@ class SwSetToRightMargin { bool bRight; public: - inline SwSetToRightMargin() : bRight( false ) { } - inline ~SwSetToRightMargin() { SwTextCursor::SetRightMargin( bRight ); } - inline void SetRight( const bool bNew ) { bRight = bNew; } + SwSetToRightMargin() : bRight( false ) { } + ~SwSetToRightMargin() { SwTextCursor::SetRightMargin( bRight ); } + void SetRight( const bool bNew ) { bRight = bNew; } }; bool SwTextFrame::UnitUp_( SwPaM *pPam, const SwTwips nOffset, diff --git a/sw/source/core/text/frmform.cxx b/sw/source/core/text/frmform.cxx index 18f89aded9e0..c30e6a231395 100644 --- a/sw/source/core/text/frmform.cxx +++ b/sw/source/core/text/frmform.cxx @@ -60,9 +60,9 @@ class FormatLevel { static sal_uInt16 nLevel; public: - inline FormatLevel() { ++nLevel; } - inline ~FormatLevel() { --nLevel; } - static inline sal_uInt16 GetLevel() { return nLevel; } + FormatLevel() { ++nLevel; } + ~FormatLevel() { --nLevel; } + static sal_uInt16 GetLevel() { return nLevel; } static bool LastLevel() { return 10 < nLevel; } }; sal_uInt16 FormatLevel::nLevel = 0; diff --git a/sw/source/core/text/frmpaint.cxx b/sw/source/core/text/frmpaint.cxx index 412e5c6af114..8dfd0fac9360 100644 --- a/sw/source/core/text/frmpaint.cxx +++ b/sw/source/core/text/frmpaint.cxx @@ -70,7 +70,7 @@ class SwExtraPainter sal_uInt16 nDivider; bool bGoLeft; bool bLineNum; - inline bool IsClipChg() { return aClip.IsChg(); } + bool IsClipChg() { return aClip.IsChg(); } SwExtraPainter(const SwExtraPainter&) = delete; SwExtraPainter& operator=(const SwExtraPainter&) = delete; @@ -79,10 +79,10 @@ public: SwExtraPainter( const SwTextFrame *pFrame, SwViewShell *pVwSh, const SwLineNumberInfo &rLnInf, const SwRect &rRct, sal_Int16 eHor, bool bLnNm ); - inline SwFont* GetFont() const { return pFnt.get(); } - inline void IncLineNr() { ++nLineNr; } - inline bool HasNumber() { return !( nLineNr % rLineInf.GetCountBy() ); } - inline bool HasDivider() { if( !nDivider ) return false; + SwFont* GetFont() const { return pFnt.get(); } + void IncLineNr() { ++nLineNr; } + bool HasNumber() { return !( nLineNr % rLineInf.GetCountBy() ); } + bool HasDivider() { if( !nDivider ) return false; return !(nLineNr % rLineInf.GetDividerCountBy()); } void PaintExtra( SwTwips nY, long nAsc, long nMax, bool bRed ); diff --git a/sw/source/core/text/guess.hxx b/sw/source/core/text/guess.hxx index 4b29b0902e86..952d80580ac9 100644 --- a/sw/source/core/text/guess.hxx +++ b/sw/source/core/text/guess.hxx @@ -37,7 +37,7 @@ class SwTextGuess // a field in the text has been expanded sal_uInt16 nBreakWidth; // width of the broken portion public: - inline SwTextGuess(): pHanging( nullptr ), nCutPos(0), nBreakStart(0), + SwTextGuess(): pHanging( nullptr ), nCutPos(0), nBreakStart(0), nBreakPos(0), nFieldDiff(0), nBreakWidth(0) { } diff --git a/sw/source/core/text/inftxt.hxx b/sw/source/core/text/inftxt.hxx index 720d3fb3f0a7..c7572fd01dbf 100644 --- a/sw/source/core/text/inftxt.hxx +++ b/sw/source/core/text/inftxt.hxx @@ -89,14 +89,14 @@ public: // #i24363# tab stops relative to indent - returns the tab stop following nSearchPos or NULL const SvxTabStop *GetTabStop( const SwTwips nSearchPos, const SwTwips nRight ) const; - inline const SvxLineSpacingItem *GetLineSpacing() const { return pSpace; } - inline sal_uInt16 GetDefTabStop() const { return nDefTabStop; } - inline void SetDefTabStop( sal_uInt16 nNew ) const + const SvxLineSpacingItem *GetLineSpacing() const { return pSpace; } + sal_uInt16 GetDefTabStop() const { return nDefTabStop; } + void SetDefTabStop( sal_uInt16 nNew ) const { const_cast(this)->nDefTabStop = nNew; } // vertical alignment - inline SvxParaVertAlignItem::Align GetVertAlign() const { return nVertAlign; } - inline bool HasSpecialAlign( bool bVert ) const + SvxParaVertAlignItem::Align GetVertAlign() const { return nVertAlign; } + bool HasSpecialAlign( bool bVert ) const { return bVert ? ( SvxParaVertAlignItem::Align::Baseline != nVertAlign ) : ( SvxParaVertAlignItem::Align::Baseline != nVertAlign && @@ -104,11 +104,11 @@ public: sal_uInt16 NumberOfTabStops() const; - inline bool IsListTabStopIncluded() const + bool IsListTabStopIncluded() const { return bListTabStopIncluded; } - inline long GetListTabStopPosition() const + long GetListTabStopPosition() const { return nListTabStopPosition; } @@ -201,55 +201,55 @@ public: // rPos will set to the end of the multi-line part. SwMultiCreator* GetMultiCreator( sal_Int32 &rPos, SwMultiPortion* pM ) const; - inline bool OnWin() const { return m_bOnWin; } - inline void SetOnWin( const bool bNew ) { m_bOnWin = bNew; } - inline bool NotEOL() const { return m_bNotEOL; } - inline void SetNotEOL( const bool bNew ) { m_bNotEOL = bNew; } - inline bool URLNotify() const { return m_bURLNotify; } - inline bool StopUnderflow() const { return m_bStopUnderflow; } - inline void SetStopUnderflow( const bool bNew ) { m_bStopUnderflow = bNew; } - inline bool IsFootnoteInside() const { return m_bFootnoteInside; } - inline void SetFootnoteInside( const bool bNew ) { m_bFootnoteInside = bNew; } - inline bool IsOtherThanFootnoteInside() const { return m_bOtherThanFootnoteInside; } - inline void SetOtherThanFootnoteInside( const bool bNew ) { m_bOtherThanFootnoteInside = bNew; } - inline bool IsMulti() const { return m_bMulti; } - inline void SetMulti( const bool bNew ) { m_bMulti = bNew; } - inline bool IsFirstMulti() const { return m_bFirstMulti; } - inline void SetFirstMulti( const bool bNew ) { m_bFirstMulti = bNew; } - inline bool IsRuby() const { return m_bRuby; } - inline void SetRuby( const bool bNew ) { m_bRuby = bNew; } - inline bool IsHanging() const { return m_bHanging; } - inline void SetHanging( const bool bNew ) { m_bHanging = bNew; } - inline bool HasScriptSpace() const { return m_bScriptSpace; } - inline void SetScriptSpace( const bool bNew ) { m_bScriptSpace = bNew; } - inline bool HasForbiddenChars() const { return m_bForbiddenChars; } - inline void SetForbiddenChars( const bool bN ) { m_bForbiddenChars = bN; } - inline bool SnapToGrid() const { return m_bSnapToGrid; } - inline void SetSnapToGrid( const bool bN ) { m_bSnapToGrid = bN; } - inline sal_uInt8 GetDirection() const { return m_nDirection; } - inline void SetDirection( const sal_uInt8 nNew ) { m_nDirection = nNew; } - inline bool IsRotated() const { return ( 1 & m_nDirection ); } - - inline SwViewShell *GetVsh() { return m_pVsh; } - inline const SwViewShell *GetVsh() const { return m_pVsh; } - - inline vcl::RenderContext *GetOut() { return m_pOut; } - inline const vcl::RenderContext *GetOut() const { return m_pOut; } - inline void SetOut( OutputDevice* pNewOut ) { m_pOut = pNewOut; } - - inline vcl::RenderContext *GetRefDev() { return m_pRef; } - inline const vcl::RenderContext *GetRefDev() const { return m_pRef; } - - inline SwFont *GetFont() { return m_pFnt; } - inline const SwFont *GetFont() const { return m_pFnt; } - inline void SetFont( SwFont *pNew ) { m_pFnt = pNew; } + bool OnWin() const { return m_bOnWin; } + void SetOnWin( const bool bNew ) { m_bOnWin = bNew; } + bool NotEOL() const { return m_bNotEOL; } + void SetNotEOL( const bool bNew ) { m_bNotEOL = bNew; } + bool URLNotify() const { return m_bURLNotify; } + bool StopUnderflow() const { return m_bStopUnderflow; } + void SetStopUnderflow( const bool bNew ) { m_bStopUnderflow = bNew; } + bool IsFootnoteInside() const { return m_bFootnoteInside; } + void SetFootnoteInside( const bool bNew ) { m_bFootnoteInside = bNew; } + bool IsOtherThanFootnoteInside() const { return m_bOtherThanFootnoteInside; } + void SetOtherThanFootnoteInside( const bool bNew ) { m_bOtherThanFootnoteInside = bNew; } + bool IsMulti() const { return m_bMulti; } + void SetMulti( const bool bNew ) { m_bMulti = bNew; } + bool IsFirstMulti() const { return m_bFirstMulti; } + void SetFirstMulti( const bool bNew ) { m_bFirstMulti = bNew; } + bool IsRuby() const { return m_bRuby; } + void SetRuby( const bool bNew ) { m_bRuby = bNew; } + bool IsHanging() const { return m_bHanging; } + void SetHanging( const bool bNew ) { m_bHanging = bNew; } + bool HasScriptSpace() const { return m_bScriptSpace; } + void SetScriptSpace( const bool bNew ) { m_bScriptSpace = bNew; } + bool HasForbiddenChars() const { return m_bForbiddenChars; } + void SetForbiddenChars( const bool bN ) { m_bForbiddenChars = bN; } + bool SnapToGrid() const { return m_bSnapToGrid; } + void SetSnapToGrid( const bool bN ) { m_bSnapToGrid = bN; } + sal_uInt8 GetDirection() const { return m_nDirection; } + void SetDirection( const sal_uInt8 nNew ) { m_nDirection = nNew; } + bool IsRotated() const { return ( 1 & m_nDirection ); } + + SwViewShell *GetVsh() { return m_pVsh; } + const SwViewShell *GetVsh() const { return m_pVsh; } + + vcl::RenderContext *GetOut() { return m_pOut; } + const vcl::RenderContext *GetOut() const { return m_pOut; } + void SetOut( OutputDevice* pNewOut ) { m_pOut = pNewOut; } + + vcl::RenderContext *GetRefDev() { return m_pRef; } + const vcl::RenderContext *GetRefDev() const { return m_pRef; } + + SwFont *GetFont() { return m_pFnt; } + const SwFont *GetFont() const { return m_pFnt; } + void SetFont( SwFont *pNew ) { m_pFnt = pNew; } void SelectFont(); - inline void SetUnderFnt( SwUnderlineFont* pNew ) { m_pUnderFnt = pNew; } - inline SwUnderlineFont* GetUnderFnt() const { return m_pUnderFnt; } + void SetUnderFnt( SwUnderlineFont* pNew ) { m_pUnderFnt = pNew; } + SwUnderlineFont* GetUnderFnt() const { return m_pUnderFnt; } - inline const SwViewOption &GetOpt() const { return *m_pOpt; } - inline const OUString &GetText() const { return *m_pText; } - inline sal_Unicode GetChar( const sal_Int32 nPos ) const { + const SwViewOption &GetOpt() const { return *m_pOpt; } + const OUString &GetText() const { return *m_pText; } + sal_Unicode GetChar( const sal_Int32 nPos ) const { if (m_pText && nPos < m_pText->getLength()) return (*m_pText)[ nPos ]; return 0; } @@ -280,23 +280,23 @@ public: sal_uInt16 GetAscent() const; - inline sal_Int32 GetIdx() const { return m_nIdx; } - inline void SetIdx( const sal_Int32 nNew ) { m_nIdx = nNew; } - inline sal_Int32 GetLen() const { return m_nLen; } - inline void SetLen( const sal_Int32 nNew ) { m_nLen = nNew; } - inline void SetText( const OUString &rNew ){ m_pText = &rNew; } + sal_Int32 GetIdx() const { return m_nIdx; } + void SetIdx( const sal_Int32 nNew ) { m_nIdx = nNew; } + sal_Int32 GetLen() const { return m_nLen; } + void SetLen( const sal_Int32 nNew ) { m_nLen = nNew; } + void SetText( const OUString &rNew ){ m_pText = &rNew; } // No Bullets for the symbol font! - inline bool IsNoSymbol() const + bool IsNoSymbol() const { return RTL_TEXTENCODING_SYMBOL != m_pFnt->GetCharSet( m_pFnt->GetActual() ); } void NoteAnimation() const; // Home is where Your heart is... - inline SwTextFrame *GetTextFrame() { return m_pFrame; } - inline const SwTextFrame *GetTextFrame() const { return m_pFrame; } + SwTextFrame *GetTextFrame() { return m_pFrame; } + const SwTextFrame *GetTextFrame() const { return m_pFrame; } - inline bool HasHint( sal_Int32 nPos ) const + bool HasHint( sal_Int32 nPos ) const { return HasHint_( m_pFrame->GetTextNode(), nPos ); } static bool HasHint_( const SwTextNode* pTextNode, sal_Int32 nPos ); @@ -305,11 +305,11 @@ public: // space among compressed kanas. // During formatting, the maximum values of compressable portions are // stored in m_aMaxWidth and discarded after a line has been formatted. - inline void SetMaxWidthDiff( const void *nKey, sal_uInt16 nVal ) + void SetMaxWidthDiff( const void *nKey, sal_uInt16 nVal ) { m_aMaxWidth.insert( std::make_pair( reinterpret_cast(nKey), nVal ) ); }; - inline sal_uInt16 GetMaxWidthDiff( const void *nKey ) + sal_uInt16 GetMaxWidthDiff( const void *nKey ) { SwTextPortionMap::iterator it = m_aMaxWidth.find( reinterpret_cast(nKey) ); @@ -318,24 +318,24 @@ public: else return 0; }; - inline void ResetMaxWidthDiff() + void ResetMaxWidthDiff() { m_aMaxWidth.clear(); }; - inline bool CompressLine() + bool CompressLine() { return !m_aMaxWidth.empty(); }; // Feature: Kana Compression - inline sal_uInt16 GetKanaIdx() const { return m_nKanaIdx; } - inline void ResetKanaIdx(){ m_nKanaIdx = 0; } - inline void SetKanaIdx( sal_uInt16 nNew ) { m_nKanaIdx = nNew; } - inline void IncKanaIdx() { ++m_nKanaIdx; } - inline void SetKanaComp( std::deque *pNew ){ m_pKanaComp = pNew; } - inline std::deque* GetpKanaComp() const { return m_pKanaComp; } - inline sal_uInt16 GetKanaComp() const + sal_uInt16 GetKanaIdx() const { return m_nKanaIdx; } + void ResetKanaIdx(){ m_nKanaIdx = 0; } + void SetKanaIdx( sal_uInt16 nNew ) { m_nKanaIdx = nNew; } + void IncKanaIdx() { ++m_nKanaIdx; } + void SetKanaComp( std::deque *pNew ){ m_pKanaComp = pNew; } + std::deque* GetpKanaComp() const { return m_pKanaComp; } + sal_uInt16 GetKanaComp() const { return ( m_pKanaComp && m_nKanaIdx < m_pKanaComp->size() ) ? (*m_pKanaComp)[m_nKanaIdx] : 0; } @@ -390,13 +390,13 @@ public: SwTextPaintInfo( SwTextFrame *pFrame, const SwRect &rPaint ); - inline SwTwips X() const { return aPos.X(); } - inline void X( const long nNew ) { aPos.X() = nNew; } - inline SwTwips Y() const { return aPos.Y(); } - inline void Y( const SwTwips nNew ) { aPos.Y() = nNew; } + SwTwips X() const { return aPos.X(); } + void X( const long nNew ) { aPos.X() = nNew; } + SwTwips Y() const { return aPos.Y(); } + void Y( const SwTwips nNew ) { aPos.Y() = nNew; } - inline SwTextFly& GetTextFly() { return aTextFly; } - inline const SwTextFly& GetTextFly() const { return aTextFly; } + SwTextFly& GetTextFly() { return aTextFly; } + const SwTextFly& GetTextFly() const { return aTextFly; } inline void DrawText( const OUString &rText, const SwLinePortion &rPor, const sal_Int32 nIdx = 0, const sal_Int32 nLen = COMPLETE_STRING, @@ -427,7 +427,7 @@ public: void DrawCheckBox(const SwFieldFormCheckboxPortion &rPor, bool bChecked) const; - inline void NotifyURL( const SwLinePortion &rPor ) const + void NotifyURL( const SwLinePortion &rPor ) const { if( URLNotify() ) NotifyURL_( rPor ); } /** @@ -443,33 +443,33 @@ public: inline SwTwips GetPaintOfst() const; inline void SetPaintOfst( const SwTwips nNew ); - inline const Point &GetPos() const { return aPos; } - inline void SetPos( const Point &rNew ) { aPos = rNew; } + const Point &GetPos() const { return aPos; } + void SetPos( const Point &rNew ) { aPos = rNew; } - inline const SwRect &GetPaintRect() const { return aPaintRect; } + const SwRect &GetPaintRect() const { return aPaintRect; } // STUFF FOR JUSTIFIED ALIGNMENT - inline sal_uInt16 GetSpaceIdx() const { return nSpaceIdx; } - inline void ResetSpaceIdx(){nSpaceIdx = 0; } - inline void SetSpaceIdx( sal_uInt16 nNew ) { nSpaceIdx = nNew; } - inline void IncSpaceIdx() { ++nSpaceIdx; } - inline void RemoveFirstSpaceAdd() { pSpaceAdd->erase( pSpaceAdd->begin() ); } - inline long GetSpaceAdd() const + sal_uInt16 GetSpaceIdx() const { return nSpaceIdx; } + void ResetSpaceIdx(){nSpaceIdx = 0; } + void SetSpaceIdx( sal_uInt16 nNew ) { nSpaceIdx = nNew; } + void IncSpaceIdx() { ++nSpaceIdx; } + void RemoveFirstSpaceAdd() { pSpaceAdd->erase( pSpaceAdd->begin() ); } + long GetSpaceAdd() const { return ( pSpaceAdd && nSpaceIdx < pSpaceAdd->size() ) ? (*pSpaceAdd)[nSpaceIdx] : 0; } - inline void SetpSpaceAdd( std::vector* pNew ){ pSpaceAdd = pNew; } - inline std::vector* GetpSpaceAdd() const { return pSpaceAdd; } + void SetpSpaceAdd( std::vector* pNew ){ pSpaceAdd = pNew; } + std::vector* GetpSpaceAdd() const { return pSpaceAdd; } - inline void SetWrongList( const SwWrongList *pNew ){ pWrongList = pNew; } - inline const SwWrongList* GetpWrongList() const { return pWrongList; } + void SetWrongList( const SwWrongList *pNew ){ pWrongList = pNew; } + const SwWrongList* GetpWrongList() const { return pWrongList; } - inline void SetGrammarCheckList( const SwWrongList *pNew ){ pGrammarCheckList = pNew; } - inline const SwWrongList* GetGrammarCheckList() const { return pGrammarCheckList; } + void SetGrammarCheckList( const SwWrongList *pNew ){ pGrammarCheckList = pNew; } + const SwWrongList* GetGrammarCheckList() const { return pGrammarCheckList; } - inline void SetSmartTags( const SwWrongList *pNew ){ pSmartTags = pNew; } - inline const SwWrongList* GetSmartTags() const { return pSmartTags; } + void SetSmartTags( const SwWrongList *pNew ){ pSmartTags = pNew; } + const SwWrongList* GetSmartTags() const { return pSmartTags; } }; class SwTextFormatInfo : public SwTextPaintInfo @@ -542,112 +542,112 @@ public: SwTextFormatInfo( const SwTextFormatInfo& rInf, SwLineLayout& rLay, SwTwips nActWidth ); - inline sal_uInt16 Width() const { return m_nWidth; } - inline void Width( const sal_uInt16 nNew ) { m_nWidth = nNew; } + sal_uInt16 Width() const { return m_nWidth; } + void Width( const sal_uInt16 nNew ) { m_nWidth = nNew; } void Init(); // Returns the first changed position of the paragraph inline sal_Int32 GetReformatStart() const; // Margins - inline SwTwips Left() const { return m_nLeft; } - inline void Left( const SwTwips nNew ) { m_nLeft = nNew; } - inline SwTwips Right() const { return m_nRight; } - inline void Right( const SwTwips nNew ) { m_nRight = nNew; } - inline SwTwips First() const { return m_nFirst; } - inline void First( const SwTwips nNew ) { m_nFirst = nNew; } - inline sal_uInt16 RealWidth() const { return m_nRealWidth; } - inline void RealWidth( const sal_uInt16 nNew ) { m_nRealWidth = nNew; } - inline sal_uInt16 ForcedLeftMargin() const { return m_nForcedLeftMargin; } - inline void ForcedLeftMargin( const sal_uInt16 nN ) { m_nForcedLeftMargin = nN; } - - inline sal_uInt8 &MaxHyph() { return m_nMaxHyph; } - inline const sal_uInt8 &MaxHyph() const { return m_nMaxHyph; } - - inline SwLineLayout *GetRoot() { return m_pRoot; } - inline const SwLineLayout *GetRoot() const { return m_pRoot; } - - inline void SetRoot( SwLineLayout *pNew ) { m_pRoot = pNew; } - inline SwLinePortion *GetLast() { return m_pLast; } - inline void SetLast( SwLinePortion *pNewLast ) { m_pLast = pNewLast; } - inline bool IsFull() const { return m_bFull; } - inline void SetFull( const bool bNew ) { m_bFull = bNew; } - inline bool IsHyphForbud() const + SwTwips Left() const { return m_nLeft; } + void Left( const SwTwips nNew ) { m_nLeft = nNew; } + SwTwips Right() const { return m_nRight; } + void Right( const SwTwips nNew ) { m_nRight = nNew; } + SwTwips First() const { return m_nFirst; } + void First( const SwTwips nNew ) { m_nFirst = nNew; } + sal_uInt16 RealWidth() const { return m_nRealWidth; } + void RealWidth( const sal_uInt16 nNew ) { m_nRealWidth = nNew; } + sal_uInt16 ForcedLeftMargin() const { return m_nForcedLeftMargin; } + void ForcedLeftMargin( const sal_uInt16 nN ) { m_nForcedLeftMargin = nN; } + + sal_uInt8 &MaxHyph() { return m_nMaxHyph; } + const sal_uInt8 &MaxHyph() const { return m_nMaxHyph; } + + SwLineLayout *GetRoot() { return m_pRoot; } + const SwLineLayout *GetRoot() const { return m_pRoot; } + + void SetRoot( SwLineLayout *pNew ) { m_pRoot = pNew; } + SwLinePortion *GetLast() { return m_pLast; } + void SetLast( SwLinePortion *pNewLast ) { m_pLast = pNewLast; } + bool IsFull() const { return m_bFull; } + void SetFull( const bool bNew ) { m_bFull = bNew; } + bool IsHyphForbud() const { return m_pFly ? m_bNoMidHyph : m_bNoEndHyph; } - inline void ChkNoHyph( const sal_uInt8 bEnd, const sal_uInt8 bMid ) + void ChkNoHyph( const sal_uInt8 bEnd, const sal_uInt8 bMid ) { m_bNoEndHyph = (m_nMaxHyph && bEnd >= m_nMaxHyph); m_bNoMidHyph = (m_nMaxHyph && bMid >= m_nMaxHyph); } - inline bool IsIgnoreFly() const { return m_bIgnoreFly; } - inline void SetIgnoreFly( const bool bNew ) { m_bIgnoreFly = bNew; } - inline bool IsFakeLineStart() const { return m_bFakeLineStart; } - inline void SetFakeLineStart( const bool bNew ) { m_bFakeLineStart = bNew; } - inline bool IsStop() const { return m_bStop; } - inline void SetStop( const bool bNew ) { m_bStop = bNew; } - inline SwLinePortion *GetRest() { return m_pRest; } - inline void SetRest( SwLinePortion *pNewRest ) { m_pRest = pNewRest; } - inline bool IsNewLine() const { return m_bNewLine; } - inline void SetNewLine( const bool bNew ) { m_bNewLine = bNew; } - inline bool IsShift() const { return m_bShift; } - inline void SetShift( const bool bNew ) { m_bShift = bNew; } - inline bool IsInterHyph() const { return m_bInterHyph; } - inline bool IsUnderflow() const { return m_bUnderflow; } - inline void ClrUnderflow() { m_bUnderflow = false; } - inline bool IsDropInit() const { return m_bDropInit; } - inline void SetDropInit( const bool bNew ) { m_bDropInit = bNew; } - inline bool IsQuick() const { return m_bQuick; } - inline bool IsTest() const { return m_bTestFormat; } - - inline sal_Int32 GetLineStart() const { return m_nLineStart; } - inline void SetLineStart( const sal_Int32 nNew ) { m_nLineStart = nNew; } + bool IsIgnoreFly() const { return m_bIgnoreFly; } + void SetIgnoreFly( const bool bNew ) { m_bIgnoreFly = bNew; } + bool IsFakeLineStart() const { return m_bFakeLineStart; } + void SetFakeLineStart( const bool bNew ) { m_bFakeLineStart = bNew; } + bool IsStop() const { return m_bStop; } + void SetStop( const bool bNew ) { m_bStop = bNew; } + SwLinePortion *GetRest() { return m_pRest; } + void SetRest( SwLinePortion *pNewRest ) { m_pRest = pNewRest; } + bool IsNewLine() const { return m_bNewLine; } + void SetNewLine( const bool bNew ) { m_bNewLine = bNew; } + bool IsShift() const { return m_bShift; } + void SetShift( const bool bNew ) { m_bShift = bNew; } + bool IsInterHyph() const { return m_bInterHyph; } + bool IsUnderflow() const { return m_bUnderflow; } + void ClrUnderflow() { m_bUnderflow = false; } + bool IsDropInit() const { return m_bDropInit; } + void SetDropInit( const bool bNew ) { m_bDropInit = bNew; } + bool IsQuick() const { return m_bQuick; } + bool IsTest() const { return m_bTestFormat; } + + sal_Int32 GetLineStart() const { return m_nLineStart; } + void SetLineStart( const sal_Int32 nNew ) { m_nLineStart = nNew; } // these are used during fly calculation - inline sal_uInt16 GetLineHeight() const { return m_nLineHeight; } - inline void SetLineHeight( const sal_uInt16 nNew ) { m_nLineHeight = nNew; } - inline sal_uInt16 GetLineNetHeight() const { return m_nLineNetHeight; } - inline void SetLineNetHeight( const sal_uInt16 nNew ) { m_nLineNetHeight = nNew; } - - inline const SwLinePortion *GetUnderflow() const { return m_pUnderflow; } - inline SwLinePortion *GetUnderflow() { return m_pUnderflow; } - inline void SetUnderflow( SwLinePortion *pNew ) + sal_uInt16 GetLineHeight() const { return m_nLineHeight; } + void SetLineHeight( const sal_uInt16 nNew ) { m_nLineHeight = nNew; } + sal_uInt16 GetLineNetHeight() const { return m_nLineNetHeight; } + void SetLineNetHeight( const sal_uInt16 nNew ) { m_nLineNetHeight = nNew; } + + const SwLinePortion *GetUnderflow() const { return m_pUnderflow; } + SwLinePortion *GetUnderflow() { return m_pUnderflow; } + void SetUnderflow( SwLinePortion *pNew ) { m_pUnderflow = pNew; m_bUnderflow = true; } - inline sal_Int32 GetSoftHyphPos() const { return m_nSoftHyphPos; } - inline void SetSoftHyphPos( const sal_Int32 nNew ) { m_nSoftHyphPos = nNew; } + sal_Int32 GetSoftHyphPos() const { return m_nSoftHyphPos; } + void SetSoftHyphPos( const sal_Int32 nNew ) { m_nSoftHyphPos = nNew; } inline void SetParaFootnote(); // FlyFrames - inline SwFlyPortion *GetFly() { return m_pFly; } - inline void SetFly( SwFlyPortion *pNew ) { m_pFly = pNew; } + SwFlyPortion *GetFly() { return m_pFly; } + void SetFly( SwFlyPortion *pNew ) { m_pFly = pNew; } inline const SwAttrSet& GetCharAttr() const; // Tabs - inline SwTabPortion *GetLastTab() { return m_pLastTab; } - inline void SetLastTab( SwTabPortion *pNew ) { m_pLastTab = pNew; } - inline sal_Unicode GetTabDecimal() const { return m_cTabDecimal; } - inline void SetTabDecimal( const sal_Unicode cNew ) { m_cTabDecimal = cNew;} + SwTabPortion *GetLastTab() { return m_pLastTab; } + void SetLastTab( SwTabPortion *pNew ) { m_pLastTab = pNew; } + sal_Unicode GetTabDecimal() const { return m_cTabDecimal; } + void SetTabDecimal( const sal_Unicode cNew ) { m_cTabDecimal = cNew;} - inline void ClearHookChar() { m_cHookChar = 0; } - inline void SetHookChar( const sal_Unicode cNew ) { m_cHookChar = cNew; } - inline sal_Unicode GetHookChar() const { return m_cHookChar; } + void ClearHookChar() { m_cHookChar = 0; } + void SetHookChar( const sal_Unicode cNew ) { m_cHookChar = cNew; } + sal_Unicode GetHookChar() const { return m_cHookChar; } // Done-Flags - inline bool IsFootnoteDone() const { return m_bFootnoteDone; } - inline void SetFootnoteDone( const bool bNew ) { m_bFootnoteDone = bNew; } - inline bool IsErgoDone() const { return m_bErgoDone; } - inline void SetErgoDone( const bool bNew ) { m_bErgoDone = bNew; } - inline bool IsNumDone() const { return m_bNumDone; } - inline void SetNumDone( const bool bNew ) { m_bNumDone = bNew; } - inline bool IsArrowDone() const { return m_bArrowDone; } - inline void SetArrowDone( const bool bNew ) { m_bArrowDone = bNew; } + bool IsFootnoteDone() const { return m_bFootnoteDone; } + void SetFootnoteDone( const bool bNew ) { m_bFootnoteDone = bNew; } + bool IsErgoDone() const { return m_bErgoDone; } + void SetErgoDone( const bool bNew ) { m_bErgoDone = bNew; } + bool IsNumDone() const { return m_bNumDone; } + void SetNumDone( const bool bNew ) { m_bNumDone = bNew; } + bool IsArrowDone() const { return m_bArrowDone; } + void SetArrowDone( const bool bNew ) { m_bArrowDone = bNew; } // For SwTextPortion::Hyphenate bool ChgHyph( const bool bNew ); // Should the hyphenate helper be discarded? bool IsHyphenate() const; - inline sal_Int32 GetUnderScorePos() const { return m_nUnderScorePos; } - inline void SetUnderScorePos( sal_Int32 nNew ) { m_nUnderScorePos = nNew; } + sal_Int32 GetUnderScorePos() const { return m_nUnderScorePos; } + void SetUnderScorePos( sal_Int32 nNew ) { m_nUnderScorePos = nNew; } // Calls HyphenateWord() of Hyphenator css::uno::Reference< css::linguistic2::XHyphenatedWord > @@ -667,8 +667,8 @@ public: // Return: Position; sets cHookChar if necessary sal_Int32 ScanPortionEnd( const sal_Int32 nStart, const sal_Int32 nEnd ); - inline void SetTabOverflow( bool bOverflow ) { m_bTabOverflow = bOverflow; } - inline bool IsTabOverflow() { return m_bTabOverflow; } + void SetTabOverflow( bool bOverflow ) { m_bTabOverflow = bOverflow; } + bool IsTabOverflow() { return m_bTabOverflow; } }; diff --git a/sw/source/core/text/itrform2.cxx b/sw/source/core/text/itrform2.cxx index 32c50352ee98..3f820673e357 100644 --- a/sw/source/core/text/itrform2.cxx +++ b/sw/source/core/text/itrform2.cxx @@ -813,7 +813,7 @@ void SwTextFormatter::CalcAscent( SwTextFormatInfo &rInf, SwLinePortion *pPor ) class SwMetaPortion : public SwTextPortion { public: - inline SwMetaPortion() { SetWhichPor( POR_META ); } + SwMetaPortion() { SetWhichPor( POR_META ); } virtual void Paint( const SwTextPaintInfo &rInf ) const override; // OUTPUT_OPERATOR }; diff --git a/sw/source/core/text/itrpaint.hxx b/sw/source/core/text/itrpaint.hxx index efa267396bef..a47b90784eb7 100644 --- a/sw/source/core/text/itrpaint.hxx +++ b/sw/source/core/text/itrpaint.hxx @@ -51,11 +51,11 @@ public: // surrounding SwBidiPortion void PaintMultiPortion( const SwRect &rPaint, SwMultiPortion& rMulti, const SwMultiPortion* pEnvPor = nullptr ); - inline void SetPaintDrop( const bool bNew ) { bPaintDrop = bNew; } - inline bool IsPaintDrop() const { return bPaintDrop; } - inline SwTextPaintInfo &GetInfo() + void SetPaintDrop( const bool bNew ) { bPaintDrop = bNew; } + bool IsPaintDrop() const { return bPaintDrop; } + SwTextPaintInfo &GetInfo() { return static_cast(SwTextIter::GetInfo()); } - inline const SwTextPaintInfo &GetInfo() const + const SwTextPaintInfo &GetInfo() const { return static_cast(SwTextIter::GetInfo()); } }; diff --git a/sw/source/core/text/itrtxt.hxx b/sw/source/core/text/itrtxt.hxx index 97a119d7e90c..3501ffdb8b3a 100644 --- a/sw/source/core/text/itrtxt.hxx +++ b/sw/source/core/text/itrtxt.hxx @@ -81,23 +81,23 @@ public: { CtorInitTextIter(pTextFrame, pTextInf); } - inline const SwLineLayout *GetCurr() const { return m_pCurr; } // NEVER 0! - inline const SwLineLayout *GetNext() const { return m_pCurr->GetNext(); } + const SwLineLayout *GetCurr() const { return m_pCurr; } // NEVER 0! + const SwLineLayout *GetNext() const { return m_pCurr->GetNext(); } const SwLineLayout *GetPrev(); - inline sal_Int32 GetLength() const { return m_pCurr->GetLen(); } - inline sal_uInt16 GetLineNr() const { return m_nLineNr; } - inline sal_Int32 GetStart() const { return m_nStart; } - inline sal_Int32 GetEnd() const { return GetStart() + GetLength(); } - inline SwTwips Y() const { return m_nY; } + sal_Int32 GetLength() const { return m_pCurr->GetLen(); } + sal_uInt16 GetLineNr() const { return m_nLineNr; } + sal_Int32 GetStart() const { return m_nStart; } + sal_Int32 GetEnd() const { return GetStart() + GetLength(); } + SwTwips Y() const { return m_nY; } - inline SwTwips RegStart() const { return m_nRegStart; } - inline sal_uInt16 RegDiff() const { return m_nRegDiff; } - inline bool IsRegisterOn() const { return m_bRegisterOn; } + SwTwips RegStart() const { return m_nRegStart; } + sal_uInt16 RegDiff() const { return m_nRegDiff; } + bool IsRegisterOn() const { return m_bRegisterOn; } - inline SwTextInfo &GetInfo() { return *m_pInf; } - inline const SwTextInfo &GetInfo() const { return *m_pInf; } + SwTextInfo &GetInfo() { return *m_pInf; } + const SwTextInfo &GetInfo() const { return *m_pInf; } - inline void Top() { Init(); } + void Top() { Init(); } void Bottom(); const SwLineLayout *Next(); const SwLineLayout *Prev(); @@ -114,26 +114,26 @@ public: // Truncates all after pCurr void TruncLines( bool bNoteFollow = false ); - inline sal_uInt16 GetLineHeight() const { return m_pCurr->GetRealHeight(); } + sal_uInt16 GetLineHeight() const { return m_pCurr->GetRealHeight(); } void CalcAscentAndHeight( sal_uInt16 &rAscent, sal_uInt16 &rHeight ) const; // Lots of trouble for querying pCurr == pPara - inline bool IsFirstTextLine() const + bool IsFirstTextLine() const { return m_nStart == GetInfo().GetTextStart() && !( m_pCurr->IsDummy() && GetNextLine() ); } // Replacement for the old IsFirstLine() - inline bool IsParaLine() const + bool IsParaLine() const { return m_pCurr == m_pInf->GetParaPortion(); } const SwLineInfo &GetLineInfo() const { return m_aLineInf; } - inline SwTwips GetFirstPos() const { return m_nFrameStart; } + SwTwips GetFirstPos() const { return m_nFrameStart; } inline bool SeekAndChg( SwTextSizeInfo &rInf ); inline bool SeekAndChgBefore( SwTextSizeInfo &rInf ); inline bool SeekStartAndChg( SwTextSizeInfo &rInf, const bool bPara=false ); - inline SwTextFrame *GetTextFrame() { return m_pFrame; } - inline const SwTextFrame *GetTextFrame() const { return m_pFrame; } + SwTextFrame *GetTextFrame() { return m_pFrame; } + const SwTextFrame *GetTextFrame() const { return m_pFrame; } // Counts consecutive hyphens in order to be within the boundary given by MaxHyphens void CntHyphens( sal_uInt8 &nEndCnt, sal_uInt8 &nMidCnt) const; @@ -155,7 +155,7 @@ private: protected: // For FormatQuoVadis - inline void Right( const SwTwips nNew ) { nRight = nNew; } + void Right( const SwTwips nNew ) { nRight = nNew; } void CtorInitTextMargin( SwTextFrame *pFrame, SwTextSizeInfo *pInf ); explicit SwTextMargin(SwTextNode* pTextNode) @@ -179,34 +179,34 @@ public: } inline SwTwips GetLeftMargin() const; inline SwTwips Left() const; - inline SwTwips Right() const { return nRight; } - inline SwTwips FirstLeft() const { return nFirst; } - inline SwTwips CurrWidth() const { return m_pCurr->PrtWidth(); } + SwTwips Right() const { return nRight; } + SwTwips FirstLeft() const { return nFirst; } + SwTwips CurrWidth() const { return m_pCurr->PrtWidth(); } SwTwips GetLineStart() const; - inline SwTwips GetLineEnd() const { return GetLineStart() + CurrWidth(); } - inline Point GetTopLeft() const { return Point( GetLineStart(), Y() ); } - inline bool IsOneBlock() const { return m_bOneBlock; } - inline bool IsLastBlock() const { return m_bLastBlock; } - inline bool IsLastCenter() const { return m_bLastCenter; } - inline sal_uInt16 GetAdjust() const { return nAdjust; } - inline sal_uInt16 GetLineWidth() const + SwTwips GetLineEnd() const { return GetLineStart() + CurrWidth(); } + Point GetTopLeft() const { return Point( GetLineStart(), Y() ); } + bool IsOneBlock() const { return m_bOneBlock; } + bool IsLastBlock() const { return m_bLastBlock; } + bool IsLastCenter() const { return m_bLastCenter; } + sal_uInt16 GetAdjust() const { return nAdjust; } + sal_uInt16 GetLineWidth() const { return sal_uInt16( Right() - GetLeftMargin() + 1 ); } - inline SwTwips GetLeftMin() const { return nFirst < nLeft ? nFirst : nLeft; } - inline bool HasNegFirst() const { return nFirst < nLeft; } + SwTwips GetLeftMin() const { return nFirst < nLeft ? nFirst : nLeft; } + bool HasNegFirst() const { return nFirst < nLeft; } // #i91133# - inline SwTwips GetTabLeft() const + SwTwips GetTabLeft() const { return mnTabLeft; } // DropCaps - inline sal_uInt16 GetDropLines() const { return nDropLines; } - inline void SetDropLines( const sal_uInt16 nNew ) { nDropLines = nNew; } - inline sal_uInt16 GetDropLeft() const { return nDropLeft; } - inline sal_uInt16 GetDropHeight() const { return nDropHeight; } - inline void SetDropHeight( const sal_uInt16 nNew ) { nDropHeight = nNew; } - inline sal_uInt16 GetDropDescent() const { return nDropDescent; } - inline void SetDropDescent( const sal_uInt16 nNew ) { nDropDescent = nNew; } + sal_uInt16 GetDropLines() const { return nDropLines; } + void SetDropLines( const sal_uInt16 nNew ) { nDropLines = nNew; } + sal_uInt16 GetDropLeft() const { return nDropLeft; } + sal_uInt16 GetDropHeight() const { return nDropHeight; } + void SetDropHeight( const sal_uInt16 nNew ) { nDropHeight = nNew; } + sal_uInt16 GetDropDescent() const { return nDropDescent; } + void SetDropDescent( const sal_uInt16 nNew ) { nDropDescent = nNew; } void DropInit(); // Returns the TextPos for start and end of the current line without whitespace @@ -214,9 +214,9 @@ public: sal_Int32 GetTextStart() const; sal_Int32 GetTextEnd() const; - inline SwTextSizeInfo &GetInfo() + SwTextSizeInfo &GetInfo() { return static_cast(SwTextIter::GetInfo()); } - inline const SwTextSizeInfo &GetInfo() const + const SwTextSizeInfo &GetInfo() const { return static_cast(SwTextIter::GetInfo()); } }; @@ -248,7 +248,7 @@ public: void CalcAdjLine( SwLineLayout *pCurr ); // For adjusting afterwards - inline void GetAdjusted() const + void GetAdjusted() const { if( m_pCurr->IsFormatAdj() ) const_cast(this)->CalcAdjLine( m_pCurr ); @@ -292,8 +292,8 @@ public: sal_uInt16 nPorHeight = 0, sal_uInt16 nAscent = 0, const bool bAutoToCentered = false ) const; - static inline void SetRightMargin( const bool bNew ){ bRightMargin = bNew; } - static inline bool IsRightMargin() { return bRightMargin; } + static void SetRightMargin( const bool bNew ){ bRightMargin = bNew; } + static bool IsRightMargin() { return bRightMargin; } }; // Change current output device to printer, this has to be done before diff --git a/sw/source/core/text/pordrop.hxx b/sw/source/core/text/pordrop.hxx index 05ff5a6bb084..030a9b5f2435 100644 --- a/sw/source/core/text/pordrop.hxx +++ b/sw/source/core/text/pordrop.hxx @@ -45,12 +45,12 @@ public: : pFollow( nullptr ), pFnt( &rFont ), nLen( nL ), nWidth( 0 ), m_bJoinBorderWithNext(false), m_bJoinBorderWithPrev(false) {}; ~SwDropPortionPart(); - inline SwDropPortionPart* GetFollow() const { return pFollow; }; - inline void SetFollow( SwDropPortionPart* pNew ) { pFollow = pNew; }; - inline SwFont& GetFont() const { return *pFnt; } - inline sal_Int32 GetLen() const { return nLen; } - inline sal_uInt16 GetWidth() const { return nWidth; } - inline void SetWidth( sal_uInt16 nNew ) { nWidth = nNew; } + SwDropPortionPart* GetFollow() const { return pFollow; }; + void SetFollow( SwDropPortionPart* pNew ) { pFollow = pNew; }; + SwFont& GetFont() const { return *pFnt; } + sal_Int32 GetLen() const { return nLen; } + sal_uInt16 GetWidth() const { return nWidth; } + void SetWidth( sal_uInt16 nNew ) { nWidth = nNew; } bool GetJoinBorderWithPrev() const { return m_bJoinBorderWithPrev; } bool GetJoinBorderWithNext() const { return m_bJoinBorderWithNext; } @@ -85,18 +85,18 @@ public: virtual SwPosSize GetTextSize( const SwTextSizeInfo &rInfo ) const override; virtual sal_Int32 GetCursorOfst( const sal_uInt16 nOfst ) const override; - inline sal_uInt16 GetLines() const { return nLines; } - inline sal_uInt16 GetDistance() const { return nDistance; } - inline sal_uInt16 GetDropHeight() const { return nDropHeight; } - inline sal_uInt16 GetDropDescent() const { return nDropDescent; } - inline sal_uInt16 GetDropLeft() const { return Width() + nFix; } + sal_uInt16 GetLines() const { return nLines; } + sal_uInt16 GetDistance() const { return nDistance; } + sal_uInt16 GetDropHeight() const { return nDropHeight; } + sal_uInt16 GetDropDescent() const { return nDropDescent; } + sal_uInt16 GetDropLeft() const { return Width() + nFix; } - inline SwDropPortionPart* GetPart() const { return pPart; } - inline void SetPart( SwDropPortionPart* pNew ) { pPart = pNew; } + SwDropPortionPart* GetPart() const { return pPart; } + void SetPart( SwDropPortionPart* pNew ) { pPart = pNew; } - inline void SetY( short nNew ) { nY = nNew; } + void SetY( short nNew ) { nY = nNew; } - inline SwFont* GetFnt() const { return pPart ? &pPart->GetFont() : nullptr; } + SwFont* GetFnt() const { return pPart ? &pPart->GetFont() : nullptr; } static void DeleteDropCapCache(); diff --git a/sw/source/core/text/porexp.hxx b/sw/source/core/text/porexp.hxx index 60b10175ed7c..2688836509f6 100644 --- a/sw/source/core/text/porexp.hxx +++ b/sw/source/core/text/porexp.hxx @@ -25,7 +25,7 @@ class SwExpandPortion : public SwTextPortion { public: - inline SwExpandPortion() { SetWhichPor( POR_EXP ); } + SwExpandPortion() { SetWhichPor( POR_EXP ); } virtual bool Format( SwTextFormatInfo &rInf ) override; virtual sal_Int32 GetCursorOfst( const sal_uInt16 nOfst ) const override; virtual bool GetExpText( const SwTextSizeInfo &rInf, OUString &rText ) const override; @@ -43,7 +43,7 @@ class SwBlankPortion : public SwExpandPortion sal_Unicode cChar; bool bMulti; // For multiportion brackets public: - inline SwBlankPortion( sal_Unicode cCh, bool bMult = false ) + SwBlankPortion( sal_Unicode cCh, bool bMult = false ) : cChar( cCh ), bMulti( bMult ) { cChar = cCh; SetLen(1); SetWhichPor( POR_BLANK ); } diff --git a/sw/source/core/text/porfld.hxx b/sw/source/core/text/porfld.hxx index 740c2d93769a..3f229e330482 100644 --- a/sw/source/core/text/porfld.hxx +++ b/sw/source/core/text/porfld.hxx @@ -48,9 +48,9 @@ protected: const bool bPlaceHolder : 1; bool m_bNoLength : 1; // HACK for meta suffix (no CH_TXTATR) - inline void SetFont( SwFont *pNew ) { pFnt = pNew; } - inline bool IsNoLength() const { return m_bNoLength; } - inline void SetNoLength() { m_bNoLength = true; } + void SetFont( SwFont *pNew ) { pFnt = pNew; } + bool IsNoLength() const { return m_bNoLength; } + void SetNoLength() { m_bNoLength = true; } public: SwFieldPortion( const SwFieldPortion& rField ); @@ -60,9 +60,9 @@ public: sal_uInt16 m_nAttrFieldType; void TakeNextOffset( const SwFieldPortion* pField ); void CheckScript( const SwTextSizeInfo &rInf ); - inline bool HasFont() const { return nullptr != pFnt; } + bool HasFont() const { return nullptr != pFnt; } // #i89179# - made public - inline const SwFont *GetFont() const { return pFnt; } + const SwFont *GetFont() const { return pFnt; } const OUString& GetExp() const { return aExpand; } virtual bool GetExpText( const SwTextSizeInfo &rInf, OUString &rText ) const override; @@ -74,23 +74,23 @@ public: virtual sal_uInt16 GetViewWidth( const SwTextSizeInfo &rInf ) const override; - inline bool IsFollow() const { return bFollow; } - inline void SetFollow( bool bNew ) { bFollow = bNew; } + bool IsFollow() const { return bFollow; } + void SetFollow( bool bNew ) { bFollow = bNew; } - inline bool IsLeft() const { return bLeft; } - inline void SetLeft( bool bNew ) { bLeft = bNew; } + bool IsLeft() const { return bLeft; } + void SetLeft( bool bNew ) { bLeft = bNew; } - inline bool IsHide() const { return bHide; } - inline void SetHide( bool bNew ) { bHide = bNew; } + bool IsHide() const { return bHide; } + void SetHide( bool bNew ) { bHide = bNew; } - inline bool IsCenter() const { return bCenter; } - inline void SetCenter( bool bNew ) { bCenter = bNew; } + bool IsCenter() const { return bCenter; } + void SetCenter( bool bNew ) { bCenter = bNew; } - inline bool HasFollow() const { return bHasFollow; } - inline void SetHasFollow( bool bNew ) { bHasFollow = bNew; } + bool HasFollow() const { return bHasFollow; } + void SetHasFollow( bool bNew ) { bHasFollow = bNew; } - inline sal_Int32 GetNextOffset() const { return nNextOffset; } - inline void SetNextOffset( sal_Int32 nNew ) { nNextOffset = nNew; } + sal_Int32 GetNextOffset() const { return nNextOffset; } + void SetNextOffset( sal_Int32 nNew ) { nNextOffset = nNew; } // Field cloner for SplitGlue virtual SwFieldPortion *Clone( const OUString &rExpand ) const; @@ -110,7 +110,7 @@ public: class SwHiddenPortion : public SwFieldPortion { public: - inline SwHiddenPortion( const OUString &rExpand, SwFont *pFntL = nullptr ) + SwHiddenPortion( const OUString &rExpand, SwFont *pFntL = nullptr ) : SwFieldPortion( rExpand, pFntL ) { SetLen(1); SetWhichPor( POR_HIDDEN ); } virtual void Paint( const SwTextPaintInfo &rInf ) const override; @@ -185,14 +185,14 @@ public: void StopAnimation( OutputDevice* pOut ); - inline bool IsAnimated() const { return bAnimated; } - inline void SetAnimated( bool bNew ) { bAnimated = bNew; } - inline void SetRelPos( SwTwips nNew ) { nYPos = nNew; } - inline void SetId( long nNew ) const + bool IsAnimated() const { return bAnimated; } + void SetAnimated( bool bNew ) { bAnimated = bNew; } + void SetRelPos( SwTwips nNew ) { nYPos = nNew; } + void SetId( long nNew ) const { const_cast(this)->nId = nNew; } - inline SwTwips GetRelPos() const { return nYPos; } - inline SwTwips GetGrfHeight() const { return nGrfHeight; } - inline sal_Int16 GetOrient() const { return eOrient; } + SwTwips GetRelPos() const { return nYPos; } + SwTwips GetGrfHeight() const { return nGrfHeight; } + sal_Int16 GetOrient() const { return eOrient; } OUTPUT_OPERATOR_OVERRIDE }; diff --git a/sw/source/core/text/porfly.hxx b/sw/source/core/text/porfly.hxx index 5e617a4ea8cc..84568066302f 100644 --- a/sw/source/core/text/porfly.hxx +++ b/sw/source/core/text/porfly.hxx @@ -35,8 +35,8 @@ class SwFlyPortion : public SwFixPortion public: explicit SwFlyPortion( const SwRect &rFlyRect ) : SwFixPortion(rFlyRect), nBlankWidth( 0 ) { SetWhichPor( POR_FLY ); } - inline sal_uInt16 GetBlankWidth( ) const { return nBlankWidth; } - inline void SetBlankWidth( const sal_uInt16 nNew ) { nBlankWidth = nNew; } + sal_uInt16 GetBlankWidth( ) const { return nBlankWidth; } + void SetBlankWidth( const sal_uInt16 nNew ) { nBlankWidth = nNew; } virtual void Paint( const SwTextPaintInfo &rInf ) const override; virtual bool Format( SwTextFormatInfo &rInf ) override; OUTPUT_OPERATOR_OVERRIDE @@ -53,11 +53,11 @@ class SwFlyCntPortion : public SwLinePortion public: SwFlyCntPortion(); - inline const Point& GetRefPoint() const { return m_aRef; } - inline bool IsMax() const { return m_bMax; } - inline sw::LineAlign GetAlign() const { return m_eAlign; } - inline void SetAlign(sw::LineAlign eAlign) { m_eAlign = eAlign; } - inline void SetMax(bool bMax) { m_bMax = bMax; } + const Point& GetRefPoint() const { return m_aRef; } + bool IsMax() const { return m_bMax; } + sw::LineAlign GetAlign() const { return m_eAlign; } + void SetAlign(sw::LineAlign eAlign) { m_eAlign = eAlign; } + void SetMax(bool bMax) { m_bMax = bMax; } void SetBase(const SwTextFrame& rFrame, const Point& rBase, long nLnAscent, long nLnDescent, long nFlyAscent, long nFlyDescent, AsCharFlags nFlags); virtual bool Format(SwTextFormatInfo& rInf) override; OUTPUT_OPERATOR_OVERRIDE @@ -72,7 +72,7 @@ namespace sw public: FlyContentPortion(SwFlyInContentFrame* pFly); static FlyContentPortion* Create(const SwTextFrame& rFrame, SwFlyInContentFrame* pFly, const Point& rBase, long nAscent, long nDescent, long nFlyAsc, long nFlyDesc, AsCharFlags nFlags); - inline SwFlyInContentFrame* GetFlyFrame() { return m_pFly; } + SwFlyInContentFrame* GetFlyFrame() { return m_pFly; } void GetFlyCursorOfst(Point& rPoint, SwPosition& rPos, SwCursorMoveState* pCMS) const { m_pFly->GetCursorOfst(&rPos, rPoint, pCMS); }; virtual void Paint(const SwTextPaintInfo& rInf) const override; virtual ~FlyContentPortion() override; diff --git a/sw/source/core/text/porglue.hxx b/sw/source/core/text/porglue.hxx index a76b02d80c03..396f2b3fab5e 100644 --- a/sw/source/core/text/porglue.hxx +++ b/sw/source/core/text/porglue.hxx @@ -34,8 +34,8 @@ public: void Join( SwGluePortion *pVictim ); inline short GetPrtGlue() const; - inline sal_uInt16 GetFixWidth() const { return nFixWidth; } - inline void SetFixWidth( const sal_uInt16 nNew ) { nFixWidth = nNew; } + sal_uInt16 GetFixWidth() const { return nFixWidth; } + void SetFixWidth( const sal_uInt16 nNew ) { nFixWidth = nNew; } void MoveGlue( SwGluePortion *pTarget, const short nPrtGlue ); inline void MoveAllGlue( SwGluePortion *pTarget ); inline void MoveHalfGlue( SwGluePortion *pTarget ); diff --git a/sw/source/core/text/porhyph.hxx b/sw/source/core/text/porhyph.hxx index aecf4523e36c..212018c4d9d4 100644 --- a/sw/source/core/text/porhyph.hxx +++ b/sw/source/core/text/porhyph.hxx @@ -68,7 +68,7 @@ public: virtual void Paint( const SwTextPaintInfo &rInf ) const override; virtual bool Format( SwTextFormatInfo &rInf ) override; virtual void FormatEOL( SwTextFormatInfo &rInf ) override; - inline void SetExpand( const bool bNew ) { bExpand = bNew; } + void SetExpand( const bool bNew ) { bExpand = bNew; } bool IsExpand() const { return bExpand; } virtual sal_uInt16 GetViewWidth( const SwTextSizeInfo &rInf ) const override; diff --git a/sw/source/core/text/porlay.hxx b/sw/source/core/text/porlay.hxx index eb7c2bd996d7..a95145bd8184 100644 --- a/sw/source/core/text/porlay.hxx +++ b/sw/source/core/text/porlay.hxx @@ -38,19 +38,19 @@ class SwCharRange { sal_Int32 nStart, nLen; public: - inline SwCharRange( const sal_Int32 nInitStart = 0, + SwCharRange( const sal_Int32 nInitStart = 0, const sal_Int32 nInitLen = 0): nStart( nInitStart ), nLen(nInitLen) {} - inline sal_Int32 &Start() { return nStart; } - inline const sal_Int32 &Start() const { return nStart; } - inline void LeftMove( sal_Int32 nNew ) + sal_Int32 &Start() { return nStart; } + const sal_Int32 &Start() const { return nStart; } + void LeftMove( sal_Int32 nNew ) { if ( nNew < nStart ) { nLen += nStart-nNew; nStart = nNew; } } - inline sal_Int32 &Len() { return nLen; } - inline const sal_Int32 &Len() const { return nLen; } - inline bool operator<(const SwCharRange &rRange) const + sal_Int32 &Len() { return nLen; } + const sal_Int32 &Len() const { return nLen; } + bool operator<(const SwCharRange &rRange) const { return nStart < rRange.nStart; } - inline bool operator>(const SwCharRange &rRange) const + bool operator>(const SwCharRange &rRange) const { return nStart + nLen > rRange.nStart + rRange.nLen; } - inline bool operator!=(const SwCharRange &rRange) const + bool operator!=(const SwCharRange &rRange) const { return *this < rRange || *this > rRange; } SwCharRange &operator+=(const SwCharRange &rRange); }; @@ -107,82 +107,82 @@ public: // Flags void ResetFlags(); - inline void SetFormatAdj( const bool bNew ) { m_bFormatAdj = bNew; } - inline bool IsFormatAdj() const { return m_bFormatAdj; } - inline void SetEndHyph( const bool bNew ) { m_bEndHyph = bNew; } - inline bool IsEndHyph() const { return m_bEndHyph; } - inline void SetMidHyph( const bool bNew ) { m_bMidHyph = bNew; } - inline bool IsMidHyph() const { return m_bMidHyph; } - inline void SetFly( const bool bNew ) { m_bFly = bNew; } - inline bool IsFly() const { return m_bFly; } - inline void SetRest( const bool bNew ) { m_bRest = bNew; } - inline bool IsRest() const { return m_bRest; } - inline void SetBlinking( const bool bNew = true ) { m_bBlinking = bNew; } - inline bool IsBlinking() const { return m_bBlinking; } - inline void SetContent( const bool bNew = true ) { m_bContent = bNew; } - inline bool HasContent() const { return m_bContent; } - inline void SetRedline( const bool bNew = true ) { m_bRedline = bNew; } - inline bool HasRedline() const { return m_bRedline; } - inline void SetForcedLeftMargin() { m_bForcedLeftMargin = true; } - inline bool HasForcedLeftMargin() const { return m_bForcedLeftMargin; } - inline void SetHanging( const bool bNew = true ) { m_bHanging = bNew; } - inline bool IsHanging() const { return m_bHanging; } - inline void SetUnderscore( const bool bNew = true ) { m_bUnderscore = bNew; } - inline bool HasUnderscore() const { return m_bUnderscore; } + void SetFormatAdj( const bool bNew ) { m_bFormatAdj = bNew; } + bool IsFormatAdj() const { return m_bFormatAdj; } + void SetEndHyph( const bool bNew ) { m_bEndHyph = bNew; } + bool IsEndHyph() const { return m_bEndHyph; } + void SetMidHyph( const bool bNew ) { m_bMidHyph = bNew; } + bool IsMidHyph() const { return m_bMidHyph; } + void SetFly( const bool bNew ) { m_bFly = bNew; } + bool IsFly() const { return m_bFly; } + void SetRest( const bool bNew ) { m_bRest = bNew; } + bool IsRest() const { return m_bRest; } + void SetBlinking( const bool bNew = true ) { m_bBlinking = bNew; } + bool IsBlinking() const { return m_bBlinking; } + void SetContent( const bool bNew = true ) { m_bContent = bNew; } + bool HasContent() const { return m_bContent; } + void SetRedline( const bool bNew = true ) { m_bRedline = bNew; } + bool HasRedline() const { return m_bRedline; } + void SetForcedLeftMargin() { m_bForcedLeftMargin = true; } + bool HasForcedLeftMargin() const { return m_bForcedLeftMargin; } + void SetHanging( const bool bNew = true ) { m_bHanging = bNew; } + bool IsHanging() const { return m_bHanging; } + void SetUnderscore( const bool bNew = true ) { m_bUnderscore = bNew; } + bool HasUnderscore() const { return m_bUnderscore; } // Respecting empty dummy lines - inline void SetDummy( const bool bNew ) { m_bDummy = bNew; } - inline bool IsDummy() const { return m_bDummy; } + void SetDummy( const bool bNew ) { m_bDummy = bNew; } + bool IsDummy() const { return m_bDummy; } - inline void SetClipping( const bool bNew ) { m_bClipping = bNew; } - inline bool IsClipping() const { return m_bClipping; } + void SetClipping( const bool bNew ) { m_bClipping = bNew; } + bool IsClipping() const { return m_bClipping; } SwLineLayout(); virtual ~SwLineLayout() override; - inline SwLineLayout *GetNext() { return m_pNext; } - inline const SwLineLayout *GetNext() const { return m_pNext; } - inline void SetNext( SwLineLayout *pNew ) { m_pNext = pNew; } + SwLineLayout *GetNext() { return m_pNext; } + const SwLineLayout *GetNext() const { return m_pNext; } + void SetNext( SwLineLayout *pNew ) { m_pNext = pNew; } void Init( SwLinePortion *pNextPortion = nullptr); // Collects the data for the line void CalcLine( SwTextFormatter &rLine, SwTextFormatInfo &rInf ); - inline void SetRealHeight( sal_uInt16 nNew ) { m_nRealHeight = nNew; } - inline sal_uInt16 GetRealHeight() const { return m_nRealHeight; } + void SetRealHeight( sal_uInt16 nNew ) { m_nRealHeight = nNew; } + sal_uInt16 GetRealHeight() const { return m_nRealHeight; } // Creates the glue chain for short lines SwMarginPortion *CalcLeftMargin(); - inline SwTwips GetHangingMargin() const + SwTwips GetHangingMargin() const { return GetHangingMargin_(); } // For special treatment for empty lines virtual bool Format( SwTextFormatInfo &rInf ) override; // Stuff for justified alignment - inline bool IsSpaceAdd() { return m_pLLSpaceAdd != nullptr; } + bool IsSpaceAdd() { return m_pLLSpaceAdd != nullptr; } void InitSpaceAdd(); // Creates pLLSpaceAdd if necessary void CreateSpaceAdd( const long nInit = 0 ); - inline void FinishSpaceAdd() { delete m_pLLSpaceAdd; m_pLLSpaceAdd = nullptr; } - inline sal_uInt16 GetLLSpaceAddCount() const { return sal::static_int_cast< sal_uInt16 >(m_pLLSpaceAdd->size()); } - inline void SetLLSpaceAdd( long nNew, sal_uInt16 nIdx ) + void FinishSpaceAdd() { delete m_pLLSpaceAdd; m_pLLSpaceAdd = nullptr; } + sal_uInt16 GetLLSpaceAddCount() const { return sal::static_int_cast< sal_uInt16 >(m_pLLSpaceAdd->size()); } + void SetLLSpaceAdd( long nNew, sal_uInt16 nIdx ) { if ( nIdx == GetLLSpaceAddCount() ) m_pLLSpaceAdd->push_back( nNew ); else (*m_pLLSpaceAdd)[ nIdx ] = nNew; } - inline long GetLLSpaceAdd( sal_uInt16 nIdx ) { return (*m_pLLSpaceAdd)[ nIdx ]; } - inline void RemoveFirstLLSpaceAdd() { m_pLLSpaceAdd->erase( m_pLLSpaceAdd->begin() ); } - inline std::vector* GetpLLSpaceAdd() const { return m_pLLSpaceAdd; } + long GetLLSpaceAdd( sal_uInt16 nIdx ) { return (*m_pLLSpaceAdd)[ nIdx ]; } + void RemoveFirstLLSpaceAdd() { m_pLLSpaceAdd->erase( m_pLLSpaceAdd->begin() ); } + std::vector* GetpLLSpaceAdd() const { return m_pLLSpaceAdd; } // Stuff for Kana compression - inline void SetKanaComp( std::deque* pNew ){ m_pKanaComp = pNew; } - inline void FinishKanaComp() { delete m_pKanaComp; m_pKanaComp = nullptr; } - inline std::deque* GetpKanaComp() const { return m_pKanaComp; } - inline std::deque& GetKanaComp() { return *m_pKanaComp; } + void SetKanaComp( std::deque* pNew ){ m_pKanaComp = pNew; } + void FinishKanaComp() { delete m_pKanaComp; m_pKanaComp = nullptr; } + std::deque* GetpKanaComp() const { return m_pKanaComp; } + std::deque& GetKanaComp() { return *m_pKanaComp; } /** determine ascent and descent for positioning of as-character anchored object @@ -262,14 +262,14 @@ public: inline void ResetPreps(); // Get/Set methods - inline SwRepaint& GetRepaint() { return m_aRepaint; } - inline const SwRepaint& GetRepaint() const { return m_aRepaint; } - inline SwCharRange& GetReformat() { return m_aReformat; } - inline const SwCharRange& GetReformat() const { return m_aReformat; } - inline long& GetDelta() { return m_nDelta; } - inline const long& GetDelta() const { return m_nDelta; } - inline SwScriptInfo& GetScriptInfo() { return m_aScriptInfo; } - inline const SwScriptInfo& GetScriptInfo() const { return m_aScriptInfo; } + SwRepaint& GetRepaint() { return m_aRepaint; } + const SwRepaint& GetRepaint() const { return m_aRepaint; } + SwCharRange& GetReformat() { return m_aReformat; } + const SwCharRange& GetReformat() const { return m_aReformat; } + long& GetDelta() { return m_nDelta; } + const long& GetDelta() const { return m_nDelta; } + SwScriptInfo& GetScriptInfo() { return m_aScriptInfo; } + const SwScriptInfo& GetScriptInfo() const { return m_aScriptInfo; } // For SwTextFrame::Format: returns the paragraph's current length sal_Int32 GetParLen() const; @@ -278,27 +278,27 @@ public: bool UpdateQuoVadis( const OUString &rQuo ); // Flags - inline void SetFly() { m_bFlys = true; } - inline bool HasFly() const { return m_bFlys; } + void SetFly() { m_bFlys = true; } + bool HasFly() const { return m_bFlys; } // Preps - inline void SetPrep() { m_bPrep = true; } - inline bool IsPrep() const { return m_bPrep; } - inline void SetPrepWidows() { m_bPrepWidows = true; } - inline bool IsPrepWidows() const { return m_bPrepWidows; } - inline void SetPrepMustFit( const bool bNew ) { m_bPrepMustFit = bNew; } - inline bool IsPrepMustFit() const { return m_bPrepMustFit; } - inline void SetPrepAdjust() { m_bPrepAdjust = true; } - inline bool IsPrepAdjust() const { return m_bPrepAdjust; } - inline void SetFollowField( const bool bNew ) { m_bFollowField = bNew; } - inline bool IsFollowField() const { return m_bFollowField; } - inline void SetFixLineHeight() { m_bFixLineHeight = true; } - inline bool IsFixLineHeight() const { return m_bFixLineHeight; } - - inline void SetFootnoteNum( const bool bNew ) { m_bFootnoteNum = bNew; } - inline bool IsFootnoteNum() const { return m_bFootnoteNum; } - inline void SetMargin( const bool bNew = true ) { m_bMargin = bNew; } - inline bool IsMargin() const { return m_bMargin; } + void SetPrep() { m_bPrep = true; } + bool IsPrep() const { return m_bPrep; } + void SetPrepWidows() { m_bPrepWidows = true; } + bool IsPrepWidows() const { return m_bPrepWidows; } + void SetPrepMustFit( const bool bNew ) { m_bPrepMustFit = bNew; } + bool IsPrepMustFit() const { return m_bPrepMustFit; } + void SetPrepAdjust() { m_bPrepAdjust = true; } + bool IsPrepAdjust() const { return m_bPrepAdjust; } + void SetFollowField( const bool bNew ) { m_bFollowField = bNew; } + bool IsFollowField() const { return m_bFollowField; } + void SetFixLineHeight() { m_bFixLineHeight = true; } + bool IsFixLineHeight() const { return m_bFixLineHeight; } + + void SetFootnoteNum( const bool bNew ) { m_bFootnoteNum = bNew; } + bool IsFootnoteNum() const { return m_bFootnoteNum; } + void SetMargin( const bool bNew = true ) { m_bMargin = bNew; } + bool IsMargin() const { return m_bMargin; } // Set nErgo in the QuoVadisPortion void SetErgoSumNum( const OUString &rErgo ); diff --git a/sw/source/core/text/porlin.hxx b/sw/source/core/text/porlin.hxx index 008b5c0dcb92..c95c052f1171 100644 --- a/sw/source/core/text/porlin.hxx +++ b/sw/source/core/text/porlin.hxx @@ -78,18 +78,18 @@ public: virtual ~SwLinePortion(); // Access methods - inline SwLinePortion *GetPortion() const { return pPortion; } + SwLinePortion *GetPortion() const { return pPortion; } inline SwLinePortion &operator=(const SwLinePortion &rPortion); - inline sal_Int32 GetLen() const { return nLineLength; } - inline void SetLen( const sal_Int32 nLen ) { nLineLength = nLen; } - inline void SetPortion( SwLinePortion *pNew ){ pPortion = pNew; } - inline sal_uInt16 &GetAscent() { return nAscent; } - inline sal_uInt16 GetAscent() const { return nAscent; } - inline void SetAscent( const sal_uInt16 nNewAsc ) { nAscent = nNewAsc; } - inline void PrtWidth( sal_uInt16 nNewWidth ) { Width( nNewWidth ); } - inline sal_uInt16 PrtWidth() const { return Width(); } - inline void AddPrtWidth( const sal_uInt16 nNew ) { Width( Width() + nNew ); } - inline void SubPrtWidth( const sal_uInt16 nNew ) { Width( Width() - nNew ); } + sal_Int32 GetLen() const { return nLineLength; } + void SetLen( const sal_Int32 nLen ) { nLineLength = nLen; } + void SetPortion( SwLinePortion *pNew ){ pPortion = pNew; } + sal_uInt16 &GetAscent() { return nAscent; } + sal_uInt16 GetAscent() const { return nAscent; } + void SetAscent( const sal_uInt16 nNewAsc ) { nAscent = nNewAsc; } + void PrtWidth( sal_uInt16 nNewWidth ) { Width( nNewWidth ); } + sal_uInt16 PrtWidth() const { return Width(); } + void AddPrtWidth( const sal_uInt16 nNew ) { Width( Width() + nNew ); } + void SubPrtWidth( const sal_uInt16 nNew ) { Width( Width() - nNew ); } // Insert methods virtual SwLinePortion *Insert( SwLinePortion *pPortion ); @@ -100,49 +100,49 @@ public: // Returns 0, if there's no payload virtual SwLinePortion *Compress(); - inline void SetWhichPor( const sal_uInt16 nNew ) { nWhichPor = nNew; } - inline sal_uInt16 GetWhichPor( ) const { return nWhichPor; } + void SetWhichPor( const sal_uInt16 nNew ) { nWhichPor = nNew; } + sal_uInt16 GetWhichPor( ) const { return nWhichPor; } // Group queries - inline bool InTextGrp() const { return (nWhichPor & PORGRP_TXT) != 0; } - inline bool InGlueGrp() const { return (nWhichPor & PORGRP_GLUE) != 0; } - inline bool InTabGrp() const { return (nWhichPor & PORGRP_TAB) != 0; } - inline bool InHyphGrp() const { return (nWhichPor & PORGRP_HYPH) != 0; } - inline bool InNumberGrp() const { return (nWhichPor & PORGRP_NUMBER) != 0; } - inline bool InFixGrp() const { return (nWhichPor & PORGRP_FIX) != 0; } - inline bool InFieldGrp() const { return (nWhichPor & PORGRP_FLD) != 0; } - inline bool InToxRefGrp() const { return (nWhichPor & PORGRP_TOXREF) != 0; } - inline bool InToxRefOrFieldGrp() const { return (nWhichPor & ( PORGRP_FLD | PORGRP_TOXREF )) != 0; } - inline bool InExpGrp() const { return (nWhichPor & PORGRP_EXP) != 0; } - inline bool InFixMargGrp() const { return (nWhichPor & PORGRP_FIXMARG) != 0; } - inline bool InSpaceGrp() const { return InTextGrp() || IsMultiPortion(); } + bool InTextGrp() const { return (nWhichPor & PORGRP_TXT) != 0; } + bool InGlueGrp() const { return (nWhichPor & PORGRP_GLUE) != 0; } + bool InTabGrp() const { return (nWhichPor & PORGRP_TAB) != 0; } + bool InHyphGrp() const { return (nWhichPor & PORGRP_HYPH) != 0; } + bool InNumberGrp() const { return (nWhichPor & PORGRP_NUMBER) != 0; } + bool InFixGrp() const { return (nWhichPor & PORGRP_FIX) != 0; } + bool InFieldGrp() const { return (nWhichPor & PORGRP_FLD) != 0; } + bool InToxRefGrp() const { return (nWhichPor & PORGRP_TOXREF) != 0; } + bool InToxRefOrFieldGrp() const { return (nWhichPor & ( PORGRP_FLD | PORGRP_TOXREF )) != 0; } + bool InExpGrp() const { return (nWhichPor & PORGRP_EXP) != 0; } + bool InFixMargGrp() const { return (nWhichPor & PORGRP_FIXMARG) != 0; } + bool InSpaceGrp() const { return InTextGrp() || IsMultiPortion(); } // Individual queries - inline bool IsGrfNumPortion() const { return nWhichPor == POR_GRFNUM; } - inline bool IsFlyCntPortion() const { return nWhichPor == POR_FLYCNT; } - inline bool IsBlankPortion() const { return nWhichPor == POR_BLANK; } - inline bool IsBreakPortion() const { return nWhichPor == POR_BRK; } - inline bool IsErgoSumPortion() const { return nWhichPor == POR_ERGOSUM; } - inline bool IsQuoVadisPortion() const { return nWhichPor == POR_QUOVADIS; } - inline bool IsTabLeftPortion() const { return nWhichPor == POR_TABLEFT; } - inline bool IsTabRightPortion() const { return nWhichPor == POR_TABRIGHT; } - inline bool IsFootnoteNumPortion() const { return nWhichPor == POR_FTNNUM; } - inline bool IsFootnotePortion() const { return nWhichPor == POR_FTN; } - inline bool IsDropPortion() const { return nWhichPor == POR_DROP; } - inline bool IsLayPortion() const { return nWhichPor == POR_LAY; } - inline bool IsParaPortion() const { return nWhichPor == POR_PARA; } - inline bool IsMarginPortion() const { return nWhichPor == POR_MARGIN; } - inline bool IsFlyPortion() const { return nWhichPor == POR_FLY; } - inline bool IsHolePortion() const { return nWhichPor == POR_HOLE; } - inline bool IsSoftHyphPortion() const { return nWhichPor == POR_SOFTHYPH; } - inline bool IsPostItsPortion() const { return nWhichPor == POR_POSTITS; } - inline bool IsCombinedPortion() const { return nWhichPor == POR_COMBINED; } - inline bool IsTextPortion() const { return nWhichPor == POR_TXT; } - inline bool IsHangingPortion() const { return nWhichPor == POR_HNG; } - inline bool IsKernPortion() const { return nWhichPor == POR_KERN; } - inline bool IsArrowPortion() const { return nWhichPor == POR_ARROW; } - inline bool IsMultiPortion() const { return nWhichPor == POR_MULTI; } - inline bool IsNumberPortion() const { return nWhichPor == POR_NUMBER; } // #i23726# - inline bool IsControlCharPortion() const { return nWhichPor == POR_CONTROLCHAR; } + bool IsGrfNumPortion() const { return nWhichPor == POR_GRFNUM; } + bool IsFlyCntPortion() const { return nWhichPor == POR_FLYCNT; } + bool IsBlankPortion() const { return nWhichPor == POR_BLANK; } + bool IsBreakPortion() const { return nWhichPor == POR_BRK; } + bool IsErgoSumPortion() const { return nWhichPor == POR_ERGOSUM; } + bool IsQuoVadisPortion() const { return nWhichPor == POR_QUOVADIS; } + bool IsTabLeftPortion() const { return nWhichPor == POR_TABLEFT; } + bool IsTabRightPortion() const { return nWhichPor == POR_TABRIGHT; } + bool IsFootnoteNumPortion() const { return nWhichPor == POR_FTNNUM; } + bool IsFootnotePortion() const { return nWhichPor == POR_FTN; } + bool IsDropPortion() const { return nWhichPor == POR_DROP; } + bool IsLayPortion() const { return nWhichPor == POR_LAY; } + bool IsParaPortion() const { return nWhichPor == POR_PARA; } + bool IsMarginPortion() const { return nWhichPor == POR_MARGIN; } + bool IsFlyPortion() const { return nWhichPor == POR_FLY; } + bool IsHolePortion() const { return nWhichPor == POR_HOLE; } + bool IsSoftHyphPortion() const { return nWhichPor == POR_SOFTHYPH; } + bool IsPostItsPortion() const { return nWhichPor == POR_POSTITS; } + bool IsCombinedPortion() const { return nWhichPor == POR_COMBINED; } + bool IsTextPortion() const { return nWhichPor == POR_TXT; } + bool IsHangingPortion() const { return nWhichPor == POR_HNG; } + bool IsKernPortion() const { return nWhichPor == POR_KERN; } + bool IsArrowPortion() const { return nWhichPor == POR_ARROW; } + bool IsMultiPortion() const { return nWhichPor == POR_MULTI; } + bool IsNumberPortion() const { return nWhichPor == POR_NUMBER; } // #i23726# + bool IsControlCharPortion() const { return nWhichPor == POR_CONTROLCHAR; } // Positioning SwLinePortion *FindPrevPortion( const SwLinePortion *pRoot ); diff --git a/sw/source/core/text/pormulti.cxx b/sw/source/core/text/pormulti.cxx index 52fdf931010b..94458d90b05e 100644 --- a/sw/source/core/text/pormulti.cxx +++ b/sw/source/core/text/pormulti.cxx @@ -1179,7 +1179,7 @@ public: SwSpaceManipulator( SwTextPaintInfo& rInf, SwMultiPortion& rMult ); ~SwSpaceManipulator(); void SecondLine(); - inline long GetSpaceAdd() const { return nSpaceAdd; } + long GetSpaceAdd() const { return nSpaceAdd; } }; SwSpaceManipulator::SwSpaceManipulator( SwTextPaintInfo& rInf, diff --git a/sw/source/core/text/pormulti.hxx b/sw/source/core/text/pormulti.hxx index ea2903775a2e..105d4540fbaf 100644 --- a/sw/source/core/text/pormulti.hxx +++ b/sw/source/core/text/pormulti.hxx @@ -113,17 +113,17 @@ public: const SwLineLayout& GetRoot() const { return aRoot; } SwLineLayout& GetRoot() { return aRoot; } - inline bool HasTabulator() const { return bTab1 || bTab2; } - inline bool IsFormatted() const { return bFormatted; } - inline void SetFormatted() { bFormatted = true; } - inline bool IsFollowField() const { return bFollowField; } - inline void SetFollowField() { bFollowField = true; } - inline bool HasFlyInContent() const { return bFlyInContent; } - inline void SetFlyInContent( bool bNew ) { bFlyInContent = bNew; } - inline bool IsDouble() const { return bDouble; } - inline bool IsRuby() const { return bRuby; } - inline bool IsBidi() const { return bBidi; } - inline bool OnTop() const { return bTop; } + bool HasTabulator() const { return bTab1 || bTab2; } + bool IsFormatted() const { return bFormatted; } + void SetFormatted() { bFormatted = true; } + bool IsFollowField() const { return bFollowField; } + void SetFollowField() { bFollowField = true; } + bool HasFlyInContent() const { return bFlyInContent; } + void SetFlyInContent( bool bNew ) { bFlyInContent = bNew; } + bool IsDouble() const { return bDouble; } + bool IsRuby() const { return bRuby; } + bool IsBidi() const { return bBidi; } + bool OnTop() const { return bTop; } void ActualizeTabulator(); virtual void Paint( const SwTextPaintInfo &rInf ) const override; @@ -134,9 +134,9 @@ public: void CalcSize( SwTextFormatter& rLine, SwTextFormatInfo &rInf ); inline bool HasBrackets() const; - inline bool HasRotation() const { return 0 != (1 & nDirection); } - inline bool IsRevers() const { return 0 != (2 & nDirection); } - inline sal_uInt8 GetDirection() const { return nDirection; } + bool HasRotation() const { return 0 != (1 & nDirection); } + bool IsRevers() const { return 0 != (2 & nDirection); } + sal_uInt8 GetDirection() const { return nDirection; } // Accessibility: pass information about this portion to the PortionHandler virtual void HandlePortion( SwPortionHandler& rPH ) const override; @@ -155,22 +155,22 @@ public: SwDoubleLinePortion( const SwMultiCreator& rCreate, sal_Int32 nEnd ); virtual ~SwDoubleLinePortion() override; - inline SwBracket* GetBrackets() const { return pBracket.get(); } + SwBracket* GetBrackets() const { return pBracket.get(); } void SetBrackets( const SwDoubleLinePortion& rDouble ); void PaintBracket( SwTextPaintInfo& rInf, long nSpaceAdd, bool bOpen ) const; void FormatBrackets( SwTextFormatInfo &rInf, SwTwips& nMaxWidth ); - inline sal_uInt16 PreWidth() const { return pBracket->nPreWidth; }; - inline sal_uInt16 PostWidth() const { return pBracket->nPostWidth; } - inline void ClearBrackets() + sal_uInt16 PreWidth() const { return pBracket->nPreWidth; }; + sal_uInt16 PostWidth() const { return pBracket->nPostWidth; } + void ClearBrackets() { pBracket->nPreWidth = pBracket->nPostWidth=0; Width( 0 ); } - inline sal_uInt16 BracketWidth(){ return PreWidth() + PostWidth(); } + sal_uInt16 BracketWidth(){ return PreWidth() + PostWidth(); } void CalcBlanks( SwTextFormatInfo &rInf ); static void ResetSpaceAdd( SwLineLayout* pCurr ); - inline SwTwips GetLineDiff() const { return nLineDiff; } - inline sal_Int32 GetSpaceCnt() const + SwTwips GetLineDiff() const { return nLineDiff; } + sal_Int32 GetSpaceCnt() const { return ( nLineDiff < 0 ) ? nBlank2 : nBlank1; } - inline sal_Int32 GetSmallerSpaceCnt() const + sal_Int32 GetSmallerSpaceCnt() const { return ( nLineDiff < 0 ) ? nBlank1 : nBlank2; } virtual long CalcSpacing( long nSpaceAdd, const SwTextSizeInfo &rInf ) const override; @@ -191,10 +191,10 @@ public: const bool* pForceRubyPos ); void CalcRubyOffset(); - inline void Adjust( SwTextFormatInfo &rInf ) + void Adjust( SwTextFormatInfo &rInf ) { if(nAdjustment && GetRoot().GetNext()) Adjust_(rInf); } - inline sal_uInt16 GetAdjustment() const { return nAdjustment; } - inline sal_Int32 GetRubyOffset() const { return nRubyOffset; } + sal_uInt16 GetAdjustment() const { return nAdjustment; } + sal_Int32 GetRubyOffset() const { return nRubyOffset; } }; class SwRotatedPortion : public SwMultiPortion @@ -213,7 +213,7 @@ class SwBidiPortion : public SwMultiPortion public: SwBidiPortion( sal_Int32 nEnd, sal_uInt8 nLv ); - inline sal_uInt8 GetLevel() const { return nLevel; } + sal_uInt8 GetLevel() const { return nLevel; } // Get number of blanks for justified alignment sal_Int32 GetSpaceCnt( const SwTextSizeInfo &rInf ) const; // Calculates extra spacing based on number of blanks diff --git a/sw/source/core/text/porref.hxx b/sw/source/core/text/porref.hxx index 593acb05edc6..37cc7721c627 100644 --- a/sw/source/core/text/porref.hxx +++ b/sw/source/core/text/porref.hxx @@ -24,7 +24,7 @@ class SwRefPortion : public SwTextPortion { public: - inline SwRefPortion(){ SetWhichPor( POR_REF ); } + SwRefPortion(){ SetWhichPor( POR_REF ); } virtual void Paint( const SwTextPaintInfo &rInf ) const override; OUTPUT_OPERATOR_OVERRIDE }; diff --git a/sw/source/core/text/porrst.hxx b/sw/source/core/text/porrst.hxx index e58f0680d169..9c421d438b0e 100644 --- a/sw/source/core/text/porrst.hxx +++ b/sw/source/core/text/porrst.hxx @@ -86,8 +86,8 @@ public: explicit SwArrowPortion( const SwTextPaintInfo &rInf ); virtual void Paint( const SwTextPaintInfo &rInf ) const override; virtual SwLinePortion *Compress() override; - inline bool IsLeft() const { return bLeft; } - inline const Point& GetPos() const { return aPos; } + bool IsLeft() const { return bLeft; } + const Point& GetPos() const { return aPos; } OUTPUT_OPERATOR_OVERRIDE }; diff --git a/sw/source/core/text/portab.hxx b/sw/source/core/text/portab.hxx index 55f00ae83f7d..65022a44c998 100644 --- a/sw/source/core/text/portab.hxx +++ b/sw/source/core/text/portab.hxx @@ -35,8 +35,8 @@ public: virtual bool Format( SwTextFormatInfo &rInf ) override; virtual void FormatEOL( SwTextFormatInfo &rInf ) override; bool PostFormat( SwTextFormatInfo &rInf ); - inline bool IsFilled() const { return 0 != cFill; } - inline sal_uInt16 GetTabPos() const { return nTabPos; } + bool IsFilled() const { return 0 != cFill; } + sal_uInt16 GetTabPos() const { return nTabPos; } // Accessibility: pass information about this portion to the PortionHandler virtual void HandlePortion( SwPortionHandler& rPH ) const override; @@ -47,7 +47,7 @@ public: class SwTabLeftPortion : public SwTabPortion { public: - inline SwTabLeftPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar, bool bAutoTab = true ) + SwTabLeftPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar, bool bAutoTab = true ) : SwTabPortion( nTabPosVal, cFillChar, bAutoTab ) { SetWhichPor( POR_TABLEFT ); } OUTPUT_OPERATOR_OVERRIDE @@ -56,7 +56,7 @@ public: class SwTabRightPortion : public SwTabPortion { public: - inline SwTabRightPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar ) + SwTabRightPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar ) : SwTabPortion( nTabPosVal, cFillChar ) { SetWhichPor( POR_TABRIGHT ); } OUTPUT_OPERATOR_OVERRIDE @@ -65,7 +65,7 @@ public: class SwTabCenterPortion : public SwTabPortion { public: - inline SwTabCenterPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar ) + SwTabCenterPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cFillChar ) : SwTabPortion( nTabPosVal, cFillChar ) { SetWhichPor( POR_TABCENTER ); } OUTPUT_OPERATOR_OVERRIDE @@ -83,20 +83,20 @@ class SwTabDecimalPortion : public SwTabPortion sal_uInt16 mnWidthOfPortionsUpTpDecimalPosition; public: - inline SwTabDecimalPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cTab, + SwTabDecimalPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cTab, const sal_Unicode cFillChar ) : SwTabPortion( nTabPosVal, cFillChar ), mcTab(cTab), mnWidthOfPortionsUpTpDecimalPosition( USHRT_MAX ) { SetWhichPor( POR_TABDECIMAL ); } - inline sal_Unicode GetTabDecimal() const { return mcTab; } + sal_Unicode GetTabDecimal() const { return mcTab; } - inline void SetWidthOfPortionsUpToDecimalPosition( sal_uInt16 nNew ) + void SetWidthOfPortionsUpToDecimalPosition( sal_uInt16 nNew ) { mnWidthOfPortionsUpTpDecimalPosition = nNew; } - inline sal_uInt16 GetWidthOfPortionsUpToDecimalPosition() const + sal_uInt16 GetWidthOfPortionsUpToDecimalPosition() const { return mnWidthOfPortionsUpTpDecimalPosition; } @@ -107,7 +107,7 @@ public: class SwAutoTabDecimalPortion : public SwTabDecimalPortion { public: - inline SwAutoTabDecimalPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cTab, + SwAutoTabDecimalPortion( const sal_uInt16 nTabPosVal, const sal_Unicode cTab, const sal_Unicode cFillChar ) : SwTabDecimalPortion( nTabPosVal, cTab, cFillChar ) { SetLen( 0 ); } diff --git a/sw/source/core/text/portox.hxx b/sw/source/core/text/portox.hxx index 3d4937e65e27..cb3ebc321171 100644 --- a/sw/source/core/text/portox.hxx +++ b/sw/source/core/text/portox.hxx @@ -25,7 +25,7 @@ class SwToxPortion : public SwTextPortion { public: - inline SwToxPortion(){ SetWhichPor( POR_TOX ); } + SwToxPortion(){ SetWhichPor( POR_TOX ); } virtual void Paint( const SwTextPaintInfo &rInf ) const override; OUTPUT_OPERATOR_OVERRIDE }; diff --git a/sw/source/core/text/portxt.hxx b/sw/source/core/text/portxt.hxx index 26d7970d56d4..f795f36d3c4e 100644 --- a/sw/source/core/text/portxt.hxx +++ b/sw/source/core/text/portxt.hxx @@ -33,7 +33,7 @@ class SwTextPortion : public SwLinePortion bool Format_( SwTextFormatInfo &rInf ); public: - inline SwTextPortion(){ SetWhichPor( POR_TXT ); } + SwTextPortion(){ SetWhichPor( POR_TXT ); } static SwTextPortion * CopyLinePortion(const SwLinePortion &rPortion); virtual void Paint( const SwTextPaintInfo &rInf ) const override; virtual bool Format( SwTextFormatInfo &rInf ) override; @@ -87,7 +87,7 @@ public: class SwFieldMarkPortion : public SwTextPortion { public: - inline SwFieldMarkPortion() : SwTextPortion() + SwFieldMarkPortion() : SwTextPortion() { } virtual void Paint( const SwTextPaintInfo &rInf ) const override; virtual bool Format( SwTextFormatInfo &rInf ) override; diff --git a/sw/source/core/text/redlnitr.hxx b/sw/source/core/text/redlnitr.hxx index 1de12a16050c..556c3af662c7 100644 --- a/sw/source/core/text/redlnitr.hxx +++ b/sw/source/core/text/redlnitr.hxx @@ -87,29 +87,29 @@ public: sal_Int32 nRedlPos, bool bShw, const std::vector *pArr = nullptr, sal_Int32 nExtStart = COMPLETE_STRING ); ~SwRedlineItr(); - inline bool IsOn() const { return bOn || ( pExt && pExt->IsOn() ); } - inline void Clear( SwFont* pFnt ) { if( bOn ) Clear_( pFnt ); } + bool IsOn() const { return bOn || ( pExt && pExt->IsOn() ); } + void Clear( SwFont* pFnt ) { if( bOn ) Clear_( pFnt ); } void ChangeTextAttr( SwFont* pFnt, SwTextAttr &rHt, bool bChg ); - inline short Seek( SwFont& rFnt, sal_Int32 nNew, sal_Int32 nOld ) { + short Seek( SwFont& rFnt, sal_Int32 nNew, sal_Int32 nOld ) { if( bShow || pExt ) return Seek_( rFnt, nNew, nOld ); return 0; } - inline void Reset() { if( nAct != nFirst ) nAct = COMPLETE_STRING; + void Reset() { if( nAct != nFirst ) nAct = COMPLETE_STRING; if( pExt ) pExt->Reset(); } - inline sal_Int32 GetNextRedln( sal_Int32 nNext ) { + sal_Int32 GetNextRedln( sal_Int32 nNext ) { if( bShow || pExt ) return GetNextRedln_( nNext ); return nNext; } - inline bool ChkSpecialUnderline() const + bool ChkSpecialUnderline() const { return IsOn() && ChkSpecialUnderline_(); } bool CheckLine( sal_Int32 nChkStart, sal_Int32 nChkEnd ); - inline bool LeaveExtend( SwFont& rFnt, sal_Int32 nNew ) + bool LeaveExtend( SwFont& rFnt, sal_Int32 nNew ) { return pExt->Leave(rFnt, nNew ); } - inline bool ExtOn() { + bool ExtOn() { if( pExt ) return pExt->IsOn(); return false; } - inline void UpdateExtFont( SwFont &rFnt ) { + void UpdateExtFont( SwFont &rFnt ) { OSL_ENSURE( ExtOn(), "UpdateExtFont without ExtOn" ); pExt->UpdateFont( rFnt ); } }; diff --git a/sw/source/core/text/txtcache.hxx b/sw/source/core/text/txtcache.hxx index 2acc3de89ed9..77d199c72750 100644 --- a/sw/source/core/text/txtcache.hxx +++ b/sw/source/core/text/txtcache.hxx @@ -37,10 +37,10 @@ public: SwTextLine( SwTextFrame *pFrame, SwParaPortion *pNew = nullptr ); virtual ~SwTextLine() override; - inline SwParaPortion *GetPara() { return pLine.get(); } - inline const SwParaPortion *GetPara() const { return pLine.get(); } + SwParaPortion *GetPara() { return pLine.get(); } + const SwParaPortion *GetPara() const { return pLine.get(); } - inline void SetPara( SwParaPortion *pNew, bool bDelete ) { if (!bDelete) pLine.release(); pLine.reset( pNew ); } + void SetPara( SwParaPortion *pNew, bool bDelete ) { if (!bDelete) pLine.release(); pLine.reset( pNew ); } }; class SwTextLineAccess : public SwCacheAccess diff --git a/sw/source/core/text/txtpaint.hxx b/sw/source/core/text/txtpaint.hxx index d520edceeda6..5408517e6d94 100644 --- a/sw/source/core/text/txtpaint.hxx +++ b/sw/source/core/text/txtpaint.hxx @@ -41,11 +41,11 @@ public: } ~SwSaveClip(); - inline void ChgClip( const SwRect &rRect, const SwTextFrame* pFrame = nullptr, + void ChgClip( const SwRect &rRect, const SwTextFrame* pFrame = nullptr, bool bEnlargeRect = false) { if( pOut ) ChgClip_( rRect, pFrame, bEnlargeRect ); } - inline bool IsOn() const { return bOn; } - inline bool IsChg() const { return bChg; } + bool IsOn() const { return bOn; } + bool IsChg() const { return bChg; } }; diff --git a/sw/source/core/text/widorp.hxx b/sw/source/core/text/widorp.hxx index 1063f6313272..56326a1cb53e 100644 --- a/sw/source/core/text/widorp.hxx +++ b/sw/source/core/text/widorp.hxx @@ -37,7 +37,7 @@ public: bool IsBreakNow( SwTextMargin &rLine ); bool IsKeepAlways() const { return m_bKeep; } - inline void SetKeep( const bool bNew ) { m_bKeep = bNew; } + void SetKeep( const bool bNew ) { m_bKeep = bNew; } bool IsInside( SwTextMargin &rLine ) const; diff --git a/sw/source/core/txtnode/fntcap.cxx b/sw/source/core/txtnode/fntcap.cxx index 0afe25a166a6..55862431d549 100644 --- a/sw/source/core/txtnode/fntcap.cxx +++ b/sw/source/core/txtnode/fntcap.cxx @@ -99,10 +99,10 @@ protected: public: virtual void Init( SwFntObj *pUpperFont, SwFntObj *pLowerFont ) = 0; virtual void Do() = 0; - inline OutputDevice& GetOut() { return rInf.GetOut(); } - inline SwDrawTextInfo& GetInf() { return rInf; } - inline SwCapitalInfo* GetCapInf() const { return pCapInf; } - inline void SetCapInf( SwCapitalInfo& rNew ) { pCapInf = &rNew; } + OutputDevice& GetOut() { return rInf.GetOut(); } + SwDrawTextInfo& GetInf() { return rInf; } + SwCapitalInfo* GetCapInf() const { return pCapInf; } + void SetCapInf( SwCapitalInfo& rNew ) { pCapInf = &rNew; } }; class SwDoGetCapitalSize : public SwDoCapitals @@ -327,7 +327,7 @@ public: virtual void Init( SwFntObj *pUpperFont, SwFntObj *pLowerFont ) override; virtual void Do() override; - inline sal_Int32 GetCursor(){ return nCursor; } + sal_Int32 GetCursor(){ return nCursor; } }; void SwDoCapitalCursorOfst::Init( SwFntObj *pUpperFont, SwFntObj *pLowerFont ) diff --git a/sw/source/core/unocore/XMLRangeHelper.hxx b/sw/source/core/unocore/XMLRangeHelper.hxx index f28dc1bb1df0..51966860fb53 100644 --- a/sw/source/core/unocore/XMLRangeHelper.hxx +++ b/sw/source/core/unocore/XMLRangeHelper.hxx @@ -46,7 +46,7 @@ struct Cell bIsEmpty(true) {} - inline bool empty() const { return bIsEmpty; } + bool empty() const { return bIsEmpty; } }; struct CellRange diff --git a/sw/source/core/unocore/unocoll.cxx b/sw/source/core/unocore/unocoll.cxx index 2d9e4c6dc109..15eb57a2ca1d 100644 --- a/sw/source/core/unocore/unocoll.cxx +++ b/sw/source/core/unocore/unocoll.cxx @@ -1002,13 +1002,13 @@ namespace { typedef SwXTextFrame core_frame_t; typedef XTextFrame uno_frame_t; - static inline uno::Any wrapFrame(SwFrameFormat & rFrameFormat) + static uno::Any wrapFrame(SwFrameFormat & rFrameFormat) { uno::Reference const xRet( SwXTextFrame::CreateXTextFrame(*rFrameFormat.GetDoc(), &rFrameFormat)); return uno::makeAny(xRet); } - static inline bool filter(const SwNode* const pNode) { return !pNode->IsNoTextNode(); }; + static bool filter(const SwNode* const pNode) { return !pNode->IsNoTextNode(); }; }; template<> @@ -1016,13 +1016,13 @@ namespace { typedef SwXTextGraphicObject core_frame_t; typedef XTextContent uno_frame_t; - static inline uno::Any wrapFrame(SwFrameFormat & rFrameFormat) + static uno::Any wrapFrame(SwFrameFormat & rFrameFormat) { uno::Reference const xRet( SwXTextGraphicObject::CreateXTextGraphicObject(*rFrameFormat.GetDoc(), &rFrameFormat)); return uno::makeAny(xRet); } - static inline bool filter(const SwNode* const pNode) { return pNode->IsGrfNode(); }; + static bool filter(const SwNode* const pNode) { return pNode->IsGrfNode(); }; }; template<> @@ -1030,13 +1030,13 @@ namespace { typedef SwXTextEmbeddedObject core_frame_t; typedef XEmbeddedObjectSupplier uno_frame_t; - static inline uno::Any wrapFrame(SwFrameFormat & rFrameFormat) + static uno::Any wrapFrame(SwFrameFormat & rFrameFormat) { uno::Reference const xRet( SwXTextEmbeddedObject::CreateXTextEmbeddedObject(*rFrameFormat.GetDoc(), &rFrameFormat)); return uno::makeAny(xRet); } - static inline bool filter(const SwNode* const pNode) { return pNode->IsOLENode(); }; + static bool filter(const SwNode* const pNode) { return pNode->IsOLENode(); }; }; template diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx index 0b3bbc279fd3..b661fa4b94b3 100644 --- a/sw/source/core/unocore/unodraw.cxx +++ b/sw/source/core/unocore/unodraw.cxx @@ -226,7 +226,7 @@ public: } // #i28701# - inline SwFormatWrapInfluenceOnObjPos* GetWrapInfluenceOnObjPos( + SwFormatWrapInfluenceOnObjPos* GetWrapInfluenceOnObjPos( const bool _bCreate = false ) { if ( _bCreate && !pWrapInfluenceOnObjPos ) @@ -237,7 +237,7 @@ public: } return pWrapInfluenceOnObjPos; } - inline void RemoveWrapInfluenceOnObjPos() + void RemoveWrapInfluenceOnObjPos() { DELETEZ(pWrapInfluenceOnObjPos); } diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx index 9dd67560d91a..9d7d9a8d2220 100644 --- a/sw/source/filter/html/htmltab.cxx +++ b/sw/source/filter/html/htmltab.cxx @@ -295,17 +295,17 @@ public: inline HTMLTableCell *GetCell( sal_uInt16 nCell ) const; - inline void SetAdjust( SvxAdjust eAdj ) { eAdjust = eAdj; } - inline SvxAdjust GetAdjust() const { return eAdjust; } + void SetAdjust( SvxAdjust eAdj ) { eAdjust = eAdj; } + SvxAdjust GetAdjust() const { return eAdjust; } - inline void SetVertOri( sal_Int16 eV) { eVertOri = eV; } - inline sal_Int16 GetVertOri() const { return eVertOri; } + void SetVertOri( sal_Int16 eV) { eVertOri = eV; } + sal_Int16 GetVertOri() const { return eVertOri; } void SetBGBrush( SvxBrushItem *pBrush ) { pBGBrush = pBrush; } const SvxBrushItem *GetBGBrush() const { return pBGBrush; } - inline void SetEndOfGroup() { bIsEndOfGroup = true; } - inline bool IsEndOfGroup() const { return bIsEndOfGroup; } + void SetEndOfGroup() { bIsEndOfGroup = true; } + bool IsEndOfGroup() const { return bIsEndOfGroup; } void IncEmptyRows() { nEmptyRows++; } sal_uInt16 GetEmptyRows() const { return nEmptyRows; } @@ -341,14 +341,14 @@ public: inline void SetWidth( sal_uInt16 nWidth, bool bRelWidth); - inline void SetAdjust( SvxAdjust eAdj ) { eAdjust = eAdj; } - inline SvxAdjust GetAdjust() const { return eAdjust; } + void SetAdjust( SvxAdjust eAdj ) { eAdjust = eAdj; } + SvxAdjust GetAdjust() const { return eAdjust; } - inline void SetVertOri( sal_Int16 eV) { eVertOri = eV; } - inline sal_Int16 GetVertOri() const { return eVertOri; } + void SetVertOri( sal_Int16 eV) { eVertOri = eV; } + sal_Int16 GetVertOri() const { return eVertOri; } - inline void SetEndOfGroup() { bIsEndOfGroup = true; } - inline bool IsEndOfGroup() const { return bIsEndOfGroup; } + void SetEndOfGroup() { bIsEndOfGroup = true; } + bool IsEndOfGroup() const { return bIsEndOfGroup; } inline void SetFrameFormat( SwFrameFormat *pFormat, bool bBorderLine, sal_Int16 eVertOri ); @@ -576,7 +576,7 @@ public: sal_uInt16 nRelAvail=0, sal_uInt16 nAbsLeftSpace=0, sal_uInt16 nAbsRightSpace=0, sal_uInt16 nInhAbsSpace=0 ); - inline bool IsNewDoc() const { return m_pParser->IsNewDoc(); } + bool IsNewDoc() const { return m_pParser->IsNewDoc(); } void SetHasParentSection( bool bSet ) { m_bHasParentSection = bSet; } bool HasParentSection() const { return m_bHasParentSection; } diff --git a/sw/source/filter/html/swhtml.hxx b/sw/source/filter/html/swhtml.hxx index cb16c4c9ac33..0ebe99f026cf 100644 --- a/sw/source/filter/html/swhtml.hxx +++ b/sw/source/filter/html/swhtml.hxx @@ -286,12 +286,12 @@ public: inline void SetMargins( sal_uInt16 nLeft, sal_uInt16 nRight, short nIndent ); - inline bool IsLRSpaceChanged() const { return bLRSpaceChanged; } + bool IsLRSpaceChanged() const { return bLRSpaceChanged; } inline void GetMargins( sal_uInt16& nLeft, sal_uInt16& nRight, short &nIndent ) const; inline void SetULSpace( sal_uInt16 nUpper, sal_uInt16 nLower ); - inline bool IsULSpaceChanged() const { return bULSpaceChanged; } + bool IsULSpaceChanged() const { return bULSpaceChanged; } inline void GetULSpace( sal_uInt16& rUpper, sal_uInt16& rLower ) const; bool HasAttrs() const { return !aAttrs.empty(); } @@ -496,7 +496,7 @@ class SwHTMLParser : public SfxHTMLParser, public SwClient // Attribute am Dok setzen void SetAttr_( bool bChkEnd, bool bBeforeTable, HTMLAttrs *pPostIts ); - inline void SetAttr( bool bChkEnd = true, bool bBeforeTable = false, + void SetAttr( bool bChkEnd = true, bool bBeforeTable = false, HTMLAttrs *pPostIts = nullptr ) { if( !m_aSetAttrTab.empty() || !m_aMoveFlyFrames.empty() ) diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index 0eb40164873d..aa4f13a8fa12 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -1889,7 +1889,7 @@ bool MSWordExportBase::GetAnnotationMarks( const SwTextNode& rNd, sal_Int32 nStt class CompareMarksEnd : public std::binary_function < const IMark *, const IMark *, bool > { public: - inline bool operator() ( const IMark * pOneB, const IMark * pTwoB ) const + bool operator() ( const IMark * pOneB, const IMark * pTwoB ) const { const sal_Int32 nOEnd = pOneB->GetMarkEnd().nContent.GetIndex(); const sal_Int32 nTEnd = pTwoB->GetMarkEnd().nContent.GetIndex(); diff --git a/sw/source/filter/xml/xmltbli.hxx b/sw/source/filter/xml/xmltbli.hxx index 2bc8e106d7b8..f5dc04e26737 100644 --- a/sw/source/filter/xml/xmltbli.hxx +++ b/sw/source/filter/xml/xmltbli.hxx @@ -55,7 +55,7 @@ class SwXMLTableContext : public XMLTextTableContext struct ColumnWidthInfo { sal_uInt16 width; //!< Column width (absolute or relative). bool isRelative; //!< True for a relative width, false for absolute. - inline ColumnWidthInfo(sal_uInt16 wdth, bool isRel) : width(wdth), isRelative(isRel) {}; + ColumnWidthInfo(sal_uInt16 wdth, bool isRel) : width(wdth), isRelative(isRel) {}; }; std::vector m_aColumnWidths; std::vector *m_pColumnDefaultCellStyleNames; diff --git a/sw/source/ui/envelp/envprt.hxx b/sw/source/ui/envelp/envprt.hxx index f9d1b18354fa..523a51cbce4b 100644 --- a/sw/source/ui/envelp/envprt.hxx +++ b/sw/source/ui/envelp/envprt.hxx @@ -68,7 +68,7 @@ public: virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; - inline void SetPrt(Printer* pPrinter) { pPrt = pPrinter; } + void SetPrt(Printer* pPrinter) { pPrt = pPrinter; } }; #endif diff --git a/sw/source/ui/envelp/labprt.hxx b/sw/source/ui/envelp/labprt.hxx index 027edf34b75b..08d6583a7ad0 100644 --- a/sw/source/ui/envelp/labprt.hxx +++ b/sw/source/ui/envelp/labprt.hxx @@ -62,7 +62,7 @@ public: void FillItem(SwLabItem& rItem); virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; - inline Printer* GetPrt() { return pPrinter; } + Printer* GetPrt() { return pPrinter; } }; #endif diff --git a/sw/source/ui/envelp/swuilabimp.hxx b/sw/source/ui/envelp/swuilabimp.hxx index 153524ae9445..2c720b2c8bdf 100644 --- a/sw/source/ui/envelp/swuilabimp.hxx +++ b/sw/source/ui/envelp/swuilabimp.hxx @@ -77,8 +77,8 @@ public: void SetToBusinessCard(); void InitDatabaseBox(); - inline void SetDBManager(SwDBManager* pDBManager_) { pDBManager = pDBManager_; } - inline SwDBManager* GetDBManager() const { return pDBManager; } + void SetDBManager(SwDBManager* pDBManager_) { pDBManager = pDBManager_; } + SwDBManager* GetDBManager() const { return pDBManager; } }; class SwOneExampleFrame; diff --git a/sw/source/ui/fldui/fldpage.hxx b/sw/source/ui/fldui/fldpage.hxx index a7e665b428b1..548cd5d6b091 100644 --- a/sw/source/ui/fldui/fldpage.hxx +++ b/sw/source/ui/fldui/fldpage.hxx @@ -63,7 +63,7 @@ protected: void SavePos( const ListBox* pLst1); void RestorePos( ListBox* pLst1 ); void EnableInsert(bool bEnable); - inline bool IsFieldEdit() const { return m_bFieldEdit; } + bool IsFieldEdit() const { return m_bFieldEdit; } // insert field void InsertField( sal_uInt16 nTypeId, @@ -84,7 +84,7 @@ public: virtual void ActivatePage() override; - inline SwFieldMgr& GetFieldMgr() { return m_aMgr; } + SwFieldMgr& GetFieldMgr() { return m_aMgr; } void SetWrtShell( SwWrtShell* m_pWrtShell ); void EditNewField( bool bOnlyActivate = false ); virtual sal_uInt16 GetGroup() = 0; diff --git a/sw/source/uibase/docvw/AnchorOverlayObject.hxx b/sw/source/uibase/docvw/AnchorOverlayObject.hxx index 55fecd467c78..cc15504ee8df 100644 --- a/sw/source/uibase/docvw/AnchorOverlayObject.hxx +++ b/sw/source/uibase/docvw/AnchorOverlayObject.hxx @@ -48,7 +48,7 @@ class AnchorOverlayObject: public sdr::overlay::OverlayObjectWithBasePosition const Color& aColorAnchor ); static void DestroyAnchorOverlayObject( AnchorOverlayObject* pAnchor ); - inline const basegfx::B2DPoint& GetSecondPosition() const { return maSecondPosition; } + const basegfx::B2DPoint& GetSecondPosition() const { return maSecondPosition; } const basegfx::B2DPoint& GetThirdPosition() const { return maThirdPosition; } const basegfx::B2DPoint& GetFourthPosition() const { return maFourthPosition; } const basegfx::B2DPoint& GetFifthPosition() const { return maFifthPosition; } @@ -71,12 +71,12 @@ class AnchorOverlayObject: public sdr::overlay::OverlayObjectWithBasePosition void SetSeventhPosition( const basegfx::B2DPoint& rNew ); void setLineSolid( const bool bNew ); - inline bool getLineSolid() const { return mbLineSolid; } + bool getLineSolid() const { return mbLineSolid; } - inline void SetHeight( const unsigned long aHeight ) { mHeight = aHeight; }; + void SetHeight( const unsigned long aHeight ) { mHeight = aHeight; }; void SetAnchorState( const AnchorState aState ); - inline AnchorState GetAnchorState() const { return mAnchorState; } + AnchorState GetAnchorState() const { return mAnchorState; } protected: /* 6------------7 diff --git a/sw/source/uibase/docvw/OverlayRanges.hxx b/sw/source/uibase/docvw/OverlayRanges.hxx index 1d797c946b50..941980bceb59 100644 --- a/sw/source/uibase/docvw/OverlayRanges.hxx +++ b/sw/source/uibase/docvw/OverlayRanges.hxx @@ -52,7 +52,7 @@ namespace sw virtual ~OverlayRanges() override; // data read access - inline const std::vector< basegfx::B2DRange >& getRanges() const + const std::vector< basegfx::B2DRange >& getRanges() const { return maRanges; } diff --git a/sw/source/uibase/docvw/ShadowOverlayObject.hxx b/sw/source/uibase/docvw/ShadowOverlayObject.hxx index fb796b9b9e81..d8a55e92304c 100644 --- a/sw/source/uibase/docvw/ShadowOverlayObject.hxx +++ b/sw/source/uibase/docvw/ShadowOverlayObject.hxx @@ -50,7 +50,7 @@ private: public: void SetShadowState(ShadowState aState); - inline ShadowState GetShadowState() {return mShadowState;} + ShadowState GetShadowState() {return mShadowState;} void SetPosition( const basegfx::B2DPoint& rPoint1, const basegfx::B2DPoint& rPoint2 ); diff --git a/sw/source/uibase/inc/basesh.hxx b/sw/source/uibase/inc/basesh.hxx index 52133ede7095..04bb8407a511 100644 --- a/sw/source/uibase/inc/basesh.hxx +++ b/sw/source/uibase/inc/basesh.hxx @@ -56,9 +56,9 @@ protected: SwWrtShell& GetShell(); SwWrtShell* GetShellPtr(); - inline SwView& GetView() { return rView; } - inline void SetGetStateSet( SfxItemSet* p ) { pGetStateSet = p; } - inline bool AddGrfUpdateSlot( sal_uInt16 nSlot ){ return aGrfUpdateSlots.insert( nSlot ).second; } + SwView& GetView() { return rView; } + void SetGetStateSet( SfxItemSet* p ) { pGetStateSet = p; } + bool AddGrfUpdateSlot( sal_uInt16 nSlot ){ return aGrfUpdateSlots.insert( nSlot ).second; } DECL_LINK( InsertDBTextHdl, void*, void ); diff --git a/sw/source/uibase/inc/caption.hxx b/sw/source/uibase/inc/caption.hxx index b1fa6fdfc789..8b03143ffbbf 100644 --- a/sw/source/uibase/inc/caption.hxx +++ b/sw/source/uibase/inc/caption.hxx @@ -47,43 +47,43 @@ public: InsCaptionOpt(const InsCaptionOpt&); ~InsCaptionOpt(); - inline bool& UseCaption() { return bUseCaption; } - inline bool UseCaption() const { return bUseCaption; } + bool& UseCaption() { return bUseCaption; } + bool UseCaption() const { return bUseCaption; } - inline SwCapObjType GetObjType() const { return eObjType; } + SwCapObjType GetObjType() const { return eObjType; } - inline const SvGlobalName& GetOleId() const { return aOleId; } + const SvGlobalName& GetOleId() const { return aOleId; } - inline const OUString& GetCategory() const { return sCategory; } - inline void SetCategory(const OUString& rCat) { sCategory = rCat; } + const OUString& GetCategory() const { return sCategory; } + void SetCategory(const OUString& rCat) { sCategory = rCat; } - inline sal_uInt16 GetNumType() const { return nNumType; } - inline void SetNumType(const sal_uInt16 nNT) { nNumType = nNT; } + sal_uInt16 GetNumType() const { return nNumType; } + void SetNumType(const sal_uInt16 nNT) { nNumType = nNT; } const OUString& GetNumSeparator() const { return sNumberSeparator; } void SetNumSeparator(const OUString& rSet) {sNumberSeparator = rSet;} - inline const OUString& GetCaption() const { return sCaption; } - inline void SetCaption(const OUString& rCap) { sCaption = rCap; } + const OUString& GetCaption() const { return sCaption; } + void SetCaption(const OUString& rCap) { sCaption = rCap; } - inline sal_uInt16 GetPos() const { return nPos; } - inline void SetPos(const sal_uInt16 nP) { nPos = nP; } + sal_uInt16 GetPos() const { return nPos; } + void SetPos(const sal_uInt16 nP) { nPos = nP; } - inline sal_uInt16 GetLevel() const { return nLevel; } - inline void SetLevel(const sal_uInt16 nLvl) { nLevel = nLvl; } + sal_uInt16 GetLevel() const { return nLevel; } + void SetLevel(const sal_uInt16 nLvl) { nLevel = nLvl; } - inline const OUString& GetSeparator() const { return sSeparator; } - inline void SetSeparator(const OUString& rSep) { sSeparator = rSep; } + const OUString& GetSeparator() const { return sSeparator; } + void SetSeparator(const OUString& rSep) { sSeparator = rSep; } const OUString& GetCharacterStyle() const { return sCharacterStyle; } void SetCharacterStyle(const OUString& rStyle) { sCharacterStyle = rStyle; } - inline bool& IgnoreSeqOpts() { return bIgnoreSeqOpts; } - inline bool IgnoreSeqOpts() const { return bIgnoreSeqOpts; } + bool& IgnoreSeqOpts() { return bIgnoreSeqOpts; } + bool IgnoreSeqOpts() const { return bIgnoreSeqOpts; } - inline bool& CopyAttributes() { return bCopyAttributes; } - inline bool CopyAttributes() const { return bCopyAttributes; } + bool& CopyAttributes() { return bCopyAttributes; } + bool CopyAttributes() const { return bCopyAttributes; } InsCaptionOpt& operator= ( const InsCaptionOpt& rOpt ); }; diff --git a/sw/source/uibase/inc/chldwrap.hxx b/sw/source/uibase/inc/chldwrap.hxx index 7f0b46e4f13e..0ff0823950b8 100644 --- a/sw/source/uibase/inc/chldwrap.hxx +++ b/sw/source/uibase/inc/chldwrap.hxx @@ -38,8 +38,8 @@ protected: public: virtual bool ReInitDlg(SwDocShell *pDocSh); - inline SwDocShell* GetOldDocShell() { return m_pDocSh; } - inline void SetOldDocShell(SwDocShell *pDcSh) { m_pDocSh = pDcSh; } + SwDocShell* GetOldDocShell() { return m_pDocSh; } + void SetOldDocShell(SwDocShell *pDcSh) { m_pDocSh = pDcSh; } }; #endif diff --git a/sw/source/uibase/inc/drawbase.hxx b/sw/source/uibase/inc/drawbase.hxx index 9ba4450c4a30..b369700115ec 100644 --- a/sw/source/uibase/inc/drawbase.hxx +++ b/sw/source/uibase/inc/drawbase.hxx @@ -46,8 +46,8 @@ public: void SetDrawPointer(); void EnterSelectMode(const MouseEvent& rMEvt); - inline bool IsInsertForm() const { return m_bInsForm; } - inline bool IsCreateObj() const { return m_bCreateObj; } + bool IsInsertForm() const { return m_bInsForm; } + bool IsCreateObj() const { return m_bCreateObj; } // mouse- & key events; return value=true: event was edited virtual bool KeyInput(const KeyEvent& rKEvt); diff --git a/sw/source/uibase/inc/edtwin.hxx b/sw/source/uibase/inc/edtwin.hxx index 7c666ba77ef6..1a965f07c494 100644 --- a/sw/source/uibase/inc/edtwin.hxx +++ b/sw/source/uibase/inc/edtwin.hxx @@ -225,8 +225,8 @@ public: void SetObjectSelect( bool bVal ) { m_bObjectSelect = bVal; } bool IsObjectSelect() const { return m_bObjectSelect; } - inline SdrObjKind GetSdrDrawMode() const { return m_eDrawMode; } - inline void SetSdrDrawMode( SdrObjKind eSdrObjectKind ) { m_eDrawMode = eSdrObjectKind; SetObjectSelect( false ); } + SdrObjKind GetSdrDrawMode() const { return m_eDrawMode; } + void SetSdrDrawMode( SdrObjKind eSdrObjectKind ) { m_eDrawMode = eSdrObjectKind; SetObjectSelect( false ); } void StdDrawMode( SdrObjKind eSdrObjectKind, bool bObjSelect ); bool IsFrameAction() const { return m_bInsFrame; } @@ -262,8 +262,8 @@ public: virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override; - static inline long GetDDStartPosX() { return m_nDDStartPosX; } - static inline long GetDDStartPosY() { return m_nDDStartPosY; } + static long GetDDStartPosX() { return m_nDDStartPosX; } + static long GetDDStartPosY() { return m_nDDStartPosY; } static void InitStaticData(); static void FinitStaticData(); diff --git a/sw/source/uibase/inc/frmmgr.hxx b/sw/source/uibase/inc/frmmgr.hxx index 55c549060542..f1101153f537 100644 --- a/sw/source/uibase/inc/frmmgr.hxx +++ b/sw/source/uibase/inc/frmmgr.hxx @@ -118,8 +118,8 @@ public: void DelAttr(sal_uInt16 nId); // reach out the set - inline const SfxItemSet &GetAttrSet() const { return m_aSet; } - inline SfxItemSet &GetAttrSet() { return m_aSet; } + const SfxItemSet &GetAttrSet() const { return m_aSet; } + SfxItemSet &GetAttrSet() { return m_aSet; } void SetAttrSet(const SfxItemSet& rSet); inline const SwFormatVertOrient &GetVertOrient() const; diff --git a/sw/source/uibase/inc/frmpage.hxx b/sw/source/uibase/inc/frmpage.hxx index 6563bb362b7d..fe4a3a1d397d 100644 --- a/sw/source/uibase/inc/frmpage.hxx +++ b/sw/source/uibase/inc/frmpage.hxx @@ -197,7 +197,7 @@ public: void SetNewFrame(bool bNewFrame) { m_bNew = bNewFrame; } void SetFormatUsed(bool bFormat); void SetFrameType(const OUString &rType) { m_sDlgType = rType; } - inline bool IsInGraficMode() { return m_sDlgType == "PictureDialog" || m_sDlgType == "ObjectDialog"; } + bool IsInGraficMode() { return m_sDlgType == "PictureDialog" || m_sDlgType == "ObjectDialog"; } void EnableVerticalPositioning( bool bEnable ); }; diff --git a/sw/source/uibase/inc/mailmrge.hxx b/sw/source/uibase/inc/mailmrge.hxx index 8dfe82451a7e..349fba6c2697 100644 --- a/sw/source/uibase/inc/mailmrge.hxx +++ b/sw/source/uibase/inc/mailmrge.hxx @@ -126,7 +126,7 @@ public: virtual ~SwMailMergeDlg() override; virtual void dispose() override; - inline DBManagerOptions GetMergeType() { return nMergeType; } + DBManagerOptions GetMergeType() { return nMergeType; } bool IsSaveSingleDoc() const { return m_pSaveSingleDocRB->IsChecked(); } bool IsGenerateFromDataBase() const { return m_pGenerateFromDataBaseCB->IsChecked(); } diff --git a/sw/source/uibase/inc/numfmtlb.hxx b/sw/source/uibase/inc/numfmtlb.hxx index 68e242338413..27cdbc190f66 100644 --- a/sw/source/uibase/inc/numfmtlb.hxx +++ b/sw/source/uibase/inc/numfmtlb.hxx @@ -52,14 +52,14 @@ public: void Clear(); - inline void SetOneArea(bool bOnlyOne) { bOneArea = bOnlyOne; } + void SetOneArea(bool bOnlyOne) { bOneArea = bOnlyOne; } void SetFormatType(const short nFormatType); - inline short GetFormatType() const { return nCurrFormatType; } + short GetFormatType() const { return nCurrFormatType; } void SetDefFormat(const sal_uLong nDefFormat); sal_uLong GetFormat() const; - inline LanguageType GetCurLanguage() const { return eCurLanguage;} + LanguageType GetCurLanguage() const { return eCurLanguage;} void SetLanguage(LanguageType eSet) { eCurLanguage = eSet;} void SetAutomaticLanguage(bool bSet){bUseAutomaticLanguage = bSet;} diff --git a/sw/source/uibase/inc/optpage.hxx b/sw/source/uibase/inc/optpage.hxx index a4022db8df4b..aaf35150498e 100644 --- a/sw/source/uibase/inc/optpage.hxx +++ b/sw/source/uibase/inc/optpage.hxx @@ -303,8 +303,8 @@ public: SwMarkPreview(vcl::Window* pParent, WinBits nWinBits); virtual ~SwMarkPreview() override; - inline void SetColor(const Color& rCol) { m_aMarkCol = rCol; } - inline void SetMarkPos(sal_uInt16 nPos) { nMarkPos = nPos; } + void SetColor(const Color& rCol) { m_aMarkCol = rCol; } + void SetMarkPos(sal_uInt16 nPos) { nMarkPos = nPos; } virtual Size GetOptimalSize() const override; }; diff --git a/sw/source/uibase/inc/pview.hxx b/sw/source/uibase/inc/pview.hxx index 80edefd8dec0..0c3445ff4631 100644 --- a/sw/source/uibase/inc/pview.hxx +++ b/sw/source/uibase/inc/pview.hxx @@ -232,9 +232,9 @@ private: static void InitInterface_Impl(); public: - inline SwViewShell* GetViewShell() const + SwViewShell* GetViewShell() const { return m_pViewWin->GetViewShell(); } - inline void RepaintCoreRect( const SwRect& rRect ) + void RepaintCoreRect( const SwRect& rRect ) { m_pViewWin->RepaintCoreRect( rRect ); } void DocSzChgd(const Size& rNewSize); @@ -271,12 +271,12 @@ public: // Inline method to request values of new members // and - inline bool ResetFormDesignMode() const + bool ResetFormDesignMode() const { return mbResetFormDesignMode; } - inline bool FormDesignModeToReset() const + bool FormDesignModeToReset() const { return mbFormDesignModeToReset; } diff --git a/sw/source/uibase/inc/redlndlg.hxx b/sw/source/uibase/inc/redlndlg.hxx index 3328920b8b58..08104b33f0dd 100644 --- a/sw/source/uibase/inc/redlndlg.hxx +++ b/sw/source/uibase/inc/redlndlg.hxx @@ -51,7 +51,7 @@ struct SwRedlineDataParent SvTreeListEntry* pTLBParent; // corresponding TreeListBox entry OUString sComment; // redline comment - inline bool operator< ( const SwRedlineDataParent& rObj ) const + bool operator< ( const SwRedlineDataParent& rObj ) const { return (pData && pData->GetSeqNo() < rObj.pData->GetSeqNo()); } }; @@ -123,8 +123,8 @@ public: DECL_LINK( FilterChangedHdl, SvxTPFilter*, void ); - inline SvxAcceptChgCtr& GetChgCtrl() { return *m_aTabPagesCTRL.get(); } - inline bool HasRedlineAutoFormat() const { return m_bRedlnAutoFormat; } + SvxAcceptChgCtr& GetChgCtrl() { return *m_aTabPagesCTRL.get(); } + bool HasRedlineAutoFormat() const { return m_bRedlnAutoFormat; } void Init(SwRedlineTable::size_type nStart = 0); void CallAcceptReject( bool bSelect, bool bAccept ); diff --git a/sw/source/uibase/inc/uivwimp.hxx b/sw/source/uibase/inc/uivwimp.hxx index e26e5764667b..c47056c6eb9a 100644 --- a/sw/source/uibase/inc/uivwimp.hxx +++ b/sw/source/uibase/inc/uivwimp.hxx @@ -164,9 +164,9 @@ public: SfxMedium* CreateMedium(); void InitRequest( const SfxRequest& rRequest ); - inline SfxRequest* GetRequest() const { return m_pRequest; } - inline sal_Int16 GetParam() const { return m_nParam; } - inline void SetParam( sal_Int16 nParam ) { m_nParam = nParam; } + SfxRequest* GetRequest() const { return m_pRequest; } + sal_Int16 GetParam() const { return m_nParam; } + void SetParam( sal_Int16 nParam ) { m_nParam = nParam; } }; #endif diff --git a/sw/source/uibase/inc/wrap.hxx b/sw/source/uibase/inc/wrap.hxx index 254a9a6dc58d..00e26825b38a 100644 --- a/sw/source/uibase/inc/wrap.hxx +++ b/sw/source/uibase/inc/wrap.hxx @@ -103,9 +103,9 @@ public: virtual void Reset(const SfxItemSet *rSet) override; static const sal_uInt16* GetRanges() { return m_aWrapPageRg; } - inline void SetNewFrame(bool bNewFrame) { m_bNew = bNewFrame; } - inline void SetFormatUsed(bool bFormat, bool bDrawMode) { m_bFormat = bFormat; m_bDrawMode = bDrawMode; } - inline void SetShell(SwWrtShell* pSh) { m_pWrtSh = pSh; } + void SetNewFrame(bool bNewFrame) { m_bNew = bNewFrame; } + void SetFormatUsed(bool bFormat, bool bDrawMode) { m_bFormat = bFormat; m_bDrawMode = bDrawMode; } + void SetShell(SwWrtShell* pSh) { m_pWrtSh = pSh; } }; #endif diff --git a/sw/source/uibase/wrtsh/move.cxx b/sw/source/uibase/wrtsh/move.cxx index a58fa570de36..7399043f27b6 100644 --- a/sw/source/uibase/wrtsh/move.cxx +++ b/sw/source/uibase/wrtsh/move.cxx @@ -42,13 +42,13 @@ class ShellMoveCursor SwWrtShell* pSh; bool bAct; public: - inline ShellMoveCursor( SwWrtShell* pWrtSh, bool bSel ) + ShellMoveCursor( SwWrtShell* pWrtSh, bool bSel ) { bAct = !pWrtSh->ActionPend() && (pWrtSh->GetFrameType(nullptr,false) & FrameTypeFlags::FLY_ANY); ( pSh = pWrtSh )->MoveCursor( bSel ); pWrtSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_HYPERLINK_GETLINK); } - inline ~ShellMoveCursor() + ~ShellMoveCursor() { if( bAct ) { -- cgit