Hi,
Peter Eberlein-3 wrote: > > For me that worked fine, maybe your XTextRange spans over a wide range > (including other content)? > For this case I propose to iterate over TextPortions, > That's right, the XTextRange spans over text and frames. I found the solution: I iterate over paraghraphs and use XContentEnumerationAccess. I create a content enumeration of "com.sun.star.text.TextContent" and the I check if the object supports service "com.sun.star.text.TextFrame". If it does, I query for the XTextFrame. It works!!! Thanks for you help, Ewa -- View this message in context: http://www.nabble.com/Finding-text-frames-in-selected-textrange-tp23962545p23998931.html Sent from the openoffice - sw dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
