summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorYusuf Keten <ketenyusuf@gmail.com>2020-06-05 14:50:39 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2020-06-25 22:16:55 +0200
commit12bbcce5018a09f1ab4c629bdab813f9bf079605 (patch)
tree0e59cb9c31c8b34e5bb41d5cfffff8d435ab7f07 /sw
parent3377dd995da3ab01c535d514f1bfc7927fe8c16f (diff)
tdf#133026: Tight integration of extensions - Additions Dialog first iteration
- Add the uno command .uno:AdditionsDialog - Add the necessary commands to cui makefiles. - Add the dialog AdditionsDialog for only test - Implement the basic functionality to show up when clicked on the menu/toolbar item. Change-Id: I89dd74e49f5ff246ca355d2f8d1397621b26dea6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95593 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/sdi/viewsh.sdi6
-rw-r--r--sw/source/uibase/uiview/viewdlg2.cxx8
2 files changed, 14 insertions, 0 deletions
diff --git a/sw/sdi/viewsh.sdi b/sw/sdi/viewsh.sdi
index 561b41ff2040..a2dfb805b0d1 100644
--- a/sw/sdi/viewsh.sdi
+++ b/sw/sdi/viewsh.sdi
@@ -66,6 +66,12 @@ interface TextEditView : BaseTextEditView
StateMethod = GetState ;
DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
]
+ SID_ADDITIONS_DIALOG // status()
+ [
+ ExecMethod = ExecDlgExt ;
+ StateMethod = GetState ;
+ DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
+ ]
FN_EDIT_FOOTNOTE // status(final|play)
[
ExecMethod = ExecDlgExt ;
diff --git a/sw/source/uibase/uiview/viewdlg2.cxx b/sw/source/uibase/uiview/viewdlg2.cxx
index 0283752c9551..b993aa555046 100644
--- a/sw/source/uibase/uiview/viewdlg2.cxx
+++ b/sw/source/uibase/uiview/viewdlg2.cxx
@@ -74,6 +74,14 @@ void SwView::ExecDlgExt(SfxRequest const &rReq)
pDialog->Execute();
break;
}
+ case SID_ADDITIONS_DIALOG:
+ {
+ VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create();
+ ScopedVclPtr<AbstractAdditionsDialog> pDialog(
+ pFact->CreateAdditionsDialog(GetFrameWeld()));
+ pDialog->Execute();
+ break;
+ }
case SID_SIGN_SIGNATURELINE:
{
VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create();