Hi Frank, while trying to a) make import of controls in Excel docs for calc a little better & b) trying to import vba Userforms ( and associated api )
http://qa.openoffice.org/issues/show_bug.cgi?id=38215 appeared on my radar again ;-), so I decided to try and fix it myself. I attached a patch ( and example doc ) to the issue, it provides support for the embedded images by using the GraphicObject ( goodies/inc/grfmgr.hxx ) and associated vnd.sun.star.GraphicObject scheme urls. Please have a look ( and try it out ). I do have some questions/queries etc. when looking at the patch you will see my silly comments about those ( actually the patch is quite small[*] so they are easy to spot ) As far as I can tell this patch covers all of the controls that allow you to set a graphic e.g. ( ImageControl, ImageButton & anything that is a clickable image e.g. an ordinary button with a graphic set ) or at least I tried those and it worked I enabled the link checkbox in the associated filechooser but disabled this for openoffice basic dialogs, some support code for openoffice dialog still needs to be done ( but.. it is on the way ) xml import/export works as before, a link to an image is still a relative url e.g. 'Pictures/100000xxxxxxx.jpg' is a non linked image located in the Pictures folder of the root document storage. Note: no new properties etc. are involved any I hope you aren't too unhappy with my approach and hopefully I can fix up anything you aren't happy about, look forward to hearing some comments Noel [*] the size of the patch is purely down to use of the GraphicObject ( and associated existing support for that ), you get so much for free, all of the xml import/export support, image uniqueness detection, read/write to document stream, url manipulatation foo etc. Note: My initial attempt was to create a new property holding an uno object that held both a reference to the document storage and a url but after a number of days hacking ( and a rather large patch ) I realised I was re-inventing many wheels --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]