On Apr 19, 2005, at 13:57, Henri Sivonen wrote:
How are the root CJK language and the root CTL language of the Writer document exposed in the API?
Ok. Found it.
XMultiServiceFactory xMultiServiceFactory = (XMultiServiceFactory) UnoRuntime.queryInterface(
XMultiServiceFactory.class, oHtmlDoc);
Object oCharStyle = xMultiServiceFactory.createInstance("com.sun.star.style.CharacterStyle") ;
xPropertySet = (XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, oCharStyle);Locale langWestern = (Locale) xPropertySet.getPropertyValue("CharLocale");
Locale langCjk = (Locale) xPropertySet.getPropertyValue("CharLocaleAsian");
Locale langCtl = (Locale) xPropertySet.getPropertyValue("CharLocaleComplex");
Interestingly enough, the "CharLocaleAsian" and "CharLocaleComplex" are not supported on the doc itself although "CharLocale" is.
-- Henri Sivonen [EMAIL PROTECTED] http://hsivonen.iki.fi/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
