RTF import: handle the pictureContrast and pictureBrightness shape props

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 18 January 2022 07:10 UTC

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().

Change-Id: I8023aa8fcbd086d4c7a30729e3ca615a7356da4b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128515

078d9da95f6e RTF import: handle the pictureContrast and pictureBrightness shape props
.../qa/cppunittests/rtftok/data/watermark.rtf | 47 ++++++++++++++++++++++
.../qa/cppunittests/rtftok/rtfsdrimport.cxx | 23 +++++++++++
writerfilter/source/rtftok/rtfsdrimport.cxx | 31 ++++++++++++++
3 files changed, 101 insertions(+)

Upstream: cgit.freedesktop.org


  • Share