Kaydet (Commit) aaac9378 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS qadev12 (1.3.2); FILE MERGED

2003/09/25 11:05:41 sw 1.3.2.1: #112174#
üst 7237da6d
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: SpellChecker.java,v $ * $RCSfile: SpellChecker.java,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change:$Date: 2003-09-08 11:58:57 $ * last change:$Date: 2003-10-06 13:33:05 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -69,6 +69,8 @@ import lib.TestEnvironment; ...@@ -69,6 +69,8 @@ import lib.TestEnvironment;
import lib.TestParameters; import lib.TestParameters;
import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.linguistic2.XLinguServiceManager;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
/** /**
...@@ -115,10 +117,13 @@ public class SpellChecker extends TestCase { ...@@ -115,10 +117,13 @@ public class SpellChecker extends TestCase {
(TestParameters tParam, PrintWriter log) { (TestParameters tParam, PrintWriter log) {
XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF();
XInterface oObj = null; XInterface oObj = null;
Object LinguServiceManager = null;
try { try {
oObj = (XInterface)xMSF.createInstance oObj = (XInterface)xMSF.createInstance
("com.sun.star.linguistic2.SpellChecker"); ("com.sun.star.lingu2.SpellChecker");
LinguServiceManager = xMSF.createInstance
("com.sun.star.linguistic2.LinguServiceManager");
} catch (com.sun.star.uno.Exception e) { } catch (com.sun.star.uno.Exception e) {
e.printStackTrace(log); e.printStackTrace(log);
throw new StatusException("Unexpected exception", e); throw new StatusException("Unexpected exception", e);
...@@ -128,6 +133,9 @@ public class SpellChecker extends TestCase { ...@@ -128,6 +133,9 @@ public class SpellChecker extends TestCase {
log.println("Implementation Name: "+Iname); log.println("Implementation Name: "+Iname);
TestEnvironment tEnv = new TestEnvironment(oObj); TestEnvironment tEnv = new TestEnvironment(oObj);
XLinguServiceManager xLinguServiceManager = (XLinguServiceManager) UnoRuntime.queryInterface(XLinguServiceManager.class, LinguServiceManager);
tEnv.addObjRelation("AlternativeChecker",xLinguServiceManager.getSpellChecker());
return tEnv; return tEnv;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment