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


--
Cor Nouws
  - nl.OpenOffice.org marketing contact
  - Community Contributor Representative in the Community Council
Gevoel niet vrij te zijn? Zie www.nieuwsteversie.nl

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

Reply via email to