Hi, On Tue, Sep 24, 2013 at 08:13:30PM +0300, K.Misha wrote: > One more question... before changing text i have this: > xTextCursor->setString(wVal); > after this code all tables and other styles were deleted. How can i change > text without deleting it?
please read the API documentation: http://www.openoffice.org/api/docs/common/ref/com/sun/star/text/XTextRange.html#setString "the whole string of characters of this piece of text is replaced. All styles are removed when applying this method." You need to use css::text::XSimpleText::insertString(), vid. http://www.openoffice.org/api/docs/common/ref/com/sun/star/text/XSimpleText.html#insertString Regards -- Ariel Constenla-Haile La Plata, Argentina
pgpKYXWcVbLiN.pgp
Description: PGP signature
