diff options
-rw-r--r-- | sc/source/ui/attrdlg/attrdlg.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/ui/attrdlg/attrdlg.cxx b/sc/source/ui/attrdlg/attrdlg.cxx index 734ae94d606f..4e13eae6dea4 100644 --- a/sc/source/ui/attrdlg/attrdlg.cxx +++ b/sc/source/ui/attrdlg/attrdlg.cxx @@ -30,6 +30,7 @@ #include <editeng/editids.hrc> #include <editeng/flstitem.hxx> #include <osl/diagnose.h> +#include <comphelper/lok.hxx> ScAttrDlg::ScAttrDlg(weld::Window* pParent, const SfxItemSet* pCellAttrs) : SfxTabDialogController(pParent, "modules/scalc/ui/formatcellsdialog.ui", @@ -57,7 +58,11 @@ ScAttrDlg::ScAttrDlg(weld::Window* pParent, const SfxItemSet* pCellAttrs) AddTabPage( "borders", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BORDER ), nullptr ); OSL_ENSURE(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BKG ), "GetTabPageCreatorFunc fail!"); AddTabPage( "background", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BKG ), nullptr ); - AddTabPage( "cellprotection" , ScTabPageProtection::Create, nullptr ); + + if (!comphelper::LibreOfficeKit::isActive()) + AddTabPage( "cellprotection" , ScTabPageProtection::Create, nullptr ); + else + RemoveTabPage( "cellprotection" ); } ScAttrDlg::~ScAttrDlg() |