At 13.02.2013 13:30, Robert Ševč ík (DIA) wrote:
On 2/12/2013, "Hans Breuer"<[email protected]> wrote:
[...]
Is it possible I missed something or is this supposed to work at all?
From your description I can not point out what is going wrong. Still the
feature works for me as intended so maybe you mixed up something.
Hi Hans,
Do you mean you can stick other shapes on a shape marked wit<can-parent
/> and the child shapes then appear in the sheet xml with<dia:childnode
parent="O*"/> ?
Sorry, I don't understand. The parent-child-relation you are refering to is
not stored in shape files. It also has nothing to do with the sheet file,
which basically is a list of shape references.
The parent-child-relation is stored in the diagram file. But it will only
be created if the there is an object involoved which support can-parent
like e.g. UML-LargePackage or an object from shape (modified with the
<can-parent /> notation.
Would you pass me a sample shape definition xml please?
Attached. If I've understood you correctly it should be the same you same
modification you did yourself.
HTH,
Hans
-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it. -- Dilbert
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns" xmlns:svg="http://www.w3.org/2000/svg">
<!-- Author: Alan Horkan, 2002, mailto:[email protected] -->
<name>Geometric - Perfect Square</name>
<icon>square.png</icon>
<connections>
<point x="4.5" y="2.45"/>
<point x="6" y="4"/>
<point x="4.5" y="4"/>
<point x="4.5" y="3.225"/>
<point x="6" y="2.45"/>
<point x="6" y="3.225"/>
<point x="5.25" y="4"/>
<point x="5.25" y="2.45"/>
<point x="4.5" y="2.45"/>
<point x="6" y="4"/>
<point x="4.5" y="4"/>
<point x="4.5" y="3.225"/>
<point x="6" y="2.45"/>
<point x="6" y="3.225"/>
<point x="5.25" y="4"/>
<point x="5.25" y="2.45"/>
<point x="5.25" y="3.225" main="yes"/>
</connections>
<can-parent/>
<aspectratio type="fixed"/><!-- NB: Aspectration must be fixed, do not change it -->
<svg:svg>
<svg:rect style="fill: default" x="4.5" y="2.45" width="1.5" height="1.55"/>
<svg:rect style="stroke: foreground" x="4.5" y="2.45" width="1.5" height="1.55"/>
</svg:svg>
</shape>
_______________________________________________
dia-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia