New feature in Calc: Stepped Lines graphs

Michael Stahl mstahl at redhat.com
Thu Feb 21 09:01:42 PST 2013


On 21/02/13 15:43, Regina Henschel wrote:
> Michael Stahl schrieb:
>> On 20/02/13 22:11, Eric Seynaeve wrote:

>>> <style:style ...>
>>> <style:chart-properties chart:interpolation="gnm:step-end".../>
>>> </style:style>
>>>
>>> I guess the 'gnm:step-end' is a foreign element/attribute. Should I
>>> implement something similar for LO ? If yes, what to use instead of
>>> "gnm:". If no, can you point me in the right direction.
>>
>> if what you implement has the same semantics as what Gnumeric does (and
>> i think that's your goal) then it does make sense to use the same
>> foreign elements.
>>
>> you'd need to add a namespace declaration for the "gnm" prefix; look at
>> the xmlns:gnm="..." attribute that must be somewhere in the file (likely
>> on the root element).  you can add namespaces in
>> xmloff/inc/xmloff/xmlnmspe.hxx and SchXMLExport::SchXMLExport() in
>> xmloff/source/chart/SchXMLExport.cxx.
> 
> 
> I'm not sure whether the namespace it necessary for an attribute 
> _value_. Currently the attribute "chart:interpolation" allows only the 
> values none, cubic-spline and b-spline. Gnumeric does not introduce a 
> new attribute or element, but a new value for the attribute.

oops, i should have read more carefully - i completely missed that it's
a value that is "prefixed" :)

of course since Thorsten says it's already in ODF 1.3 it's best to just
use the values specified in that draft.




More information about the LibreOffice mailing list