Re: Can-parent shape info and function



At 13.02.2013 13:30, Robert Åevč Ãk (DIA) wrote:
On 2/12/2013, "Hans Breuer"<hans breuer org>  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

Attachment: square.shape
Description: Text Data



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