summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-01-27 14:25:21 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-01-27 18:04:44 +0100
commit020c721fa937d63b2c1b1bf6185ce1060e630676 (patch)
tree7d3fe109dc7d4ed98fe64deb45927ee36b0bed45 /oox
parentfad5b7b9cf936bf6df49e2ac28977f350db24253 (diff)
PPTX filter: fix lost is-narration property for slide narrations
Otherwise removing narrations don't work in powerpoint, it would say there are no narrations, just plain media shapes. Change-Id: Ibd0478540ac018bc23f81223846518b3bf7c7c2a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110016 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'oox')
-rw-r--r--oox/source/ppt/timenode.cxx6
-rw-r--r--oox/source/ppt/timenodelistcontext.cxx2
2 files changed, 7 insertions, 1 deletions
diff --git a/oox/source/ppt/timenode.cxx b/oox/source/ppt/timenode.cxx
index 978c24a0eabe..5d7604ec0952 100644
--- a/oox/source/ppt/timenode.cxx
+++ b/oox/source/ppt/timenode.cxx
@@ -342,6 +342,12 @@ namespace oox::ppt {
xAudio->setHideDuringShow(bBool);
}
break;
+ case NP_ISNARRATION:
+ if (xAudio.is() && (aValue >>= bBool))
+ {
+ xAudio->setNarration(bBool);
+ }
+ break;
case NP_TARGET:
if (xParent.is() && xParent->getType() == AnimationNodeType::ITERATE)
diff --git a/oox/source/ppt/timenodelistcontext.cxx b/oox/source/ppt/timenodelistcontext.cxx
index d30e69f53be1..6ecd0985cd0a 100644
--- a/oox/source/ppt/timenodelistcontext.cxx
+++ b/oox/source/ppt/timenodelistcontext.cxx
@@ -174,7 +174,7 @@ namespace oox::ppt {
sal_Int32 aElement = getCurrentElement();
if( aElement == PPT_TOKEN( audio ) )
{
- // TODO deal with mbIsNarration
+ mpNode->getNodeProperties()[NP_ISNARRATION] <<= mbIsNarration;
}
else if( aElement == PPT_TOKEN( video ) )
{