diff options
author | Hossein <hossein@libreoffice.org> | 2024-10-04 11:27:02 +0200 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2024-10-04 13:04:38 +0200 |
commit | bb0e5aa97965b2710200da677db032289c373afe (patch) | |
tree | 553de4f9274269beb08ee3bdd3c453a6c2117bf2 /sd/source | |
parent | 5739280623bcc111a0d8b808ca4cc5e6598f9cce (diff) |
tdf#163291 Fix AdditionsDialog in start center
Previously, AdditionsDialog was not working while in start center. Also,
there were a lot of code duplicates. This patch fixes these issues.
The UNO command .uno:AdditionsDialog was incorrectly implemented as
application specific. There were multiple duplicate conditions for
checking SID_ADDITIONS_DIALOG in each and every application. Now, this
is only done in sfx2/source/appl/appserv.cxx in a single point.
The AdditionsDialog can now be opened while in start center in different
places of "Tools > Options" for icons, dictionaries, etc. Also, this
LibreOffice BASIC code snippet opens it:
Sub Main()
oDispatch = CreateUnoService("com.sun.star.frame.DispatchHelper")
Dim args(0) As New com.sun.star.beans.PropertyValue
oDispatch.executeDispatch(StarDesktop.ActiveFrame,
".uno:AdditionsDialog", "", 0, args)
End Sub
Change-Id: Ifb7e466449008b9bb6e5b678da2e54f58bc101e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174469
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index ded35227175d..aafee36fa8b4 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -3601,28 +3601,6 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) } break; - case SID_ADDITIONS_DIALOG: - { - OUString sAdditionsTag = u""_ustr; - - const SfxStringItem* pStringArg = rReq.GetArg<SfxStringItem>(FN_PARAM_ADDITIONS_TAG); - if (pStringArg) - sAdditionsTag = pStringArg->GetValue(); - - VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create(); - VclPtr<AbstractAdditionsDialog> pDlg( - pFact->CreateAdditionsDialog(GetFrameWeld(), sAdditionsTag)); - pDlg->StartExecuteAsync( - [pDlg] (sal_Int32 /*nResult*/)->void - { - pDlg->disposeOnce(); - } - ); - Cancel(); - rReq.Ignore (); - } - break; - case SID_ATTR_GLOW_COLOR: case SID_ATTR_GLOW_RADIUS: case SID_ATTR_GLOW_TRANSPARENCY: |