Hello,
I've found out now, that I'm duplicating the StyleGraphicPropertiesElement.
Using
GraphicProperties writableGraphicsProperties =
styleHandler.getGraphicPropertiesForWrite();
I can get access to some very basic attributes, but the
StyleGraphicPropertiesElement is not accessible.
How can I get it, so I don't have to create my own?
Kind regards
Peter
Am 10.01.2017 um 13:41 schrieb Peter Nabbefeld:
Hello all,
I'm new to this list, I've joined the list because I've seen the
following misbehaviour related to images:
In my document I add an image to a paragraph contained to a table cell:
Image image = Image.newImage(para, new
URI(imgParams.get("uri")));
FrameStyleHandler styleHandler = image.getStyleHandler();
OdfContentDom styles = para.getOwnerDocument().getContentDom();
StyleGraphicPropertiesElement gProperties = new
StyleGraphicPropertiesElement(styles);
[...]
gProperties.setStyleFlowWithTextAttribute(false);
writableStyleProperties.appendChild(gProperties);
Though the property is set to "false", the resulting content includes
the property as "true". I'm even more uncomfortable with this, as
LibreOffice does not behave correctly after unsetting this property
manually, but only after reloading. As I'm new to the toolkit, it's
also possible that I've misconfigured sth. - If so, do You probably
know what?
Another problem I've noticed: When creating the odt file
programmatically, I can open the properties dialog only for some "card
tabs", but not for the image details alltogether. Do I have to do some
special configuration?
Kind regards
Peter