[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

RE: [XaraXtreme-dev] XAR file groups misunderstanding



Hello Sandro,

Unfortunately, the information in the Xar format spec isn't totally
complete in this area.  While what you are generating is, strictly
speaking, a legal Xar format file, it breaks certain rules that Xara LX
relies on.  These rules are documented on this page:

http://www.xaraxtreme.org/developers/documentation/attribute_application
,_optimisation_and_integrity.html

In the section titled "The rules of attributes".

Specifically, in this case, the attributes applied to each line should
be children of the line so you would have:

Group
Down
Path
Down
Line colour
Line width
Up
Path
Down
Line colour
Line width
Up
Up

If all of the objects in the group use the same attribute (e.g. they all
have the same line width) then the line width can be moved up to be a
child of the group:

Group
Down
Line width
Path
Down
Line colour
Up
Path
Down
Line colour
Up
Up

I'll get the relevant bits copied into the Xar format spec as soon as
possible though arguably XaraLX should also have a mechanism to fix the
attribute placement in what are actually legal files.

Gerry

-----Original Message-----
From: owner-dev@xxxxxxxxxxxxxxxx [mailto:owner-dev@xxxxxxxxxxxxxxxx] On
Behalf Of Sandro Sigala
Sent: 21 July 2006 13:06
To: dev@xxxxxxxxxxxxxx
Subject: [XaraXtreme-dev] XAR file groups misunderstanding

Hello,

I have a small problem to understand the correct way to use the XAR
groups.

Please find attached a small test program that outputs a XAR document
with two lines (paths) with different colours.  The two lines are
grouped into a single group.

Xara LX displays correctly the output document but when you ungroup the
two objects they lose their properties (the blue line becomes red).

What I am doing wrong?  Sorry if I'm doing something stupid (witch I'm
sure)
but I don't get the point.

Regards,
Sandro