VML import: handle <v:imagedata gain="..." blacklevel="...">co-21.06.10-1
commitf21f0f0ff656880149cfdfd34b8984c9541bca24
authorMiklos Vajna <vmiklos@collabora.com>
Thu, 16 Dec 2021 09:16:02 +0000 (16 10:16 +0100)
committerMike Kaganski <mike.kaganski@collabora.com>
Fri, 17 Dec 2021 10:57:24 +0000 (17 11:57 +0100)
treece3a3171c03a0f71d9b1931cb2ffd20d25f9b8c0
parentd382e7c1decd39c4f3d8a25ce4e808e79b516e68
VML import: handle <v:imagedata gain="..." blacklevel="...">

Map it to (the UNO API of) GraphicDrawMode::Watermark, similar to what
the binary import does in SvxMSDffManager::ImportGraphic() and how the
drawingML import does it in
oox::drawingml::GraphicProperties::pushToPropMap().

On export, the drawingML export is used, and that already maps
GraphicDrawMode::Watermark to <a:lum bright="70000" contrast="-70000">.

(cherry picked from commit 90556b6df0f6378fb60d7dee18b2f5d275ece530)

Conflicts:
oox/qa/unit/vml.cxx

Change-Id: I33986a03bf3d3863da5c5b1f0a2e0da0fa595c9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126949
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
include/oox/vml/vmlshape.hxx
oox/qa/unit/data/watermark.docx [new file with mode: 0644]
oox/qa/unit/vml.cxx
oox/source/vml/vmlshape.cxx
oox/source/vml/vmlshapecontext.cxx