To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=86190
------- Additional comments from [EMAIL PROTECTED] Tue Mar 18 15:59:37 +0000
2008 -------
It doesn't work with Java either:
/*
* OfficeUNOClientApp.java
*
* Created on 2008.02.18 - 16:38:53
*
*/
package com.example;
import com.sun.star.beans.PropertyValue;
import com.sun.star.uno.XComponentContext;
import com.sun.star.comp.helper.Bootstrap;
import com.sun.star.lang.Locale;
import com.sun.star.lang.XMultiComponentFactory;
import com.sun.star.linguistic2.XHyphenatedWord;
import com.sun.star.linguistic2.XLinguServiceManager;
import com.sun.star.uno.IQueryInterface;
import com.sun.star.uno.Type;
/**
*
* @author Lebedkov
*/
public class OfficeUNOClientApp {
/** Creates a new instance of OfficeUNOClientApp */
public OfficeUNOClientApp() {
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
try {
// get the remote office component context
XComponentContext xContext = Bootstrap.bootstrap();
String[] names = xContext.getServiceManager().
getAvailableServiceNames();
for (String n: names)
System.out.println(n);
XMultiComponentFactory sm = xContext.getServiceManager();
IQueryInterface iqi = (IQueryInterface)
sm.createInstanceWithContext(
"com.sun.star.linguistic2.LinguServiceManager",
xContext);
Class c = iqi.getClass();
System.out.println(c.getName());
for (Class intf: c.getInterfaces())
System.out.println("impl intf: " + intf);
Object obj = iqi.queryInterface(new Type(
"com.sun.star.linguistic2.XLinguServiceManager"));
XLinguServiceManager lsm = (XLinguServiceManager) obj;
Locale loc = new Locale("de", "DE", "");
XHyphenatedWord hw = lsm.getHyphenator().
hyphenate("Silbentrennung", loc, (short)0,
new PropertyValue[0]);
System.out.println(hw.getHyphenatedWord());
}
catch (java.lang.Exception e){
e.printStackTrace();
}
finally {
System.exit( 0 );
}
}
}
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]