API-CHANGE - dropping string properties which use vnd.sun.star.GraphicObject URL

Miklos Vajna vmiklos at collabora.co.uk
Fri Aug 31 07:24:47 UTC 2018


Hi,

On Thu, Aug 30, 2018 at 09:39:18AM -0700, Pusteblumi <benbignoise at gmx.de> wrote:
>         ' Load the image into the internal bitmap table:
> 		
>         oBitmaps.insertByName( "OOoLilyPond", ConvertToURL(sFile) )  
> 	' Up to here, everything works fine.
> 		
>         sNewURL = oBitmaps.getByName( "OOoLilyPond" )   
> 	' This line causes the error "Incorrect property value". 
> 	' Thus the following lines are not executed.

The bitmap table gives you objects implementing the XBitmap interface,
not strings.

> 	oTextGraphic = oDoc.createInstance("com.sun.star.text.GraphicObject")
>         oTextGraphic.GraphicURL = sNewURL 

This is reasonable, sounds like
<https://gerrit.libreoffice.org/#/c/58745/> should be backported to 6.1.

Regards,

Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Digital signature
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20180831/d03a8219/attachment.sig>


More information about the LibreOffice mailing list