diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-25 13:31:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-26 03:04:45 +0200 |
commit | 4e67474a6e4dbfeff5316dcf08b44cfead148609 (patch) | |
tree | 630190f52de6572a46bb13b9ae6ae5b5709e64a7 /lotuswordpro/inc | |
parent | 3b13f813da6ad3bd3e4f9dc24b7deb84ea557063 (diff) |
loplugin:constmethod in framework..lotuswordpro
Change-Id: I14a3855a75cf081d86c2a404966db38c617c0256
Reviewed-on: https://gerrit.libreoffice.org/79541
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro/inc')
27 files changed, 106 insertions, 106 deletions
diff --git a/lotuswordpro/inc/lwpatomholder.hxx b/lotuswordpro/inc/lwpatomholder.hxx index b038289a2d6b..e6f4ae57377c 100644 --- a/lotuswordpro/inc/lwpatomholder.hxx +++ b/lotuswordpro/inc/lwpatomholder.hxx @@ -76,9 +76,9 @@ public: void ReadPathAtom(LwpObjectStream *pStrm); void Skip(LwpObjectStream *pStrm); const OUString& str() const {return m_String;} - inline bool HasValue(); + inline bool HasValue() const; }; -inline bool LwpAtomHolder::HasValue() +inline bool LwpAtomHolder::HasValue() const { return (m_nAtom != BAD_ATOM); } diff --git a/lotuswordpro/inc/lwpcolor.hxx b/lotuswordpro/inc/lwpcolor.hxx index d6d3b02a63b7..3ca8698800ad 100644 --- a/lotuswordpro/inc/lwpcolor.hxx +++ b/lotuswordpro/inc/lwpcolor.hxx @@ -73,12 +73,12 @@ public: LwpColor():m_nRed(0), m_nGreen(0), m_nBlue(0), m_nExtra(0){} public: void Read(LwpObjectStream *pStrm); - sal_uInt16 GetRed(); - sal_uInt16 GetGreen(); - sal_uInt16 GetBlue(); - bool IsValidColor(); + sal_uInt16 GetRed() const; + sal_uInt16 GetGreen() const; + sal_uInt16 GetBlue() const; + bool IsValidColor() const; sal_uInt32 To24Color(); - bool IsTransparent(); + bool IsTransparent() const; private: sal_uInt16 m_nRed; // When extra is AGLRGB_INDEX, m_nRed holds the sal_uInt16 m_nGreen; // hi 16 bits and m_nGreen holds the lo 16 bits of @@ -99,23 +99,23 @@ private: AGLRGB_TRANSPARENT = 100 }; }; -inline sal_uInt16 LwpColor::GetRed() +inline sal_uInt16 LwpColor::GetRed() const { return m_nRed; } -inline sal_uInt16 LwpColor::GetGreen() +inline sal_uInt16 LwpColor::GetGreen() const { return m_nGreen; } -inline sal_uInt16 LwpColor::GetBlue() +inline sal_uInt16 LwpColor::GetBlue() const { return m_nBlue; } -inline bool LwpColor::IsValidColor() +inline bool LwpColor::IsValidColor() const { return ((m_nExtra!=AGLRGB_INVALID) && (m_nExtra!=AGLRGB_TRANSPARENT)); } -inline bool LwpColor::IsTransparent() +inline bool LwpColor::IsTransparent() const { return (m_nExtra==AGLRGB_TRANSPARENT); } diff --git a/lotuswordpro/inc/lwpfilehdr.hxx b/lotuswordpro/inc/lwpfilehdr.hxx index ef444b12eb2b..2bb49127ab8f 100644 --- a/lotuswordpro/inc/lwpfilehdr.hxx +++ b/lotuswordpro/inc/lwpfilehdr.hxx @@ -74,10 +74,10 @@ private: //data member public: static sal_uInt16 m_nFileRevision; void Read(LwpSvStream *pStrm); - sal_uInt32 GetRootIndexOffset(); + sal_uInt32 GetRootIndexOffset() const; LwpObjectID& GetDocID(); }; -inline sal_uInt32 LwpFileHeader::GetRootIndexOffset() +inline sal_uInt32 LwpFileHeader::GetRootIndexOffset() const { return m_nRootIndexOffset; } diff --git a/lotuswordpro/inc/lwpfont.hxx b/lotuswordpro/inc/lwpfont.hxx index 866775485234..cc1dc713347e 100644 --- a/lotuswordpro/inc/lwpfont.hxx +++ b/lotuswordpro/inc/lwpfont.hxx @@ -80,7 +80,7 @@ public: LwpFontTableEntry(){} public: void Read(LwpObjectStream *pStrm); - OUString const & GetFaceName(); + OUString const & GetFaceName() const; private: LwpAtomHolder m_WindowsFaceName; //font face name under windows LwpAtomHolder m_FaceName; //font face name @@ -117,11 +117,11 @@ public: {} public: void Read(LwpObjectStream *pStrm); - sal_uInt16 GetFaceID(){return m_nFaceName;} - sal_uInt16 GetAltFaceID(){return m_nAltFaceName;} + sal_uInt16 GetFaceID() const {return m_nFaceName;} + sal_uInt16 GetAltFaceID() const {return m_nAltFaceName;} void Override(rtl::Reference<XFFont> const & pFont); - inline bool IsFaceNameOverridden(); - inline bool IsAltFaceNameOverridden(); + inline bool IsFaceNameOverridden() const; + inline bool IsAltFaceNameOverridden() const; private: //Data of CFontDescriptionOverrideBase sal_uInt8 m_nOverrideBits; @@ -148,9 +148,9 @@ private: | TIGHTNESS | FACENAME | BKCOLOR) }; - inline bool IsPointSizeOverridden(); - inline bool IsColorOverridden(); - inline bool IsBackgroundColorOverridden(); + inline bool IsPointSizeOverridden() const; + inline bool IsColorOverridden() const; + inline bool IsBackgroundColorOverridden() const; //TODO // inline sal_Bool IsTightnessOverridden(); // inline sal_Bool IsAnythingOverridden(); @@ -230,14 +230,14 @@ private: ALL_ATTRS2 = CASE | UNDER }; bool Is(sal_uInt16 Attr); - bool IsBoldOverridden(); - bool IsItalicOverridden(); - bool IsStrikeThruOverridden(); - bool IsSmallCapsOverridden(); - bool IsSuperOverridden(); - bool IsSubOverridden(); - bool IsUnderlineOverridden(); - bool IsCaseOverridden(); + bool IsBoldOverridden() const; + bool IsItalicOverridden() const; + bool IsStrikeThruOverridden() const; + bool IsSmallCapsOverridden() const; + bool IsSuperOverridden() const; + bool IsSubOverridden() const; + bool IsUnderlineOverridden() const; + bool IsCaseOverridden() const; }; diff --git a/lotuswordpro/inc/lwpfoundry.hxx b/lotuswordpro/inc/lwpfoundry.hxx index 96c487c35c98..ae91294885b2 100644 --- a/lotuswordpro/inc/lwpfoundry.hxx +++ b/lotuswordpro/inc/lwpfoundry.hxx @@ -103,7 +103,7 @@ private: LwpObjectID m_TableRange; public: void Read(LwpObjectStream *pStrm); - const LwpObjectID& GetTableRangeID(){ return m_TableRange;} + const LwpObjectID& GetTableRangeID() const { return m_TableRange;} }; class LwpBulletManager diff --git a/lotuswordpro/inc/lwpfrib.hxx b/lotuswordpro/inc/lwpfrib.hxx index 6ff3cad39a98..753bdc5999cf 100644 --- a/lotuswordpro/inc/lwpfrib.hxx +++ b/lotuswordpro/inc/lwpfrib.hxx @@ -93,7 +93,7 @@ public: virtual void Read(LwpObjectStream* pObjStrm, sal_uInt16 len); LwpFrib* GetNext(){return m_pNext;} void SetNext(LwpFrib* next){m_pNext = next;} - sal_uInt8 GetType() { return m_nFribType;} + sal_uInt8 GetType() const { return m_nFribType;} OUString GetEditor(); XFColor GetHighlightColor(); protected: @@ -105,17 +105,17 @@ protected: OUString m_StyleName; public: bool m_ModFlag; - const OUString& GetStyleName(){return m_StyleName;} + const OUString& GetStyleName() const {return m_StyleName;} void SetModifiers(ModifierInfo* pModifiers); ModifierInfo* GetModifiers(){return m_pModifiers.get();} virtual void RegisterStyle(LwpFoundry* pFoundry); bool HasNextFrib(); void ConvertChars(XFContentContainer* pXFPara,const OUString& text); - void ConvertHyperLink(XFContentContainer* pXFPara,LwpHyperlinkMgr* pHyperlink,const OUString& text); + void ConvertHyperLink(XFContentContainer* pXFPara, const LwpHyperlinkMgr* pHyperlink,const OUString& text); rtl::Reference<XFFont> GetFont(); - sal_uInt8 GetRevisionType(){return m_nRevisionType;} - bool GetRevisionFlag(){return m_bRevisionFlag;} + sal_uInt8 GetRevisionType() const {return m_nRevisionType;} + bool GetRevisionFlag() const {return m_bRevisionFlag;} enum{ REV_INSERT =0, REV_DELETE = 1, diff --git a/lotuswordpro/inc/lwpobj.hxx b/lotuswordpro/inc/lwpobj.hxx index df38746f49f7..0cb7b428e28f 100644 --- a/lotuswordpro/inc/lwpobj.hxx +++ b/lotuswordpro/inc/lwpobj.hxx @@ -133,7 +133,7 @@ public: LwpFoundry* GetFoundry(){return m_pFoundry;} void SetFoundry(LwpFoundry* pFoundry){m_pFoundry = pFoundry;} LwpObjectID& GetObjectID(){ return m_ObjHdr.GetID();} - sal_uInt32 GetTag() { return m_ObjHdr.GetTag();} + sal_uInt32 GetTag() const { return m_ObjHdr.GetTag();} }; #endif diff --git a/lotuswordpro/inc/lwpobjhdr.hxx b/lotuswordpro/inc/lwpobjhdr.hxx index 12c4169bf8e8..a1dc885dfcbd 100644 --- a/lotuswordpro/inc/lwpobjhdr.hxx +++ b/lotuswordpro/inc/lwpobjhdr.hxx @@ -108,17 +108,17 @@ private: public: bool Read(LwpSvStream &pStrm); - inline sal_uInt32 GetTag(); - inline sal_uInt32 GetSize(); + inline sal_uInt32 GetTag() const; + inline sal_uInt32 GetSize() const; inline LwpObjectID& GetID(); - inline bool IsCompressed(); + inline bool IsCompressed() const; }; -inline sal_uInt32 LwpObjectHeader::GetTag() +inline sal_uInt32 LwpObjectHeader::GetTag() const { return m_nTag; } -inline sal_uInt32 LwpObjectHeader::GetSize() +inline sal_uInt32 LwpObjectHeader::GetSize() const { return m_nSize; } @@ -126,7 +126,7 @@ inline LwpObjectID& LwpObjectHeader::GetID() { return m_ID; } -inline bool LwpObjectHeader::IsCompressed() +inline bool LwpObjectHeader::IsCompressed() const { return m_bCompressed; } diff --git a/lotuswordpro/inc/lwpobjstrm.hxx b/lotuswordpro/inc/lwpobjstrm.hxx index bbcfd3af2a91..0e702bb96a34 100644 --- a/lotuswordpro/inc/lwpobjstrm.hxx +++ b/lotuswordpro/inc/lwpobjstrm.hxx @@ -88,7 +88,7 @@ private: public: sal_uInt16 remainingSize() const; sal_uInt16 QuickRead(void* buf, sal_uInt16 len); - sal_uInt16 GetPos() { return m_nReadPos; } + sal_uInt16 GetPos() const { return m_nReadPos; } void SeekRel(sal_uInt16 pos); void Seek( sal_uInt16 pos); void SkipExtra(); diff --git a/lotuswordpro/inc/lwpoverride.hxx b/lotuswordpro/inc/lwpoverride.hxx index 19d059616b87..036492e518d1 100644 --- a/lotuswordpro/inc/lwpoverride.hxx +++ b/lotuswordpro/inc/lwpoverride.hxx @@ -131,7 +131,7 @@ public: inline sal_uInt16 GetHideLevels() const; - bool IsHighlight(); + bool IsHighlight() const; private: LwpTextAttributeOverride(LwpTextAttributeOverride const& rOther); @@ -178,12 +178,12 @@ public: void Override(LwpBulletOverride* pOther); - inline bool IsSilverBulletOverridden(); - inline bool IsSkipOverridden(); - inline bool IsRightAlignedOverridden(); - inline bool IsSkip(); - inline bool IsRightAligned(); - inline bool IsEditable(); + inline bool IsSilverBulletOverridden() const; + inline bool IsSkipOverridden() const; + inline bool IsRightAlignedOverridden() const; + inline bool IsSkip() const; + inline bool IsRightAligned() const; + inline bool IsEditable() const; void OverrideSilverBullet(LwpObjectID aID); void OverrideSkip(bool bOver); @@ -193,7 +193,7 @@ public: inline void RevertSkip(); inline void RevertRightAligned(); - bool IsInValid(){return m_bIsNull;} + bool IsInValid() const {return m_bIsNull;} private: LwpBulletOverride(LwpBulletOverride const& rOther); @@ -217,32 +217,32 @@ inline const LwpObjectID& LwpBulletOverride::GetSilverBullet() const return m_SilverBullet; } -inline bool LwpBulletOverride::IsSilverBulletOverridden() +inline bool LwpBulletOverride::IsSilverBulletOverridden() const { return ((m_nOverride & BO_SILVERBULLET) != 0); } -inline bool LwpBulletOverride::IsSkipOverridden() +inline bool LwpBulletOverride::IsSkipOverridden() const { return ((m_nOverride & BO_SKIP) != 0); } -inline bool LwpBulletOverride::IsRightAlignedOverridden() +inline bool LwpBulletOverride::IsRightAlignedOverridden() const { return ((m_nOverride & BO_RIGHTALIGN) != 0); } -inline bool LwpBulletOverride::IsSkip() +inline bool LwpBulletOverride::IsSkip() const { return ((m_nValues & BO_SKIP) != 0); } -inline bool LwpBulletOverride::IsEditable() +inline bool LwpBulletOverride::IsEditable() const { return ((m_nValues & BO_EDITABLE) != 0); } -inline bool LwpBulletOverride::IsRightAligned() +inline bool LwpBulletOverride::IsRightAligned() const { return ((m_nValues & BO_RIGHTALIGN) != 0); } @@ -283,7 +283,7 @@ public: ALIGN_SQUEEZE = 7 }; - AlignType GetAlignType(){ return m_nAlignType; } + AlignType GetAlignType() const { return m_nAlignType; } void Override(LwpAlignmentOverride* other); void OverrideAlignment(AlignType val); @@ -389,8 +389,8 @@ public: inline double GetLeft() const; inline double GetRight() const; - sal_uInt16 GetRelative(); - bool IsUseRelative(); + sal_uInt16 GetRelative() const; + bool IsUseRelative() const; void Override(LwpIndentOverride* other); void OverrideIndentAll(sal_Int32 val); void OverrideIndentFirst(sal_Int32 val); diff --git a/lotuswordpro/inc/xfilter/xfbookmark.hxx b/lotuswordpro/inc/xfilter/xfbookmark.hxx index 2c2a684f2bd9..1dd473f94c44 100644 --- a/lotuswordpro/inc/xfilter/xfbookmark.hxx +++ b/lotuswordpro/inc/xfilter/xfbookmark.hxx @@ -78,9 +78,9 @@ public: m_bStart = isStart; } - const OUString& GetDivision(){return m_strDivision;} + const OUString& GetDivision() const {return m_strDivision;} void SetDivision(const OUString& sDivName){m_strDivision = sDivName;} - const OUString& GetName(){return m_strName;} + const OUString& GetName() const {return m_strName;} public: /** diff --git a/lotuswordpro/inc/xfilter/xfcell.hxx b/lotuswordpro/inc/xfilter/xfcell.hxx index 9199b5a1aba1..2bdc97824323 100644 --- a/lotuswordpro/inc/xfilter/xfcell.hxx +++ b/lotuswordpro/inc/xfilter/xfcell.hxx @@ -134,7 +134,7 @@ public: /** * @descr return cell column span property. */ - sal_Int32 GetColSpaned(); + sal_Int32 GetColSpaned() const; /** * @descr Output cell as xml element. @@ -186,7 +186,7 @@ inline void XFCell::SetOwnerRow(XFRow *pRow) m_pOwnerRow = pRow; } -inline sal_Int32 XFCell::GetColSpaned() +inline sal_Int32 XFCell::GetColSpaned() const { return m_nColSpaned; } diff --git a/lotuswordpro/inc/xfilter/xfcolstyle.hxx b/lotuswordpro/inc/xfilter/xfcolstyle.hxx index 563fd0134031..774a2e636941 100644 --- a/lotuswordpro/inc/xfilter/xfcolstyle.hxx +++ b/lotuswordpro/inc/xfilter/xfcolstyle.hxx @@ -82,7 +82,7 @@ public: /** * @descr return column width. */ - double GetWidth(); + double GetWidth() const; virtual enumXFStyle GetStyleFamily() override; @@ -100,7 +100,7 @@ inline void XFColStyle::SetWidth(double width) m_fWidth = width; } -inline double XFColStyle::GetWidth() +inline double XFColStyle::GetWidth() const { return m_fWidth; } diff --git a/lotuswordpro/inc/xfilter/xfcontent.hxx b/lotuswordpro/inc/xfilter/xfcontent.hxx index 38021b4fcd7a..8cb5be5da2c6 100644 --- a/lotuswordpro/inc/xfilter/xfcontent.hxx +++ b/lotuswordpro/inc/xfilter/xfcontent.hxx @@ -91,7 +91,7 @@ public: /** * @short: return the style name. */ - const OUString& GetStyleName() {return m_strStyleName;} + const OUString& GetStyleName() const {return m_strStyleName;} void DoToXml(IXFStream* stream) { diff --git a/lotuswordpro/inc/xfilter/xfdrawlinestyle.hxx b/lotuswordpro/inc/xfilter/xfdrawlinestyle.hxx index 20df6dc436bd..5dae0ccd482b 100644 --- a/lotuswordpro/inc/xfilter/xfdrawlinestyle.hxx +++ b/lotuswordpro/inc/xfilter/xfdrawlinestyle.hxx @@ -121,13 +121,13 @@ public: /** * @descr decide whether it's a solid line. */ - bool IsSolid(); + bool IsSolid() const; - double GetWidth(); + double GetWidth() const; const XFColor& GetColor() const; - sal_Int32 GetTransparency(); + sal_Int32 GetTransparency() const; virtual enumXFStyle GetStyleFamily() override; @@ -190,12 +190,12 @@ inline void XFDrawLineStyle::SetSpace(double space) m_fSpace = space; } -inline bool XFDrawLineStyle::IsSolid() +inline bool XFDrawLineStyle::IsSolid() const { return (m_eLineStyle==enumXFLineSolid); } -inline double XFDrawLineStyle::GetWidth() +inline double XFDrawLineStyle::GetWidth() const { return m_fWidth; } @@ -205,7 +205,7 @@ inline const XFColor& XFDrawLineStyle::GetColor() const return m_aColor; } -inline sal_Int32 XFDrawLineStyle::GetTransparency() +inline sal_Int32 XFDrawLineStyle::GetTransparency() const { return m_nTransparency; } diff --git a/lotuswordpro/inc/xfilter/xffont.hxx b/lotuswordpro/inc/xfilter/xffont.hxx index f9e83eba1eb1..47067b3a59d2 100644 --- a/lotuswordpro/inc/xfilter/xffont.hxx +++ b/lotuswordpro/inc/xfilter/xffont.hxx @@ -213,10 +213,10 @@ public: void SetBackColorTransparent(); //getter: - enumXFTransform GetTransform(); + enumXFTransform GetTransform() const; - sal_Int16 GetFontSize(); - const XFColor& GetColor(); + sal_Int16 GetFontSize() const; + const XFColor& GetColor() const; void ToXml(IXFStream *pStrm); @@ -397,17 +397,17 @@ inline void XFFont::SetBackColorTransparent() m_nFlag |= XFFONT_FLAG_BGCOLOR; } -inline enumXFTransform XFFont::GetTransform() +inline enumXFTransform XFFont::GetTransform() const { return m_eTransform; } -inline sal_Int16 XFFont::GetFontSize() +inline sal_Int16 XFFont::GetFontSize() const { return m_nFontSize; } -inline const XFColor& XFFont::GetColor() +inline const XFColor& XFFont::GetColor() const { return m_aColor; } diff --git a/lotuswordpro/inc/xfilter/xffontdecl.hxx b/lotuswordpro/inc/xfilter/xffontdecl.hxx index e1a1e615a7cf..2c3eeaad7164 100644 --- a/lotuswordpro/inc/xfilter/xffontdecl.hxx +++ b/lotuswordpro/inc/xfilter/xffontdecl.hxx @@ -77,12 +77,12 @@ public: /** * @descr Get font name. */ - const OUString& GetFontName() { return m_strFontName;} + const OUString& GetFontName() const { return m_strFontName;} /** * @descr Get font family. */ - const OUString& GetFontFamily() { return m_strFontFamily;} + const OUString& GetFontFamily() const { return m_strFontFamily;} private: OUString m_strFontName; diff --git a/lotuswordpro/inc/xfilter/xfframe.hxx b/lotuswordpro/inc/xfilter/xfframe.hxx index 1394cde73ae0..35f73d32587a 100644 --- a/lotuswordpro/inc/xfilter/xfframe.hxx +++ b/lotuswordpro/inc/xfilter/xfframe.hxx @@ -154,7 +154,7 @@ public: /** * @descr Get the frame type. image, drawing or text-box. */ - enumXFFrameType GetFrameType(); + enumXFFrameType GetFrameType() const; /** * @descr Get content type, enumXFContentFrame. diff --git a/lotuswordpro/inc/xfilter/xfmargins.hxx b/lotuswordpro/inc/xfilter/xfmargins.hxx index 2705304d3004..0ee890c7f9d8 100644 --- a/lotuswordpro/inc/xfilter/xfmargins.hxx +++ b/lotuswordpro/inc/xfilter/xfmargins.hxx @@ -78,8 +78,8 @@ public: void SetTop(double top); void SetBottom(double bottom); - double GetLeft(); - double GetTop(); + double GetLeft() const; + double GetTop() const; void ToXml(IXFStream *pStrm); @@ -117,12 +117,12 @@ inline void XFMargins::SetBottom(double bottom) m_nFlag |= XFMARGINS_FLAG_BOTTOM; } -inline double XFMargins::GetLeft() +inline double XFMargins::GetLeft() const { return m_fLeft; } -inline double XFMargins::GetTop() +inline double XFMargins::GetTop() const { return m_fTop; } diff --git a/lotuswordpro/inc/xfilter/xfnumberstyle.hxx b/lotuswordpro/inc/xfilter/xfnumberstyle.hxx index 79f442b5566d..cea69c1f9010 100644 --- a/lotuswordpro/inc/xfilter/xfnumberstyle.hxx +++ b/lotuswordpro/inc/xfilter/xfnumberstyle.hxx @@ -75,7 +75,7 @@ public: void SetGroup(); void SetColor(const XFColor& color); - const XFColor& GetColor() {return m_aColor;} + const XFColor& GetColor() const {return m_aColor;} void SetPrefix(const OUString& prefix); diff --git a/lotuswordpro/inc/xfilter/xfparagraph.hxx b/lotuswordpro/inc/xfilter/xfparagraph.hxx index 20ad256cc769..f096b9b1837b 100644 --- a/lotuswordpro/inc/xfilter/xfparagraph.hxx +++ b/lotuswordpro/inc/xfilter/xfparagraph.hxx @@ -79,7 +79,7 @@ public: virtual ~XFParagraph() override; public: - bool HasContents(); + bool HasContents() const; virtual enumXFContent GetContentType() override; diff --git a/lotuswordpro/inc/xfilter/xfparastyle.hxx b/lotuswordpro/inc/xfilter/xfparastyle.hxx index f50f28f62f1e..f43c4fd4dba7 100644 --- a/lotuswordpro/inc/xfilter/xfparastyle.hxx +++ b/lotuswordpro/inc/xfilter/xfparastyle.hxx @@ -108,7 +108,7 @@ public: */ void SetMasterPage(const OUString& master); - const OUString& GetMasterPage(); + const OUString& GetMasterPage() const; /** * @descr set the paragraph default font. @@ -120,7 +120,7 @@ public: /** * @descr get the font object. */ - const rtl::Reference<XFFont>& GetFont(){ return m_pFont; } + const rtl::Reference<XFFont>& GetFont() const { return m_pFont; } /** * @descr Set the indent of the paragraph. This is the indent for @@ -216,7 +216,7 @@ public: virtual void ToXml(IXFStream *strm) override; void SetNumberRight(bool bFlag){m_bNumberRight = bFlag;} - bool GetNumberRight(){return m_bNumberRight;} + bool GetNumberRight() const {return m_bNumberRight;} protected: OUString m_strMasterPage; @@ -276,7 +276,7 @@ inline void XFParaStyle::ClearTabStyles() m_aTabs.Reset(); } -inline const OUString& XFParaStyle::GetMasterPage() +inline const OUString& XFParaStyle::GetMasterPage() const { return m_strMasterPage; } diff --git a/lotuswordpro/inc/xfilter/xfrow.hxx b/lotuswordpro/inc/xfilter/xfrow.hxx index 1f2a1e430e03..d8269057bb82 100644 --- a/lotuswordpro/inc/xfilter/xfrow.hxx +++ b/lotuswordpro/inc/xfilter/xfrow.hxx @@ -82,7 +82,7 @@ public: void SetOwnerTable(XFTable *pTable); - sal_Int32 GetRow(); + sal_Int32 GetRow() const; sal_Int32 GetCellCount() const; @@ -116,7 +116,7 @@ inline void XFRow::SetOwnerTable(XFTable *pTable) m_pOwnerTable = pTable; } -inline sal_Int32 XFRow::GetRow() +inline sal_Int32 XFRow::GetRow() const { return m_nRow; } diff --git a/lotuswordpro/inc/xfilter/xfrowstyle.hxx b/lotuswordpro/inc/xfilter/xfrowstyle.hxx index 41fc1c2adc76..8ca8d1223e03 100644 --- a/lotuswordpro/inc/xfilter/xfrowstyle.hxx +++ b/lotuswordpro/inc/xfilter/xfrowstyle.hxx @@ -73,7 +73,7 @@ public: public: void SetRowHeight(double height); - double GetRowHeight(); + double GetRowHeight() const; void SetMinRowHeight(double height); @@ -97,7 +97,7 @@ inline void XFRowStyle::SetMinRowHeight(double height) m_fMinHeight = height; } -inline double XFRowStyle::GetRowHeight() +inline double XFRowStyle::GetRowHeight() const { if (m_fMinHeight > FLOAT_MIN) { diff --git a/lotuswordpro/inc/xfilter/xfshadow.hxx b/lotuswordpro/inc/xfilter/xfshadow.hxx index 114a5debae93..b1f770c38b12 100644 --- a/lotuswordpro/inc/xfilter/xfshadow.hxx +++ b/lotuswordpro/inc/xfilter/xfshadow.hxx @@ -81,7 +81,7 @@ public: /** * @descr return shadow position. */ - enumXFShadowPos GetPosition(); + enumXFShadowPos GetPosition() const; /** * @descr Set shadow offset from owner object. @@ -91,7 +91,7 @@ public: /** * @descr return shadow offset. */ - double GetOffset(); + double GetOffset() const; /** * @descr Set shadow color. @@ -101,7 +101,7 @@ public: /** * @descr return shadow color. */ - const XFColor& GetColor(); + const XFColor& GetColor() const; OUString ToString(); @@ -120,7 +120,7 @@ inline void XFShadow::SetPosition(enumXFShadowPos pos) m_ePosition = pos; } -inline enumXFShadowPos XFShadow::GetPosition() +inline enumXFShadowPos XFShadow::GetPosition() const { return m_ePosition; } @@ -130,7 +130,7 @@ inline void XFShadow::SetOffset(double offset) m_fOffset = offset; } -inline double XFShadow::GetOffset() +inline double XFShadow::GetOffset() const { return m_fOffset; } @@ -140,7 +140,7 @@ inline void XFShadow::SetColor(const XFColor& color) m_aColor = color; } -inline const XFColor& XFShadow::GetColor() +inline const XFColor& XFShadow::GetColor() const { return m_aColor; } diff --git a/lotuswordpro/inc/xfilter/xftable.hxx b/lotuswordpro/inc/xfilter/xftable.hxx index 2ba1199f47ec..f36a1f295be6 100644 --- a/lotuswordpro/inc/xfilter/xftable.hxx +++ b/lotuswordpro/inc/xfilter/xftable.hxx @@ -94,7 +94,7 @@ public: sal_Int32 GetColumnCount(); - bool IsSubTable(); + bool IsSubTable() const; enumXFContent GetContentType() override; @@ -128,7 +128,7 @@ inline void XFTable::SetOwnerCell(XFCell *pCell) m_bSubTable = (pCell!=nullptr); } -inline bool XFTable::IsSubTable() +inline bool XFTable::IsSubTable() const { return m_bSubTable; } diff --git a/lotuswordpro/inc/xfilter/xftextstyle.hxx b/lotuswordpro/inc/xfilter/xftextstyle.hxx index 6b7711e5066e..50d73fe7ad3f 100644 --- a/lotuswordpro/inc/xfilter/xftextstyle.hxx +++ b/lotuswordpro/inc/xfilter/xftextstyle.hxx @@ -89,7 +89,7 @@ public: */ void SetFont(rtl::Reference<XFFont> const & font); - const rtl::Reference<XFFont>& GetFont(){ return m_pFont; } + const rtl::Reference<XFFont>& GetFont() const { return m_pFont; } virtual enumXFStyle GetStyleFamily() override; |