Apache OpenOffice (AOO) Bugzilla – Issue 92001
A frame element shows replacement when there is no link to it
Last modified: 2017-05-20 11:18:12 UTC
The attached document contains a draw:frame in which there is one draw:object. The alternative draw:image element has been deleted. Despite this, when opening the document, the alternative representation is still shown. When I delete it from "ObjectReplacements" it is no longer shown. There seems to be an implicit reference to the replacement, which I think is not allowed according to the spec. The use-case is the transformation of an empty chart. After the transformation the chart is filled with data. When opening the document one has to double-click on it in order to see the filled chart. Until then the replacement image of the empty chart is shown.
Created attachment 55299 [details] The sample document
This draw:frame is an OLE object. The OLE object will always be shown by the replacement picture until the server application (in this case: OO Chart) has been called/opened by double-click. Only in this moment it is possible to update the view of the object.
Closed.
I disagree. First of all when the ObjectReplacements directory is not present the chart is shown without any double-click. Second, how can it know there is a replacement image in ObjectReplacements if there is no link to it in draw:frame? According to the spec object replacements are declared in the frame. It is obvious that only the interactive update of an embedded object is forseen in OpenOffice. Automatic generation of documents or automatic transformation of documents should be taken into account as well. Imagine a document with tens of charts is generated. Do you expect the user who wants to view it to double-click on all the charts?
There is another inconsistency which proves the double-click by the user is not always necessary. When I convert this document to Word 97 and PDF with UNO, I see that in the former case the replacement image is used, while in the latter the chart is rendered properly. The Word user will end up with an unrendered chart and is not able to activate it.
Reopened.
MRU->OD: At first to you.
Reset assigne to the default "issues@openoffice.apache.org".