Anyone got an idea here? As I said before the oGraphic Object I get is
of type TextContent. Is there a chance to go from here to the XGraphic?
I need the XGraphic in order to export the graphic with the
XGraphicProvider.storeGraphic(XGraphic, MediaProperties) method.
Jimmy schrieb:
Thanks for the snippet. I do get access to my graphics inside the
writer now document but I don't get any further than this with Java. I
do have the Graphic Object but now I need access to the
MediaProperties and get an XGraphic out of it to give it along to the
XGraphicProvider ....anyone got some Java clues there?
Object oGraphic = null;
XTextDocument xTextDocument = (XTextDocument) UnoRuntime
.queryInterface(XTextDocument.class, xComponent);
XTextGraphicObjectsSupplier xGraphicSupplier =
(XTextGraphicObjectsSupplier) UnoRuntime
.queryInterface(XTextGraphicObjectsSupplier.class,
xTextDocument);
XNameAccess xNamedGraphics = xGraphicSupplier.getGraphicObjects();
XIndexAccess xIndexedGraphics = (XIndexAccess) UnoRuntime
.queryInterface(XIndexAccess.class, xNamedGraphics);
oGraphic = xIndexedGraphics.getByIndex(0); // gets me the
first image object
... how can I get access to the XGraphic and MediaProperties of the
file now?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]