diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-11-21 11:44:22 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-11-21 12:37:15 +0100 |
commit | 6c4f737ec88a4f4dc5da8b2295ca5e7de2d4c24f (patch) | |
tree | 2c378201a71937f9e80deb795d8e4079e3087fdb /offapi/com/sun/star/xml | |
parent | 6eac9deadd9fb6d0c547791e3a8ae4f9a4d33de4 (diff) |
DOCX drawingML shape import: fix position when CustomShapeGeometry is set
DOCX drawingML shapes had wrong position if they had their
CustomShapeGeometry set (e.g. flipped). This wasn't a problem for VML
shapes, as there the shape knows its position, and position was always
set in oox as well, not in writerfilter. However, in case of WPS shapes,
oox created the shape, and previously writerfilter set the position
after-the-fact. This leads to incorrect results if CustomShapeGeometry
is involved. Fix this by passing the position from writerfilter to oox,
and call setPosition() after creation, but before CustomShapeGeometry is
set.
The other problem was that normally writerfilter learns the position of
the shape when relevant token in GraphicImport::lcl_sprm() arrives, but
this happens after OOXMLFastContextHandlerShape::sendShape() needs that
information. Work around this by accessing the PositionHandler directly.
Change-Id: Iced35dc9467ef77c41f1897f124729f686bd045e
Diffstat (limited to 'offapi/com/sun/star/xml')
-rw-r--r-- | offapi/com/sun/star/xml/sax/XFastShapeContextHandler.idl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/offapi/com/sun/star/xml/sax/XFastShapeContextHandler.idl b/offapi/com/sun/star/xml/sax/XFastShapeContextHandler.idl index bd58164b6f0e..5ec7c88de1d6 100644 --- a/offapi/com/sun/star/xml/sax/XFastShapeContextHandler.idl +++ b/offapi/com/sun/star/xml/sax/XFastShapeContextHandler.idl @@ -42,6 +42,7 @@ interface XFastShapeContextHandler: com::sun::star::xml::sax::XFastContextHandle [attribute] com::sun::star::io::XInputStream InputStream; [attribute] string RelationFragmentPath; [attribute] long StartToken; + [attribute] com::sun::star::awt::Point Position; }; |