[PATCH] Import bezier curves from .docx.

Eilidh McAdam (via Code Review) gerrit at gerrit.libreoffice.org
Wed Sep 19 02:14:13 PDT 2012


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/649

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/49/649/1

Import bezier curves from .docx.

A shape element with a path attribute is interpreted as a bezier. We can
support both curve and line commands by using the correct co-ordinate
flags when using the UNO interface (omit control points for lines).
Alternatively, curves may be specified using the to, from, control1 and
control2 attributes of a curve element.

Note that when setting the PolyPolygonBezier property of the xshape, the
shape size and position are set too large somehow. The workaround for
now is manually forcing the pre-calculated shape size and position.

Change-Id: If3563474df357d161a2ed2e7a20856d5aed80a94
---
M oox/inc/oox/vml/vmlshape.hxx
M oox/inc/oox/vml/vmlshapecontext.hxx
M oox/source/token/properties.txt
M oox/source/vml/vmlshape.cxx
M oox/source/vml/vmlshapecontext.cxx
5 files changed, 138 insertions(+), 2 deletions(-)


--
To view, visit https://gerrit.libreoffice.org/649
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If3563474df357d161a2ed2e7a20856d5aed80a94
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Eilidh McAdam <eilidh.mcadam at gmail.com>



More information about the LibreOffice mailing list