https://bugs.documentfoundation.org/show_bug.cgi?id=119872
--- Comment #6 from Tomaz Vajngerl <[email protected]> ---
> (In reply to Oliver Brinzing from comment #4)
> I think that this API change produces a regression and the API should give
> another way to do the same thing. I suggest you to open a bug report for
> that.
No that's not a regression - it is an ESC approved API change. "GraphicURL"
properties have been deprecated and replaced by "Graphic" property.
"GraphicURL" properties are now write only (so you can create a Graphic by
specifying a external URL) but can't be read back because the
vnd.sun.star.GraphicObject internal URLs don't exist anymore so there is
nothing to return back.
To determine if a Graphic is internal or external there is now "Linked"
property on the Graphic object (XGraphic returned by "Graphic" property).
To change the graphic now you need load it with GraphicProvider::queryGraphic
and
add set "LoadAsLink" to true in the input parameter mediaProperties. Once the
graphic is loaded (you have the XGraphic object), you can set it using
"Graphic" property instead of "GraphicURL".
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs