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@gmail.com>
Context
- [PATCH]  Import bezier curves from .docx. · Eilidh McAdam (via Code Review)
 
   
 
  Privacy Policy |
  
Impressum (Legal Info) |
  
Copyright information: Unless otherwise specified, all text and images
  on this website are licensed under the
  
Creative Commons Attribution-Share Alike 3.0 License.
  This does not include the source code of LibreOffice, which is
  licensed under the Mozilla Public License (
MPLv2).
  "LibreOffice" and "The Document Foundation" are
  registered trademarks of their corresponding registered owners or are
  in actual use as trademarks in one or more countries. Their respective
  logos and icons are also subject to international copyright laws. Use
  thereof is explained in our 
trademark policy.