summaryrefslogtreecommitdiff
path: root/svx/source/dialog/svxruler.cxx
diff options
context:
space:
mode:
authorJonathan Clark <jonathan@libreoffice.org>2024-11-08 01:12:48 -0700
committerJonathan Clark <jonathan@libreoffice.org>2024-11-13 15:01:11 +0100
commit2cb039f570379213ffc9469a132f5b24f425b7be (patch)
treee67e7cb151de276cec6d3a4bc24d7f184aeac001 /svx/source/dialog/svxruler.cxx
parenta095909899622ce16bac020fa7034ff162fe0df5 (diff)
tdf#36709 editeng: Layout for font-relative first-line indent
This change extends layout for font-relative paragraph first-line indentation into Edit Engine. Change-Id: I5906f493b91fbcb87ded165709fb132b33ce1906 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176487 Tested-by: Jenkins Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Diffstat (limited to 'svx/source/dialog/svxruler.cxx')
-rw-r--r--svx/source/dialog/svxruler.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx
index 3f447bf9a1af..6bbf1b1a9ddd 100644
--- a/svx/source/dialog/svxruler.cxx
+++ b/svx/source/dialog/svxruler.cxx
@@ -567,7 +567,7 @@ void SvxRuler::MouseMove( const MouseEvent& rMEvt )
if (nIndex == INDENT_LEFT_MARGIN)
nIndentValue = mxParaItem->GetTextLeft();
else if (nIndex == INDENT_FIRST_LINE)
- nIndentValue = mxParaItem->GetTextFirstLineOffset();
+ nIndentValue = mxParaItem->ResolveTextFirstLineOffset({});
else if (nIndex == INDENT_RIGHT_MARGIN)
nIndentValue = mxParaItem->GetRight();
@@ -846,13 +846,13 @@ void SvxRuler::UpdatePara()
if(bRTLText)
{
leftMargin = nRightFrameMargin - mxParaItem->GetTextLeft() + lAppNullOffset;
- leftFirstLine = leftMargin - mxParaItem->GetTextFirstLineOffset();
+ leftFirstLine = leftMargin - mxParaItem->ResolveTextFirstLineOffset({});
rightMargin = nLeftFrameMargin + mxParaItem->GetRight() + lAppNullOffset;
}
else
{
leftMargin = nLeftFrameMargin + mxParaItem->GetTextLeft() + lAppNullOffset;
- leftFirstLine = leftMargin + mxParaItem->GetTextFirstLineOffset();
+ leftFirstLine = leftMargin + mxParaItem->ResolveTextFirstLineOffset({});
rightMargin = nRightFrameMargin - mxParaItem->GetRight() + lAppNullOffset;
}
@@ -2194,7 +2194,7 @@ void SvxRuler::ApplyIndents()
nNewRight = RoundToCurrentMapMode(nNewRight);
}
- mxParaItem->SetTextFirstLineOffset(sal::static_int_cast<short>(nNewFirstLineOffset));
+ mxParaItem->SetTextFirstLineOffset(SvxIndentValue::twips(nNewFirstLineOffset));
mxParaItem->SetTextLeft(nNewTxtLeft);
mxParaItem->SetRight(nNewRight);