On Apr 19, 2005, at 15:21, Henri Sivonen wrote:

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");

These properties turned out to be read only. How do I set the root CJK language and the root CTL language?


--
Henri Sivonen
[EMAIL PROTECTED]
http://hsivonen.iki.fi/


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



Reply via email to