Apache OpenOffice (AOO) Bugzilla – Issue 112442
unify svg:d im/exporters
Last modified: 2017-05-20 11:33:40 UTC
AW: Currently we have (a) the SdXMLImExSvgDElement helper in xmloff which converts between com::sun::star::drawing::PointSequenceSequence, com::sun::star::drawing::FlagSequenceSequence and svg:d string and (b) importFromSvgD/exportToSvgD in basegfx which convert directly between B2DPolyPolygon and svg:d string. There are reasons to change that: - functionality is double - (b) supports svg:d's 'a'/'A' statement - (b) supports double precision There are reasons to do that for 3.4 (not 3.3): - too dangerous to change now, should be done after next split - double precision (not yet in API, though) - use B2DPolyPolygon to scale plygons to svg:ViewBox (there is a task asking for this, too) - need to support svg:d's 'a'/'A' (#i41438#)
AW: Hint: there are alredy converters SvxConvertPolyPolygonBezierToB2DPolyPolygon and SvxConvertB2DPolyPolygonToPolyPolygonBezier in svx, should move to basegfx (canvastools.hxx/cxx?).
@aw: let's move the discussion from issue 41438 over here - no, did not do very thorough testing of my patch, besides my usual bunch of Draw files. Especially did not check roundtripping/round-off/older versions. Patch needs to be hoisted to dev300 (can do over WE), but kinda missed feature freeze for 3.3 is next week, so maybe 3.4 is indeed a better idea.
repeating patch url here: http://users.freedesktop.org/~thorsten/svg-compat.diff
AW: Okay, target 3.4 agreed...
AW->CL: Any plans to get API for polygons to double precision...?
ALG: There is one more svg:d creator in filter/source/svg/svgwriter.cxx for Svg export.
Changing Product to Drawing to make it more visible in searches.
Reset assigne to the default "issues@openoffice.apache.org".