Text on OLE objects?

Regina Henschel rb.henschel at t-online.de
Mon Sep 18 09:33:02 UTC 2017


Hi all,

Currently there is muddle in the UI and in code.

Insert a chart or Math object or an OLE to a foreign application, then 
click on it so that is gets green handles, then press F2 and enter text. 
That is the same behavior as for normal shapes, where you can add text 
to the shape that way. But when you save and reload the document, the 
text on the OLE is gone. (I think, there is no bug report yet.)

With AOO #i118485# the feature "text on Draw OLE shape" was introduced. 
But that has problems in file format, because it puts the text as 
<text:p> inside the <draw:object> element, which is not valid.
That was changed by moving the <text:p> one level up to the <draw:frame> 
object. But there it neither valid.
So with fdo#58571 the element was put into loext namespace, which 
results in a <loext:p> child element of the <draw:frame> element. But in 
ODF1.2 strict, you now get a <p> element without any namespace, so still 
not valid.

In the meantime it has been introduced, that the attribute 
draw:notify-on-update-of-ranges of the <draw:object> element is used. 
But currently it does not go to the <draw:object> element, but it goes 
to the <loext:p> element. The same happens with the draw:class-id 
attribute of the <draw:object-ole> element. That is tdf#112005. 
https://gerrit.libreoffice.org/#/c/42401/ has a fix for that. But it 
does not solve the problem, that you can enter text, which is gone after 
reload.

I wonder, whether it is good to allow at all text (via F2) on OLE 
objects. And in consequence, whether it would be better to remove this 
feature than to get all aspects fixed?

Kind regards
Regina


More information about the LibreOffice mailing list