Hi Mathias, *,
On Mon, Feb 05, 2007 at 07:01:54PM +0100, Mathias Bauer
wrote:
> Alamo Vallejo, Joan wrote:
>
> > Is there a way to select the language the document
is written in when
> > you're loading the document? I want to have the
right spell checker set
> > already when the doc is loaded
>
> There is no such thing as a "document
language" in OOo.
Hmm - but how would you explain the setting Tools ptions
→ Languages →
Language Settings?
It has a "default language for documents" settings
that can be applied
to the current document only as well.
> The language the
> spell checker uses is a character attribute that (if no
setting has been
> applied by the user) is taken from the default
paragraph style.
Default paragraph style doesn't has a language set by
default.
> So if you load a document it has its "document
language" built in - it's
> the one stored in its default paragraph style.
No, it's not... (Organize tab of the style doesn't list
language
setting)
> How do you want to get the "document
language" instead?
I mentioned here recently that the documentation for
DocumentInfo
mentions a Language property that I would have expected to
be just that.
But api is broken and doesn't return that property.
http://qa.openoffice.org/issues/show_bug.cgi?id=26672
The default language is a
<dc:language>en-US</dc:language> property in
content.xml
ciao
Christian
--
NP: Linkin Park - Papercut
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe api.openoffice.org
For additional commands, e-mail: dev-help api.openoffice.org
|