Giuseppe Bilotta <[EMAIL PROTECTED]> wrote in 
news:[EMAIL PROTECTED]:

> 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. 

But it is what we are talking about. A language _is_ a character 
attribute to OOo. A character style is a bundle of character attributes. 
Doing it with a macro lets me pick one attribute out of this bundle and 
apply it. 

> That would be like saying that you can use
> macros instead of styles all over the place. Which is
> *wrong*.

Why? It may be clunky, or inconvenient, but there's no deep reason why 
styles shouldn't be applied through a macro interface rather than the 
stylist. 

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

If that style changes the language, you _are_ then changing the 
charLocale of the selected text. 


Try it. Write a macro that selects all the words in a particular language 
-- whether or not they have been marked that way with a style. The only 
way to do so is to iterate through the text looking for a particular 
charLocale.  



-- 
Andrew Brown
The email in the header does not work.
Contact details and possibly useful macros from
http://www.darwinwars.com/lunatic/bugs/oo_macros.html


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

Reply via email to