sw/source/uibase/shells/tabsh.cxx | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-)
New commits: commit f65cceb2c43ffe9bed845a31aaf3ceb6f80e342d Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Mon Sep 1 14:25:29 2025 +0530 Commit: Pranam Lashkari <lpra...@collabora.com> CommitDate: Mon Sep 1 19:05:36 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 <caolan.mcnam...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> 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 {