Friday, October 28, 2005 Andrew Brown wrote:

> but you can!

> Sub SetSwedish
> dim aLocale as new com.sun.star.lang.Locale
> aLocale.Language="sv"
> aLocale.Country="SE"
> oDoc=thiscomponent
> otext=oDoc.getCurrentController.getViewCursor().getText
> oTC=oText.createTextCursorByRange(otext)
> ' Xray.Xray(oTC)
> oTC.charLocale=aLocale
> end Sub


> if you don't mind Swedish instread of Greek :-)

As far as I see, this is just hardcoding the language, so
it's not about the use of Styles. And this is not what we're
talking about. That would be like saying that you can use
macros instead of styles all over the place. Which is
*wrong*.

The question is: what happens if instead of changing
the oTC charLocale you apply some style?

-- 
Giuseppe "Oblomov" Bilotta


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to