<br><div class="gmail_quote"><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">Yian Shang <<a href="mailto:yian.shang@gmail.com" target="_blank">yian.shang@gmail.com</a>> napsal(a):<br>





<div><br>
> I just read through some of the comments on the schema output request and I<br>
> was wondering if there were other export formats besides dia, svg and eps (I<br>
> think dia itself can convert to both svg and eps) needed? Like perhaps<br>
> exports for other uml diagram tools?<br>
<br>
</div>Adding more formats can be useful, however the current list include two<br>
formats mostly used for embedding graphics into documents (svg and eps)<br>
and dia format as one which can be easily edited, what I think it good<br>
starting point.<br><br>
The current generator is quite heavily bound to PDF and it will require<br>
lot of changes to make it more generic.<br></blockquote><div><br>Yeah, I looked through the current generator some more and most of the code for the PDF export seems to be focused on exporting the data rather than the schema. <br>



</div>


</div><br>I think, however, the generic class structure for the dia xml export would be similar to he PDF/XML export, as there'd be functions generating headers and footers as well as functions to handle the different types of objects (arrows, boxes, etc) and to handle the relative locations/colors of all uml objects on the grid. Then the function that determines the schema would call each of these auxiliary functions to put the schema into place.<br>


<br>A similar thing could be done for exporting to svg and eps.<br><br>Finally, for organization, would there be some sort of overall class that handles processing the schema and then have subclasses for each different format (xml, svg, eps) that takes care of the details of outputting the schema as a diagram? So the overall class might have functions like "determine_schema" whereas each subclass would have "draw_arrow", "draw_box" (which write the xml), etc. Would something like that work?<br>
<br>--<br>Yian Shang<br>