diff options
author | Damjan Jovanovic <damjan@apache.org> | 2024-02-14 22:02:35 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-02-15 22:09:34 +0100 |
commit | 6c04b8356c0764ba8ac51448eee5ff577b08d9e2 (patch) | |
tree | 7d9e31d2f2266712a9b121d80014b23e1f990a9e /sot | |
parent | 70b287d599a2bbddd8c67f51809a0513c2bdb2e6 (diff) |
i#112829: offer svg as clipboard format as well
When copying charts, shapes, etc. out of LibreOffice, export them to
the clipboard in the (lossless) SVG graphics format as well.
This can be pasted into GIMP, Inkscape, and other apps, unlike our
current WMF/EMF clipboard formats which use private MIME types that
nothing supports.
(cherry picked from commit 61aee323790d0a1ed0745ee5a84b8885bcd0a559)
Change-Id: Ia32be448a096154bb092d49f372148c6b2263f35
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163412
Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/base/exchange.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx index 9777c3117917..edff7f7c63d6 100644 --- a/sot/source/base/exchange.cxx +++ b/sot/source/base/exchange.cxx @@ -200,6 +200,7 @@ const DataFlavorRepresentation* FormatArray_Impl() /*145 SotClipboardFormatId::RICHTEXT*/ { "text/richtext", "Richtext Format", &cppu::UnoType<Sequence<sal_Int8>>::get() }, /*146 SotClipboardFormatId::STRING_TSVC*/ { "application/x-libreoffice-tsvc", "Text TSV-Calc", &cppu::UnoType<OUString>::get() }, /*147 SotClipboardFormatId::PDF*/ { "application/pdf", "PDF Document", &cppu::UnoType<Sequence<sal_Int8>>::get() }, + /*148 SotClipboardFormatId::SVG*/ { "image/svg+xml;windows_formatname=\"image/svg+xml\"", "SVG", &cppu::UnoType<Sequence<sal_Int8>>::get() }, }; return &aInstance[0]; }; |