Matthias B. wrote:
It seems that the behaviour depends on the kind of text range I pass
in. If I use my TextRange directly, the created AutoText is
"text-only", if I wrap it in a TextCursor first, I get the complete
contents. Is this intentional? Is this documented somewhere?
Matthias
Hi,
the implementation of SwXAutoTextGroup::insertNewByName() tries to find
the implementation object of the supplied XTextRange. If it succeeds it
inserts the text with formatting. Otherwise it only inserts the string
provided by XTextRange::getString().
How do you create you TextRange?
Regards,
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]