I must be missing something there too because when I try to run any of
the GetText macros I get an error at
Sub MakeLogHeadLine(HeadText as String)
oLogCursor.CharStyleName = "Log Header"
I get a Basic runtime error because this object variable is not set.
Even if it did work, I don't see how it really help me. It only
enumerates all graphic objects, but does not seem to have a way of
telling me where in the stream of paragraphs a graphic anchored at a
paragraph is located. If I use the builtin export to html, the exporter
seems to be able to put the graphic in the right place, so somebody must
know how to do it.
Ian
On Wed, 2006-10-25 at 09:09 +0200, Fernand Vanrie wrote:
> Have a look at the OO-macros Gimmicks GetTexts
>
> Fernand
>
>
> Cor Nouws schreef:
> > Ian Shields wrote:
> >
> >> I'm investigating writing a filter using Java and UNO. So far, I can
> >> iterate over text in a writer document, but I'm having trouble with
> >> graphics. I can use an XTextCursor to create an
> >> XContentEnumerationAccess and then find TextContent items using
> >> XEnumeration xTextContentEnum = xTextContentAccess
> >> .createContentEnumeration("com.sun.star.text.TextContent");
> >>
> >> But I'm baffled as to how to pick up graphics that are anchored at a
> >> paragraph as I iterate through a document. Is there a general
> >> methodology for a filter to iterate over ALL the content of a Writer
> >> document in order?
> >>
> > I'm only able to help a little. AFAIK you should find it in the
> > DrawPage of the document.
> >
> > Regards,
> > Cor
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
Ian Shields <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]