From 51d192a3bfa24dc979f7ad6178803d3262290b46 Mon Sep 17 00:00:00 2001 From: Pranam Lashkari Date: Sun, 26 Apr 2020 23:25:47 +0530 Subject: remove macro tab for image dialog in online Change-Id: I02de19e8048fd045a6ef6bdcc655c9911f0f9f01 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92958 Tested-by: Jenkins CollaboraOffice Reviewed-by: Andras Timar --- sw/source/ui/frmdlg/frmdlg.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sw/source/ui/frmdlg/frmdlg.cxx b/sw/source/ui/frmdlg/frmdlg.cxx index 2deb04142e7e..ca59c421b394 100644 --- a/sw/source/ui/frmdlg/frmdlg.cxx +++ b/sw/source/ui/frmdlg/frmdlg.cxx @@ -42,6 +42,7 @@ #include #include #include +#include // the dialog's carrier SwFrameDlg::SwFrameDlg(SfxViewFrame const * pViewFrame, @@ -112,6 +113,9 @@ SwFrameDlg::SwFrameDlg(SfxViewFrame const * pViewFrame, } } + if(comphelper::LibreOfficeKit::isActive()) + RemoveTabPage("macro"); + if (m_bNew) SetCurPageId("type"); -- cgit v1.2.3