summaryrefslogtreecommitdiffstats
path: root/sd/source/ui/func/fuarea.cxx
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-06-20 16:05:00 +0200
committerThorsten Behrens <thorsten.behrens@allotropia.de>2022-07-06 16:49:14 +0200
commitc8a3dba4f7e98724956536c405e3620e6dc4342e (patch)
tree31f67201dbeb86c4e246b37c2e38c2cff30b1027 /sd/source/ui/func/fuarea.cxx
parenttdf#128150 xmloff: ODF import/export of fill-use-slide-background (diff)
downloadcore-c8a3dba4f7e98724956536c405e3620e6dc4342e.tar.gz
core-c8a3dba4f7e98724956536c405e3620e6dc4342e.zip
tdf#128150 Only show "Use background" btn in Impress & Draw
Change-Id: I5d14f651af55b51a8a02a8a4ddbb1c0921b15d81 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136182 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'sd/source/ui/func/fuarea.cxx')
-rw-r--r--sd/source/ui/func/fuarea.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/func/fuarea.cxx b/sd/source/ui/func/fuarea.cxx
index 345b2c70b6dc..1f750e897dd2 100644
--- a/sd/source/ui/func/fuarea.cxx
+++ b/sd/source/ui/func/fuarea.cxx
@@ -55,7 +55,9 @@ void FuArea::DoExecute( SfxRequest& rReq )
mpView->GetAttributes( aNewAttr );
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
- VclPtr<AbstractSvxAreaTabDialog> pDlg(pFact->CreateSvxAreaTabDialog(mpViewShell->GetFrameWeld(), &aNewAttr, mpDoc, true));
+ bool bHasSlideBackground = mpViewShell->GetDoc()->GetDocumentType() == DocumentType::Impress;
+ VclPtr<AbstractSvxAreaTabDialog> pDlg(
+ pFact->CreateSvxAreaTabDialog(mpViewShell->GetFrameWeld(), &aNewAttr, mpDoc, true, bHasSlideBackground));
pDlg->StartExecuteAsync([pDlg, pView = this->mpView, pViewShell = this->mpViewShell](sal_Int32 nResult){
if (nResult == RET_OK)