Cor Nouws wrote:
Hi Alan,

Alan Yaniger wrote (19-10-2009 10:25)

How do I get the localized names of paragraph styles in a Writer document?

I can use the following macro code to get the *English* names of all paragraph styles in a document:


oFamilies = ThisComponent.StyleFamilies
oStyles = oFamilies.getByName("ParagraphStyles")
 mStyleNames = oStyles.getElementNames()


but I want the translated names.

The translated names are the property DisplayName of each member of the styles family. You have to loop over all the elements of the family to get the DisplayNames.


Sorry for the cross-posting, but I got no response on the l10n list.

This kind of question is best at its place on [email protected]
So maybe for a next time ;-)

Best regards,
Cor


Thanks, Cor. We'll try to mention this in the Basic Guide, on the wiki.

--
/tj/

T. J. Frazier
Melbourne, FL

(TJFrazier on OO.o)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to