Apache OpenOffice (AOO) Bugzilla – Issue 38215
Image in image control should be embedded
Last modified: 2013-02-24 21:07:48 UTC
As discussed in a private conversation. Current Behavior The image associated with an Image/ImageButton Control ( in FormControls & Dialogs ) is referenced always as a link. The has obvious disadvantages when transferring documents as the image exists externally. The has also implications regarding import of ms documents where images are stored internally in the document, its easy to imagine that in the case of Dialogs ( UserForms ) that images would be present for instance for branding purposed. Desired Behavior That images associated with these controls ( Image & ImageButton ) to be optionally be embedded in the document. Currently in the FilePicker a check box exists to allow such a differentiation but is not used ( its disabled ). The api and underlying code to be modified to cater for optional embedding of the image based on the user selection.
fs->npower: Sorry, I looked into this topic, and it seems there is no infrastructure present for embedding arbitrary streams into existing documents (which would be necessary for your importer to store the image within the document package, and for my form control to access it on runtime). Given the current phase towards 2.0, I have no choice but to retarget this to "OOo Later". Additionally setting the "ms_interoperability" keyword.
Images on ImageButtons are not portable to another system. I tried to develop a form in Base 2.3.0 with ImageButtons. At another system I opened the file and saw blank ImageButtons. The images were in the same directory as the Base *.odb on both systems. Robert
Created attachment 55358 [details] patch file
Created attachment 55359 [details] example doc with some image using controls
Frank I supposed you would want to discuss this in the list so I forward some more detail there
Created attachment 55605 [details] new version of patch
Created attachment 55606 [details] new version of document
I created a new version of the document because it seems that there was a stray href with a Package url format ( that was causing at least one assertion ) on load. Most probably this is an artifact of an early attempt at creating a test document ( because initially I didn't have import/export support and was handcrafting the document )
Created attachment 55908 [details] latest version ( review comments incorporated ) patch
Created attachment 56238 [details] latest patch file
patch committed to CWS dba31c. Noel: Thanks!
Created attachment 56315 [details] minimalistic sample for image controls in database documents
fs->msc: please verify in CWS dba31e
verified in CWS dba31e find more information about this CWS, like when it is available in the master builds, in EIS, the Environment Information System: http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Fdba31e
This issue is closed automatically. It should be fixed in a version with is available for longer than half a year (OOo 3.1). If you think this issue isn't fixed in the current version (OOo 3.2) please reopen it. But then please pay attention about the field 'target milestone'. The closure was approved by the Release Status Meeting at 22nd of February 2010 and it is based on the issue handling guideline for fixed/verified issues : http://wiki.services.openoffice.org/wiki/Handle_fixed_verified_issues