On Fri, Apr 3, 2009 at 4:51 PM, Sebastian Patschorke
<[email protected]> wrote:

> what I want to do is finding a specific image in a text document. So I
> try to put a reference mark on an image. The best would be something
> with a caption in addition.
> Now I know that a reference mark is a separate text content. I thought,
> that I can add a reference mark to a text content.
> My question is, how can a set reference marks at images.
>
>


When you are adding the image to the document do a setName("yourName")
for the graphics Object.

Then to retrieve a specific image you can use the TextGraphicObjects /
TextGraphicObjectsSupplier to directly iterate and find the image you
want by name

http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Text/Shape_Objects_in_Text
http://api.openoffice.org/docs/common/ref/com/sun/star/text/TextGraphicObjects.html
http://api.openoffice.org/docs/common/ref/com/sun/star/text/XTextGraphicObjectsSupplier.html

ashok

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to