[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Loading of embedded objects
From:       Jeremias Epperlein <jeeree () web ! de>
Date:       2009-09-09 18:05:47
Message-ID: f80fad6f0909091105y43105d3ey66d1eb3336b03494 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi everybody,

today there was a discussion in IRC about how to deal with embedded objects
in

ODF files. The correspondending section in the ODF specs is 9.3.3.

This is needed for saving formulas and charts in the shape (and to embedd

presentations, spreadsheets, ...). Objects are embedded in the following
way:

<draw:frame><draw:object>...</draw:object> </draw:frame>

Then either (1) ... is replaced by the object e.g.

<math:math><math:mn>12</math:mn></math:math>

or (2) there is a xlink atrribute to <draw:object> which links to a embedded


file in the ODF file. Both ways have to be supported. Up to now the
ChartShape

implements saving and loading of (2) but (1) is not supported.

I think there should be a common base class KoEmbeddedObjectShape maybe,

that implements both possibilities and uses writeODFEmbedded or something

to writeout the actual content of the object. The only problem with this

approach is, that all the shapes inheriting from it would have to register

for the loading of <draw:object> and maybe because of this there might be
some

interesting conflicts here.

Do we have any support for embedding presentations, text documents, ... (I

don't really now how this is supposed to work, e.g. which slide of a

presentation should be shown...). If not, are there any plans to implement

this?

Any other comments?

Greetings from Jerusalem

Jeremias

[Attachment #5 (text/html)]

<div dir="ltr">
<meta name="qrichtext" content="1"><meta http-equiv="Content-Type" \
content="text/html; charset=utf-8"><style type="text/css"> p, li { white-space: \
pre-wrap; } </style>
<p style="margin: 0px; text-indent: 0px;">Hi everybody,</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">today there was a discussion in IRC about \
how to deal with embedded objects in </p> <p style="margin: 0px; text-indent: \
0px;">ODF files. The correspondending section in the ODF specs is 9.3.3.</p> <p \
style="margin: 0px; text-indent: 0px;">This is needed for saving formulas and charts \
in the shape (and to embedd</p> <p style="margin: 0px; text-indent: \
0px;">presentations, spreadsheets, ...). Objects are embedded in the following \
way:</p> <p style="margin: 0px; text-indent: \
0px;">&lt;draw:frame&gt;&lt;draw:object&gt;...&lt;/draw:object&gt; \
&lt;/draw:frame&gt;</p> <p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">Then either (1) ... is replaced by the \
object e.g. </p> <p style="margin: 0px; text-indent: \
0px;">&lt;math:math&gt;&lt;math:mn&gt;12&lt;/math:mn&gt;&lt;/math:math&gt;</p> <p \
style="margin: 0px; text-indent: 0px;"></p> <p style="margin: 0px; text-indent: \
0px;">or (2) there is a xlink atrribute to &lt;draw:object&gt; which links to a \
embedded </p> <p style="margin: 0px; text-indent: 0px;">file in the ODF file. Both \
ways have to be supported. Up to now the ChartShape</p> <p style="margin: 0px; \
text-indent: 0px;">implements saving and loading of (2) but (1) is not supported.</p> \
<p style="margin: 0px; text-indent: 0px;"></p> <p style="margin: 0px; text-indent: \
0px;">I think there should be a common base class KoEmbeddedObjectShape maybe,</p> <p \
style="margin: 0px; text-indent: 0px;">that implements both possibilities and uses \
writeODFEmbedded or something</p> <p style="margin: 0px; text-indent: 0px;">to \
writeout the actual content of the object. The only problem with this </p> <p \
style="margin: 0px; text-indent: 0px;">approach is, that all the shapes inheriting \
from it would have to register</p> <p style="margin: 0px; text-indent: 0px;">for the \
loading of &lt;draw:object&gt; and maybe because of this there might be some</p> <p \
style="margin: 0px; text-indent: 0px;">interesting conflicts here.</p> <p \
style="margin: 0px; text-indent: 0px;"></p> <p style="margin: 0px; text-indent: \
0px;">Do we have any support for embedding presentations, text documents, ... (I </p> \
<p style="margin: 0px; text-indent: 0px;">don&#39;t really now how this is supposed \
to work, e.g. which slide of a </p> <p style="margin: 0px; text-indent: \
0px;">presentation should be shown...). If not, are there any plans to implement </p> \
<p style="margin: 0px; text-indent: 0px;">this?</p> <p style="margin: 0px; \
text-indent: 0px;"></p> <p style="margin: 0px; text-indent: 0px;">Any other comments? \
</p> <p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">Greetings from Jerusalem</p>
<p style="margin: 0px; text-indent: 0px;">Jeremias</p>
<p style="margin: 0px; text-indent: 0px;"></p></div>



_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic