Writer shapes are implemented using SwXShape, Impress shapes use SdrGrafObj. So switch to working with the XShape interface, which is supported by both.
Also, don't work with the transformed graphic if it has the same checksum as the original graphic: the transformed graphic is not linked to the original JPG/PNG data.
Now selecting an image in Writer Online has the same speedup that Impress Online already had.
Change-Id: Iab2791c5f5c7a2754e3de0ebb2d6ea664f6c77e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89540
8fc1b60f62c2 sw SVG export: try to reuse original bitmap data for JPG and PNG bitmaps
filter/CppunitTest_filter_svg.mk | 47 ++++++++++++++++
filter/Module_filter.mk | 1 +
filter/qa/unit/data/preserve-jpg.odt | Bin 0 -> 10052 bytes
filter/qa/unit/svg.cxx | 100 +++++++++++++++++++++++++++++++++++
filter/source/svg/svgexport.cxx | 17 ++++--
filter/source/svg/svgwriter.cxx | 52 +++++++++---------
6 files changed, 185 insertions(+), 32 deletions(-)