sw/sdi/drwtxtsh.sdi | 5 +++++ sw/source/uibase/shells/drwtxtex.cxx | 9 +++++++++ 2 files changed, 14 insertions(+)
New commits: commit bb183ef3734cc3ccad81bd1ca1309f726c279870 Author: Justin Luth <justin_l...@sil.org> AuthorDate: Thu Jan 27 15:08:21 2022 +0200 Commit: Justin Luth <jl...@mail.com> CommitDate: Fri Jan 28 07:16:50 2022 +0100 related tdf#111733 TextCharacterSpacingControl sw draw: goto position tab The kerning button on the sidebar very unhelpfully did nothing at all in draw text (like textboxes). It should have brought the user directly to the "position" tab where the kerning property can be found. Change-Id: I89d4a180ac19e1e096b9157f3f32a254ff138940 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129045 Tested-by: Jenkins Reviewed-by: Justin Luth <jl...@mail.com> diff --git a/sw/sdi/drwtxtsh.sdi b/sw/sdi/drwtxtsh.sdi index c9e76ab9fbfb..3acf703d75e8 100644 --- a/sw/sdi/drwtxtsh.sdi +++ b/sw/sdi/drwtxtsh.sdi @@ -393,6 +393,11 @@ interface TextDrawText StateMethod = GetState ; DisableFlags="SfxDisableFlags::SwOnProtectedCursor"; ] + SID_CHAR_DLG_POSITION + [ + ExecMethod = Execute ; + DisableFlags="SfxDisableFlags::SwOnProtectedCursor"; + ] SID_CHAR_DLG_FOR_PARAGRAPH [ ExecMethod = Execute ; diff --git a/sw/source/uibase/shells/drwtxtex.cxx b/sw/source/uibase/shells/drwtxtex.cxx index 068a9be9feca..502fd7a6fa09 100644 --- a/sw/source/uibase/shells/drwtxtex.cxx +++ b/sw/source/uibase/shells/drwtxtex.cxx @@ -353,6 +353,7 @@ void SwDrawTextShell::Execute( SfxRequest &rReq ) break; case SID_CHAR_DLG_EFFECT: + case SID_CHAR_DLG_POSITION: case SID_CHAR_DLG: case SID_CHAR_DLG_FOR_PARAGRAPH: { @@ -386,6 +387,10 @@ void SwDrawTextShell::Execute( SfxRequest &rReq ) { pDlg->SetCurPageId("fonteffects"); } + else if (nSlot == SID_CHAR_DLG_POSITION) + { + pDlg->SetCurPageId("position"); + } else if (nSlot == SID_CHAR_DLG_FOR_PARAGRAPH) { pDlg->SetCurPageId("font"); @@ -640,6 +645,10 @@ void SwDrawTextShell::Execute( SfxRequest &rReq ) { GetView().GetViewFrame()->GetDispatcher()->Execute(SID_CHAR_DLG_EFFECT); } + else if (nEEWhich == EE_CHAR_KERNING) + { + GetView().GetViewFrame()->GetDispatcher()->Execute(SID_CHAR_DLG_POSITION); + } SetAttrToMarked(aNewAttr);