Apache OpenOffice (AOO) Bugzilla – Issue 57974
Undocumented EnhancedCustomShape Structures
Last modified: 2013-02-24 21:07:59 UTC
Components : com.sun.star.drawing.EnhancedCustomShape(Path|Segment) The mapping between svg-enhanced-path commands ( M,L,A...) and "segments" command reference numbers ( integers) accessed through the API is undocumented. The number of parameters pair for each segment command is also undocumented. As the semantic of the Custom Shape implementation is slightly different from the Opendocument structure , ie it separates the svg path in two data structures ( coordinates and segments) , it could benefit a little documentation.
JSC -> SJ: it's probable yours
Yes, the Coordinates and Segments properties of the EnhancedCustomShapePath are combined within svg-enhanced-path, we made this to have a similar syntax as it is used in the standard svg path. I think that the OpenDocument structure is documented enough. And I agree that our documentation for the CustomShapes API is a little bit insufficient, but our CustomShapes are new and so the API might change. I disagree that documentation how to map between file format and core objects is necessary, I think this has never be done before, but you can take a look at following two files, the code is self-explanatory. xmloff/source/draw/shapeexport4.cxx (ImpExportEnhancedPath) xmloff/source/draw/ximpcustomshape.cxx (GetEnhancedPath) If you do not have further objections, I will close this issue.
closed