Hi, >> Because the numbering character and delimiter can be more or less >> anything (if user-defined), it's impossible to universally strip them >> off (especially as the delimiter can be omitted). >> >> Is there any way of getting just the string? Any help will be greatly >> appreciated, as I really need this and I've been going in circles with >> the issue. >> > > I think you've to enumerate your Paragraph: > > '------------------------- > sub testParaNumberRules > doc = thiscomponent > texto = doc.getText() > enum = texto.createEnumeration() > while enum.hasMoreElements() > txt = enum.nextElement() > nrules = txt.NumberingRules > if not IsEmpty(nrules) Then > enum2 = txt.createEnumeration() > paraString = "" > ' get all TextPortions > while enum2.hasMoreElements() > portion = enum2.nextElement() > paraString = paraString & portion.getString() > wend > print paraString > end if > wend > end sub > '-------------------------
Thanks a lot, I'll look into using this approach! > Here's a issue about: > http://www.openoffice.org/issues/show_bug.cgi?id=68511 I'm sort of glad it's a bug - I was starting to think there's something wrong with me :) Doesn't look like there's much happening around it, but I've just voted for it anyway. Thanks again for your help. Cheers, Zbigniew Banach --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
