diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-01-08 22:35:23 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-01-13 12:00:03 +0100 |
commit | c7337b7a1f0bdb60be9b4307a61c464e2a82e911 (patch) | |
tree | c144946c1dc3d6271a3de0de6dfeae69e0835795 /sc | |
parent | e4a454f8a6e757739145689a445a9516f794b972 (diff) |
devtools: Enable DevTools in Calc, Impress and Draw
This adds the DevTools to menu in Calc, Impress and Draw, so it
is possible to turn on the DevTools docking window in these most
relevant modules.
Change-Id: I446d2f0c9b6e5a1169d4eef556ac6989fa080634
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108977
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/app/scdll.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsh.cxx | 2 | ||||
-rw-r--r-- | sc/uiconfig/scalc/menubar/menubar.xml | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/ui/app/scdll.cxx b/sc/source/ui/app/scdll.cxx index c675ef07b792..35c3071e9a28 100644 --- a/sc/source/ui/app/scdll.cxx +++ b/sc/source/ui/app/scdll.cxx @@ -25,6 +25,7 @@ #include <comphelper/lok.hxx> #include <sfx2/sidebar/SidebarChildWindow.hxx> #include <sfx2/app.hxx> +#include <svx/devtools/DevelopmentToolDockingWindow.hxx> #include <avmedia/mediatoolbox.hxx> #include <NumberFormatControl.hxx> @@ -160,7 +161,8 @@ void ScDLL::Init() #endif // Common SFX Controller - ::sfx2::sidebar::SidebarChildWindow::RegisterChildWindow(false, pMod); + sfx2::sidebar::SidebarChildWindow::RegisterChildWindow(false, pMod); + DevelopmentToolChildWindow::RegisterChildWindow(false, pMod); // SvxStatusBar Controller SvxInsertStatusBarControl ::RegisterControl(SID_ATTR_INSERT, pMod); diff --git a/sc/source/ui/view/tabvwsh.cxx b/sc/source/ui/view/tabvwsh.cxx index 583e25c6af11..e7f2fafe53cc 100644 --- a/sc/source/ui/view/tabvwsh.cxx +++ b/sc/source/ui/view/tabvwsh.cxx @@ -23,6 +23,7 @@ #include <sfx2/viewfrm.hxx> #include <sfx2/infobar.hxx> #include <sfx2/sidebar/SidebarChildWindow.hxx> +#include <svx/devtools/DevelopmentToolDockingWindow.hxx> #include <sfx2/viewfac.hxx> #include <cellvalue.hxx> @@ -55,6 +56,7 @@ void ScTabViewShell::InitInterface_Impl() GetStaticInterface()->RegisterChildWindow(SID_NAVIGATOR, true); GetStaticInterface()->RegisterChildWindow(::sfx2::sidebar::SidebarChildWindow::GetChildWindowId()); + GetStaticInterface()->RegisterChildWindow(DevelopmentToolChildWindow::GetChildWindowId()); GetStaticInterface()->RegisterChildWindow(ScNameDlgWrapper::GetChildWindowId()); GetStaticInterface()->RegisterChildWindow(ScNameDefDlgWrapper::GetChildWindowId()); GetStaticInterface()->RegisterChildWindow(ScSolverDlgWrapper::GetChildWindowId()); diff --git a/sc/uiconfig/scalc/menubar/menubar.xml b/sc/uiconfig/scalc/menubar/menubar.xml index 8e2b151e53a4..a8089440f73c 100644 --- a/sc/uiconfig/scalc/menubar/menubar.xml +++ b/sc/uiconfig/scalc/menubar/menubar.xml @@ -756,6 +756,7 @@ </menu:menu> <menu:menu menu:id=".uno:HelpMenu"> <menu:menupopup> + <menu:menuitem menu:id=".uno:DevelopmentToolsDockingWindow"/> <menu:menuitem menu:id=".uno:HelpIndex"/> <menu:menuitem menu:id=".uno:ExtendedHelp"/> <menu:menuitem menu:id=".uno:Documentation"/> |