From f4ed90bcad83ea24644c1cbf077b369ae05f004e Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Tue, 22 Aug 2023 08:14:10 +0200 Subject: sd: remove theme tab page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iffb3d0f6d6933891333da68fa4569a3638ba18f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156123 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- sd/source/ui/dlg/dlgpage.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'sd/source/ui/dlg/dlgpage.cxx') diff --git a/sd/source/ui/dlg/dlgpage.cxx b/sd/source/ui/dlg/dlgpage.cxx index 5e41ec6cec20..833328659be3 100644 --- a/sd/source/ui/dlg/dlgpage.cxx +++ b/sd/source/ui/dlg/dlgpage.cxx @@ -36,7 +36,7 @@ * Constructor of tab dialog: appends pages to the dialog */ SdPageDlg::SdPageDlg(SfxObjectShell const* pDocSh, weld::Window* pParent, const SfxItemSet* pAttr, - bool bAreaPage, bool bIsImpressDoc, bool bIsImpressMaster) + bool bAreaPage, bool bIsImpressDoc) : SfxTabDialogController(pParent, "modules/sdraw/ui/drawpagedialog.ui", "DrawPageDialog", pAttr) , mbIsImpressDoc(bIsImpressDoc) { @@ -58,7 +58,6 @@ SdPageDlg::SdPageDlg(SfxObjectShell const* pDocSh, weld::Window* pParent, const AddTabPage("RID_SVXPAGE_AREA", pFact->GetTabPageCreatorFunc(RID_SVXPAGE_AREA), nullptr); AddTabPage("RID_SVXPAGE_TRANSPARENCE", pFact->GetTabPageCreatorFunc(RID_SVXPAGE_TRANSPARENCE), nullptr); - AddTabPage("RID_SVXPAGE_THEME", pFact->GetTabPageCreatorFunc(RID_SVXPAGE_THEME), nullptr); if (!bAreaPage) // I have to add the page before I remove it ! { @@ -66,12 +65,6 @@ SdPageDlg::SdPageDlg(SfxObjectShell const* pDocSh, weld::Window* pParent, const RemoveTabPage("RID_SVXPAGE_TRANSPARENCE"); } - if (!bIsImpressMaster) - { - // Only slide masters can have a theme. - RemoveTabPage("RID_SVXPAGE_THEME"); - } - if (mbIsImpressDoc) { set_title(SdResId(STR_SLIDE_SETUP_TITLE)); -- cgit v1.2.3