diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_forms/OCurrencyControl.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_forms/OCurrencyControl.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/qadevOOo/tests/java/mod/_forms/OCurrencyControl.java b/qadevOOo/tests/java/mod/_forms/OCurrencyControl.java index 6cbcb2de6bce..c3977ec7eb63 100644 --- a/qadevOOo/tests/java/mod/_forms/OCurrencyControl.java +++ b/qadevOOo/tests/java/mod/_forms/OCurrencyControl.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -167,7 +167,7 @@ public class OCurrencyControl extends TestCase { * can have only numeric values the relation must be specified. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -177,16 +177,16 @@ public class OCurrencyControl extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createControlShape(xTextDoc, 3000, - 4500, 15000, 10000, + XControlShape aShape = FormTools.createControlShape(xTextDoc, 3000, + 4500, 15000, 10000, "CurrencyField"); WriterTools.getDrawPage(xTextDoc).add((XShape) aShape); XControlModel the_Model = aShape.getControl(); - XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000, - 4500, 5000, 10000, + XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000, + 4500, 5000, 10000, "TextField"); WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2); @@ -195,7 +195,7 @@ public class OCurrencyControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the OCurrencyControl @@ -232,14 +232,14 @@ public class OCurrencyControl extends TestCase { tEnv.addObjRelation("XTextComponent.onlyNumbers", new Object()); // Adding relation for XWindow - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); tEnv.addObjRelation("XWindow.ControlShape", aShape); // Adding relation for XTextListener - ifc.awt._XTextListener.TestTextListener listener = + ifc.awt._XTextListener.TestTextListener listener = new ifc.awt._XTextListener.TestTextListener(); XTextComponent textComp = (XTextComponent) UnoRuntime.queryInterface( XTextComponent.class, oObj); |