Hi Dinesh, Dinesh Chothe wrote:
> I am doing like this for creating text documents object, > com.sun.star.text.XTextDocument xTextDocument > =(com.sun.star.text.XTextDocument)UnoRuntime.queryInterface( > com.sun.star.text.XTextDocument.class, > m_xFrame.getController().getModel()); > com.sun.star.text.XText xText = > xTextDocument.getText(); > > Now I am processing this xText object and some contents > from it. Then I wanted to use search() and replace() methods > such that searching string from newer xTextDocument and > replace on older xTextDocument. > For this how do I create clone of xTextDocument? or any > alternative way for doing this? > I don't understand why you need to clone the document to do searching and replacing but anyway, cloning is not possible, at least at the moment. Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]