Message de Finn Gruwier Larsen  date 2007-09-30 22:21 :
Hi,
Hi,

I hope I'm hitting the right mailing list...
probably not, it's more an API stuff >> [EMAIL PROTECTED]
Or ask at www.oooforum.org section Macros


I have a problem accessing the SpellChecker service in the API from Python.
(...)
spellchecker = smgr.createInstanceWithContext( "com.sun.star.linguistic2.XSpellChecker", context)

You cannot invoke a service with the name of an interface.
This code should be better :
spellchecker = smgr.createInstanceWithContext( "com.sun.star.linguistic2.SpellChecker", context)

locale = smgr.createInstanceWithContext( "com.sun.star.lang.Locale", context)

You want to create a structure, not invoke a service.
This code should be better:
locale = uno.getClass("com.sun.star.lang.Locale")

For the rest, I know nothing about spellchecker...
______
Bernard

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

Reply via email to