<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p> </p>
<p>When I think of UML, I think of a graphical representation. Your description leads me to believe that you will have a "text" representation. </p>
<p>My first thought was user defined attributes</p>
<p> </p>
<p>https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1xml_1_1UserDefinedAttributesSupplier.html</p>
<p> </p>
<p>OK, so what supports that? I did not look into it, but, some possibilities might include (assuming that my guesses from the link above are accurate), </p>
<p>1. A text section. I was hoping that a paragraph and it seems that it does NOT. You could create a new text section for each bit, since it looks like text section would contain this (but I did not verify). </p>
<p>2. Paragraph Style. The bad thing is that it looks like it would be on a style, so, you would need to create a new style for each item of interest. I have two comments on this. First, you could embed an XML UserDefinedAttributes for each paragraph style that you create. Second, you could embed simple information (maybe) into the style name. </p>
<p>3. You could place the UML into a text table with a "cell" for each identifiable part and place an attribute into each cell properties object. I have a simple example of this for a a Calc cell in OOME4, but I have not test run it against a text table cell. </p>
<p> </p>
<p>Is the user expected to edit this data in any way? If not, then you could embed the entire original UML as a user defined attribute as a single user defined attribute attached to some element (such as a style that is not otherwise used). </p>
<p>Your comments lead me to believe that you are not able to choose some formatted text method to embed the data of interest that might be bale to parse from regular text. </p>
<p> </p>
<p>No idea if this is of any use, but.... maybe. I have not tried any of these suggestions to make sure that they work. HTH. </p>
<p> </p>
<p>On 2018-07-24 7:20, MUNOZ JULHO Yupanqui wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><!-- meta ignored -->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 12.0pt; line-height: 106%; font-family: 'Times New Roman',serif; mso-fareast-language: EN-GB;">Hi everyone, <br /><br /> I am working with the Eclipse Papyrus team on a UML to odt generator. Besides one way generating, it should be able to handle bidirectional synchronization between these two "worlds". <br /> For reaching this goal, I need to map each model element with its respective doc element. For example, a package name will be transformed to a section in a document or a comment in a paragraph. I am looking for a way to reference the UML element from the odt document, for example adding the ID of the UML element to an odt "paragraph". <!-- o ignored --></span></p>
<p class="MsoNormal"><span style="font-size: 12.0pt; line-height: 106%; font-family: 'Times New Roman',serif; mso-fareast-language: EN-GB;">In the users mailing list, Regina Henschel, suggested me to use bookmarks. It is a good idea, but, if is possible, I want to hide this information.<br /><br /> Does anyone have another suggestion? <br /><br /> Best regards, <br /><br /> Yupanqui<!-- o ignored --></span></p>
<p class="MsoNormal"><!-- o ignored --> </p>
</div>
<!-- html ignored --><br />
<pre>_______________________________________________
LibreOffice mailing list
<a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a>
<a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice">https://lists.freedesktop.org/mailman/listinfo/libreoffice</a>
</pre>
</blockquote>
<p> </p>
<div> </div>

<img src="https://u2247537.ct.sendgrid.net/wf/open?upn=g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyhxHJP-2B0WQC7smBvVLKJK-2FDUuLyG48ugGmTTBdriBvxWo0XFqr8FXvXsdiLSQXTx-2BI95jMPSl-2FHxQl96iaCFc7krlNSWRNwSOxsxYGQk7yAQKVARqUC7RXJ-2F9YB6hdpDTMZoR8qf2tHullwu-2FGP7nfh322wbWgYE0OxXHSkWFaVuL4wc305oy-2FIZzfjfYNeBv" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>