sw/source/uibase/shells/tabsh.cxx | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-)
New commits: commit 7e7c6b4fa6f9b747b5229e560f6c457968b68992 Author: Pranam Lashkari <[email protected]> AuthorDate: Mon Sep 1 14:25:29 2025 +0530 Commit: Caolán McNamara <[email protected]> CommitDate: Wed Sep 17 12:27:01 2025 +0200 uno: handle parameters to LineStyle in writer(SID_FRAME_LINESTYLE) new parameters introduced in 0357d749487ad540a3779d2c3af23357c942620b Change-Id: I7b20090901a88110710937f6aae249c23f48f9a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190472 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> (cherry picked from commit f65cceb2c43ffe9bed845a31aaf3ceb6f80e342d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191020 Tested-by: Caolán McNamara <[email protected]> diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx index f81a3af93217..63fac5b7a527 100644 --- a/sw/source/uibase/shells/tabsh.cxx +++ b/sw/source/uibase/shells/tabsh.cxx @@ -1749,9 +1749,35 @@ void SwTableShell::ExecTableStyle(SfxRequest& rReq) case SID_FRAME_LINECOLOR: if ( rReq.GetSlot() == SID_FRAME_LINESTYLE ) { - const SvxLineItem &rLineItem = pArgs->Get( SID_FRAME_LINESTYLE ); - const SvxBorderLine* pBorderLine = rLineItem.GetLine(); - rSh.SetTabLineStyle( nullptr, true, pBorderLine); + ::editeng::SvxBorderLine aLine; + const ::editeng::SvxBorderLine* pLine = nullptr; + const SfxInt16Item* lineStyleItem = rReq.GetArg<SfxInt16Item>(FN_PARAM_1); + + if (lineStyleItem) + { + const SfxInt16Item* InnerLineWidthItem + = rReq.GetArg<SfxInt16Item>(FN_PARAM_2); + const SfxInt16Item* OuterLineWidthItem + = rReq.GetArg<SfxInt16Item>(FN_PARAM_3); + const SfxInt16Item* LineDistanceItem + = rReq.GetArg<SfxInt16Item>(FN_PARAM_4); + + sal_uInt16 InnerLineWidth, OuterLineWidth, LineDistance; + SvxBorderLineStyle lineStyle + = static_cast<SvxBorderLineStyle>(lineStyleItem->GetValue()); + InnerLineWidth = InnerLineWidthItem ? InnerLineWidthItem->GetValue() : 0; + OuterLineWidth = OuterLineWidthItem ? OuterLineWidthItem->GetValue() : 0; + LineDistance = LineDistanceItem ? LineDistanceItem->GetValue() : 0; + + aLine.GuessLinesWidths(lineStyle, InnerLineWidth, OuterLineWidth, LineDistance); + pLine = &aLine; + } + else + { + pLine = pArgs->Get(SID_FRAME_LINESTYLE).GetLine(); + } + + rSh.SetTabLineStyle( nullptr, true, pLine); } else {
