diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-01-02 17:28:57 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-01-02 17:42:02 +0000 |
commit | 9d6a749bc664f1876c938afb9eba4adc9f6ee09a (patch) | |
tree | fcc75cd56bc7b134500a0bab5b7f093d07d92f32 /include | |
parent | d09888b835825085319d7b6855c3d5509539f42f (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>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/pdfextoutdevdata.hxx | 8 | ||||
-rw-r--r-- | include/vcl/pdfwriter.hxx | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/vcl/pdfextoutdevdata.hxx b/include/vcl/pdfextoutdevdata.hxx index 7095b9092dea..1a0c941eaef7 100644 --- a/include/vcl/pdfextoutdevdata.hxx +++ b/include/vcl/pdfextoutdevdata.hxx @@ -262,6 +262,10 @@ public: -1 if page id does not exist */ sal_Int32 CreateLink( const Rectangle& rRect, sal_Int32 nPageNr = -1 ); + + /// Create a Screen annotation. + sal_Int32 CreateScreen(const Rectangle& rRect); + /** Set the destination for a link <p>will change a URL type link to a dest link if necessary</p> @@ -293,6 +297,10 @@ public: -1 in case the link id does not exist */ sal_Int32 SetLinkURL( sal_Int32 nLinkId, const OUString& rURL ); + + /// Set URL for a Screen annotation. + void SetScreenURL(sal_Int32 nScreenId, const OUString& rURL); + /** Create a new outline item @param nParent diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index 67eee153f384..888cddb2380f 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -927,6 +927,9 @@ The following structure describes the permissions used in PDF security */ sal_Int32 CreateLink( const Rectangle& rRect, sal_Int32 nPageNr ); + /// Creates a screen annotation. + sal_Int32 CreateScreen(const Rectangle& rRect, sal_Int32 nPageNr); + /** creates a destination which is not intended to be referred to by a link, but by a public destination Id. Form widgets, for instance, might refer to a destination, without ever actually creating a source link to @@ -973,6 +976,10 @@ The following structure describes the permissions used in PDF security service; the result will then appear literally in the PDF file produced */ void SetLinkURL( sal_Int32 nLinkId, const OUString& rURL ); + + /// Sets the URL of a linked screen annotation. + void SetScreenURL(sal_Int32 nScreenId, const OUString& rURL); + /** Resolve link in logical structure If a link is created after the corresponding visual appearance was drawn |