calligra:fill-style-name and friends

Thorsten Zachmann t.zachmann at zagge.de
Wed May 16 12:00:45 BST 2012


On Wednesday 16 May 2012 10:42:38 Jos van den Oever wrote:
> calligra:nodeTypes:
> -------------------
>     <draw:path draw:style-name="gr3" xml:id="shape-6" draw:id="shape-6" 
> draw:name="Polyline" draw:layer="" svg:width="153.47893439941pt" 
> svg:height="167.22812142334pt" svg:x="85.03980000000pt" 
> svg:y="187.10437857666pt" svg:viewBox="0 0 153 167" svg:d="M0 0L6.4601 
> 37.1456L72.4601 46.8956L83.7101 123.396L148.21 133.146L153.479
> 167.228L153.479  167.228" calligra:nodeTypes="ccccccc"/>
> (after loading and saving viewbox-loading.odp)

The calligra:nodeTypes do specify if the node type of the point in a path. So 
each point in the svg gets a letter in nodeTypes.

c: normal point
s:  smooth, both control points on a line through the point 
(KoPathPoint::IsSmooth)
z: symmetric, like smooth but control points have same distance to point 
(KoPathPoint::IsSymmetric)

It is used in the tags draw:path shapes and draw:contour-path.

This helps to keep the nodes of the path to have the same features when 
saving. A application not supporting the value can still read and display the 
object correctly. When reading the nodeTypes the user interface uses different 
modification strategies when other types then c is given.

inkscape uses a similar tag with the same semantic at least at the time I 
created it.

Thorsten



More information about the calligra-devel mailing list