Ariel Constenla-Haile wrote:
>
> On Sunday 08 March 2009, 08:56, Ariel Constenla-Haile wrote:
>> Sure you google and found different ways of embedding a text graphic
>> object. The way I like the most is the following:
>>
>> instead of setting the GraphicURL property
>>
> http://api.openoffice.org/docs/common/ref/com/sun/star/text/TextGraphicObject.html#GraphicURL
>
> set the Graphic property
>>
> http://api.openoffice.org/docs/common/ref/com/sun/star/text/TextGraphicObject.html#Graphic
>>
>> Just replace in this example the property name and the object reference
>>
> http://svn.services.openoffice.org/opengrok/xref/DEV300_m42/odk/examples/java/Text/GraphicsInserter.java#155
>
> this example is for Writer of course. If you want a generic solution, use
> a
> com.sun.star.drawing.GraphicObjectShape
> http://api.openoffice.org/docs/common/ref/com/sun/star/drawing/GraphicObjectShape.html
>
> In this case, also set the css.graphic.XGraphic instead of the GraphicURL
> http://api.openoffice.org/docs/common/ref/com/sun/star/drawing/GraphicObjectShape.html#Graphic
> (do not follow the old work-around described in
> http://codesnippets.services.openoffice.org/Calc/Calc.InsertGfx.snip
> ...mmm this
> must be updated).
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>
>
> "Aus der Kriegsschule des Lebens
> - Was mich nicht umbringt,
> macht mich härter."
> Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
in this way, can the user now be able to remove the image from the document
if she wishes to, in the UI?
i need the image to be treated the same as when it is inserted in the normal
manner. you know, you can move it around the document, resize it anytime,
and delete it as well (using backspace or delete from the keyboard).
-----
"What cannot kill you will make you stronger."
--
View this message in context:
http://www.nabble.com/embedding-an-image-to-open-office-documents-tp22386730p22397303.html
Sent from the openoffice - api dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]