diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-01-02 17:28:57 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-03-14 10:06:56 +0100 |
commit | f96f3ccdeedf0ab488cc2b9fba4a63218d6ba6c0 (patch) | |
tree | 1419594f2e93f616c8e5056e4562a4829eb7901c /sd | |
parent | 1cfd5eba46f36625a1632d372d9aa7e236161585 (diff) |
tdf#104841 sd PDF export: handle linked videos
Use the screen annotation markup for this purpose.
Change-Id: I129111cbe08c19c2f3b3ae046408ff9b2a28520c
Reviewed-on: https://gerrit.libreoffice.org/32654
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 9d6a749bc664f1876c938afb9eba4adc9f6ee09a)
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 3199294f624f..338df9a25769 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -1668,6 +1668,18 @@ void ImplPDFExportShapeInteraction( const uno::Reference< drawing::XShape >& xSh awt::Size aShapeSize( xShape->getSize() ); Rectangle aLinkRect( Point( aShapePos.X, aShapePos.Y ), Size( aShapeSize.Width, aShapeSize.Height ) ); + // Handle linked videos. + if (xShape->getShapeType() == "com.sun.star.drawing.MediaShape") + { + OUString aMediaURL; + xShapePropSet->getPropertyValue("MediaURL") >>= aMediaURL; + if (!aMediaURL.isEmpty()) + { + sal_Int32 nScreenId = rPDFExtOutDevData.CreateScreen(aLinkRect); + rPDFExtOutDevData.SetScreenURL(nScreenId, aMediaURL); + } + } + presentation::ClickAction eCa; uno::Any aAny( xShapePropSet->getPropertyValue( "OnClick" ) ); if ( aAny >>= eCa ) |