diff options
author | Tünde Tóth <toth.tunde@nisz.hu> | 2021-11-30 11:59:55 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2022-01-03 13:37:29 +0100 |
commit | 87db920b141fe9846cbd1b37fff3a9806a9b5c2d (patch) | |
tree | 197004c5fe459965dce715c1a6afc7f6c2b79016 /oox | |
parent | ad51b6c85da5fd2e12130f453bcd5dbc8bf83f0e (diff) |
tdf#98736 OOXML export: keep CaptionShape as TextShape
Caption shapes were lost during OOXML export. As a
workaround, export them as text shapes, losing
only the leader lines, but not their text shapes and
text content.
Change-Id: I372708fa4c9356c807a0a239c722691fd88ec1a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126123
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/shapes.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index 35b7a4bd4c9d..997a6e949b76 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -1668,6 +1668,11 @@ static const NameToConvertMapType& lcl_GetConverters() { static NameToConvertMapType const shape_converters { + // tdf#98736 export CaptionShape as TextShape, because it is non-ooxml shape and + // we can't export this shape as CustomShape + // TODO: WriteCaptionShape + { "com.sun.star.drawing.CaptionShape" , &ShapeExport::WriteTextShape }, + { "com.sun.star.drawing.ClosedBezierShape" , &ShapeExport::WriteClosedPolyPolygonShape }, { "com.sun.star.drawing.ConnectorShape" , &ShapeExport::WriteConnectorShape }, { "com.sun.star.drawing.CustomShape" , &ShapeExport::WriteCustomShape }, |