Ian Shields schreef:
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.
Do's a great job for us, just tweak the macro to your envoriment
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.
You can find in the object propertys there X-Y position
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.
Translate the xml-structure to your needs (i supose) or even better get
a look at the super exellent Writter2LaTex - java -application from
Henrik Just
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]