Issue 57974 - Undocumented EnhancedCustomShape Structures
Summary: Undocumented EnhancedCustomShape Structures
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: sven.jacobi
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 08:37 UTC by satorisoon
Modified: 2013-02-24 21:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description satorisoon 2005-11-16 08:37:25 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.
Comment 1 jsc 2005-11-16 09:11:03 UTC
JSC -> SJ: it's probable yours
Comment 2 sven.jacobi 2005-11-16 11:04:08 UTC
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.
Comment 3 sven.jacobi 2005-11-16 11:04:23 UTC
closed