sw/source/uibase/shells/tabsh.cxx |   32 +++++++++++++++++++++++++++++---
 1 file changed, 29 insertions(+), 3 deletions(-)

New commits:
commit 2bca699285ae9eadfba69c5cf6a3dcb8d0c327c4
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Mon Sep 1 14:25:29 2025 +0530
Commit:     Pranam Lashkari <lpra...@collabora.com>
CommitDate: Tue Sep 2 11:25:05 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>
    (cherry picked from commit f65cceb2c43ffe9bed845a31aaf3ceb6f80e342d)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190501
    Tested-by: Jenkins
    Reviewed-by: Pranam Lashkari <lpra...@collabora.com>

diff --git a/sw/source/uibase/shells/tabsh.cxx 
b/sw/source/uibase/shells/tabsh.cxx
index fee78758b6e6..a9cde0891496 100644
--- a/sw/source/uibase/shells/tabsh.cxx
+++ b/sw/source/uibase/shells/tabsh.cxx
@@ -1776,9 +1776,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
             {

Reply via email to