sw/source/uibase/shells/txtnum.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit f384dc0476e4730d3ccb7a7f56eae8452bce133a
Author:     Justin Luth <justin.l...@collabora.com>
AuthorDate: Thu Nov 23 20:50:09 2023 -0500
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Mon Dec 4 16:27:58 2023 +0100

    related tdf#56258 sw sidebar SetOutline: do something without dropdown
    
    The sidebar gained SetOutline in 7.6
    with commit 3fd0b4053763aa91b0004c523e96e7d390c7b58e.
    
    In the TOOLBAR, there is special code that tells the main button
    to show the locale list outline choices - just like the dropdown does.
    However, none of that code comes into play in the sidebar,
    so add a special case to handle that situation.
    
    It is easy to launch the dialog, focused on the outlinenum page.
    Better yet would be to figure out how to launch the popup window
    that the dropdown opens - so they do the same thing...
    
    Change-Id: I3d6eeafaa8bdb45cfacc42e221820d664419e0e0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159934
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Justin Luth <jl...@mail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/sw/source/uibase/shells/txtnum.cxx 
b/sw/source/uibase/shells/txtnum.cxx
index 34a95d13ee8e..ae353ed0aa55 100644
--- a/sw/source/uibase/shells/txtnum.cxx
+++ b/sw/source/uibase/shells/txtnum.cxx
@@ -310,6 +310,14 @@ void SwTextShell::ExecSetNumber(SfxRequest const &rReq)
                     GetShell().SetCurNumRule( aNewNumRule, bCreateNewList );
                 }
             }
+            else if (nSlot == FN_SVX_SET_OUTLINE)
+            {
+                // no outline provided: launch dialog to request a specific 
outline
+                SfxBindings& rBindings = 
GetView().GetViewFrame()->GetBindings();
+                const SfxStringItem aPage(FN_PARAM_1, "outlinenum");
+                const SfxPoolItem* aItems[] = { &aPage, nullptr };
+                rBindings.Execute(SID_OUTLINE_BULLET, aItems);
+            }
         }
         break;
 

Reply via email to