summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2023-11-23 20:50:09 -0500
committerJustin Luth <jluth@mail.com>2023-12-19 15:12:18 +0100
commit884802163a07064683b6b2637c0601692f507a18 (patch)
tree427278576f2822d88f9023100c33977e81716d57 /sw
parenta81feee7b3e427bb435e75b4f92aa23b974b9071 (diff)
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 <jenkinscollaboraoffice@gmail.com> Reviewed-by: Justin Luth <jluth@mail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> (cherry picked from commit f384dc0476e4730d3ccb7a7f56eae8452bce133a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160326 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/shells/txtnum.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/uibase/shells/txtnum.cxx b/sw/source/uibase/shells/txtnum.cxx
index 412f603dcb32..250a12ea3585 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;