desktop/source/lib/init.cxx | 8 ++++++++ sfx2/source/control/unoctitm.cxx | 8 ++++++++ 2 files changed, 16 insertions(+)
New commits: commit d7349b9ac4d56adfaf9bbd7c8dac84152bd230fe Author: Hubert Figuière <h...@collabora.com> AuthorDate: Tue Aug 13 10:40:43 2024 -0400 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Aug 14 09:12:52 2024 +0200 LOKit: enable the Distribute command Signed-off-by: Hubert Figuière <h...@collabora.com> Change-Id: Id26ac3cd02198bbd3d4dcf0539cbc372a5e08c72 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171830 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index c0151e79b397..c97d552fa6e1 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -4028,6 +4028,14 @@ static void doc_iniUnoCommands () u".uno:MoveKeepInsertMode"_ustr, u".uno:ToggleSheetGrid"_ustr, u".uno:ChangeBezier"_ustr, + u".uno:DistributeHorzCenter"_ustr, + u".uno:DistributeHorzDistance"_ustr, + u".uno:DistributeHorzLeft"_ustr, + u".uno:DistributeHorzRight"_ustr, + u".uno:DistributeVertBottom"_ustr, + u".uno:DistributeVertCenter"_ustr, + u".uno:DistributeVertDistance"_ustr, + u".uno:DistributeVertTop"_ustr, }; util::URL aCommandURL; diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 04998cc0656e..dd528ce069c6 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1299,6 +1299,14 @@ constexpr auto handlers = frozen::make_unordered_map<std::u16string_view, Payloa { u"InsertPlainTextContentControl", EnabledPayload }, { u"InsertPictureContentControl", EnabledPayload }, { u"ChangeBezier", EnabledPayload }, + { u"DistributeHorzCenter", EnabledPayload }, + { u"DistributeHorzDistance", EnabledPayload }, + { u"DistributeHorzLeft", EnabledPayload }, + { u"DistributeHorzRight", EnabledPayload }, + { u"DistributeVertBottom", EnabledPayload }, + { u"DistributeVertCenter", EnabledPayload }, + { u"DistributeVertDistance", EnabledPayload }, + { u"DistributeVertTop", EnabledPayload }, { u"ParaLeftToRight", ParaDirectionPayload }, { u"ParaRightToLeft", ParaDirectionPayload },