From ebb4cee9b796313165e4362886516da971074556 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 27 Sep 2021 08:24:37 +0200 Subject: sw: prefix members of SwPageFootnoteInfoItem, SwStdFontConfig, ... ... SwToolbarConfigItem and TextViewOutWin See tdf#94879 for motivation. Change-Id: I0d13d501c6a18c4f4f56d163f0065dd4eae88f8d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122672 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- sw/source/uibase/utlui/uiitems.cxx | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'sw/source/uibase/utlui') diff --git a/sw/source/uibase/utlui/uiitems.cxx b/sw/source/uibase/utlui/uiitems.cxx index 64de71e62684..7558bf36ba0e 100644 --- a/sw/source/uibase/utlui/uiitems.cxx +++ b/sw/source/uibase/utlui/uiitems.cxx @@ -36,7 +36,7 @@ using namespace ::com::sun::star::uno; SwPageFootnoteInfoItem::SwPageFootnoteInfoItem( SwPageFootnoteInfo const & rInfo) : SfxPoolItem( FN_PARAM_FTN_INFO ), - aFootnoteInfo(rInfo) + m_aFootnoteInfo(rInfo) { } @@ -52,7 +52,7 @@ SwPageFootnoteInfoItem* SwPageFootnoteInfoItem::Clone( SfxItemPool * /*pPool*/ ) bool SwPageFootnoteInfoItem::operator==( const SfxPoolItem& rAttr ) const { return SfxPoolItem::operator==(rAttr) - && aFootnoteInfo == static_cast(rAttr).aFootnoteInfo; + && m_aFootnoteInfo == static_cast(rAttr).m_aFootnoteInfo; } bool SwPageFootnoteInfoItem::GetPresentation @@ -79,22 +79,22 @@ bool SwPageFootnoteInfoItem::QueryValue( Any& rVal, sal_uInt8 nMemberId ) const bool bRet = true; switch(nMemberId & ~CONVERT_TWIPS) { - case MID_FTN_HEIGHT : rVal <<= static_cast(convertTwipToMm100(aFootnoteInfo.GetHeight()));break; - case MID_LINE_WEIGHT : rVal <<= static_cast(convertTwipToMm100(aFootnoteInfo.GetLineWidth()));break; - case MID_LINE_COLOR : rVal <<= aFootnoteInfo.GetLineColor();break; + case MID_FTN_HEIGHT : rVal <<= static_cast(convertTwipToMm100(m_aFootnoteInfo.GetHeight()));break; + case MID_LINE_WEIGHT : rVal <<= static_cast(convertTwipToMm100(m_aFootnoteInfo.GetLineWidth()));break; + case MID_LINE_COLOR : rVal <<= m_aFootnoteInfo.GetLineColor();break; case MID_LINE_RELWIDTH : { Fraction aTmp( 100, 1 ); - aTmp *= aFootnoteInfo.GetWidth(); + aTmp *= m_aFootnoteInfo.GetWidth(); rVal <<= static_cast(static_cast(aTmp)); } break; - case MID_LINE_ADJUST : rVal <<= static_cast(aFootnoteInfo.GetAdj());break;//text::HorizontalAdjust - case MID_LINE_TEXT_DIST : rVal <<= static_cast(convertTwipToMm100(aFootnoteInfo.GetTopDist()));break; - case MID_LINE_FOOTNOTE_DIST: rVal <<= static_cast(convertTwipToMm100(aFootnoteInfo.GetBottomDist()));break; + case MID_LINE_ADJUST : rVal <<= static_cast(m_aFootnoteInfo.GetAdj());break;//text::HorizontalAdjust + case MID_LINE_TEXT_DIST : rVal <<= static_cast(convertTwipToMm100(m_aFootnoteInfo.GetTopDist()));break; + case MID_LINE_FOOTNOTE_DIST: rVal <<= static_cast(convertTwipToMm100(m_aFootnoteInfo.GetBottomDist()));break; case MID_FTN_LINE_STYLE : { - switch ( aFootnoteInfo.GetLineStyle( ) ) + switch ( m_aFootnoteInfo.GetLineStyle( ) ) { default: case SvxBorderLineStyle::NONE : rVal <<= sal_Int8(0); break; @@ -119,7 +119,7 @@ bool SwPageFootnoteInfoItem::PutValue(const Any& rVal, sal_uInt8 nMemberId) { case MID_LINE_COLOR : rVal >>= aColor; - aFootnoteInfo.SetLineColor(aColor); + m_aFootnoteInfo.SetLineColor(aColor); break; case MID_FTN_HEIGHT: case MID_LINE_TEXT_DIST : @@ -132,9 +132,9 @@ bool SwPageFootnoteInfoItem::PutValue(const Any& rVal, sal_uInt8 nMemberId) nSet32 = o3tl::toTwips(nSet32, o3tl::Length::mm100); switch(nMemberId & ~CONVERT_TWIPS) { - case MID_FTN_HEIGHT: aFootnoteInfo.SetHeight(nSet32); break; - case MID_LINE_TEXT_DIST: aFootnoteInfo.SetTopDist(nSet32);break; - case MID_LINE_FOOTNOTE_DIST: aFootnoteInfo.SetBottomDist(nSet32);break; + case MID_FTN_HEIGHT: m_aFootnoteInfo.SetHeight(nSet32); break; + case MID_LINE_TEXT_DIST: m_aFootnoteInfo.SetTopDist(nSet32);break; + case MID_LINE_FOOTNOTE_DIST: m_aFootnoteInfo.SetBottomDist(nSet32);break; } } break; @@ -143,7 +143,7 @@ bool SwPageFootnoteInfoItem::PutValue(const Any& rVal, sal_uInt8 nMemberId) sal_Int16 nSet = 0; rVal >>= nSet; if(nSet >= 0) - aFootnoteInfo.SetLineWidth(o3tl::toTwips(nSet, o3tl::Length::mm100)); + m_aFootnoteInfo.SetLineWidth(o3tl::toTwips(nSet, o3tl::Length::mm100)); else bRet = false; } @@ -155,7 +155,7 @@ bool SwPageFootnoteInfoItem::PutValue(const Any& rVal, sal_uInt8 nMemberId) if(nSet < 0) bRet = false; else - aFootnoteInfo.SetWidth(Fraction(nSet, 100)); + m_aFootnoteInfo.SetWidth(Fraction(nSet, 100)); } break; case MID_LINE_ADJUST : @@ -163,7 +163,7 @@ bool SwPageFootnoteInfoItem::PutValue(const Any& rVal, sal_uInt8 nMemberId) sal_Int16 nSet = 0; rVal >>= nSet; if(nSet >= 0 && nSet < 3) //text::HorizontalAdjust - aFootnoteInfo.SetAdj(static_cast(nSet)); + m_aFootnoteInfo.SetAdj(static_cast(nSet)); else bRet = false; } @@ -180,7 +180,7 @@ bool SwPageFootnoteInfoItem::PutValue(const Any& rVal, sal_uInt8 nMemberId) case 3: eStyle = SvxBorderLineStyle::DASHED; break; default: break; } - aFootnoteInfo.SetLineStyle( eStyle ); + m_aFootnoteInfo.SetLineStyle( eStyle ); } break; default: -- cgit