summaryrefslogtreecommitdiff
path: root/sc/source/ui/drawfunc
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2023-07-05 14:04:17 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2023-07-05 19:54:17 +0200
commit6efc72b99a08384e56c5a4da7918177be60b3b09 (patch)
tree67e228fb3914c392a009bc0191a63287678fed8c /sc/source/ui/drawfunc
parent082993c38e68089282b42fdb46179ac2574d61d5 (diff)
tdf#138504 svx,etc.: decorative flag on SdrObject shapes
* SdrObject new member m_IsDecorative * new Undo SdrUndoObjDecorative * surprising amount of changes in sw including additional SwUndoFlyDecorative * svx API SvxShape property "Decorative" * UI checkbox "Decorative" * ODF import/export as loext:decorative on style:graphic-properties * PDF/UA export: ViewObjectContcat tag shapes with this flag as Artifact Change-Id: I37f7a0597eab92c6c6aff94fad6c16c59b231c80 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154063 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sc/source/ui/drawfunc')
-rw-r--r--sc/source/ui/drawfunc/drawsh5.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/drawfunc/drawsh5.cxx b/sc/source/ui/drawfunc/drawsh5.cxx
index 4e95a7d65b07..7c39afc2de0d 100644
--- a/sc/source/ui/drawfunc/drawsh5.cxx
+++ b/sc/source/ui/drawfunc/drawsh5.cxx
@@ -578,11 +578,12 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq )
{
OUString aTitle(pSelected->GetTitle());
OUString aDescription(pSelected->GetDescription());
+ bool isDecorative(pSelected->IsDecorative());
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
vcl::Window* pWin = rViewData.GetActiveWin();
ScopedVclPtr<AbstractSvxObjectTitleDescDialog> pDlg(pFact->CreateSvxObjectTitleDescDialog(
- pWin ? pWin->GetFrameWeld() : nullptr, aTitle, aDescription));
+ pWin ? pWin->GetFrameWeld() : nullptr, aTitle, aDescription, isDecorative));
if(RET_OK == pDlg->Execute())
{
@@ -591,8 +592,10 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq )
// handle Title and Description
pDlg->GetTitle(aTitle);
pDlg->GetDescription(aDescription);
+ pDlg->IsDecorative(isDecorative);
pSelected->SetTitle(aTitle);
pSelected->SetDescription(aDescription);
+ pSelected->SetDecorative(isDecorative);
// ChartListenerCollectionNeedsUpdate is needed for Navigator update
pDocSh->GetDocument().SetChartListenerCollectionNeedsUpdate( true );