[Libreoffice-commits] core.git: cui/source editeng/source filter/source include/editeng sc/source sd/source svx/source sw/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Tue Feb 4 12:13:23 UTC 2020
cui/source/tabpages/paragrph.cxx | 12 ++++++------
cui/source/tabpages/tabstpge.cxx | 2 +-
editeng/source/editeng/editdbg.cxx | 2 +-
editeng/source/editeng/editdoc.cxx | 2 +-
editeng/source/editeng/editeng.cxx | 4 ++--
editeng/source/editeng/impedit2.cxx | 2 +-
editeng/source/editeng/impedit3.cxx | 8 ++++----
editeng/source/editeng/impedit4.cxx | 2 +-
editeng/source/items/frmitems.cxx | 8 ++++----
editeng/source/outliner/outliner.cxx | 4 ++--
editeng/source/rtf/rtfitem.cxx | 2 +-
filter/source/msfilter/svdfppt.cxx | 4 ++--
include/editeng/lrspitem.hxx | 8 ++++----
sc/source/ui/drawfunc/drtxtob.cxx | 2 +-
sd/source/core/stlsheet.cxx | 4 ++--
sd/source/filter/xml/sdtransform.cxx | 4 ++--
sd/source/ui/view/drtxtob1.cxx | 4 ++--
sd/source/ui/view/drviews3.cxx | 20 ++++++++++----------
svx/source/dialog/svxruler.cxx | 8 ++++----
svx/source/sidebar/paragraph/ParaPropertyPanel.cxx | 4 ++--
svx/source/sidebar/paragraph/ParaSpacingWindow.cxx | 4 ++--
sw/source/core/crsr/crstrvl.cxx | 2 +-
sw/source/core/doc/DocumentStylePoolManager.cxx | 12 ++++++------
sw/source/core/doc/docfmt.cxx | 2 +-
sw/source/core/doc/fmtcol.cxx | 6 +++---
sw/source/core/edit/autofmt.cxx | 4 ++--
sw/source/core/layout/fly.cxx | 2 +-
sw/source/core/text/EnhancedPDFExportHelper.cxx | 2 +-
sw/source/core/text/frmpaint.cxx | 4 ++--
sw/source/core/text/porfld.cxx | 2 +-
sw/source/core/tox/ToxTabStopTokenHandler.cxx | 2 +-
sw/source/core/txtnode/ndtxt.cxx | 10 +++++-----
sw/source/core/txtnode/thints.cxx | 2 +-
sw/source/filter/html/css1atr.cxx | 2 +-
sw/source/filter/html/htmlatr.cxx | 4 ++--
sw/source/filter/html/htmlcss1.cxx | 2 +-
sw/source/filter/html/htmlctxt.cxx | 4 ++--
sw/source/filter/html/htmldrawreader.cxx | 2 +-
sw/source/filter/html/htmlform.cxx | 2 +-
sw/source/filter/html/htmlnumreader.cxx | 2 +-
sw/source/filter/html/htmlplug.cxx | 2 +-
sw/source/filter/html/svxcss1.cxx | 6 +++---
sw/source/filter/html/swhtml.cxx | 10 +++++-----
sw/source/filter/ww8/docxattributeoutput.cxx | 2 +-
sw/source/filter/ww8/rtfattributeoutput.cxx | 4 ++--
sw/source/filter/ww8/wrtw8nds.cxx | 8 ++++----
sw/source/filter/ww8/ww8atr.cxx | 4 ++--
sw/source/filter/ww8/ww8par.cxx | 8 ++++----
sw/source/filter/ww8/ww8par2.cxx | 2 +-
sw/source/filter/ww8/ww8par3.cxx | 6 +++---
sw/source/filter/ww8/ww8par6.cxx | 6 +++---
sw/source/filter/xml/xmlexpit.cxx | 2 +-
sw/source/filter/xml/xmlimpit.cxx | 2 +-
sw/source/uibase/app/docstyle.cxx | 2 +-
sw/source/uibase/shells/drwtxtex.cxx | 4 ++--
sw/source/uibase/uiview/viewtab.cxx | 8 ++++----
sw/source/uibase/wrtsh/delete.cxx | 6 +++---
57 files changed, 130 insertions(+), 130 deletions(-)
New commits:
commit 7940abb4cc491fd1c72859ef21d120b3543bc40c
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue Feb 4 11:15:02 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Feb 4 13:12:24 2020 +0100
rename Set/GetTextFirstLineOfst->Set/GetTextFirstLineOffset
Change-Id: Iaeb3c17fe157dec82cd70991122c08ee1e215752
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87955
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx
index b712a7555d8f..f6b26b9e0e62 100644
--- a/cui/source/tabpages/paragrph.cxx
+++ b/cui/source/tabpages/paragrph.cxx
@@ -349,19 +349,19 @@ bool SvxStdParagraphTabPage::FillItemSet( SfxItemSet* rOutSet )
aMargin.SetRight(m_xRightIndent->GetCoreValue(eUnit));
if ( m_xFLineIndent->IsRelative() )
- aMargin.SetTextFirstLineOfst( rOldItem.GetTextFirstLineOfst(),
+ aMargin.SetTextFirstLineOffset( rOldItem.GetTextFirstLineOffset(),
static_cast<sal_uInt16>(m_xFLineIndent->get_value(FieldUnit::NONE)) );
else
- aMargin.SetTextFirstLineOfst(static_cast<sal_uInt16>(m_xFLineIndent->GetCoreValue(eUnit)));
+ aMargin.SetTextFirstLineOffset(static_cast<sal_uInt16>(m_xFLineIndent->GetCoreValue(eUnit)));
}
else
{
aMargin.SetTextLeft(m_xLeftIndent->GetCoreValue(eUnit));
aMargin.SetRight(m_xRightIndent->GetCoreValue(eUnit));
- aMargin.SetTextFirstLineOfst(static_cast<sal_uInt16>(m_xFLineIndent->GetCoreValue(eUnit)));
+ aMargin.SetTextFirstLineOffset(static_cast<sal_uInt16>(m_xFLineIndent->GetCoreValue(eUnit)));
}
aMargin.SetAutoFirst(m_xAutoCB->get_active());
- if ( aMargin.GetTextFirstLineOfst() < 0 )
+ if ( aMargin.GetTextFirstLineOffset() < 0 )
bNullTab = true;
eState = GetItemSet().GetItemState( nWhich );
@@ -493,7 +493,7 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet* rSet )
m_xFLineIndent->SetRelative(false);
m_xFLineIndent->set_min(-9999, FieldUnit::NONE);
m_xFLineIndent->SetFieldUnit(eFUnit);
- m_xFLineIndent->SetMetricValue(rOldItem.GetTextFirstLineOfst(), eUnit);
+ m_xFLineIndent->SetMetricValue(rOldItem.GetTextFirstLineOffset(), eUnit);
}
m_xAutoCB->set_active(rOldItem.IsAutoFirst());
}
@@ -504,7 +504,7 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet* rSet )
m_xLeftIndent->SetMetricValue(rSpace.GetTextLeft(), eUnit);
m_xRightIndent->SetMetricValue(rSpace.GetRight(), eUnit);
- m_xFLineIndent->SetMetricValue(rSpace.GetTextFirstLineOfst(), eUnit);
+ m_xFLineIndent->SetMetricValue(rSpace.GetTextFirstLineOffset(), eUnit);
m_xAutoCB->set_active(rSpace.IsAutoFirst());
}
AutoHdl_Impl(*m_xAutoCB);
diff --git a/cui/source/tabpages/tabstpge.cxx b/cui/source/tabpages/tabstpge.cxx
index bc2e51a1e07a..939a51e41256 100644
--- a/cui/source/tabpages/tabstpge.cxx
+++ b/cui/source/tabpages/tabstpge.cxx
@@ -177,7 +177,7 @@ bool SvxTabulatorTabPage::FillItemSet(SfxItemSet* rSet)
if (SfxItemState::SET != rSet->GetItemState(GetWhich(SID_ATTR_LRSPACE), true, &pLRSpace))
pLRSpace = GetOldItem(*rSet, SID_ATTR_LRSPACE);
- if (pLRSpace && static_cast<const SvxLRSpaceItem*>(pLRSpace)->GetTextFirstLineOfst() < 0)
+ if (pLRSpace && static_cast<const SvxLRSpaceItem*>(pLRSpace)->GetTextFirstLineOffset() < 0)
{
SvxTabStop aNull(0, SvxTabAdjust::Default);
aNewTabs->Insert(aNull);
diff --git a/editeng/source/editeng/editdbg.cxx b/editeng/source/editeng/editdbg.cxx
index a28974655149..3dba4a206b4c 100644
--- a/editeng/source/editeng/editdbg.cxx
+++ b/editeng/source/editeng/editdbg.cxx
@@ -70,7 +70,7 @@ OString DbgOutItem(const SfxItemPool& rPool, const SfxPoolItem& rItem)
case EE_PARA_OUTLLRSPACE:
case EE_PARA_LRSPACE:
aDebStr.append("FI=");
- aDebStr.append(static_cast<sal_Int32>(static_cast<const SvxLRSpaceItem&>(rItem).GetTextFirstLineOfst()));
+ aDebStr.append(static_cast<sal_Int32>(static_cast<const SvxLRSpaceItem&>(rItem).GetTextFirstLineOffset()));
aDebStr.append(", LI=");
aDebStr.append(static_cast<sal_Int32>(static_cast<const SvxLRSpaceItem&>(rItem).GetTextLeft()));
aDebStr.append(", RI=");
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 0b90d848c1dc..f3f55edf60c1 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -825,7 +825,7 @@ void ConvertItem( std::unique_ptr<SfxPoolItem>& rPoolItem, MapUnit eSourceUnit,
{
assert(dynamic_cast<const SvxLRSpaceItem *>(rPoolItem.get()) != nullptr);
SvxLRSpaceItem& rItem = static_cast<SvxLRSpaceItem&>(*rPoolItem);
- rItem.SetTextFirstLineOfst( sal::static_int_cast< short >( OutputDevice::LogicToLogic( rItem.GetTextFirstLineOfst(), eSourceUnit, eDestUnit ) ) );
+ rItem.SetTextFirstLineOffset( sal::static_int_cast< short >( OutputDevice::LogicToLogic( rItem.GetTextFirstLineOffset(), eSourceUnit, eDestUnit ) ) );
rItem.SetTextLeft( OutputDevice::LogicToLogic( rItem.GetTextLeft(), eSourceUnit, eDestUnit ) );
rItem.SetRight( OutputDevice::LogicToLogic( rItem.GetRight(), eSourceUnit, eDestUnit ) );
}
diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx
index c7f123fd40bc..f41aa17e9530 100644
--- a/editeng/source/editeng/editeng.cxx
+++ b/editeng/source/editeng/editeng.cxx
@@ -1971,11 +1971,11 @@ Point EditEngine::GetDocPosTopLeft( sal_Int32 nParagraph )
else
{
const SvxLRSpaceItem& rLRItem = pImpEditEngine->GetLRSpaceItem( pPPortion->GetNode() );
-// TL_NF_LR aPoint.X() = pImpEditEngine->GetXValue( (short)(rLRItem.GetTextLeft() + rLRItem.GetTextFirstLineOfst()) );
+// TL_NF_LR aPoint.X() = pImpEditEngine->GetXValue( (short)(rLRItem.GetTextLeft() + rLRItem.GetTextFirstLineOffset()) );
sal_Int32 nSpaceBefore = 0;
pImpEditEngine->GetSpaceBeforeAndMinLabelWidth( pPPortion->GetNode(), &nSpaceBefore );
short nX = static_cast<short>(rLRItem.GetTextLeft()
- + rLRItem.GetTextFirstLineOfst()
+ + rLRItem.GetTextFirstLineOffset()
+ nSpaceBefore);
aPoint.setX( pImpEditEngine->GetXValue( nX
) );
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index 805c043aa11f..f159c3e71b33 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -3146,7 +3146,7 @@ sal_uInt32 ImpEditEngine::CalcParaWidth( sal_Int32 nPara, bool bIgnoreExtraSpace
long nCurWidth = GetXValue( rLRItem.GetTextLeft() + nSpaceBeforeAndMinLabelWidth );
if ( nLine == 0 )
{
- long nFI = GetXValue( rLRItem.GetTextFirstLineOfst() );
+ long nFI = GetXValue( rLRItem.GetTextFirstLineOffset() );
nCurWidth -= nFI;
if ( pPortion->GetBulletX() > nCurWidth )
{
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index 6ebd6fa49f48..9e82076b1c99 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -768,7 +768,7 @@ bool ImpEditEngine::CreateLines( sal_Int32 nPara, sal_uInt32 nStartPosY )
long nStartX = GetXValue( rLRItem.GetTextLeft() + nSpaceBeforeAndMinLabelWidth );
if ( nIndex == 0 )
{
- long nFI = GetXValue( rLRItem.GetTextFirstLineOfst() );
+ long nFI = GetXValue( rLRItem.GetTextFirstLineOffset() );
nStartX += nFI;
if ( !nLine && ( pParaPortion->GetBulletX() > nStartX ) )
@@ -1674,12 +1674,12 @@ void ImpEditEngine::CreateAndInsertEmptyLine( ParaPortion* pParaPortion )
sal_Int32 nSpaceBeforeAndMinLabelWidth = GetSpaceBeforeAndMinLabelWidth( pParaPortion->GetNode(), &nSpaceBefore );
const SvxLRSpaceItem& rLRItem = GetLRSpaceItem( pParaPortion->GetNode() );
const SvxLineSpacingItem& rLSItem = pParaPortion->GetNode()->GetContentAttribs().GetItem( EE_PARA_SBL );
- long nStartX = GetXValue( rLRItem.GetTextLeft() + rLRItem.GetTextFirstLineOfst() + nSpaceBefore );
+ long nStartX = GetXValue( rLRItem.GetTextLeft() + rLRItem.GetTextFirstLineOffset() + nSpaceBefore );
tools::Rectangle aBulletArea { Point(), Point() };
if ( bLineBreak )
{
- nStartX = GetXValue( rLRItem.GetTextLeft() + rLRItem.GetTextFirstLineOfst() + nSpaceBeforeAndMinLabelWidth );
+ nStartX = GetXValue( rLRItem.GetTextLeft() + rLRItem.GetTextFirstLineOffset() + nSpaceBeforeAndMinLabelWidth );
}
else
{
@@ -1690,7 +1690,7 @@ void ImpEditEngine::CreateAndInsertEmptyLine( ParaPortion* pParaPortion )
pParaPortion->SetBulletX( 0 ); // If Bullet set incorrectly.
if ( pParaPortion->GetBulletX() > nStartX )
{
- nStartX = GetXValue( rLRItem.GetTextLeft() + rLRItem.GetTextFirstLineOfst() + nSpaceBeforeAndMinLabelWidth );
+ nStartX = GetXValue( rLRItem.GetTextLeft() + rLRItem.GetTextFirstLineOffset() + nSpaceBeforeAndMinLabelWidth );
if ( pParaPortion->GetBulletX() > nStartX )
nStartX = pParaPortion->GetBulletX();
}
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index 6d94c5ef8026..67e924653618 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -680,7 +680,7 @@ void ImpEditEngine::WriteItemAsRTF( const SfxPoolItem& rItem, SvStream& rOutput,
case EE_PARA_LRSPACE:
{
rOutput.WriteCharPtr( OOO_STRING_SVTOOLS_RTF_FI );
- sal_Int32 nTxtFirst = static_cast<const SvxLRSpaceItem&>(rItem).GetTextFirstLineOfst();
+ sal_Int32 nTxtFirst = static_cast<const SvxLRSpaceItem&>(rItem).GetTextFirstLineOffset();
nTxtFirst = LogicToTwips( nTxtFirst );
rOutput.WriteInt32AsString( nTxtFirst );
rOutput.WriteCharPtr( OOO_STRING_SVTOOLS_RTF_LI );
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index 643f8b1db471..9530ce4423cc 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -400,7 +400,7 @@ bool SvxLRSpaceItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
SetRight(bConvert ? convertMm100ToTwip(aLRSpace.Right) : aLRSpace.Right);
nPropLeftMargin = aLRSpace.ScaleLeft;
nPropRightMargin = aLRSpace.ScaleRight;
- SetTextFirstLineOfst(static_cast<short>(bConvert ? convertMm100ToTwip(aLRSpace.FirstLine) : aLRSpace.FirstLine));
+ SetTextFirstLineOffset(static_cast<short>(bConvert ? convertMm100ToTwip(aLRSpace.FirstLine) : aLRSpace.FirstLine));
SetPropTextFirstLineOfst ( static_cast<sal_uInt16>(aLRSpace.ScaleFirstLine) );
SetAutoFirst( aLRSpace.AutoFirstLine );
break;
@@ -432,7 +432,7 @@ bool SvxLRSpaceItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
}
break;
case MID_FIRST_LINE_INDENT :
- SetTextFirstLineOfst(static_cast<short>(bConvert ? convertMm100ToTwip(nVal) : nVal));
+ SetTextFirstLineOffset(static_cast<short>(bConvert ? convertMm100ToTwip(nVal) : nVal));
break;
case MID_FIRST_LINE_REL_INDENT:
@@ -468,7 +468,7 @@ bool SvxLRSpaceItem::operator==( const SfxPoolItem& rAttr ) const
const SvxLRSpaceItem& rOther = static_cast<const SvxLRSpaceItem&>(rAttr);
return (
- nFirstLineOfst == rOther.GetTextFirstLineOfst() &&
+ nFirstLineOfst == rOther.GetTextFirstLineOffset() &&
nTxtLeft == rOther.GetTextLeft() &&
nLeftMargin == rOther.GetLeft() &&
nRightMargin == rOther.GetRight() &&
@@ -616,7 +616,7 @@ boost::property_tree::ptree SvxLRSpaceItem::dumpAsJSON() const
OUString sRight = GetMetricText(GetRight(),
MapUnit::MapTwip, eTargetUnit, nullptr);
- OUString sFirstline = GetMetricText(GetTextFirstLineOfst(),
+ OUString sFirstline = GetMetricText(GetTextFirstLineOffset(),
MapUnit::MapTwip, eTargetUnit, nullptr);
aState.put("left", sLeft);
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index 59a56189b2ab..c99cd4eb9c33 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -1516,9 +1516,9 @@ tools::Rectangle Outliner::ImpCalcBulletArea( sal_Int32 nPara, bool bAdjust, boo
const auto nSpaceBefore = pFmt->GetAbsLSpace() + pFmt->GetFirstLineOffset();
const SvxLRSpaceItem& rLR = pEditEngine->GetParaAttrib( nPara, bOutlineMode ? EE_PARA_OUTLLRSPACE : EE_PARA_LRSPACE );
- aTopLeft.setX( rLR.GetTextLeft() + rLR.GetTextFirstLineOfst() + nSpaceBefore );
+ aTopLeft.setX( rLR.GetTextLeft() + rLR.GetTextFirstLineOffset() + nSpaceBefore );
- long nBulletWidth = std::max( static_cast<long>(-rLR.GetTextFirstLineOfst()), static_cast<long>((-pFmt->GetFirstLineOffset()) + pFmt->GetCharTextDistance()) );
+ long nBulletWidth = std::max( static_cast<long>(-rLR.GetTextFirstLineOffset()), static_cast<long>((-pFmt->GetFirstLineOffset()) + pFmt->GetCharTextDistance()) );
if ( nBulletWidth < aBulletSize.Width() ) // The Bullet creates its space
nBulletWidth = aBulletSize.Width();
diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx
index 2ada3d2a6289..acfc59c9e6b3 100644
--- a/editeng/source/rtf/rtfitem.cxx
+++ b/editeng/source/rtf/rtfitem.cxx
@@ -326,7 +326,7 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet )
CalcValue();
nSz = sal_uInt16(nTokenValue);
}
- aLR.SetTextFirstLineOfst( nSz );
+ aLR.SetTextFirstLineOffset( nSz );
pSet->Put( aLR );
}
break;
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index a1c57622f865..e093597c5961 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -6213,14 +6213,14 @@ void PPTParagraphObj::ApplyTo( SfxItemSet& rSet, o3tl::optional< sal_Int16 >& r
sal_uInt16 nAbsLSpace = static_cast<sal_uInt16>( ( _nTextOfs * 2540 ) / 576 );
auto const nFirstLineOffset = nAbsLSpace - static_cast<sal_uInt16>( ( _nBulletOfs * 2540 ) / 576 );
aLRSpaceItem.SetLeft( nAbsLSpace );
- aLRSpaceItem.SetTextFirstLineOfstValue( -nFirstLineOffset );
+ aLRSpaceItem.SetTextFirstLineOffsetValue( -nFirstLineOffset );
rSet.Put( aLRSpaceItem );
}
else
{
SvxLRSpaceItem aLRSpaceItem( EE_PARA_LRSPACE );
aLRSpaceItem.SetLeft( 0 );
- aLRSpaceItem.SetTextFirstLineOfstValue( 0 );
+ aLRSpaceItem.SetTextFirstLineOffsetValue( 0 );
rSet.Put( aLRSpaceItem );
}
if ( GetAttrib( PPT_ParaAttr_Adjust, nVal, nDestinationInstance ) )
diff --git a/include/editeng/lrspitem.hxx b/include/editeng/lrspitem.hxx
index b4ad3e433d9a..f6ebc1ead0bd 100644
--- a/include/editeng/lrspitem.hxx
+++ b/include/editeng/lrspitem.hxx
@@ -108,13 +108,13 @@ public:
inline void SetTextLeft( const long nL, const sal_uInt16 nProp = 100 );
long GetTextLeft() const { return nTxtLeft; }
- inline void SetTextFirstLineOfst( const short nF, const sal_uInt16 nProp = 100 );
- short GetTextFirstLineOfst() const { return nFirstLineOfst; }
+ inline void SetTextFirstLineOffset( const short nF, const sal_uInt16 nProp = 100 );
+ short GetTextFirstLineOffset() const { return nFirstLineOfst; }
void SetPropTextFirstLineOfst( const sal_uInt16 nProp )
{ nPropFirstLineOfst = nProp; }
sal_uInt16 GetPropTextFirstLineOfst() const
{ return nPropFirstLineOfst; }
- void SetTextFirstLineOfstValue( const short nValue )
+ void SetTextFirstLineOffsetValue( const short nValue )
{ nFirstLineOfst = nValue; }
void dumpAsXml(xmlTextWriterPtr pWriter) const override;
@@ -136,7 +136,7 @@ inline void SvxLRSpaceItem::SetRight( const long nR, const sal_uInt16 nProp )
nRightMargin = (nR * nProp) / 100;
nPropRightMargin = nProp;
}
-inline void SvxLRSpaceItem::SetTextFirstLineOfst( const short nF,
+inline void SvxLRSpaceItem::SetTextFirstLineOffset( const short nF,
const sal_uInt16 nProp )
{
nFirstLineOfst = short((long(nF) * nProp ) / 100);
diff --git a/sc/source/ui/drawfunc/drtxtob.cxx b/sc/source/ui/drawfunc/drtxtob.cxx
index 592ab19aea31..67fe69e1c957 100644
--- a/sc/source/ui/drawfunc/drtxtob.cxx
+++ b/sc/source/ui/drawfunc/drtxtob.cxx
@@ -929,7 +929,7 @@ void ScDrawTextObjectBar::ExecuteAttr( SfxRequest &rReq )
nId = EE_PARA_LRSPACE;
SvxLRSpaceItem aLRSpaceItem( rItem.GetLeft(),
rItem.GetRight(), rItem.GetTextLeft(),
- rItem.GetTextFirstLineOfst(), nId );
+ rItem.GetTextFirstLineOffset(), nId );
aAttr.Put( aLRSpaceItem );
pView->SetAttributes( aAttr );
}
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index 89db33f8a85d..8e9a91d4b854 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -536,8 +536,8 @@ void SdStyleSheet::AdjustToFontHeight(SfxItemSet& rSet, bool bOnlyMissingItems)
double fIndentFraction = double(rLRItem.GetTextLeft()) / nOldHeight;
SvxLRSpaceItem aNewLRItem(rLRItem);
aNewLRItem.SetTextLeft(fIndentFraction * nNewHeight);
- double fFirstIndentFraction = double(rLRItem.GetTextFirstLineOfst()) / nOldHeight;
- aNewLRItem.SetTextFirstLineOfst(static_cast<short>(fFirstIndentFraction * nNewHeight));
+ double fFirstIndentFraction = double(rLRItem.GetTextFirstLineOffset()) / nOldHeight;
+ aNewLRItem.SetTextFirstLineOffset(static_cast<short>(fFirstIndentFraction * nNewHeight));
rSet.Put(aNewLRItem);
}
diff --git a/sd/source/filter/xml/sdtransform.cxx b/sd/source/filter/xml/sdtransform.cxx
index 586d6ba9dbdc..4866b5563ca6 100644
--- a/sd/source/filter/xml/sdtransform.cxx
+++ b/sd/source/filter/xml/sdtransform.cxx
@@ -299,10 +299,10 @@ bool SdTransformOOo2xDocument::transformItemSet( SfxItemSet& rSet, bool bNumberi
if( bNumbering )
{
SvxLRSpaceItem aItem( *rSet.GetItem<SvxLRSpaceItem>( EE_PARA_LRSPACE ) );
- if( (aItem.GetLeft() != 0) || (aItem.GetTextFirstLineOfst() != 0) )
+ if( (aItem.GetLeft() != 0) || (aItem.GetTextFirstLineOffset() != 0) )
{
aItem.SetLeftValue( 0 );
- aItem.SetTextFirstLineOfst( 0 );
+ aItem.SetTextFirstLineOffset( 0 );
rSet.Put( aItem );
bRet = true;
}
diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx
index b7ceab073a9f..288e8b3c1ea3 100644
--- a/sd/source/ui/view/drtxtob1.cxx
+++ b/sd/source/ui/view/drtxtob1.cxx
@@ -376,9 +376,9 @@ void TextObjectBar::Execute( SfxRequest &rReq )
SvxLRSpaceItem aParaMargin( aLRSpaceSet.Get( EE_PARA_LRSPACE ) );
SvxLRSpaceItem aNewMargin( EE_PARA_LRSPACE );
- aNewMargin.SetTextLeft( aParaMargin.GetTextLeft() + aParaMargin.GetTextFirstLineOfst() );
+ aNewMargin.SetTextLeft( aParaMargin.GetTextLeft() + aParaMargin.GetTextFirstLineOffset() );
aNewMargin.SetRight( aParaMargin.GetRight() );
- aNewMargin.SetTextFirstLineOfst( ( aParaMargin.GetTextFirstLineOfst() ) * -1 );
+ aNewMargin.SetTextFirstLineOffset( ( aParaMargin.GetTextFirstLineOffset() ) * -1 );
aLRSpaceSet.Put( aNewMargin );
mpView->SetAttributes( aLRSpaceSet );
diff --git a/sd/source/ui/view/drviews3.cxx b/sd/source/ui/view/drviews3.cxx
index 6f1607aefc10..f6358f3629c2 100644
--- a/sd/source/ui/view/drviews3.cxx
+++ b/sd/source/ui/view/drviews3.cxx
@@ -822,7 +822,7 @@ void DrawViewShell::ExecRuler(SfxRequest& rReq)
nId = EE_PARA_LRSPACE;
SvxLRSpaceItem aLRSpaceItem( rItem.GetLeft(),
rItem.GetRight(), rItem.GetTextLeft(),
- rItem.GetTextFirstLineOfst(), nId );
+ rItem.GetTextFirstLineOffset(), nId );
const sal_Int16 nOutlineLevel = aEditAttr.Get( EE_PARA_OUTLLEVEL ).GetValue();
const SvxLRSpaceItem& rOrigLRSpaceItem = aEditAttr.Get( EE_PARA_LRSPACE );
@@ -849,19 +849,19 @@ void DrawViewShell::ExecRuler(SfxRequest& rReq)
// negative first line indent goes to the number
// format, positive to the lrSpace item
- if( rItem.GetTextFirstLineOfst() < 0 )
+ if( rItem.GetTextFirstLineOffset() < 0 )
{
aFormat.SetFirstLineOffset(
- rItem.GetTextFirstLineOfst()
- - rOrigLRSpaceItem.GetTextFirstLineOfst()
+ rItem.GetTextFirstLineOffset()
+ - rOrigLRSpaceItem.GetTextFirstLineOffset()
+ aFormat.GetCharTextDistance());
- aLRSpaceItem.SetTextFirstLineOfst(0);
+ aLRSpaceItem.SetTextFirstLineOffset(0);
}
else
{
aFormat.SetFirstLineOffset(0);
- aLRSpaceItem.SetTextFirstLineOfst(
- rItem.GetTextFirstLineOfst()
+ aLRSpaceItem.SetTextFirstLineOffset(
+ rItem.GetTextFirstLineOffset()
- aFormat.GetFirstLineOffset() //TODO: overflow
+ aFormat.GetCharTextDistance());
}
@@ -953,7 +953,7 @@ void DrawViewShell::GetRulerState(SfxItemSet& rSet)
const SvxLRSpaceItem& rLRSpaceItem = aEditAttr.Get( EE_PARA_LRSPACE );
SvxLRSpaceItem aLRSpaceItem( rLRSpaceItem.GetLeft(),
rLRSpaceItem.GetRight(), rLRSpaceItem.GetTextLeft(),
- rLRSpaceItem.GetTextFirstLineOfst(), SID_ATTR_PARA_LRSPACE );
+ rLRSpaceItem.GetTextFirstLineOffset(), SID_ATTR_PARA_LRSPACE );
const sal_Int16 nOutlineLevel = aEditAttr.Get( EE_PARA_OUTLLEVEL ).GetValue();
const SvxNumBulletItem& rNumBulletItem = aEditAttr.Get( EE_PARA_NUMBULLET );
@@ -963,8 +963,8 @@ void DrawViewShell::GetRulerState(SfxItemSet& rSet)
{
const SvxNumberFormat& rFormat = rNumBulletItem.GetNumRule()->GetLevel(nOutlineLevel);
aLRSpaceItem.SetTextLeft(rFormat.GetAbsLSpace() + rLRSpaceItem.GetTextLeft());
- aLRSpaceItem.SetTextFirstLineOfst(
- rLRSpaceItem.GetTextFirstLineOfst() + rFormat.GetFirstLineOffset()
+ aLRSpaceItem.SetTextFirstLineOffset(
+ rLRSpaceItem.GetTextFirstLineOffset() + rFormat.GetFirstLineOffset()
//TODO: overflow
- rFormat.GetCharTextDistance());
}
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx
index 39830945003c..f6725738ed07 100644
--- a/svx/source/dialog/svxruler.cxx
+++ b/svx/source/dialog/svxruler.cxx
@@ -557,7 +557,7 @@ void SvxRuler::MouseMove( const MouseEvent& rMEvt )
if (nIndex == INDENT_LEFT_MARGIN)
nIndentValue = mxParaItem->GetTextLeft();
else if (nIndex == INDENT_FIRST_LINE)
- nIndentValue = mxParaItem->GetTextFirstLineOfst();
+ nIndentValue = mxParaItem->GetTextFirstLineOffset();
else if (nIndex == INDENT_RIGHT_MARGIN)
nIndentValue = mxParaItem->GetRight();
@@ -836,13 +836,13 @@ void SvxRuler::UpdatePara()
if(bRTLText)
{
leftMargin = nRightFrameMargin - mxParaItem->GetTextLeft() + lAppNullOffset;
- leftFirstLine = leftMargin - mxParaItem->GetTextFirstLineOfst();
+ leftFirstLine = leftMargin - mxParaItem->GetTextFirstLineOffset();
rightMargin = nLeftFrameMargin + mxParaItem->GetRight() + lAppNullOffset;
}
else
{
leftMargin = nLeftFrameMargin + mxParaItem->GetTextLeft() + lAppNullOffset;
- leftFirstLine = leftMargin + mxParaItem->GetTextFirstLineOfst();
+ leftFirstLine = leftMargin + mxParaItem->GetTextFirstLineOffset();
rightMargin = nRightFrameMargin - mxParaItem->GetRight() + lAppNullOffset;
}
@@ -2073,7 +2073,7 @@ void SvxRuler::ApplyIndents()
nNewRight = RoundToCurrentMapMode(nNewRight);
}
- mxParaItem->SetTextFirstLineOfst(sal::static_int_cast<short>(nNewFirstLineOffset));
+ mxParaItem->SetTextFirstLineOffset(sal::static_int_cast<short>(nNewFirstLineOffset));
mxParaItem->SetTextLeft(nNewTxtLeft);
mxParaItem->SetRight(nNewRight);
diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
index 815ac08e2f9e..bf2cddd89040 100644
--- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
+++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
@@ -174,7 +174,7 @@ IMPL_LINK_NOARG( ParaPropertyPanel, ModifyIndentHdl_Impl, weld::MetricSpinButton
SvxLRSpaceItem aMargin( SID_ATTR_PARA_LRSPACE );
aMargin.SetTextLeft(mxLeftIndent->GetCoreValue(m_eLRSpaceUnit));
aMargin.SetRight(mxRightIndent->GetCoreValue(m_eLRSpaceUnit));
- aMargin.SetTextFirstLineOfst(static_cast<short>(mxFLineIndent->GetCoreValue(m_eLRSpaceUnit)));
+ aMargin.SetTextFirstLineOffset(static_cast<short>(mxFLineIndent->GetCoreValue(m_eLRSpaceUnit)));
GetBindings()->GetDispatcher()->ExecuteList(
SID_ATTR_PARA_LRSPACE, SfxCallMode::RECORD, { &aMargin });
@@ -268,7 +268,7 @@ void ParaPropertyPanel::StateChangedIndentImpl( SfxItemState eState, const SfxPo
aTxtRight = OutputDevice::LogicToLogic( aTxtRight, m_eLRSpaceUnit, MapUnit::Map100thMM );
aTxtRight = OutputDevice::LogicToLogic( aTxtRight, MapUnit::Map100thMM, MapUnit::MapTwip );
- long aTxtFirstLineOfst = pSpace->GetTextFirstLineOfst();
+ long aTxtFirstLineOfst = pSpace->GetTextFirstLineOffset();
aTxtFirstLineOfst = OutputDevice::LogicToLogic( aTxtFirstLineOfst, m_eLRSpaceUnit, MapUnit::Map100thMM );
aTxtFirstLineOfst = OutputDevice::LogicToLogic( aTxtFirstLineOfst, MapUnit::Map100thMM, MapUnit::MapTwip );
diff --git a/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx b/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx
index e70cb93095f1..9815a06eab00 100644
--- a/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx
+++ b/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx
@@ -253,7 +253,7 @@ void ParaLRSpacingWindow::SetValue(SfxItemState eState, const SfxPoolItem* pStat
const SvxLRSpaceItem* pSpace = static_cast<const SvxLRSpaceItem*>(pState);
long aTxtLeft = pSpace->GetTextLeft();
long aTxtRight = pSpace->GetRight();
- long aTxtFirstLineOfst = pSpace->GetTextFirstLineOfst();
+ long aTxtFirstLineOfst = pSpace->GetTextFirstLineOffset();
aTxtLeft = m_xBeforeSpacing->normalize(aTxtLeft);
@@ -343,7 +343,7 @@ IMPL_LINK_NOARG(ParaLRSpacingWindow, ModifySpacingHdl, weld::MetricSpinButton&,
SvxLRSpaceItem aMargin(SID_ATTR_PARA_LRSPACE);
aMargin.SetTextLeft(m_xBeforeSpacing->GetCoreValue(m_eUnit));
aMargin.SetRight(m_xAfterSpacing->GetCoreValue(m_eUnit));
- aMargin.SetTextFirstLineOfst(m_xFLSpacing->GetCoreValue(m_eUnit));
+ aMargin.SetTextFirstLineOffset(m_xFLSpacing->GetCoreValue(m_eUnit));
pDisp->ExecuteList(SID_ATTR_PARA_LRSPACE, SfxCallMode::RECORD, {&aMargin});
}
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx
index fc5b606b539a..ea8a4608aaef 100644
--- a/sw/source/core/crsr/crstrvl.cxx
+++ b/sw/source/core/crsr/crstrvl.cxx
@@ -2119,7 +2119,7 @@ bool SwCursorShell::SetShadowCursorPos( const Point& rPt, SwFillMode eFillMode )
SvxLRSpaceItem aLR( static_cast<const SvxLRSpaceItem&>(
pCNd->GetAttr( RES_LR_SPACE ) ) );
aLR.SetTextLeft( aFPos.nTabCnt );
- aLR.SetTextFirstLineOfst( 0 );
+ aLR.SetTextFirstLineOffset( 0 );
aSet.Put( aLR );
const SvxAdjustItem& rAdj = static_cast<const SvxAdjustItem&>(pCNd->
diff --git a/sw/source/core/doc/DocumentStylePoolManager.cxx b/sw/source/core/doc/DocumentStylePoolManager.cxx
index 60d38a272a55..6aab632e2cff 100644
--- a/sw/source/core/doc/DocumentStylePoolManager.cxx
+++ b/sw/source/core/doc/DocumentStylePoolManager.cxx
@@ -204,7 +204,7 @@ namespace
( rNFormat.GetAbsLSpace() || rNFormat.GetFirstLineOffset() ) )
{
SvxLRSpaceItem aLR( pColl->GetFormatAttr( RES_LR_SPACE ) );
- aLR.SetTextFirstLineOfstValue( rNFormat.GetFirstLineOffset() );
+ aLR.SetTextFirstLineOffsetValue( rNFormat.GetFirstLineOffset() );
//TODO: overflow
aLR.SetTextLeft( rNFormat.GetAbsLSpace() );
pColl->SetFormatAttr( aLR );
@@ -251,7 +251,7 @@ namespace
SvxLRSpaceItem aLR( RES_LR_SPACE );
SvxULSpaceItem aUL( RES_UL_SPACE );
- aLR.SetTextFirstLineOfst( sal_uInt16(nEZ) );
+ aLR.SetTextFirstLineOffset( sal_uInt16(nEZ) );
aLR.SetTextLeft( sal_uInt16(nLeft) );
aUL.SetUpper( sal_uInt16(nUpper) );
aUL.SetLower( sal_uInt16(nLower) );
@@ -690,14 +690,14 @@ SwTextFormatColl* DocumentStylePoolManager::GetTextCollFromPool( sal_uInt16 nId,
case RES_POOLCOLL_TEXT_IDENT: // Text body indentation
{
SvxLRSpaceItem aLR( RES_LR_SPACE );
- aLR.SetTextFirstLineOfst( GetMetricVal( CM_05 ));
+ aLR.SetTextFirstLineOffset( GetMetricVal( CM_05 ));
aSet.Put( aLR );
}
break;
case RES_POOLCOLL_TEXT_NEGIDENT: // Text body neg. indentation
{
SvxLRSpaceItem aLR( RES_LR_SPACE );
- aLR.SetTextFirstLineOfst( -static_cast<short>(GetMetricVal( CM_05 )));
+ aLR.SetTextFirstLineOffset( -static_cast<short>(GetMetricVal( CM_05 )));
aLR.SetTextLeft( GetMetricVal( CM_1 ));
SvxTabStopItem aTStops(RES_PARATR_TABSTOP);
aTStops.Insert( SvxTabStop( 0 ));
@@ -717,7 +717,7 @@ SwTextFormatColl* DocumentStylePoolManager::GetTextCollFromPool( sal_uInt16 nId,
case RES_POOLCOLL_CONFRONTATION: // Text body confrontation
{
SvxLRSpaceItem aLR( RES_LR_SPACE );
- aLR.SetTextFirstLineOfst( - short( GetMetricVal( CM_1 ) * 4 +
+ aLR.SetTextFirstLineOffset( - short( GetMetricVal( CM_1 ) * 4 +
GetMetricVal( CM_05)) );
aLR.SetTextLeft( GetMetricVal( CM_1 ) * 5 );
SvxTabStopItem aTStops( RES_PARATR_TABSTOP );
@@ -922,7 +922,7 @@ SwTextFormatColl* DocumentStylePoolManager::GetTextCollFromPool( sal_uInt16 nId,
case RES_POOLCOLL_ENDNOTE: // paragraph style Endnote
{
SvxLRSpaceItem aLR( RES_LR_SPACE );
- aLR.SetTextFirstLineOfst( -static_cast<short>( GetMetricVal( CM_05 ) + GetMetricVal( CM_01 ) ) );
+ aLR.SetTextFirstLineOffset( -static_cast<short>( GetMetricVal( CM_05 ) + GetMetricVal( CM_01 ) ) );
aLR.SetTextLeft( GetMetricVal( CM_05 ) + GetMetricVal( CM_01 ) );
SetAllScriptItem( aSet, SvxFontHeightItem( PT_10, 100, RES_CHRATR_FONTSIZE ) );
aSet.Put( aLR );
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx
index 9c4609b2030a..c2cc80d11f20 100644
--- a/sw/source/core/doc/docfmt.cxx
+++ b/sw/source/core/doc/docfmt.cxx
@@ -1652,7 +1652,7 @@ void SwDoc::MoveLeftMargin(const SwPaM& rPam, bool bRight, bool bModulus,
if ( rFormat.GetPositionAndSpaceMode() == SvxNumberFormat::LABEL_ALIGNMENT )
{
aLS.SetTextLeft( rFormat.GetIndentAt() );
- aLS.SetTextFirstLineOfst( static_cast<short>(rFormat.GetFirstLineIndent()) );
+ aLS.SetTextFirstLineOffset( static_cast<short>(rFormat.GetFirstLineIndent()) );
}
}
}
diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx
index e28ca618fc45..d037a1357fa5 100644
--- a/sw/source/core/doc/fmtcol.cxx
+++ b/sw/source/core/doc/fmtcol.cxx
@@ -227,10 +227,10 @@ void SwTextFormatColl::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew
// We had a relative value -> recalculate
if( 100 != aNew.GetPropTextFirstLineOfst() )
{
- short nTmp = aNew.GetTextFirstLineOfst(); // keep so that we can compare
- aNew.SetTextFirstLineOfst( pNewLRSpace->GetTextFirstLineOfst(),
+ short nTmp = aNew.GetTextFirstLineOffset(); // keep so that we can compare
+ aNew.SetTextFirstLineOffset( pNewLRSpace->GetTextFirstLineOffset(),
aNew.GetPropTextFirstLineOfst() );
- bChg |= nTmp != aNew.GetTextFirstLineOfst();
+ bChg |= nTmp != aNew.GetTextFirstLineOffset();
}
if( bChg )
{
diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx
index dbef15654fc0..16d817f48df4 100644
--- a/sw/source/core/edit/autofmt.cxx
+++ b/sw/source/core/edit/autofmt.cxx
@@ -2402,7 +2402,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFormatFlags const &
if (SfxItemState::SET == m_pCurTextFrame->GetTextNodeForParaProps()->GetSwAttrSet().
GetItemState( RES_LR_SPACE, true,
reinterpret_cast<const SfxPoolItem**>(&pLRSpace) ) &&
- ( 0 != (nSz = pLRSpace->GetTextFirstLineOfst()) ||
+ ( 0 != (nSz = pLRSpace->GetTextFirstLineOffset()) ||
0 != pLRSpace->GetTextLeft() ) )
{
// exception: numbering/enumeration can have an indentation
@@ -2637,7 +2637,7 @@ SwAutoFormat::SwAutoFormat( SwEditShell* pEdShell, SvxSwAutoFormatFlags const &
SfxItemState::SET == m_pCurTextFrame->GetTextNodeForParaProps()->GetSwAttrSet().
GetItemState( RES_LR_SPACE, false,
reinterpret_cast<const SfxPoolItem**>(&pLRSpace) ) &&
- ( 0 != (nSz = pLRSpace->GetTextFirstLineOfst()) ||
+ ( 0 != (nSz = pLRSpace->GetTextFirstLineOffset()) ||
0 != pLRSpace->GetTextLeft() ) )
{
// then use one of our templates
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx
index c1054bda87f5..1540097ad5b1 100644
--- a/sw/source/core/layout/fly.cxx
+++ b/sw/source/core/layout/fly.cxx
@@ -2539,7 +2539,7 @@ static SwTwips lcl_CalcAutoWidth( const SwLayoutFrame& rFrame )
const SvxLRSpaceItem &rSpace =
static_cast<const SwTextFrame*>(pFrame)->GetTextNodeForParaProps()->GetSwAttrSet().GetLRSpace();
if (!static_cast<const SwTextFrame*>(pFrame)->IsLocked())
- nMin += rSpace.GetRight() + rSpace.GetTextLeft() + rSpace.GetTextFirstLineOfst();
+ nMin += rSpace.GetRight() + rSpace.GetTextLeft() + rSpace.GetTextFirstLineOffset();
}
else if ( pFrame->IsTabFrame() )
{
diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx
index 5069edccac17..264e7db82580 100644
--- a/sw/source/core/text/EnhancedPDFExportHelper.cxx
+++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx
@@ -619,7 +619,7 @@ void SwTaggedPDFHelper::SetAttributes( vcl::PDFWriter::StructElement eType )
OSL_ENSURE( pFrame->IsTextFrame(), "Frame type <-> tag attribute mismatch" );
const SvxLRSpaceItem &rSpace =
static_cast<const SwTextFrame*>(pFrame)->GetTextNodeForParaProps()->GetSwAttrSet().GetLRSpace();
- nVal = rSpace.GetTextFirstLineOfst();
+ nVal = rSpace.GetTextFirstLineOffset();
if ( 0 != nVal )
mpPDFExtOutDevData->SetStructureAttributeNumerical( vcl::PDFWriter::TextIndent, nVal );
}
diff --git a/sw/source/core/text/frmpaint.cxx b/sw/source/core/text/frmpaint.cxx
index 88e188dda2ed..9bf759eb6320 100644
--- a/sw/source/core/text/frmpaint.cxx
+++ b/sw/source/core/text/frmpaint.cxx
@@ -515,8 +515,8 @@ bool SwTextFrame::PaintEmpty( const SwRect &rRect, bool bCheck ) const
const SvxLRSpaceItem &rSpace =
GetTextNodeForParaProps()->GetSwAttrSet().GetLRSpace();
- if ( rSpace.GetTextFirstLineOfst() > 0 )
- aPos.AdjustX(rSpace.GetTextFirstLineOfst() );
+ if ( rSpace.GetTextFirstLineOffset() > 0 )
+ aPos.AdjustX(rSpace.GetTextFirstLineOffset() );
std::unique_ptr<SwSaveClip> pClip;
if( IsUndersized() )
diff --git a/sw/source/core/text/porfld.cxx b/sw/source/core/text/porfld.cxx
index 2b8bd65a446a..8a2b2f0a100a 100644
--- a/sw/source/core/text/porfld.cxx
+++ b/sw/source/core/text/porfld.cxx
@@ -556,7 +556,7 @@ bool SwNumberPortion::Format( SwTextFormatInfo &rInf )
{
nDiff = rInf.Left()
+ rInf.GetTextFrame()->GetTextNodeForParaProps()->
- GetSwAttrSet().GetLRSpace().GetTextFirstLineOfst()
+ GetSwAttrSet().GetLRSpace().GetTextFirstLineOffset()
- rInf.First()
+ rInf.ForcedLeftMargin();
}
diff --git a/sw/source/core/tox/ToxTabStopTokenHandler.cxx b/sw/source/core/tox/ToxTabStopTokenHandler.cxx
index d45acc676c7f..e54271c9dd82 100644
--- a/sw/source/core/tox/ToxTabStopTokenHandler.cxx
+++ b/sw/source/core/tox/ToxTabStopTokenHandler.cxx
@@ -75,7 +75,7 @@ DefaultToxTabStopTokenHandler::HandleTabStopToken(
// left margin of paragraph style
const SvxLRSpaceItem& rLRSpace = targetNode.GetTextColl()->GetLRSpace();
nRightMargin -= rLRSpace.GetLeft();
- nRightMargin -= rLRSpace.GetTextFirstLineOfst();
+ nRightMargin -= rLRSpace.GetTextFirstLineOffset();
}
result.tabStop = SvxTabStop(nRightMargin, SvxTabAdjust::Right, cDfltDecimalChar, aToken.cTabFillChar);
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 97b975f90e30..33c2d67b605a 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -3211,7 +3211,7 @@ bool SwTextNode::GetFirstLineOfsWithNum( short& rFLOffset ) const
if (!getIDocumentSettingAccess()->get(DocumentSettingId::IGNORE_FIRST_LINE_INDENT_IN_NUMBERING))
{
SvxLRSpaceItem aItem = GetSwAttrSet().GetLRSpace();
- rFLOffset = rFLOffset + aItem.GetTextFirstLineOfst();
+ rFLOffset = rFLOffset + aItem.GetTextFirstLineOffset();
}
}
else if ( rFormat.GetPositionAndSpaceMode() == SvxNumberFormat::LABEL_ALIGNMENT )
@@ -3223,7 +3223,7 @@ bool SwTextNode::GetFirstLineOfsWithNum( short& rFLOffset ) const
else if (!getIDocumentSettingAccess()->get(DocumentSettingId::IGNORE_FIRST_LINE_INDENT_IN_NUMBERING))
{
SvxLRSpaceItem aItem = GetSwAttrSet().GetLRSpace();
- rFLOffset = aItem.GetTextFirstLineOfst();
+ rFLOffset = aItem.GetTextFirstLineOffset();
}
}
}
@@ -3231,7 +3231,7 @@ bool SwTextNode::GetFirstLineOfsWithNum( short& rFLOffset ) const
return true;
}
- rFLOffset = GetSwAttrSet().GetLRSpace().GetTextFirstLineOfst();
+ rFLOffset = GetSwAttrSet().GetLRSpace().GetTextFirstLineOffset();
return false;
}
@@ -3250,7 +3250,7 @@ SwTwips SwTextNode::GetAdditionalIndentForStartingNewList() const
if (getIDocumentSettingAccess()->get(DocumentSettingId::IGNORE_FIRST_LINE_INDENT_IN_NUMBERING))
{
nAdditionalIndent = nAdditionalIndent -
- GetSwAttrSet().GetLRSpace().GetTextFirstLineOfst();
+ GetSwAttrSet().GetLRSpace().GetTextFirstLineOffset();
}
}
else if ( rFormat.GetPositionAndSpaceMode() == SvxNumberFormat::LABEL_ALIGNMENT )
@@ -3265,7 +3265,7 @@ SwTwips SwTextNode::GetAdditionalIndentForStartingNewList() const
if (getIDocumentSettingAccess()->get(DocumentSettingId::IGNORE_FIRST_LINE_INDENT_IN_NUMBERING))
{
nAdditionalIndent = nAdditionalIndent -
- GetSwAttrSet().GetLRSpace().GetTextFirstLineOfst();
+ GetSwAttrSet().GetLRSpace().GetTextFirstLineOffset();
}
}
}
diff --git a/sw/source/core/txtnode/thints.cxx b/sw/source/core/txtnode/thints.cxx
index 0bc8cd921fb6..e58d0e7e6892 100644
--- a/sw/source/core/txtnode/thints.cxx
+++ b/sw/source/core/txtnode/thints.cxx
@@ -2084,7 +2084,7 @@ static void lcl_MergeListLevelIndentAsLRSpaceItem( const SwTextNode& rTextNode,
{
SvxLRSpaceItem aLR( RES_LR_SPACE );
aLR.SetTextLeft( rFormat.GetIndentAt() );
- aLR.SetTextFirstLineOfst( static_cast<short>(rFormat.GetFirstLineIndent()) );
+ aLR.SetTextFirstLineOffset( static_cast<short>(rFormat.GetFirstLineIndent()) );
rSet.Put( aLR );
}
}
diff --git a/sw/source/filter/html/css1atr.cxx b/sw/source/filter/html/css1atr.cxx
index 0a48de57e35c..a9cea1b6f146 100644
--- a/sw/source/filter/html/css1atr.cxx
+++ b/sw/source/filter/html/css1atr.cxx
@@ -2940,7 +2940,7 @@ static Writer& OutCSS1_SvxLRSpace( Writer& rWrt, const SfxPoolItem& rHt )
}
// The LineIndent of the first line might contain the room for numbering
- long nFirstLineIndent = static_cast<long>(rLRItem.GetTextFirstLineOfst()) -
+ long nFirstLineIndent = static_cast<long>(rLRItem.GetTextFirstLineOffset()) -
rHTMLWrt.m_nFirstLineIndent;
if( rHTMLWrt.m_nDfltFirstLineIndent != nFirstLineIndent )
{
diff --git a/sw/source/filter/html/htmlatr.cxx b/sw/source/filter/html/htmlatr.cxx
index 9e41f0da2289..3b4b9bac0ac5 100644
--- a/sw/source/filter/html/htmlatr.cxx
+++ b/sw/source/filter/html/htmlatr.cxx
@@ -371,7 +371,7 @@ SwHTMLFormatInfo::SwHTMLFormatInfo( const SwFormat *pF, SwDoc *pDoc, SwDoc *pTem
(pReferenceFormat ? pReferenceFormat : pFormat)->GetLRSpace();
nLeftMargin = rLRSpace.GetTextLeft();
nRightMargin = rLRSpace.GetRight();
- nFirstLineIndent = rLRSpace.GetTextFirstLineOfst();
+ nFirstLineIndent = rLRSpace.GetTextFirstLineOffset();
const SvxULSpaceItem &rULSpace =
(pReferenceFormat ? pReferenceFormat : pFormat)->GetULSpace();
@@ -708,7 +708,7 @@ static void OutHTML_SwFormat( Writer& rWrt, const SwFormat& rFormat,
rHWrt.m_nDfltLeftMargin = rLRSpace.GetTextLeft();
// In numbered lists, don't output a first line indent.
- rHWrt.m_nFirstLineIndent = rLRSpace.GetTextFirstLineOfst();
+ rHWrt.m_nFirstLineIndent = rLRSpace.GetTextFirstLineOffset();
}
if( rInfo.bInNumberBulletList && bNumbered && bPara && !rHWrt.m_bCfgOutStyles )
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx
index 3a0c5cb34aae..ca28eac168b5 100644
--- a/sw/source/filter/html/htmlcss1.cxx
+++ b/sw/source/filter/html/htmlcss1.cxx
@@ -285,7 +285,7 @@ static void SetTextCollAttrs( SwTextFormatColl *pColl, SfxItemSet& rItemSet,
if( rPropInfo.m_bRightMargin )
aLRItem.SetRight( pLRItem->GetRight() );
if( rPropInfo.m_bTextIndent )
- aLRItem.SetTextFirstLineOfst( pLRItem->GetTextFirstLineOfst() );
+ aLRItem.SetTextFirstLineOffset( pLRItem->GetTextFirstLineOffset() );
rItemSet.Put( aLRItem );
}
diff --git a/sw/source/filter/html/htmlctxt.cxx b/sw/source/filter/html/htmlctxt.cxx
index 5ed9cf0427ff..6be3cab727d1 100644
--- a/sw/source/filter/html/htmlctxt.cxx
+++ b/sw/source/filter/html/htmlctxt.cxx
@@ -617,14 +617,14 @@ void SwHTMLParser::InsertAttrs( SfxItemSet &rItemSet,
nRight = nOldRight + static_cast< sal_uInt16 >(rPropInfo.m_nRightMargin);
}
if( rPropInfo.m_bTextIndent )
- nIndent = pLRItem->GetTextFirstLineOfst();
+ nIndent = pLRItem->GetTextFirstLineOffset();
// Remember the value for the following paragraphs
pContext->SetMargins( nLeft, nRight, nIndent );
// Set the attribute on the current paragraph
SvxLRSpaceItem aLRItem( *pLRItem );
- aLRItem.SetTextFirstLineOfst( nIndent );
+ aLRItem.SetTextFirstLineOffset( nIndent );
aLRItem.SetTextLeft( nLeft );
aLRItem.SetRight( nRight );
NewAttr(m_xAttrTab, &m_xAttrTab->pLRSpace, aLRItem);
diff --git a/sw/source/filter/html/htmldrawreader.cxx b/sw/source/filter/html/htmldrawreader.cxx
index 0aadae724084..c1ed88829383 100644
--- a/sw/source/filter/html/htmldrawreader.cxx
+++ b/sw/source/filter/html/htmldrawreader.cxx
@@ -104,7 +104,7 @@ void SwHTMLParser::InsertDrawObject( SdrObject* pNewDrawObj,
// maybe flatten the first line indentation
const SvxLRSpaceItem *pLRItem = static_cast<const SvxLRSpaceItem *>(pItem);
SvxLRSpaceItem aLRItem( *pLRItem );
- aLRItem.SetTextFirstLineOfst( 0 );
+ aLRItem.SetTextFirstLineOffset( 0 );
if( rCSS1PropInfo.m_bLeftMargin )
{
nLeftSpace = static_cast< sal_uInt16 >(aLRItem.GetLeft());
diff --git a/sw/source/filter/html/htmlform.cxx b/sw/source/filter/html/htmlform.cxx
index b89807242701..c13ee2bad430 100644
--- a/sw/source/filter/html/htmlform.cxx
+++ b/sw/source/filter/html/htmlform.cxx
@@ -888,7 +888,7 @@ uno::Reference< drawing::XShape > SwHTMLParser::InsertControl(
// Flatten first line indent
const SvxLRSpaceItem *pLRItem = static_cast<const SvxLRSpaceItem *>(pItem);
SvxLRSpaceItem aLRItem( *pLRItem );
- aLRItem.SetTextFirstLineOfst( 0 );
+ aLRItem.SetTextFirstLineOffset( 0 );
if( rCSS1PropInfo.m_bLeftMargin )
{
nLeftSpace = convertTwipToMm100( aLRItem.GetLeft() );
diff --git a/sw/source/filter/html/htmlnumreader.cxx b/sw/source/filter/html/htmlnumreader.cxx
index cf20539e8b13..95ce01d8b2db 100644
--- a/sw/source/filter/html/htmlnumreader.cxx
+++ b/sw/source/filter/html/htmlnumreader.cxx
@@ -280,7 +280,7 @@ void SwHTMLParser::NewNumberBulletList( HtmlTokenId nToken )
if( aPropInfo.m_bTextIndent )
{
short nTextIndent =
- aItemSet.Get( RES_LR_SPACE ).GetTextFirstLineOfst();
+ aItemSet.Get( RES_LR_SPACE ).GetTextFirstLineOffset();
aNumFormat.SetFirstLineOffset( nTextIndent );
bChangeNumFormat = true;
}
diff --git a/sw/source/filter/html/htmlplug.cxx b/sw/source/filter/html/htmlplug.cxx
index ddff54de50ab..525b3b0ea175 100644
--- a/sw/source/filter/html/htmlplug.cxx
+++ b/sw/source/filter/html/htmlplug.cxx
@@ -262,7 +262,7 @@ void SwHTMLParser::SetSpace( const Size& rPixSpace,
// if applicable remove the first line indent
const SvxLRSpaceItem *pLRItem = static_cast<const SvxLRSpaceItem *>(pItem);
SvxLRSpaceItem aLRItem( *pLRItem );
- aLRItem.SetTextFirstLineOfst( 0 );
+ aLRItem.SetTextFirstLineOffset( 0 );
if( rCSS1PropInfo.m_bLeftMargin )
{
nLeftSpace = aLRItem.GetLeft();
diff --git a/sw/source/filter/html/svxcss1.cxx b/sw/source/filter/html/svxcss1.cxx
index 07d5cd0d844b..4045c8ca3a82 100644
--- a/sw/source/filter/html/svxcss1.cxx
+++ b/sw/source/filter/html/svxcss1.cxx
@@ -953,7 +953,7 @@ void SvxCSS1Parser::MergeStyles( const SfxItemSet& rSrcSet,
if( rSrcInfo.m_bRightMargin )
aLRSpace.SetRight( rNewLRSpace.GetRight() );
if( rSrcInfo.m_bTextIndent )
- aLRSpace.SetTextFirstLineOfst( rNewLRSpace.GetTextFirstLineOfst() );
+ aLRSpace.SetTextFirstLineOffset( rNewLRSpace.GetTextFirstLineOffset() );
rTargetSet.Put( aLRSpace );
}
@@ -1981,13 +1981,13 @@ static void ParseCSS1_text_indent( const CSS1Expression *pExpr,
&pItem ) )
{
SvxLRSpaceItem aLRItem( *static_cast<const SvxLRSpaceItem*>(pItem) );
- aLRItem.SetTextFirstLineOfst( nIndent );
+ aLRItem.SetTextFirstLineOffset( nIndent );
rItemSet.Put( aLRItem );
}
else
{
SvxLRSpaceItem aLRItem( aItemIds.nLRSpace );
- aLRItem.SetTextFirstLineOfst( nIndent );
+ aLRItem.SetTextFirstLineOffset( nIndent );
rItemSet.Put( aLRItem );
}
rPropInfo.m_bTextIndent = true;
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index 36e1139d5f2a..71377d3a7034 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -4690,7 +4690,7 @@ void SwHTMLParser::SetTextCollAttrs( HTMLAttrContext *pContext )
sal_Int32 nLeft = pLRItem->GetTextLeft();
sal_Int32 nRight = pLRItem->GetRight();
- nFirstLineIndent = pLRItem->GetTextFirstLineOfst();
+ nFirstLineIndent = pLRItem->GetTextFirstLineOffset();
// In Definition lists the margins also contain the margins from the previous levels
if( RES_POOLCOLL_HTML_DD == nTopColl )
@@ -4732,7 +4732,7 @@ void SwHTMLParser::SetTextCollAttrs( HTMLAttrContext *pContext )
if( !nRightMargin )
nRightMargin = static_cast< sal_uInt16 >(rLRItem.GetRight());
if( !nFirstLineIndent )
- nFirstLineIndent = rLRItem.GetTextFirstLineOfst();
+ nFirstLineIndent = rLRItem.GetTextFirstLineOffset();
}
// remove previous hard attribution of paragraph
@@ -4746,7 +4746,7 @@ void SwHTMLParser::SetTextCollAttrs( HTMLAttrContext *pContext )
// if applicable correct the paragraph indent
const SvxLRSpaceItem& rLRItem = pCollToSet->GetLRSpace();
bool bSetLRSpace = nLeftMargin != rLRItem.GetTextLeft() ||
- nFirstLineIndent != rLRItem.GetTextFirstLineOfst() ||
+ nFirstLineIndent != rLRItem.GetTextFirstLineOffset() ||
nRightMargin != rLRItem.GetRight();
if( bSetLRSpace )
@@ -4754,7 +4754,7 @@ void SwHTMLParser::SetTextCollAttrs( HTMLAttrContext *pContext )
SvxLRSpaceItem aLRItem( rLRItem );
aLRItem.SetTextLeft( nLeftMargin );
aLRItem.SetRight( nRightMargin );
- aLRItem.SetTextFirstLineOfst( nFirstLineIndent );
+ aLRItem.SetTextFirstLineOffset( nFirstLineIndent );
if( pItemSet )
pItemSet->Put( aLRItem );
else
@@ -4990,7 +4990,7 @@ void SwHTMLParser::InsertSpacer()
SvxLRSpaceItem aLRItem( RES_LR_SPACE );
aLRItem.SetTextLeft( nLeft );
aLRItem.SetRight( nRight );
- aLRItem.SetTextFirstLineOfst( nIndent );
+ aLRItem.SetTextFirstLineOffset( nIndent );
NewAttr(m_xAttrTab, &m_xAttrTab->pLRSpace, aLRItem);
EndAttr( m_xAttrTab->pLRSpace, false );
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 53fa35acfe52..28d7b6447acf 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -8100,7 +8100,7 @@ void DocxAttributeOutput::FormatLRSpace( const SvxLRSpaceItem& rLRSpace )
{
pLRSpaceAttrList->add( FSNS( XML_w, ( bEcma ? XML_right : XML_end ) ), OString::number( rLRSpace.GetRight() ) );
}
- sal_Int32 nFirstLineAdjustment = rLRSpace.GetTextFirstLineOfst();
+ sal_Int32 nFirstLineAdjustment = rLRSpace.GetTextFirstLineOffset();
if (nFirstLineAdjustment > 0)
pLRSpaceAttrList->add( FSNS( XML_w, XML_firstLine ), OString::number( nFirstLineAdjustment ) );
else
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx
index 18992cc46931..4e729a4adb26 100644
--- a/sw/source/filter/ww8/rtfattributeoutput.cxx
+++ b/sw/source/filter/ww8/rtfattributeoutput.cxx
@@ -2951,7 +2951,7 @@ void RtfAttributeOutput::ParaNumRule_Impl(const SwTextNode* pTextNd, sal_Int32 n
SvxLRSpaceItem aLR(rNdSet.Get(RES_LR_SPACE));
aLR.SetTextLeft(aLR.GetTextLeft() + pFormat->GetIndentAt());
- aLR.SetTextFirstLineOfst(pFormat->GetFirstLineOffset()); //TODO: overflow
+ aLR.SetTextFirstLineOffset(pFormat->GetFirstLineOffset()); //TODO: overflow
sal_uInt16 nStyle = m_rExport.GetId(pFormat->GetCharFormat());
OString* pString = m_rExport.GetStyle(nStyle);
@@ -3093,7 +3093,7 @@ void RtfAttributeOutput::FormatLRSpace(const SvxLRSpaceItem& rLRSpace)
m_aStyles.append(OOO_STRING_SVTOOLS_RTF_RIN);
m_aStyles.append(static_cast<sal_Int32>(rLRSpace.GetRight()));
m_aStyles.append(OOO_STRING_SVTOOLS_RTF_FI);
- m_aStyles.append(static_cast<sal_Int32>(rLRSpace.GetTextFirstLineOfst()));
+ m_aStyles.append(static_cast<sal_Int32>(rLRSpace.GetTextFirstLineOffset()));
}
}
else if (m_rExport.GetRTFFlySyntax())
diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx
index da7bc1de87e7..379b9cf46264 100644
--- a/sw/source/filter/ww8/wrtw8nds.cxx
+++ b/sw/source/filter/ww8/wrtw8nds.cxx
@@ -2466,7 +2466,7 @@ void MSWordExportBase::OutputTextNode( SwTextNode& rNode )
{
const SvxLRSpaceItem* pLRSpace = aSet.GetItem<SvxLRSpaceItem>(RES_LR_SPACE);
if ( pLRSpace )
- nFirstLineIndent = pLRSpace->GetTextFirstLineOfst();
+ nFirstLineIndent = pLRSpace->GetTextFirstLineOffset();
}
// Insert tab for aesthetic purposes #i24762#
@@ -2748,9 +2748,9 @@ void MSWordExportBase::OutputTextNode( SwTextNode& rNode )
SvxNumberFormat::LABEL_WIDTH_AND_POSITION )
{
if (bParaRTL)
- aLR.SetTextFirstLineOfstValue(pFormat->GetAbsLSpace() - pFormat->GetFirstLineOffset()); //TODO: overflow
+ aLR.SetTextFirstLineOffsetValue(pFormat->GetAbsLSpace() - pFormat->GetFirstLineOffset()); //TODO: overflow
else
- aLR.SetTextFirstLineOfst(GetWordFirstLineOffset(*pFormat));
+ aLR.SetTextFirstLineOffset(GetWordFirstLineOffset(*pFormat));
}
// correct fix for issue i94187
@@ -2870,7 +2870,7 @@ void MSWordExportBase::OutputTextNode( SwTextNode& rNode )
// new first line indent = 0
// (first line indent is ignored for NO_NUMLEVEL)
if (!bParaRTL)
- aLRSpace.SetTextFirstLineOfst( 0 );
+ aLRSpace.SetTextFirstLineOffset( 0 );
// put back the new item
pTmpSet->Put( aLRSpace );
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index 038630b2c081..96c7ebe0f50c 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -817,7 +817,7 @@ void MSWordExportBase::OutputFormat( const SwFormat& rFormat, bool bPapFormat, b
ItemGet<SvxLRSpaceItem>(aSet, RES_LR_SPACE));
aLR.SetTextLeft( aLR.GetTextLeft() + rNFormat.GetAbsLSpace() );
- aLR.SetTextFirstLineOfst( GetWordFirstLineOffset(rNFormat));
+ aLR.SetTextFirstLineOffset( GetWordFirstLineOffset(rNFormat));
aSet.Put( aLR );
CorrectTabStopInSet( aSet, rNFormat.GetAbsLSpace() );
@@ -4076,7 +4076,7 @@ void WW8AttributeOutput::FormatLRSpace( const SvxLRSpaceItem& rLR )
// sprmPDxaLeft1
m_rWW8Export.InsUInt16( 0x8460 ); //asian version ?
- m_rWW8Export.InsUInt16( rLR.GetTextFirstLineOfst() );
+ m_rWW8Export.InsUInt16( rLR.GetTextFirstLineOffset() );
}
}
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index f135c70eeba2..e7275d0486dc 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -1238,7 +1238,7 @@ static long lcl_GetTrueMargin(const SvxLRSpaceItem &rLR, const SwNumFormat &rFor
"<lcl_GetTrueMargin> - misusage: position-and-space-mode does not equal LABEL_WIDTH_AND_POSITION" );
const long nBodyIndent = rLR.GetTextLeft();
- const long nFirstLineDiff = rLR.GetTextFirstLineOfst();
+ const long nFirstLineDiff = rLR.GetTextFirstLineOffset();
rFirstLinePos = nBodyIndent + nFirstLineDiff;
const auto nPseudoListBodyIndent = rFormat.GetAbsLSpace();
@@ -1260,14 +1260,14 @@ void SyncIndentWithList( SvxLRSpaceItem &rLR,
long nWantedFirstLinePos;
long nExtraListIndent = lcl_GetTrueMargin(rLR, rFormat, nWantedFirstLinePos);
rLR.SetTextLeft(nWantedFirstLinePos - nExtraListIndent);
- rLR.SetTextFirstLineOfst(0);
+ rLR.SetTextFirstLineOffset(0);
}
else if ( rFormat.GetPositionAndSpaceMode() == SvxNumberFormat::LABEL_ALIGNMENT )
{
if ( !bFirstLineOfstSet && bLeftIndentSet &&
rFormat.GetFirstLineIndent() != 0 )
{
- rLR.SetTextFirstLineOfst( rFormat.GetFirstLineIndent() );
+ rLR.SetTextFirstLineOffset( rFormat.GetFirstLineIndent() );
}
else if ( bFirstLineOfstSet && !bLeftIndentSet &&
rFormat.GetIndentAt() != 0 )
@@ -1278,7 +1278,7 @@ void SyncIndentWithList( SvxLRSpaceItem &rLR,
{
if ( rFormat.GetFirstLineIndent() != 0 )
{
- rLR.SetTextFirstLineOfst( rFormat.GetFirstLineIndent() );
+ rLR.SetTextFirstLineOffset( rFormat.GetFirstLineIndent() );
}
if ( rFormat.GetIndentAt() != 0 )
{
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 8a52b7eb9641..6f417543014d 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -256,7 +256,7 @@ sal_uInt16 SwWW8ImplReader::End_Footnote()
{
const SvxLRSpaceItem* pLRSpace = aSet.GetItem<SvxLRSpaceItem>(RES_LR_SPACE);
if ( pLRSpace )
- nFirstLineIndent = pLRSpace->GetTextFirstLineOfst();
+ nFirstLineIndent = pLRSpace->GetTextFirstLineOffset();
}
m_pPaM->GetPoint()->nContent.Assign( pTNd, 0 );
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index 52fa05de6de5..d95fe07d4f80 100644
--- a/sw/source/filter/ww8/ww8par3.cxx
+++ b/sw/source/filter/ww8/ww8par3.cxx
@@ -1694,7 +1694,7 @@ void UseListIndent(SwWW8StyInf &rStyle, const SwNumFormat &rFormat)
const long nListFirstLineIndent = GetListFirstLineIndent(rFormat);
SvxLRSpaceItem aLR(ItemGet<SvxLRSpaceItem>(*rStyle.m_pFormat, RES_LR_SPACE));
aLR.SetTextLeft(nAbsLSpace);
- aLR.SetTextFirstLineOfst(writer_cast<short>(nListFirstLineIndent));
+ aLR.SetTextFirstLineOffset(writer_cast<short>(nListFirstLineIndent));
rStyle.m_pFormat->SetFormatAttr(aLR);
rStyle.m_bListReleventIndentSet = true;
}
@@ -1713,7 +1713,7 @@ void SetStyleIndent(SwWW8StyInf &rStyle, const SwNumFormat &rFormat)
else
{
aLR.SetTextLeft(0);
- aLR.SetTextFirstLineOfst(0);
+ aLR.SetTextFirstLineOffset(0);
}
rStyle.m_pFormat->SetFormatAttr(aLR);
}
@@ -2004,7 +2004,7 @@ void SwWW8ImplReader::Read_LFOPosition(sal_uInt16, const sal_uInt8* pData,
// reset/blank the left indent (and only the left)
aLR->SetTextLeft(0);
- aLR->SetTextFirstLineOfst(0);
+ aLR->SetTextFirstLineOffset(0);
// apply the modified SvxLRSpaceItem to the current paragraph
pTextNode->SetAttr( *aLR );
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx
index 9b1c95217cb8..992409d562c8 100644
--- a/sw/source/filter/ww8/ww8par6.cxx
+++ b/sw/source/filter/ww8/ww8par6.cxx
@@ -4174,7 +4174,7 @@ void SwWW8ImplReader::Read_LR( sal_uInt16 nId, const sal_uInt8* pData, short nLe
if ( pFormat && pFormat->GetPositionAndSpaceMode() == SvxNumberFormat::LABEL_ALIGNMENT )
{
aLR->SetTextLeft( pFormat->GetIndentAt() );
- aLR->SetTextFirstLineOfst( static_cast<short>(pFormat->GetFirstLineIndent()) );
+ aLR->SetTextFirstLineOffset( static_cast<short>(pFormat->GetFirstLineIndent()) );
// make paragraph have hard-set indent attributes
pTextNode->SetAttr( *aLR );
}
@@ -4246,11 +4246,11 @@ void SwWW8ImplReader::Read_LR( sal_uInt16 nId, const sal_uInt8* pData, short nLe
const SvxLRSpaceItem &rLR =
ItemGet<SvxLRSpaceItem>(*(m_vColl[m_nCurrentColl].m_pFormat),
RES_LR_SPACE);
- nPara = nPara - rLR.GetTextFirstLineOfst();
+ nPara = nPara - rLR.GetTextFirstLineOffset();
}
}
- aLR->SetTextFirstLineOfst(nPara);
+ aLR->SetTextFirstLineOffset(nPara);
if (!m_pCurrentColl)
{
diff --git a/sw/source/filter/xml/xmlexpit.cxx b/sw/source/filter/xml/xmlexpit.cxx
index ba94cdcd9ffe..57bb8c93a41c 100644
--- a/sw/source/filter/xml/xmlexpit.cxx
+++ b/sw/source/filter/xml/xmlexpit.cxx
@@ -418,7 +418,7 @@ bool SvXMLExportItemMapper::QueryXMLValue(
else
{
rUnitConverter.convertMeasureToXML(
- aOut, rLRSpace.GetTextFirstLineOfst() );
+ aOut, rLRSpace.GetTextFirstLineOffset() );
}
}
else
diff --git a/sw/source/filter/xml/xmlimpit.cxx b/sw/source/filter/xml/xmlimpit.cxx
index ee5641691518..476865ec5c30 100644
--- a/sw/source/filter/xml/xmlimpit.cxx
+++ b/sw/source/filter/xml/xmlimpit.cxx
@@ -292,7 +292,7 @@ bool SvXMLImportItemMapper::PutXMLValue(
bOk = rUnitConverter.convertMeasureToCore(nAbs, rValue,
-0x7fff, 0x7fff );
- rLRSpace.SetTextFirstLineOfst( static_cast<short>(nAbs), static_cast<sal_uInt16>(nProp) );
+ rLRSpace.SetTextFirstLineOffset( static_cast<short>(nAbs), static_cast<sal_uInt16>(nProp) );
}
break;
diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx
index 5fef48e77b9c..db623a8d9277 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -1423,7 +1423,7 @@ void SwDocStyleSheet::MergeIndentAttrsOfListStyle( SfxItemSet& rSet )
{
SvxLRSpaceItem aLR( RES_LR_SPACE );
aLR.SetTextLeft( rFormat.GetIndentAt() );
- aLR.SetTextFirstLineOfst( static_cast<short>(rFormat.GetFirstLineIndent()) );
+ aLR.SetTextFirstLineOffset( static_cast<short>(rFormat.GetFirstLineIndent()) );
rSet.Put( aLR );
}
}
diff --git a/sw/source/uibase/shells/drwtxtex.cxx b/sw/source/uibase/shells/drwtxtex.cxx
index 120c6a162004..35709effdf3d 100644
--- a/sw/source/uibase/shells/drwtxtex.cxx
+++ b/sw/source/uibase/shells/drwtxtex.cxx
@@ -249,10 +249,10 @@ void SwDrawTextShell::Execute( SfxRequest &rReq )
{
SvxLRSpaceItem aParaMargin = aEditAttr.Get( EE_PARA_LRSPACE );
aParaMargin.SetWhich( EE_PARA_LRSPACE );
- short int nFirstLineOffset = aParaMargin.GetTextFirstLineOfst();
+ short int nFirstLineOffset = aParaMargin.GetTextFirstLineOffset();
aParaMargin.SetTextLeft( aParaMargin.GetTextLeft() + nFirstLineOffset );
aParaMargin.SetRight( aParaMargin.GetRight() );
- aParaMargin.SetTextFirstLineOfst( nFirstLineOffset * -1 );
+ aParaMargin.SetTextFirstLineOffset( nFirstLineOffset * -1 );
aNewAttr.Put(aParaMargin);
rReq.Done();
}
diff --git a/sw/source/uibase/uiview/viewtab.cxx b/sw/source/uibase/uiview/viewtab.cxx
index 0ddf545a3d1a..844bbfce782b 100644
--- a/sw/source/uibase/uiview/viewtab.cxx
+++ b/sw/source/uibase/uiview/viewtab.cxx
@@ -627,7 +627,7 @@ void SwView::ExecTabWin( SfxRequest const & rReq )
rSh.GetCurAttr( aSet );
const SvxLRSpaceItem& rLR = aSet.Get(RES_LR_SPACE);
- if ( rLR.GetTextFirstLineOfst() < 0 )
+ if ( rLR.GetTextFirstLineOffset() < 0 )
{
SvxTabStop aSwTabStop( 0, SvxTabAdjust::Default );
aTabStops.Insert( aSwTabStop );
@@ -655,9 +655,9 @@ void SwView::ExecTabWin( SfxRequest const & rReq )
SvxLRSpaceItem aParaMargin( aLRSpaceSet.Get( RES_LR_SPACE ) );
SvxLRSpaceItem aNewMargin( RES_LR_SPACE );
- aNewMargin.SetTextLeft( aParaMargin.GetTextLeft() + aParaMargin.GetTextFirstLineOfst() );
+ aNewMargin.SetTextLeft( aParaMargin.GetTextLeft() + aParaMargin.GetTextFirstLineOffset() );
aNewMargin.SetRight( aParaMargin.GetRight() );
- aNewMargin.SetTextFirstLineOfst( (aParaMargin.GetTextFirstLineOfst()) * -1 );
+ aNewMargin.SetTextFirstLineOffset( (aParaMargin.GetTextFirstLineOffset()) * -1 );
rSh.SetAttrItem( aNewMargin );
break;
@@ -700,7 +700,7 @@ void SwView::ExecTabWin( SfxRequest const & rReq )
else
rSh.SetAttrItem( aParaMargin );
- if ( aParaMargin.GetTextFirstLineOfst() < 0 )
+ if ( aParaMargin.GetTextFirstLineOffset() < 0 )
{
SfxItemSet aSet( GetPool(), svl::Items<RES_PARATR_TABSTOP, RES_PARATR_TABSTOP>{} );
diff --git a/sw/source/uibase/wrtsh/delete.cxx b/sw/source/uibase/wrtsh/delete.cxx
index 4a2420ad7b84..177cb2344c46 100644
--- a/sw/source/uibase/wrtsh/delete.cxx
+++ b/sw/source/uibase/wrtsh/delete.cxx
@@ -62,16 +62,16 @@ bool SwWrtShell::TryRemoveIndent()
GetCurAttr(aAttrSet);
SvxLRSpaceItem aItem = aAttrSet.Get(RES_LR_SPACE);
- short aOldFirstLineOfst = aItem.GetTextFirstLineOfst();
+ short aOldFirstLineOfst = aItem.GetTextFirstLineOffset();
if (aOldFirstLineOfst > 0)
{
- aItem.SetTextFirstLineOfst(0);
+ aItem.SetTextFirstLineOffset(0);
bResult = true;
}
else if (aOldFirstLineOfst < 0)
{
- aItem.SetTextFirstLineOfst(0);
+ aItem.SetTextFirstLineOffset(0);
aItem.SetLeft(aItem.GetLeft() + aOldFirstLineOfst);
bResult = true;
More information about the Libreoffice-commits
mailing list