Create a sheet with predefined objects



Hi

I would like to know if it's possible to add some parameters to an object inside a sheet by editing the xml file.
I explain : I want to add a STATE button inside my sheet but i want this state add a specific name or others attributes.

For exemple :
This a sheet file :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sheet xmlns="http://www.lysator.liu.se/~alla/dia/dia-sheet-ns">
<!--Dia-Version: 0.96.1-->
<!--Fichier : d:\Documents and Settings\s0019218\.dia\sheets\SCXML.sheet-->
<!--Date : Mon Apr 20 14:49:31 2009-->
<!--Pour : s0019218-->

<name>SCXML</name>
<description></description>
<contents>
<!--ajoutez des formes ici-->
<object name="UML - State"><description>State</description></object>
<object name="UML - Transition"><description>Transition</description></object>
<object name="UML - State Term"><description>Initial/end state</description></object>
<object name="UML - Note"><description>Note</description></object></contents></sheet>
</object>

And this what I whant to do : (to specify an entry action to my state)

<name>SCXML</name>
<description></description>
<contents>
<!--ajoutez des formes ici-->
<object name="UML - State"><description>State</description><dia:attribute name="entry_action">
  <dia:string>#method#</dia:
string>
</dia:attribute>

</object>
<object name="UML - Transition"><description>Transition</description></object>
<object name="UML - State Term"><description>Initial/end state</description></object>
<object name="UML - Note"><description>Note</description></object></contents></sheet>
</object>

Do you understand my problem ?

Thanks, David.


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