diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
commit | 1b12b332a9ff0c44b19f7f4f0c76b3f8ee534fc7 (patch) | |
tree | f951731fcd4f0c17dd7a55b154be238cb2b71bae /qadevOOo/tests/java | |
parent | 42e0579442c805df41454461d17cdede43c47b6a (diff) |
recreated tag libreoffice-3.3.3.1 which had these commits:
commit aec86c5680a68c65de8537b8a83a16e8d90cfdd9 (tag: refs/tags/libreoffice-3.3.3.1)
Author: Petr Mladek <pmladek@suse.cz>
Date: Tue May 31 17:39:08 2011 +0200
Version 3.3.3.1, tag libreoffice-3.3.3.1 (3.3.3-rc1)
Notes
split repo tag: testing_libreoffice-3.3.3.1
split repo tag: testing_libreoffice-3.3.4.1
Diffstat (limited to 'qadevOOo/tests/java')
1366 files changed, 6308 insertions, 6308 deletions
diff --git a/qadevOOo/tests/java/complex/unoapi/CheckModuleAPI.java b/qadevOOo/tests/java/complex/unoapi/CheckModuleAPI.java index bf05553bcb6d..4c4bf76610d1 100644 --- a/qadevOOo/tests/java/complex/unoapi/CheckModuleAPI.java +++ b/qadevOOo/tests/java/complex/unoapi/CheckModuleAPI.java @@ -2,7 +2,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 @@ -79,9 +79,9 @@ public class CheckModuleAPI extends ComplexTestCase /** * Initialize the test environment. * This method checks for all neccesarry parameter and exit if not all parameter are set. - * - * Further this method starts an office instance and gets the office some more time to start. This is because - * some freshly installed offices don not have such a user tree. The office will create it on its first start, + * + * Further this method starts an office instance and gets the office some more time to start. This is because + * some freshly installed offices don not have such a user tree. The office will create it on its first start, * but this will take some time. * Note: This funktionality is only reasonable with parameter <CODE>-noOffice true</CODE> */ @@ -417,9 +417,9 @@ public class CheckModuleAPI extends ComplexTestCase } /** - Some modules contains more the one project. This methods translates given project paramater to the + Some modules contains more the one project. This methods translates given project paramater to the * correspind module name. - * + * * fwk -> framework * fwl -> framework * sch -> chart2 @@ -531,8 +531,8 @@ public class CheckModuleAPI extends ComplexTestCase /** * This function generates a list of modules to test and call <CODE>checkModule</CODE> for every module. * <p> - * - * @param module names to test. This could be + * + * @param module names to test. This could be * <ul> * <li>a comma separated list of modules like 'sw,sc,sd'</li> * <li>'all' to test all modules </li> @@ -547,7 +547,7 @@ public class CheckModuleAPI extends ComplexTestCase DescEntry entry = null; module = module.trim(); - /* + /* all: check all modules which contains a qa/unoapi folder auto: check all modules which contains a qa/unoapi folder except the module is not added */ diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessible.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessible.java index f4f302114c9d..0fe7c890e378 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessible.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessible.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 diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleAction.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleAction.java index f9ef9e52c1e6..8518931c03c2 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleAction.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleAction.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 diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java index c5e302451c21..958d703047dd 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleComponent.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 @@ -84,7 +84,7 @@ public class _XAccessibleComponent extends MultiMethodTest { int curX = 0; //while (!oObj.containsPoint(new Point(curX, bounds.Y)) && curX < bounds.Width+bounds.X) { - while (!oObj.containsPoint(new Point(curX, 0)) && + while (!oObj.containsPoint(new Point(curX, 0)) && (curX < bounds.Width)) { curX++; } @@ -93,7 +93,7 @@ public class _XAccessibleComponent extends MultiMethodTest { //if ((bounds.X <= curX) && (curX < bounds.Width+bounds.X)) { if (curX < bounds.Width) { - log.println("Upper bound of box containsPoint point (" + curX + + log.println("Upper bound of box containsPoint point (" + curX + ",0) - OK"); } else { log.println( @@ -104,9 +104,9 @@ public class _XAccessibleComponent extends MultiMethodTest { curX = 0; //while (!oObj.containsPoint(new Point(curX, bounds.Y+bounds.Height - 1)) - while (!oObj.containsPoint(new Point(curX, bounds.Height - 1)) && + while (!oObj.containsPoint(new Point(curX, bounds.Height - 1)) && (curX < bounds.Width)) { - log.println("containsPoint returns false for (" + curX + "," + + log.println("containsPoint returns false for (" + curX + "," + bounds.Height + ")"); curX++; } @@ -115,7 +115,7 @@ public class _XAccessibleComponent extends MultiMethodTest { //if ((bounds.X <= curX) && (curX < bounds.Width+bounds.X)) { if (curX < bounds.Width) { - log.println("Lower bound of box containsPoint point (" + curX + + log.println("Lower bound of box containsPoint point (" + curX + "," + (bounds.Height - 1) + ") - OK"); } else { log.println( @@ -126,7 +126,7 @@ public class _XAccessibleComponent extends MultiMethodTest { int curY = 0; //while (!oObj.containsPoint(new Point(bounds.X, curY)) && curY < bounds.Height+bounds.Y) { - while (!oObj.containsPoint(new Point(0, curY)) && + while (!oObj.containsPoint(new Point(0, curY)) && (curY < bounds.Height)) { curY++; } @@ -135,7 +135,7 @@ public class _XAccessibleComponent extends MultiMethodTest { //if ((bounds.Y <= curY) && (curY < bounds.Height+bounds.Y)) { if (curY < bounds.Height) { - log.println("Left bound of box containsPoint point (0," + curY + + log.println("Left bound of box containsPoint point (0," + curY + ") - OK"); } else { log.println( @@ -147,7 +147,7 @@ public class _XAccessibleComponent extends MultiMethodTest { //while (!oObj.containsPoint(new Point(bounds.X+bounds.Width - 1, curY)) // && curY < bounds.Height+bounds.Y) { - while (!oObj.containsPoint(new Point(bounds.Width - 1, curY)) && + while (!oObj.containsPoint(new Point(bounds.Width - 1, curY)) && (curY < bounds.Height)) { curY++; } @@ -156,7 +156,7 @@ public class _XAccessibleComponent extends MultiMethodTest { //if ((bounds.Y <= curY) && (curY < bounds.Height + bounds.Y)) { if (curY < bounds.Height) { - log.println("Right bound of box containsPoint point (" + + log.println("Right bound of box containsPoint point (" + (bounds.Width - 1) + "," + curY + ") - OK"); } else { log.println( @@ -185,7 +185,7 @@ public class _XAccessibleComponent extends MultiMethodTest { } if (locRes) { - log.println("Outer upper and lower bounds contain no component " + + log.println("Outer upper and lower bounds contain no component " + "points - OK"); } else { result = false; @@ -211,7 +211,7 @@ public class _XAccessibleComponent extends MultiMethodTest { } if (locRes) { - log.println("Outer left and right bounds contain no component " + + log.println("Outer left and right bounds contain no component " + "points - OK"); } else { result = false; @@ -244,20 +244,20 @@ public class _XAccessibleComponent extends MultiMethodTest { continue; } - log.println("Checking child with bounds " + "(" + chBnd.X + - "," + chBnd.Y + "),(" + chBnd.Width + "," + - chBnd.Height + "): " + + log.println("Checking child with bounds " + "(" + chBnd.X + + "," + chBnd.Y + "),(" + chBnd.Width + "," + + chBnd.Height + "): " + util.AccessibilityTools.accessibleToString( children[i])); XAccessibleContext xAc = (XAccessibleContext) UnoRuntime.queryInterface( - XAccessibleContext.class, + XAccessibleContext.class, children[i]); boolean MightBeCovered = false; boolean isShowing = xAc.getAccessibleStateSet() .contains(com.sun.star.accessibility.AccessibleStateType.SHOWING); - log.println("\tStateType containsPoint SHOWING: " + + log.println("\tStateType containsPoint SHOWING: " + isShowing); if (!isShowing) { @@ -271,7 +271,7 @@ public class _XAccessibleComponent extends MultiMethodTest { int curX = chBnd.Width / 2; int curY = chBnd.Height / 2; - while (!children[i].containsPoint(new Point(curX, curY)) && + while (!children[i].containsPoint(new Point(curX, curY)) && (curX > 0) && (curY > 0)) { curX--; curY--; @@ -287,23 +287,23 @@ public class _XAccessibleComponent extends MultiMethodTest { // trying the point laying on child XAccessible xAcc = oObj.getAccessibleAtPoint( - new Point(chBnd.X + curX, + new Point(chBnd.X + curX, chBnd.Y + curY)); - + Point p = new Point(chBnd.X + curX,chBnd.X + curX); - + if (isCovered(p) && isShowing) { log.println( "Child might be covered by another and can't be reached"); MightBeCovered = true; } - + KnownBounds.add(chBnd); if (xAcc == null) { - log.println("The child not found at point (" + - (chBnd.X + curX) + "," + (chBnd.Y + curY) + + log.println("The child not found at point (" + + (chBnd.X + curX) + "," + (chBnd.Y + curY) + ") - FAILED"); if (isShowing) { @@ -313,12 +313,12 @@ public class _XAccessibleComponent extends MultiMethodTest { } } else { XAccessible xAccCh = (XAccessible) UnoRuntime.queryInterface( - XAccessible.class, + XAccessible.class, children[i]); XAccessibleContext xAccC = (XAccessibleContext) UnoRuntime.queryInterface( - XAccessibleContext.class, + XAccessibleContext.class, children[i]); - log.println("Child found at point (" + (chBnd.X + curX) + + log.println("Child found at point (" + (chBnd.X + curX) + "," + (chBnd.Y + curY) + ") - OK"); boolean res = false; @@ -353,24 +353,24 @@ public class _XAccessibleComponent extends MultiMethodTest { log.print("is hidden behind the found Child "); log.println(xAcc.getAccessibleContext() .getAccessibleName() + " - OK"); - } else { + } else { log.println( "The children found is not the same"); log.println("Expected: " + expName); log.println("Description: " + expDesc); - log.println("Found: " + + log.println("Found: " + xAcc.getAccessibleContext() .getAccessibleName()); - log.println("Description: " + + log.println("Description: " + xAcc.getAccessibleContext() .getAccessibleDescription()); if (MightBeCovered) { log.println("... Child is covered by another - OK"); - } else { + } else { log.println("... FAILED"); result = false; } - + } } } @@ -381,26 +381,26 @@ public class _XAccessibleComponent extends MultiMethodTest { new Point(chBnd.X - 1, chBnd.Y - 1)); if (xAcc == null) { - log.println("No children found at point (" + - (chBnd.X - 1) + "," + (chBnd.Y - 1) + + log.println("No children found at point (" + + (chBnd.X - 1) + "," + (chBnd.Y - 1) + ") - OK"); result &= true; } else { XAccessible xAccCh = (XAccessible) UnoRuntime.queryInterface( - XAccessible.class, + XAccessible.class, children[i]); boolean res = util.AccessibilityTools.equals(xAccCh, xAcc); if (res) { - log.println("The same child found outside " + - "its bounds at (" + (chBnd.X - 1) + "," + + log.println("The same child found outside " + + "its bounds at (" + (chBnd.X - 1) + "," + (chBnd.Y - 1) + ") - FAILED"); result = false; } } } } else { - log.println("There are no children supporting " + + log.println("There are no children supporting " + "XAccessibleComponent"); } @@ -419,9 +419,9 @@ public class _XAccessibleComponent extends MultiMethodTest { bounds = oObj.getBounds(); result &= ((bounds != null) && (bounds.X >= 0) && (bounds.Y >= 0) && (bounds.Width > 0) && (bounds.Height > 0)); - log.println("Bounds = " + - ((bounds != null) - ? ("(" + bounds.X + "," + bounds.Y + "),(" + + log.println("Bounds = " + + ((bounds != null) + ? ("(" + bounds.X + "," + bounds.Y + "),(" + bounds.Width + "," + bounds.Height + ")") : "null")); tRes.tested("getBounds()", result); @@ -474,7 +474,7 @@ public class _XAccessibleComponent extends MultiMethodTest { if (parent != null) { Point parLoc = parent.getLocationOnScreen(); - log.println("Parent location is (" + parLoc.X + "," + parLoc.Y + + log.println("Parent location is (" + parLoc.X + "," + parLoc.Y + ")"); result &= ((parLoc.X + bounds.X) == loc.X); @@ -550,7 +550,7 @@ public class _XAccessibleComponent extends MultiMethodTest { XAccessible child = xAccCon.getAccessibleChild(i); XAccessibleContext xAccConCh = child.getAccessibleContext(); XAccessibleComponent xChAccComp = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, xAccConCh); if (xChAccComp != null) { @@ -592,7 +592,7 @@ public class _XAccessibleComponent extends MultiMethodTest { XAccessibleContext xAccConPar = xAccPar.getAccessibleContext(); XAccessibleComponent parent = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, xAccConPar); if (parent == null) { @@ -631,9 +631,9 @@ public class _XAccessibleComponent extends MultiMethodTest { disposeEnvironment(); } } - + private boolean isCovered(Point p) { - int elements = KnownBounds.size(); + int elements = KnownBounds.size(); boolean Covered = false; for (int k=0;k<elements;k++) { Rectangle known = (Rectangle) KnownBounds.get(k); @@ -641,11 +641,11 @@ public class _XAccessibleComponent extends MultiMethodTest { Covered &= (known.Y < p.Y); Covered &= (p.Y < known.Y+known.Height); Covered &= (p.X < known.X+known.Width); - + if (Covered) { break; } - } + } return Covered; } }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleContext.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleContext.java index 47b24a337f2c..a71e8da71b44 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleContext.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleContext.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 @@ -93,7 +93,7 @@ public class _XAccessibleContext extends MultiMethodTest { requiredMethod("getAccessibleChildCount()"); log.println("testing 'getAccessibleChild()'..."); - + boolean bOK = true; int counter = childCount; @@ -106,72 +106,72 @@ public class _XAccessibleContext extends MultiMethodTest { XAccessible ch = oObj.getAccessibleChild(i); XAccessibleContext chAC = ch.getAccessibleContext(); - log.println("## Child " + i + ": " + + log.println("## Child " + i + ": " + chAC.getAccessibleDescription()); if (!AccessibilityTools.equals(chAC.getAccessibleParent() - .getAccessibleContext(), + .getAccessibleContext(), oObj)) { - log.println("The parent of child and component " + + log.println("The parent of child and component " + "itself differ."); log.println("\tRole:"); - log.println("Getting: " + + log.println("Getting: " + chAC.getAccessibleParent() .getAccessibleContext() .getAccessibleRole()); log.println("Expected: " + oObj.getAccessibleRole()); log.println("\tImplementationName:"); - log.println("Getting: " + + log.println("Getting: " + util.utils.getImplName( chAC.getAccessibleParent() .getAccessibleContext())); log.println("Expected: " + util.utils.getImplName(oObj)); log.println("\tAccessibleDescription:"); - log.println("Getting(Description): " + + log.println("Getting(Description): " + chAC.getAccessibleParent() .getAccessibleContext() .getAccessibleDescription()); - log.println("Expected(Description): " + + log.println("Expected(Description): " + oObj.getAccessibleDescription()); log.println("\tAccessibleName:"); - log.println("Getting(Name): " + + log.println("Getting(Name): " + chAC.getAccessibleParent() .getAccessibleContext() .getAccessibleName()); - log.println("Expected(Name): " + + log.println("Expected(Name): " + oObj.getAccessibleName()); log.println("\tChildCount:"); - log.println("Getting: " + + log.println("Getting: " + chAC.getAccessibleParent() .getAccessibleContext() .getAccessibleChildCount()); - log.println("Expected: " + + log.println("Expected: " + oObj.getAccessibleChildCount()); log.println("\tParentName:"); - log.println("Getting (Name): " + + log.println("Getting (Name): " + chAC.getAccessibleParent() .getAccessibleContext() .getAccessibleParent() .getAccessibleContext() .getAccessibleName()); - log.println("Expected(Name): " + + log.println("Expected(Name): " + oObj.getAccessibleParent() .getAccessibleContext() .getAccessibleName()); - + log.println("##"); bOK = false; } else { log.println("Role: " + chAC.getAccessibleRole()); log.println("Name: " + chAC.getAccessibleName()); - log.println("IndexInParent: " + + log.println("IndexInParent: " + chAC.getAccessibleIndexInParent()); - log.println("ImplementationName: " + + log.println("ImplementationName: " + util.utils.getImplName(chAC)); } } catch (com.sun.star.lang.IndexOutOfBoundsException e) { @@ -222,7 +222,7 @@ public class _XAccessibleContext extends MultiMethodTest { } else { bOK &= AccessibilityTools.equals(parentAC.getAccessibleChild( idx) - .getAccessibleContext(), + .getAccessibleContext(), oObj); } @@ -230,7 +230,7 @@ public class _XAccessibleContext extends MultiMethodTest { log.println("Expected: " + util.utils.getImplName(oObj)); if (parentAC.getAccessibleChild(idx) != null) { - log.println("Getting: " + + log.println("Getting: " + util.utils.getImplName( parentAC.getAccessibleChild(idx) .getAccessibleContext())); @@ -326,12 +326,12 @@ public class _XAccessibleContext extends MultiMethodTest { e.printStackTrace(log); } - tRes.tested("getLocale()", + tRes.tested("getLocale()", (loc != null) && (loc.Language.length() > 0)); } - protected boolean checkStates(String[] expectedStateNames, - short[] expectedStates, + protected boolean checkStates(String[] expectedStateNames, + short[] expectedStates, XAccessibleStateSet set) { boolean works = true; @@ -339,11 +339,11 @@ public class _XAccessibleContext extends MultiMethodTest { boolean contains = set.contains(expectedStates[k]); if (contains) { - log.println("Set contains " + expectedStateNames[k] + + log.println("Set contains " + expectedStateNames[k] + " ... OK"); works &= true; } else { - log.println("Set doesn't contain " + expectedStateNames[k] + + log.println("Set doesn't contain " + expectedStateNames[k] + " ... FAILED"); works &= false; } diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.java index eac528b41121..2d3162adbc2f 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.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 diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEventBroadcaster.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEventBroadcaster.java index c1cb7302efce..cee6b4c36369 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEventBroadcaster.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEventBroadcaster.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 @@ -81,11 +81,11 @@ public class _XAccessibleEventBroadcaster extends MultiMethodTest { if (old instanceof com.sun.star.accessibility.XAccessible) { System.out.println("Old: "+((XAccessible)old).getAccessibleContext().getAccessibleName()); } - + Object nev=ev.NewValue; if (nev instanceof com.sun.star.accessibility.XAccessible) { System.out.println("New: "+((XAccessible)nev).getAccessibleContext().getAccessibleName()); - } + } notifiedEvent = ev; } @@ -109,7 +109,7 @@ public class _XAccessibleEventBroadcaster extends MultiMethodTest { } EventProducer prod = null ; - EvListener list = new EvListener(); + EvListener list = new EvListener(); /** * Adds two listeners and fires event by mean of object relation. <p> @@ -117,19 +117,19 @@ public class _XAccessibleEventBroadcaster extends MultiMethodTest { */ public void _addEventListener() { log.println("adding listener"); - oObj.addEventListener(list); + oObj.addEventListener(list); boolean isTransient = chkTransient(tEnv.getTestObject()); log.println("fire event"); prod.fireEvent() ; - try { + try { Thread.sleep(3000); } catch (InterruptedException ex) { - } - + } + boolean works = true; - + if (list.notifiedEvent == null) { if (!isTransient) { log.println("listener wasn't called"); @@ -137,12 +137,12 @@ public class _XAccessibleEventBroadcaster extends MultiMethodTest { } else { log.println("Object is Transient, listener isn't expected to be called"); } - oObj.removeEventListener(list); + oObj.removeEventListener(list); } - + if (EventMsg != null) { log.println(EventMsg); - tRes.tested("addEventListener()", Status.skipped(true) ); + tRes.tested("addEventListener()", Status.skipped(true) ); return; } @@ -163,7 +163,7 @@ public class _XAccessibleEventBroadcaster extends MultiMethodTest { public void _removeEventListener() { requiredMethod("addEventListener()"); - list.notifiedEvent = null; + list.notifiedEvent = null; log.println("remove listener"); oObj.removeEventListener(list); @@ -183,11 +183,11 @@ public class _XAccessibleEventBroadcaster extends MultiMethodTest { tRes.tested("removeEventListener()", list.notifiedEvent == null); - } - + } + protected static boolean chkTransient(Object Testcase) { boolean ret = false; - XAccessibleContext accCon = (XAccessibleContext) + XAccessibleContext accCon = (XAccessibleContext) UnoRuntime.queryInterface(XAccessibleContext.class,Testcase); if (accCon.getAccessibleStateSet().contains( com.sun.star.accessibility.AccessibleStateType.TRANSIENT)){ @@ -196,17 +196,17 @@ public class _XAccessibleEventBroadcaster extends MultiMethodTest { throw new lib.StatusException(lib.Status.failed("Parent doesn't manage descendents")); } ret=true; - } + } return ret; - } - + } + /** * Forces environment recreation. */ protected void after() { if (destroy) disposeEnvironment(); } - - + + } diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleExtendedComponent.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleExtendedComponent.java index 422cfa96e334..a0bc677a42c9 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleExtendedComponent.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleExtendedComponent.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 diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleImage.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleImage.java index 7a4dfafff615..cc9b1dc3fc85 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleImage.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleImage.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 diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleSelection.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleSelection.java index e575e332845b..199cc62a7f27 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleSelection.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleSelection.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 @@ -221,7 +221,7 @@ public class _XAccessibleSelection extends MultiMethodTest { oObj.selectAccessibleChild(k); shortWait(); isSelected = oObj.isAccessibleChildSelected(k); - log.println("isAccessibleChildSelected - " + + log.println("isAccessibleChildSelected - " + isSelected); res &= isSelected; } else { @@ -258,7 +258,7 @@ public class _XAccessibleSelection extends MultiMethodTest { if ((childCount > 0) && !OneAlwaysSelected) { try { - log.print("isAccessibleChildSelected(" + (childCount - 1) + + log.print("isAccessibleChildSelected(" + (childCount - 1) + ")? "); boolean isSel = oObj.isAccessibleChildSelected(childCount - 1); @@ -305,7 +305,7 @@ public class _XAccessibleSelection extends MultiMethodTest { log.println(isSelected); res = isSelected; - log.print("isAccessibleChildSelected(" + (childCount - 1) + + log.print("isAccessibleChildSelected(" + (childCount - 1) + ")? "); isSelected = oObj.isAccessibleChildSelected(childCount - 1); log.println(isSelected); @@ -350,11 +350,11 @@ public class _XAccessibleSelection extends MultiMethodTest { oObj.selectAccessibleChild(i); long curtime = System.currentTimeMillis(); long checktime = System.currentTimeMillis(); - + while (!oObj.isAccessibleChildSelected(i) && (checktime-curtime<5000)) { checktime = System.currentTimeMillis(); } - + log.println("OK"); } } @@ -367,9 +367,9 @@ public class _XAccessibleSelection extends MultiMethodTest { int sCount = chkSelectable(tEnv.getTestObject()); log.println("Found " + sCount + " selectable Childs"); - + int selectedCount = oObj.getSelectedAccessibleChildCount(); - log.println("After selecting all accessible " + selectedCount + + log.println("After selecting all accessible " + selectedCount + " are selected"); boolean res = true; @@ -443,7 +443,7 @@ public class _XAccessibleSelection extends MultiMethodTest { if (isSelectable(tEnv.getTestObject(), k)) { oObj.selectAccessibleChild(k); shortWait(); - log.println("selected child count: " + + log.println("selected child count: " + oObj.getSelectedAccessibleChildCount()); XAccessible selChild = oObj.getSelectedAccessibleChild(0); res &= (selChild != null); @@ -521,7 +521,7 @@ public class _XAccessibleSelection extends MultiMethodTest { } int newSelCount = oObj.getSelectedAccessibleChildCount(); - log.println("getSelectedAccessibleChildCount():" + + log.println("getSelectedAccessibleChildCount():" + newSelCount); if (OneAlwaysSelected && (selCount == 1)) { @@ -579,7 +579,7 @@ public class _XAccessibleSelection extends MultiMethodTest { //selecting menuitems or the separator will lead to closing the menu if ((accCon.getAccessibleChild(index).getAccessibleContext() - .getAccessibleRole() == AccessibleRole.MENU_ITEM) || + .getAccessibleRole() == AccessibleRole.MENU_ITEM) || (accCon.getAccessibleChild(index).getAccessibleContext() .getAccessibleRole() == AccessibleRole.SEPARATOR)) { res = false; diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleTable.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleTable.java index fa851bb79ea2..4a1ec00e11e8 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleTable.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleTable.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 diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java index c72c25590396..60afee689fd8 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.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 @@ -117,7 +117,7 @@ public class _XAccessibleText extends MultiMethodTest { if (component == null) { component = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, tEnv.getTestObject()); } @@ -260,7 +260,7 @@ public class _XAccessibleText extends MultiMethodTest { res &= isEqCh; if (!isEqCh) { - log.println("At the position " + i + + log.println("At the position " + i + "was expected character: " + text.charAt(i)); log.println("but was returned: " + ch); @@ -316,7 +316,7 @@ public class _XAccessibleText extends MultiMethodTest { try { log.println("getCharacterAttributes(chCount-1)"); - PropertyValue[] props = oObj.getCharacterAttributes(chCount - 1, + PropertyValue[] props = oObj.getCharacterAttributes(chCount - 1, attr); res &= (props != null); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { @@ -379,7 +379,7 @@ public class _XAccessibleText extends MultiMethodTest { try { for (int i = 0; i < lastIndex; i++) { log.println("getCharacterBounds(" + i + ")"); - chBounds = oObj.getCharacterBounds(i); + chBounds = oObj.getCharacterBounds(i); boolean localres = true; localres = chBounds.X >= 0; @@ -390,13 +390,13 @@ public class _XAccessibleText extends MultiMethodTest { localres &= ((chBounds.Y + chBounds.Height) > 0); if (!localres) { - log.println("Text at this place: "+oObj.getCharacter(i)); + log.println("Text at this place: "+oObj.getCharacter(i)); log.println("Character bounds outside component"); - log.println("Character rect: " + chBounds.X + ", " + - chBounds.Y + ", " + chBounds.Width + ", " + + log.println("Character rect: " + chBounds.X + ", " + + chBounds.Y + ", " + chBounds.Width + ", " + chBounds.Height); - log.println("Component rect: " + bounds.X + ", " + - bounds.Y + ", " + bounds.Width + ", " + + log.println("Component rect: " + bounds.X + ", " + + bounds.Y + ", " + bounds.Width + ", " + bounds.Height); res &= localres; } @@ -435,7 +435,7 @@ public class _XAccessibleText extends MultiMethodTest { * </ul> */ public void _getIndexAtPoint() { - //requiredMethod("getCharacterBounds()"); + //requiredMethod("getCharacterBounds()"); boolean res = true; log.print("getIndexAtPoint(-1, -1):"); @@ -471,13 +471,13 @@ public class _XAccessibleText extends MultiMethodTest { int y = aRect.Y + (aRect.Height / 2); Point aPoint = new Point(x, y); int nIndex = oObj.getIndexAtPoint(aPoint); - + x = aRect.X; y = aRect.Y + (aRect.Height / 2); aPoint = new Point(x, y); - int left = oObj.getIndexAtPoint(aPoint); - - + int left = oObj.getIndexAtPoint(aPoint); + + int[] previous = (int[]) tEnv.getObjRelation("PreviousUsed"); @@ -492,12 +492,12 @@ public class _XAccessibleText extends MultiMethodTest { if (nIndex != i) { // for some letters the center of the rectangle isn't recognised // in this case we are happy if the left border of the rectangle - // returns the correct value. + // returns the correct value. if (left !=i) { - log.println("## Method didn't work for Point (" + x + "," + y + + log.println("## Method didn't work for Point (" + x + "," + y + ")"); log.println("Expected Index " + i); - log.println("Gained Index: " + nIndex); + log.println("Gained Index: " + nIndex); log.println("Left Border: "+left); log.println("CharacterAtIndex: " + text); res &= false; @@ -748,7 +748,7 @@ public class _XAccessibleText extends MultiMethodTest { boolean res = true; boolean locRes = true; - + String txtRange = ""; try { @@ -761,7 +761,7 @@ public class _XAccessibleText extends MultiMethodTest { res &= locRes; if (!locRes) { - log.println("Was expected: " + + log.println("Was expected: " + text.substring(1, chCount - 2)); } } @@ -774,7 +774,7 @@ public class _XAccessibleText extends MultiMethodTest { res &= locRes; if (!locRes) { - log.println("Was expected: " + + log.println("Was expected: " + text.substring(0, chCount - 1)); } @@ -853,7 +853,7 @@ public class _XAccessibleText extends MultiMethodTest { try { log.print("getTextAtIndex(-1, AccessibleTextType.PARAGRAPH):"); - txt = oObj.getTextAtIndex(-1, + txt = oObj.getTextAtIndex(-1, AccessibleTextType.PARAGRAPH); log.println("Exception was expected"); res &= false; @@ -866,10 +866,10 @@ public class _XAccessibleText extends MultiMethodTest { } try { - log.print("getTextAtIndex(chCount+1," + + log.print("getTextAtIndex(chCount+1," + " AccessibleTextType.PARAGRAPH):"); - txt = oObj.getTextAtIndex(chCount + 1, + txt = oObj.getTextAtIndex(chCount + 1, AccessibleTextType.PARAGRAPH); log.println("Exception was expected"); res &= false; @@ -882,14 +882,14 @@ public class _XAccessibleText extends MultiMethodTest { } try { - log.print("getTextAtIndex(chCount," + + log.print("getTextAtIndex(chCount," + " AccessibleTextType.WORD):"); txt = oObj.getTextAtIndex(chCount, AccessibleTextType.WORD); log.println("'" + txt.SegmentText + "'"); res &= compareLength(0,txt.SegmentText); if (!tEnv.getTestCase().getObjectName().equals("SmGraphicAccessible")) { - log.print("getTextAtIndex(1," + + log.print("getTextAtIndex(1," + " AccessibleTextType.PARAGRAPH):"); txt = oObj.getTextAtIndex(1, AccessibleTextType.PARAGRAPH); log.println("'" + txt.SegmentText + "'"); @@ -927,7 +927,7 @@ public class _XAccessibleText extends MultiMethodTest { try { log.print("getTextBeforeIndex(-1, AccessibleTextType.PARAGRAPH):"); - txt = oObj.getTextBeforeIndex(-1, + txt = oObj.getTextBeforeIndex(-1, AccessibleTextType.PARAGRAPH); log.println("Exception was expected"); res &= false; @@ -940,10 +940,10 @@ public class _XAccessibleText extends MultiMethodTest { } try { - log.print("getTextBeforeIndex(chCount+1, " + + log.print("getTextBeforeIndex(chCount+1, " + "AccessibleTextType.PARAGRAPH):"); - txt = oObj.getTextBeforeIndex(chCount + 1, + txt = oObj.getTextBeforeIndex(chCount + 1, AccessibleTextType.PARAGRAPH); log.println("Exception was expected"); res &= false; @@ -957,31 +957,31 @@ public class _XAccessibleText extends MultiMethodTest { try { if (!tEnv.getTestCase().getObjectName().equals("SmGraphicAccessible")) { - log.print("getTextBeforeIndex(chCount," + + log.print("getTextBeforeIndex(chCount," + " AccessibleTextType.WORD):"); - txt = oObj.getTextBeforeIndex(chCount, + txt = oObj.getTextBeforeIndex(chCount, AccessibleTextType.WORD); log.println("'" + txt.SegmentText + "'"); res &= compareLength(chCount, txt.SegmentText); } - log.print("getTextBeforeIndex(1," + + log.print("getTextBeforeIndex(1," + " AccessibleTextType.PARAGRAPH):"); txt = oObj.getTextBeforeIndex(1, AccessibleTextType.PARAGRAPH); log.println("'" + txt.SegmentText + "'"); res &= compareLength(0, txt.SegmentText); - log.print("getTextBeforeIndex(chCount-1," + + log.print("getTextBeforeIndex(chCount-1," + " AccessibleTextType.CHARACTER):"); - txt = oObj.getTextBeforeIndex(chCount - 1, + txt = oObj.getTextBeforeIndex(chCount - 1, AccessibleTextType.CHARACTER); log.println("'" + txt.SegmentText + "'"); - res &= compareStrings(text.substring(chCount - 2, chCount - 1), + res &= compareStrings(text.substring(chCount - 2, chCount - 1), txt.SegmentText); if (chCount > 2) { - log.print("getTextBeforeIndex(2," + + log.print("getTextBeforeIndex(2," + " AccessibleTextType.CHARACTER):"); txt = oObj.getTextBeforeIndex(2, AccessibleTextType.CHARACTER); log.println("'" + txt.SegmentText + "'"); @@ -1019,7 +1019,7 @@ public class _XAccessibleText extends MultiMethodTest { try { log.print("getTextBehindIndex(-1, AccessibleTextType.PARAGRAPH):"); - txt = oObj.getTextBehindIndex(-1, + txt = oObj.getTextBehindIndex(-1, AccessibleTextType.PARAGRAPH); log.println("Exception was expected"); res &= false; @@ -1032,10 +1032,10 @@ public class _XAccessibleText extends MultiMethodTest { } try { - log.print("getTextBehindIndex(chCount+1, " + + log.print("getTextBehindIndex(chCount+1, " + "AccessibleTextType.PARAGRAPH):"); - txt = oObj.getTextBehindIndex(chCount + 1, + txt = oObj.getTextBehindIndex(chCount + 1, AccessibleTextType.PARAGRAPH); log.println("Exception was expected"); res &= false; @@ -1048,31 +1048,31 @@ public class _XAccessibleText extends MultiMethodTest { } try { - log.print("getTextBehindIndex(chCount," + + log.print("getTextBehindIndex(chCount," + " AccessibleTextType.PARAGRAPH):"); - txt = oObj.getTextBehindIndex(chCount, + txt = oObj.getTextBehindIndex(chCount, AccessibleTextType.PARAGRAPH); log.println("'" + txt.SegmentText + "'"); res &= (txt.SegmentText.length() == 0); - log.print("getTextBehindIndex(chCount-1," + + log.print("getTextBehindIndex(chCount-1," + " AccessibleTextType.PARAGRAPH):"); - txt = oObj.getTextBehindIndex(chCount - 1, + txt = oObj.getTextBehindIndex(chCount - 1, AccessibleTextType.PARAGRAPH); log.println("'" + txt.SegmentText + "'"); res &= (txt.SegmentText.length() == 0); - log.print("getTextBehindIndex(1," + + log.print("getTextBehindIndex(1," + " AccessibleTextType.CHARACTER):"); txt = oObj.getTextBehindIndex(1, AccessibleTextType.CHARACTER); log.println("'" + txt.SegmentText + "'"); res &= txt.SegmentText.equals(text.substring(2, 3)); if (chCount > 2) { - log.print("getTextBehindIndex(chCount-2," + + log.print("getTextBehindIndex(chCount-2," + " AccessibleTextType.CHARACTER):"); - txt = oObj.getTextBehindIndex(chCount - 2, + txt = oObj.getTextBehindIndex(chCount - 2, AccessibleTextType.CHARACTER); log.println("'" + txt.SegmentText + "'"); res &= txt.SegmentText.equals(text.substring(chCount - 1, chCount)); diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleValue.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleValue.java index 201d5675ff0c..4364d709870b 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleValue.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleValue.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 @@ -134,7 +134,7 @@ public class _XAccessibleValue extends MultiMethodTest { boolean partResult=true; String noMax = "com.sun.star.comp.toolkit.AccessibleScrollBar"; String implName = util.utils.getImplName(oObj); - + if (tEnv.getObjRelation("ValueNotPersitent")!=null) { log.println("Excluded since it works like AccessibleAction"); tRes.tested("setCurrentValue()",Status.skipped(true)); @@ -151,12 +151,12 @@ public class _XAccessibleValue extends MultiMethodTest { Object setVal = getObjectValue(newVal, val.getClass()); result &= oObj.setCurrentValue(setVal); - + if (!result) { log.println("The value can't be set"); throw new StatusException(Status.skipped(true)); } - + double resVal = getDoubleValue(oObj.getCurrentValue()); log.println("Res value is " + resVal); @@ -174,8 +174,8 @@ public class _XAccessibleValue extends MultiMethodTest { log.println("Setting to "+ getObjectValue(maxVal, val.getClass())); resVal = getDoubleValue(oObj.getCurrentValue()); log.println("Result max value is " + resVal); - partResult = Math.abs(maxVal - resVal) < 0.00001; - + partResult = Math.abs(maxVal - resVal) < 0.00001; + if (implName.equals(noMax)) { log.println("If one sets the maximum value of a scroll bar with XScrollBar::setMaximum(),"+ "then XScrollBar::getValue() returns the maximum value minus the visible size of"+ @@ -183,14 +183,14 @@ public class _XAccessibleValue extends MultiMethodTest { //using abitrary Value, since we can't determine the resulting value partResult = resVal > 10; } - + result &=partResult; log.println("\t works: "+partResult); log.println("Checking truncating of min/max values"); oObj.setCurrentValue(getObjectValue(minVal - 1, val.getClass())); log.println("Setting to "+ getObjectValue(minVal -1 , val.getClass())); - resVal = getDoubleValue(oObj.getCurrentValue()); + resVal = getDoubleValue(oObj.getCurrentValue()); log.println("Result min value is " + resVal); result &= Math.abs(minVal - resVal) < 0.00001; log.println("\t works: "+(Math.abs(minVal - resVal) < 0.00001)); @@ -207,7 +207,7 @@ public class _XAccessibleValue extends MultiMethodTest { //using abitrary Value, since we can't determine the resulting value partResult = resVal > 10; } - + result &=partResult; log.println("\t works: "+partResult); } else { diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.java index 545995a641fe..ff9ac9c269c4 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.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 @@ -79,7 +79,7 @@ public class _UnoControlButtonModel extends MultiPropertyTest { log.println("Testing with custom Property tester") ; testProperty("BackgroundColor", ColorTester) ; } - + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. @@ -87,7 +87,7 @@ public class _UnoControlButtonModel extends MultiPropertyTest { public void _TextLineColor() { log.println("Testing with custom Property tester") ; testProperty("TextLineColor", ColorTester) ; - } + } /** * This property can be void, so if old value is <code> null </code> diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java index 115a416ba640..4d7d77fad501 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.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 @@ -70,8 +70,8 @@ public class _UnoControlCheckBoxModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } - + } + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. @@ -104,6 +104,6 @@ public class _UnoControlCheckBoxModel extends MultiPropertyTest { public void _TextLineColor() { log.println("Testing with custom Property tester") ; testProperty("TextLineColor", ColorTester) ; - } + } } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.java index 544c8c2ee6e1..c3d3133bd8fb 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.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 @@ -65,7 +65,7 @@ public class _UnoControlComboBoxModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -101,7 +101,7 @@ public class _UnoControlComboBoxModel extends MultiPropertyTest { } }) ; } - + public void _Text() { try { oObj.setPropertyValue("MaxTextLen",new Short((short)0)); @@ -112,7 +112,7 @@ public class _UnoControlComboBoxModel extends MultiPropertyTest { } testProperty("Text"); } - + /** * Redefined method returns value, that differs from property value. */ @@ -124,7 +124,7 @@ public class _UnoControlComboBoxModel extends MultiPropertyTest { return new Integer(17); } }; - + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. @@ -132,7 +132,7 @@ public class _UnoControlComboBoxModel extends MultiPropertyTest { public void _TextLineColor() { log.println("Testing with custom Property tester") ; testProperty("TextLineColor", ColorTester) ; - } + } } //EOF UnoControlComboBoxModel diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlContainerModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlContainerModel.java index 8ae486c2d8e7..88cf0a8aa2a7 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlContainerModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlContainerModel.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 diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.java index 3638498a0152..906da48cf1ae 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.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 @@ -80,7 +80,7 @@ public class _UnoControlCurrencyFieldModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -91,7 +91,7 @@ public class _UnoControlCurrencyFieldModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } + } /** * This property can be void, so if old value is <code> null </code> @@ -104,7 +104,7 @@ public class _UnoControlCurrencyFieldModel extends MultiPropertyTest { } }) ; } - + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. @@ -115,7 +115,7 @@ public class _UnoControlCurrencyFieldModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(123) : null ; } }) ; - } + } /** * This property can be void, so if old value is <code> null </code> diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.java index c0d17a541c46..baeb99479760 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.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 @@ -67,7 +67,7 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -79,7 +79,7 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest { } }) ; } - + /** * This property can be void, so if old value is <code> null </code> @@ -117,7 +117,7 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest { } }) ; } - + /** * Redefined method returns value, that differs from property value. */ @@ -129,7 +129,7 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest { return new Integer(17); } }; - + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. @@ -137,9 +137,9 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest { public void _TextLineColor() { log.println("Testing with custom Property tester") ; testProperty("TextLineColor", ColorTester) ; - } - - public void _DateShowCentury() { + } + + public void _DateShowCentury() { boolean res = false; try { util.dbg.printPropertyInfo(oObj,"DateShowCentury",log); @@ -160,14 +160,14 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest { } catch (com.sun.star.beans.UnknownPropertyException upe) { log.println("Don't know the Property 'DateShowCentury'"); } catch (com.sun.star.lang.WrappedTargetException wte) { - log.println("WrappedTargetException while getting Property 'DateShowCentury'"); + log.println("WrappedTargetException while getting Property 'DateShowCentury'"); } catch (com.sun.star.lang.IllegalArgumentException iae) { log.println("IllegalArgumentException while getting Property 'DateShowCentury'"); } catch (com.sun.star.beans.PropertyVetoException pve) { log.println("PropertyVetoException while getting Property 'DateShowCentury'"); - } - tRes.tested("DateShowCentury",res); - + } + tRes.tested("DateShowCentury",res); + } } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlDialogElement.java b/qadevOOo/tests/java/ifc/awt/_UnoControlDialogElement.java index f9746fb6210f..2e20cf12a979 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlDialogElement.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlDialogElement.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 @@ -29,7 +29,7 @@ package ifc.awt; import lib.MultiPropertyTest; -public class _UnoControlDialogElement extends MultiPropertyTest { - +public class _UnoControlDialogElement extends MultiPropertyTest { + } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlDialogModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlDialogModel.java index 88b2ecafcb30..f58bebbf5272 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlDialogModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlDialogModel.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 @@ -71,7 +71,7 @@ public class _UnoControlDialogModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -82,6 +82,6 @@ public class _UnoControlDialogModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(4321) : null ; } }) ; - } + } } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.java index fee61c671be1..cd9b09eb7447 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.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 @@ -69,7 +69,7 @@ public class _UnoControlEditModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -80,7 +80,7 @@ public class _UnoControlEditModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } + } /** * This property can be VOID, and in case if it is so new @@ -105,7 +105,7 @@ public class _UnoControlEditModel extends MultiPropertyTest { } }) ; } - + /** * Redefined method returns value, that differs from property value. */ @@ -117,7 +117,7 @@ public class _UnoControlEditModel extends MultiPropertyTest { return new Integer(17); } }; - + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. @@ -125,6 +125,6 @@ public class _UnoControlEditModel extends MultiPropertyTest { public void _TextLineColor() { log.println("Testing with custom Property tester") ; testProperty("TextLineColor", ColorTester) ; - } + } } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.java index 144ccd46a205..ad5e3d0be64a 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.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 @@ -65,7 +65,7 @@ public class _UnoControlFileControlModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -76,7 +76,7 @@ public class _UnoControlFileControlModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } + } /** * This property can be VOID, and in case if it is so new diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlFixedLineModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlFixedLineModel.java index f9087e46cd41..382c39bffbbb 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlFixedLineModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlFixedLineModel.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 diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlFixedTextModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlFixedTextModel.java index d66cfde5995a..9c96a2510fd1 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlFixedTextModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlFixedTextModel.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 @@ -62,7 +62,7 @@ public class _UnoControlFixedTextModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -73,7 +73,7 @@ public class _UnoControlFixedTextModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } + } /** * This property can be VOID, and in case if it is so new @@ -86,7 +86,7 @@ public class _UnoControlFixedTextModel extends MultiPropertyTest { } }) ; } - + /** * Redefined method returns value, that differs from property value. */ @@ -98,7 +98,7 @@ public class _UnoControlFixedTextModel extends MultiPropertyTest { return new Integer(17); } }; - + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. @@ -106,6 +106,6 @@ public class _UnoControlFixedTextModel extends MultiPropertyTest { public void _TextLineColor() { log.println("Testing with custom Property tester") ; testProperty("TextLineColor", ColorTester) ; - } + } } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java index 31bc7959a287..f277cbef2664 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.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 @@ -86,7 +86,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest { log.println("Testing with custom Property tester") ; testProperty("DefaultControl", ControlTester) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -97,7 +97,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } + } /** * This property can be void, so if old value is <code> null </code> @@ -111,7 +111,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest { } }) ; } - + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. @@ -123,7 +123,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest { super.getNewValue(p,v) ; } }) ; - } + } /** * This property can be void, so if old value is <code> null </code> @@ -166,7 +166,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest { } }) ; } - + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. @@ -182,7 +182,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest { return newValue; } }) ; - } + } /** * This property can be void, so if old value is <code> null </code> diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlGroupBoxModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlGroupBoxModel.java index 8b4183aa88fe..b82f65e07220 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlGroupBoxModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlGroupBoxModel.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 @@ -59,7 +59,7 @@ public class _UnoControlGroupBoxModel extends MultiPropertyTest { } }) ; } - + /** * Redefined method returns value, that differs from property value. */ @@ -71,7 +71,7 @@ public class _UnoControlGroupBoxModel extends MultiPropertyTest { return new Integer(17); } }; - + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. @@ -79,7 +79,7 @@ public class _UnoControlGroupBoxModel extends MultiPropertyTest { public void _TextLineColor() { log.println("Testing with custom Property tester") ; testProperty("TextLineColor", ColorTester) ; - } + } } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.java index 4955cce1dc1a..f9344d5a6ccf 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.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 @@ -79,7 +79,7 @@ public class _UnoControlImageControlModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -90,8 +90,8 @@ public class _UnoControlImageControlModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } - + } + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. @@ -104,6 +104,6 @@ public class _UnoControlImageControlModel extends MultiPropertyTest { } }) ; } - + } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java index 97c4bebde37e..21eba19082dc 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.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 @@ -65,7 +65,7 @@ public class _UnoControlListBoxModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -76,7 +76,7 @@ public class _UnoControlListBoxModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } + } /** * This property can be VOID, and in case if it is so new @@ -101,7 +101,7 @@ public class _UnoControlListBoxModel extends MultiPropertyTest { } }) ; } - + /** * Redefined method returns value, that differs from property value. */ @@ -113,7 +113,7 @@ public class _UnoControlListBoxModel extends MultiPropertyTest { return new Integer(17); } }; - + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. @@ -121,6 +121,6 @@ public class _UnoControlListBoxModel extends MultiPropertyTest { public void _TextLineColor() { log.println("Testing with custom Property tester") ; testProperty("TextLineColor", ColorTester) ; - } + } } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlModel.java index 63dc6009d75d..c40f64620313 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlModel.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 @@ -30,6 +30,6 @@ package ifc.awt; import lib.MultiPropertyTest; public class _UnoControlModel extends MultiPropertyTest { - + } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.java index 4ea032cce8a5..913f4235911f 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.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 @@ -68,7 +68,7 @@ public class _UnoControlNumericFieldModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -79,7 +79,7 @@ public class _UnoControlNumericFieldModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } + } /** * This property can be VOID, and in case if it is so new @@ -92,7 +92,7 @@ public class _UnoControlNumericFieldModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -103,7 +103,7 @@ public class _UnoControlNumericFieldModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(4321) : null ; } }) ; - } + } /** * This property can be VOID, and in case if it is so new diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.java index 2fa75c03ba53..51fb016698ce 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.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 @@ -64,7 +64,7 @@ public class _UnoControlPatternFieldModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -75,7 +75,7 @@ public class _UnoControlPatternFieldModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } + } /** * This property can be VOID, and in case if it is so new @@ -88,7 +88,7 @@ public class _UnoControlPatternFieldModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -99,7 +99,7 @@ public class _UnoControlPatternFieldModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(4321) : null ; } }) ; - } + } /** * This property can be VOID, and in case if it is so new diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlProgressBarModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlProgressBarModel.java index 54bdb7195f16..a59e9f0963a2 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlProgressBarModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlProgressBarModel.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 diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.java index b7b54c05addf..31442493895b 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.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 @@ -71,7 +71,7 @@ public class _UnoControlRadioButtonModel extends MultiPropertyTest { } }) ; } - + /** * Redefined method returns value, that differs from property value. */ @@ -83,7 +83,7 @@ public class _UnoControlRadioButtonModel extends MultiPropertyTest { return new Integer(17); } }; - + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. @@ -91,8 +91,8 @@ public class _UnoControlRadioButtonModel extends MultiPropertyTest { public void _TextLineColor() { log.println("Testing with custom Property tester") ; testProperty("TextLineColor", ColorTester) ; - } - + } + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -103,6 +103,6 @@ public class _UnoControlRadioButtonModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } + } } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlScrollBarModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlScrollBarModel.java index 824c6f0185d8..edb8a07b986b 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlScrollBarModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlScrollBarModel.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 @@ -58,12 +58,12 @@ public class _UnoControlScrollBarModel extends MultiPropertyTest { */ public void _BackgroundColor() { testProperty("BackgroundColor", new PropertyTester() { - protected Object getNewValue(String p, Object old) { + protected Object getNewValue(String p, Object old) { return utils.isVoid(old) ? new Integer(32768) : null ; } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -74,8 +74,8 @@ public class _UnoControlScrollBarModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } - + } + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -86,15 +86,15 @@ public class _UnoControlScrollBarModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(65324) : null ; } }) ; - } - + } + /** * This property can be VOID, and in case if it is so new * value must defined. */ public void _ScrollValue() { testProperty("ScrollValue", new PropertyTester() { - protected Object getNewValue(String p, Object old) { + protected Object getNewValue(String p, Object old) { return utils.isVoid(old) ? new Integer(10) : new Integer(15) ; } }) ; diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlSpinButtonModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlSpinButtonModel.java index a0489db5cdf6..12464db2a4ff 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlSpinButtonModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlSpinButtonModel.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 @@ -31,19 +31,19 @@ import lib.MultiPropertyTest; import util.utils; public class _UnoControlSpinButtonModel extends MultiPropertyTest { - + /** * This property can be VOID, and in case if it is so new * value must defined. */ public void _BackgroundColor() { testProperty("BackgroundColor", new PropertyTester() { - protected Object getNewValue(String p, Object old) { + protected Object getNewValue(String p, Object old) { return utils.isVoid(old) ? new Integer(32768) : null ; } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -54,8 +54,8 @@ public class _UnoControlSpinButtonModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } - + } + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -66,6 +66,6 @@ public class _UnoControlSpinButtonModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(65324) : null ; } }) ; - } - + } + }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.java index 1e1a0b78d058..035ca42be8a1 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.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 @@ -72,7 +72,7 @@ public class _UnoControlTimeFieldModel extends MultiPropertyTest { } }) ; } - + /** * This property can be VOID, and in case if it is so new * value must defined. @@ -83,7 +83,7 @@ public class _UnoControlTimeFieldModel extends MultiPropertyTest { return utils.isVoid(old) ? new Integer(1234) : null ; } }) ; - } + } /** * This property can be VOID, and in case if it is so new diff --git a/qadevOOo/tests/java/ifc/awt/_XButton.java b/qadevOOo/tests/java/ifc/awt/_XButton.java index 3aacd8515144..c8c9adb2cf33 100644 --- a/qadevOOo/tests/java/ifc/awt/_XButton.java +++ b/qadevOOo/tests/java/ifc/awt/_XButton.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XCheckBox.java b/qadevOOo/tests/java/ifc/awt/_XCheckBox.java index e8307ed8f8bb..a0063d76e9d6 100644 --- a/qadevOOo/tests/java/ifc/awt/_XCheckBox.java +++ b/qadevOOo/tests/java/ifc/awt/_XCheckBox.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XComboBox.java b/qadevOOo/tests/java/ifc/awt/_XComboBox.java index 8dd65e33050c..aa3aecbcca2d 100644 --- a/qadevOOo/tests/java/ifc/awt/_XComboBox.java +++ b/qadevOOo/tests/java/ifc/awt/_XComboBox.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XControl.java b/qadevOOo/tests/java/ifc/awt/_XControl.java index fbf10ca97271..7f12c8cabad8 100644 --- a/qadevOOo/tests/java/ifc/awt/_XControl.java +++ b/qadevOOo/tests/java/ifc/awt/_XControl.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XControlContainer.java b/qadevOOo/tests/java/ifc/awt/_XControlContainer.java index 831df3461041..3ee305ea4e84 100644 --- a/qadevOOo/tests/java/ifc/awt/_XControlContainer.java +++ b/qadevOOo/tests/java/ifc/awt/_XControlContainer.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XCurrencyField.java b/qadevOOo/tests/java/ifc/awt/_XCurrencyField.java index 588962be5afd..755643ad522b 100644 --- a/qadevOOo/tests/java/ifc/awt/_XCurrencyField.java +++ b/qadevOOo/tests/java/ifc/awt/_XCurrencyField.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XDataTransferProviderAccess.java b/qadevOOo/tests/java/ifc/awt/_XDataTransferProviderAccess.java index 909723b8a429..1d1ccf3a3fe5 100644 --- a/qadevOOo/tests/java/ifc/awt/_XDataTransferProviderAccess.java +++ b/qadevOOo/tests/java/ifc/awt/_XDataTransferProviderAccess.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XDateField.java b/qadevOOo/tests/java/ifc/awt/_XDateField.java index a8eaf303302e..fd22837a36f5 100644 --- a/qadevOOo/tests/java/ifc/awt/_XDateField.java +++ b/qadevOOo/tests/java/ifc/awt/_XDateField.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 @@ -75,12 +75,12 @@ public class _XDateField extends MultiMethodTest { requiredMethod("getDate()") ; boolean result = true ; - oObj.setDate(19000101) ; + oObj.setDate(19000101) ; result = oObj.getDate() == 19000101 ; - + if (! result ) { - System.out.println("getDate: "+oObj.getDate()+" , expected 19000101"); + System.out.println("getDate: "+oObj.getDate()+" , expected 19000101"); } tRes.tested("setDate()", result) ; diff --git a/qadevOOo/tests/java/ifc/awt/_XDialog.java b/qadevOOo/tests/java/ifc/awt/_XDialog.java index a5fc0bf98170..91dc2a0cdf0f 100644 --- a/qadevOOo/tests/java/ifc/awt/_XDialog.java +++ b/qadevOOo/tests/java/ifc/awt/_XDialog.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XFixedText.java b/qadevOOo/tests/java/ifc/awt/_XFixedText.java index e93d97e85e19..5fc61841b7f5 100644 --- a/qadevOOo/tests/java/ifc/awt/_XFixedText.java +++ b/qadevOOo/tests/java/ifc/awt/_XFixedText.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XImageConsumer.java b/qadevOOo/tests/java/ifc/awt/_XImageConsumer.java index f47320fa3e2c..96e1de152adb 100644 --- a/qadevOOo/tests/java/ifc/awt/_XImageConsumer.java +++ b/qadevOOo/tests/java/ifc/awt/_XImageConsumer.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XImageProducer.java b/qadevOOo/tests/java/ifc/awt/_XImageProducer.java index 60dd0c9b7fdf..9e039772039c 100644 --- a/qadevOOo/tests/java/ifc/awt/_XImageProducer.java +++ b/qadevOOo/tests/java/ifc/awt/_XImageProducer.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XItemListener.java b/qadevOOo/tests/java/ifc/awt/_XItemListener.java index b5f920f4ffa7..27991c1eab52 100644 --- a/qadevOOo/tests/java/ifc/awt/_XItemListener.java +++ b/qadevOOo/tests/java/ifc/awt/_XItemListener.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XLayoutConstrains.java b/qadevOOo/tests/java/ifc/awt/_XLayoutConstrains.java index 81bfc6889175..4c11ebdb6b23 100644 --- a/qadevOOo/tests/java/ifc/awt/_XLayoutConstrains.java +++ b/qadevOOo/tests/java/ifc/awt/_XLayoutConstrains.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XListBox.java b/qadevOOo/tests/java/ifc/awt/_XListBox.java index 9d1e4a84702e..70becc6327cb 100644 --- a/qadevOOo/tests/java/ifc/awt/_XListBox.java +++ b/qadevOOo/tests/java/ifc/awt/_XListBox.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XMessageBoxFactory.java b/qadevOOo/tests/java/ifc/awt/_XMessageBoxFactory.java index 9c96506938da..9ec01eb5aaa1 100644 --- a/qadevOOo/tests/java/ifc/awt/_XMessageBoxFactory.java +++ b/qadevOOo/tests/java/ifc/awt/_XMessageBoxFactory.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XNumericField.java b/qadevOOo/tests/java/ifc/awt/_XNumericField.java index 65003777182c..3b86d1a9a22d 100644 --- a/qadevOOo/tests/java/ifc/awt/_XNumericField.java +++ b/qadevOOo/tests/java/ifc/awt/_XNumericField.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XPatternField.java b/qadevOOo/tests/java/ifc/awt/_XPatternField.java index 5cbd0145d76e..acf6312ba9a9 100644 --- a/qadevOOo/tests/java/ifc/awt/_XPatternField.java +++ b/qadevOOo/tests/java/ifc/awt/_XPatternField.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XRadioButton.java b/qadevOOo/tests/java/ifc/awt/_XRadioButton.java index 348ac264ecf5..c901c0cebadb 100644 --- a/qadevOOo/tests/java/ifc/awt/_XRadioButton.java +++ b/qadevOOo/tests/java/ifc/awt/_XRadioButton.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XScrollBar.java b/qadevOOo/tests/java/ifc/awt/_XScrollBar.java index a5a55d300aeb..cbaf7119ca77 100644 --- a/qadevOOo/tests/java/ifc/awt/_XScrollBar.java +++ b/qadevOOo/tests/java/ifc/awt/_XScrollBar.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 @@ -47,7 +47,7 @@ public class _XScrollBar extends MultiMethodTest { com.sun.star.awt.XAdjustmentListener listener = new AdjustmentListener(); public void _addAdjustmentListener() { - util.FormTools.switchDesignOf((XMultiServiceFactory) tParam.getMSF(), + util.FormTools.switchDesignOf((XMultiServiceFactory) tParam.getMSF(), (XTextDocument) tEnv.getObjRelation("Document")); shortWait(); oObj.addAdjustmentListener(listener); @@ -68,35 +68,35 @@ public class _XScrollBar extends MultiMethodTest { requiredMethod("addAdjustmentListener()"); tRes.tested("removeAdjustmentListener()", true); } - + public void _setBlockIncrement() { oObj.setBlockIncrement(15); oObj.setBlockIncrement(5); int bi = oObj.getBlockIncrement(); tRes.tested("setBlockIncrement()",bi==5); - } + } public void _getBlockIncrement() { //this method is checked in the corresponding set method //so that method is requiered here and if it works //this method is given OK too requiredMethod("setBlockIncrement()"); - tRes.tested("getBlockIncrement()", true); + tRes.tested("getBlockIncrement()", true); } - + public void _setLineIncrement() { oObj.setLineIncrement(12); oObj.setLineIncrement(2); int li = oObj.getLineIncrement(); tRes.tested("setLineIncrement()",li==2); - } + } public void _getLineIncrement() { //this method is checked in the corresponding set method //so that method is requiered here and if it works //this method is given OK too requiredMethod("setLineIncrement()"); - tRes.tested("getLineIncrement()", true); + tRes.tested("getLineIncrement()", true); } public void _setMaximum() { @@ -105,44 +105,44 @@ public class _XScrollBar extends MultiMethodTest { int max = oObj.getMaximum(); tRes.tested("setMaximum()",max==480); } - + public void _getMaximum() { //this method is checked in the corresponding set method //so that method is requiered here and if it works //this method is given OK too requiredMethod("setMaximum()"); - tRes.tested("getMaximum()", true); + tRes.tested("getMaximum()", true); } - + public void _setOrientation() { oObj.setOrientation(ScrollBarOrientation.HORIZONTAL); oObj.setOrientation(ScrollBarOrientation.VERTICAL); int ori = oObj.getOrientation(); tRes.tested("setOrientation()",ori==ScrollBarOrientation.VERTICAL); - } + } public void _getOrientation() { //this method is checked in the corresponding set method //so that method is requiered here and if it works //this method is given OK too requiredMethod("setOrientation()"); - tRes.tested("getOrientation()", true); + tRes.tested("getOrientation()", true); } - + public void _setValue() { oObj.setMaximum(600); oObj.setValue(480); oObj.setValue(520); int val = oObj.getValue(); tRes.tested("setValue()",val==520); - } + } public void _getValue() { //this method is checked in the corresponding set method //so that method is requiered here and if it works //this method is given OK too requiredMethod("setValue()"); - tRes.tested("getValue()", true); + tRes.tested("getValue()", true); } public void _setVisibleSize() { @@ -150,14 +150,14 @@ public class _XScrollBar extends MultiMethodTest { oObj.setVisibleSize(500); int vs = oObj.getVisibleSize(); tRes.tested("setVisibleSize()",vs==500); - } - + } + public void _getVisibleSize() { //this method is checked in the corresponding set method //so that method is requiered here and if it works //this method is given OK too requiredMethod("setVisibleSize()"); - tRes.tested("getVisibleSize()", true); + tRes.tested("getVisibleSize()", true); } public void _setValues() { @@ -165,8 +165,8 @@ public class _XScrollBar extends MultiMethodTest { oObj.setValues(70, 210, 500); int val = oObj.getValue(); int vs = oObj.getVisibleSize(); - int max = oObj.getMaximum(); - tRes.tested("setValues()",((val==70) && (vs==210) && (max==500))); + int max = oObj.getMaximum(); + tRes.tested("setValues()",((val==70) && (vs==210) && (max==500))); } private void adjustScrollBar() { @@ -176,17 +176,17 @@ public class _XScrollBar extends MultiMethodTest { XScrollBar.class, tEnv.getTestObject()); sc.setValue(500); - + shortWait(); XAccessible acc = (XAccessible) UnoRuntime.queryInterface( XAccessible.class, tEnv.getTestObject()); XAccessibleComponent aCom = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, acc.getAccessibleContext()); - Point location = aCom.getLocationOnScreen(); + Point location = aCom.getLocationOnScreen(); //Point location = (Point) tEnv.getObjRelation("Location"); //XAccessibleComponent aCom = (XAccessibleComponent) tEnv.getObjRelation("Location"); //Point location = aCom.getLocationOnScreen(); diff --git a/qadevOOo/tests/java/ifc/awt/_XSpinField.java b/qadevOOo/tests/java/ifc/awt/_XSpinField.java index 327aacbef7bf..e18bc8589610 100644 --- a/qadevOOo/tests/java/ifc/awt/_XSpinField.java +++ b/qadevOOo/tests/java/ifc/awt/_XSpinField.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XSpinValue.java b/qadevOOo/tests/java/ifc/awt/_XSpinValue.java index e0ab3513b6fe..dbbcc2c0332c 100644 --- a/qadevOOo/tests/java/ifc/awt/_XSpinValue.java +++ b/qadevOOo/tests/java/ifc/awt/_XSpinValue.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 @@ -40,13 +40,13 @@ import java.awt.event.InputEvent; import lib.MultiMethodTest; public class _XSpinValue extends MultiMethodTest { - + public XSpinValue oObj; public boolean adjusted = false; com.sun.star.awt.XAdjustmentListener listener = new AdjustmentListener(); public void _addAdjustmentListener() { - util.FormTools.switchDesignOf((XMultiServiceFactory) tParam.getMSF(), + util.FormTools.switchDesignOf((XMultiServiceFactory) tParam.getMSF(), (XTextDocument) tEnv.getObjRelation("Document")); shortWait(); oObj.addAdjustmentListener(listener); @@ -67,22 +67,22 @@ public class _XSpinValue extends MultiMethodTest { requiredMethod("addAdjustmentListener()"); tRes.tested("removeAdjustmentListener()", true); } - + public void _setSpinIncrement() { oObj.setSpinIncrement(15); oObj.setSpinIncrement(5); int bi = oObj.getSpinIncrement(); tRes.tested("setSpinIncrement()",bi==5); - } + } public void _getSpinIncrement() { //this method is checked in the corresponding set method //so that method is requiered here and if it works //this method is given OK too requiredMethod("setSpinIncrement()"); - tRes.tested("getSpinIncrement()", true); + tRes.tested("getSpinIncrement()", true); } - + public void _setMaximum() { oObj.setMaximum(490); @@ -90,30 +90,30 @@ public class _XSpinValue extends MultiMethodTest { int max = oObj.getMaximum(); tRes.tested("setMaximum()",max==480); } - + public void _getMaximum() { //this method is checked in the corresponding set method //so that method is requiered here and if it works //this method is given OK too requiredMethod("setMaximum()"); - tRes.tested("getMaximum()", true); + tRes.tested("getMaximum()", true); } - + public void _setMinimum() { oObj.setMinimum(90); oObj.setMinimum(80); int max = oObj.getMinimum(); tRes.tested("setMinimum()",max==80); } - + public void _getMinimum() { //this method is checked in the corresponding set method //so that method is requiered here and if it works //this method is given OK too requiredMethod("setMinimum()"); - tRes.tested("getMinimum()", true); - } - + tRes.tested("getMinimum()", true); + } + public void _setOrientation() { boolean res = true; try { @@ -125,30 +125,30 @@ public class _XSpinValue extends MultiMethodTest { int ori = oObj.getOrientation(); res &= (ori==ScrollBarOrientation.VERTICAL); tRes.tested("setOrientation()",res ); - } + } public void _getOrientation() { //this method is checked in the corresponding set method //so that method is requiered here and if it works //this method is given OK too requiredMethod("setOrientation()"); - tRes.tested("getOrientation()", true); + tRes.tested("getOrientation()", true); } - + public void _setValue() { oObj.setMaximum(600); oObj.setValue(480); oObj.setValue(520); int val = oObj.getValue(); tRes.tested("setValue()",val==520); - } + } public void _getValue() { //this method is checked in the corresponding set method //so that method is requiered here and if it works //this method is given OK too requiredMethod("setValue()"); - tRes.tested("getValue()", true); + tRes.tested("getValue()", true); } public void _setValues() { @@ -156,8 +156,8 @@ public class _XSpinValue extends MultiMethodTest { oObj.setValues(70, 210, 200); int val = oObj.getValue(); int min = oObj.getMinimum(); - int max = oObj.getMaximum(); - tRes.tested("setValues()",((min==70) && (max==210) && (val==200))); + int max = oObj.getMaximum(); + tRes.tested("setValues()",((min==70) && (max==210) && (val==200))); } private void adjustScrollBar() { @@ -167,17 +167,17 @@ public class _XSpinValue extends MultiMethodTest { XSpinValue.class, tEnv.getTestObject()); sv.setValue(500); - + shortWait(); XAccessible acc = (XAccessible) UnoRuntime.queryInterface( XAccessible.class, tEnv.getTestObject()); XAccessibleComponent aCom = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, acc.getAccessibleContext()); - Point location = aCom.getLocationOnScreen(); + Point location = aCom.getLocationOnScreen(); //Point location = (Point) tEnv.getObjRelation("Location"); //XAccessibleComponent aCom = (XAccessibleComponent) tEnv.getObjRelation("Location"); //Point location = aCom.getLocationOnScreen(); @@ -216,5 +216,5 @@ public class _XSpinValue extends MultiMethodTest { System.out.println("Listener disposed"); } } - + } diff --git a/qadevOOo/tests/java/ifc/awt/_XTabController.java b/qadevOOo/tests/java/ifc/awt/_XTabController.java index baf9b8f97bcc..a266bcbfc0f9 100644 --- a/qadevOOo/tests/java/ifc/awt/_XTabController.java +++ b/qadevOOo/tests/java/ifc/awt/_XTabController.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XTabControllerModel.java b/qadevOOo/tests/java/ifc/awt/_XTabControllerModel.java index 42442185c539..c1637450dbd9 100644 --- a/qadevOOo/tests/java/ifc/awt/_XTabControllerModel.java +++ b/qadevOOo/tests/java/ifc/awt/_XTabControllerModel.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XTextComponent.java b/qadevOOo/tests/java/ifc/awt/_XTextComponent.java index 850b281b00f8..3a8a64c115fe 100644 --- a/qadevOOo/tests/java/ifc/awt/_XTextComponent.java +++ b/qadevOOo/tests/java/ifc/awt/_XTextComponent.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 @@ -188,12 +188,12 @@ public class _XTextComponent extends MultiMethodTest { oObj.setText(text); oObj.setSelection(new Selection(0,3)); boolean result = oObj.getSelectedText().equals(text); - + if (! result) { System.out.println("Getting '"+oObj.getSelectedText()+"'"); System.out.println("Expected '"+text+"'"); } - + tRes.tested("getSelectedText()",result); } diff --git a/qadevOOo/tests/java/ifc/awt/_XTextLayoutConstrains.java b/qadevOOo/tests/java/ifc/awt/_XTextLayoutConstrains.java index 135a1abe917b..10663621dd2d 100644 --- a/qadevOOo/tests/java/ifc/awt/_XTextLayoutConstrains.java +++ b/qadevOOo/tests/java/ifc/awt/_XTextLayoutConstrains.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XTextListener.java b/qadevOOo/tests/java/ifc/awt/_XTextListener.java index df40799cb369..245642a803d8 100644 --- a/qadevOOo/tests/java/ifc/awt/_XTextListener.java +++ b/qadevOOo/tests/java/ifc/awt/_XTextListener.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 @@ -115,14 +115,14 @@ public class _XTextListener extends MultiMethodTest { tRes.tested("textChanged()", result) ; } - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); } - + } diff --git a/qadevOOo/tests/java/ifc/awt/_XTimeField.java b/qadevOOo/tests/java/ifc/awt/_XTimeField.java index 95f31140b847..59da87e5de7e 100644 --- a/qadevOOo/tests/java/ifc/awt/_XTimeField.java +++ b/qadevOOo/tests/java/ifc/awt/_XTimeField.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 @@ -74,7 +74,7 @@ public class _XTimeField extends MultiMethodTest { oObj.setTime(11150000) ; result = oObj.getTime() == 11150000 ; - + if (! result ) { System.out.println("Getting "+oObj.getTime()+ " expected 11150000"); } diff --git a/qadevOOo/tests/java/ifc/awt/_XToolkit.java b/qadevOOo/tests/java/ifc/awt/_XToolkit.java index 8824c3bba9ac..c70d66594013 100644 --- a/qadevOOo/tests/java/ifc/awt/_XToolkit.java +++ b/qadevOOo/tests/java/ifc/awt/_XToolkit.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XTopWindow.java b/qadevOOo/tests/java/ifc/awt/_XTopWindow.java index e1203d7a6e31..f3e2d7c5354c 100644 --- a/qadevOOo/tests/java/ifc/awt/_XTopWindow.java +++ b/qadevOOo/tests/java/ifc/awt/_XTopWindow.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 diff --git a/qadevOOo/tests/java/ifc/awt/_XUnoControlContainer.java b/qadevOOo/tests/java/ifc/awt/_XUnoControlContainer.java index 99fd41135c1a..41c2579eda81 100644 --- a/qadevOOo/tests/java/ifc/awt/_XUnoControlContainer.java +++ b/qadevOOo/tests/java/ifc/awt/_XUnoControlContainer.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 @@ -56,12 +56,12 @@ public class _XUnoControlContainer extends MultiMethodTest { private XTabController tabControl1 = null; private XTabController tabControl2 = null; - /** + /** * This method gets the object relations. - * + * */ protected void before() { - + tabControl1 = (XTabController) tEnv.getObjRelation("TABCONTROL1"); tabControl2 = (XTabController) tEnv.getObjRelation("TABCONTROL2"); if ((tabControl1 == null) || (tabControl2 == null)){ @@ -70,16 +70,16 @@ public class _XUnoControlContainer extends MultiMethodTest { } TabControllers[0] = tabControl1; TabControllers[1] = tabControl2; - + } - - - + + + /** * This tests removes the object relations <code>TABCONTROL1</code> and * <code>TABCONTROL1</code>. - * Has <b> OK </b> status if the sequenze of <code>XTabController[]</code> - * get before calling method is smaller then sequenze of + * Has <b> OK </b> status if the sequenze of <code>XTabController[]</code> + * get before calling method is smaller then sequenze of * <code>XTabController[]</code> get after calling method.<p> * * The following method tests are to be completed successfully before : @@ -91,23 +91,23 @@ public class _XUnoControlContainer extends MultiMethodTest { public void _setTabControllers() { requiredMethod( "getTabControllers()"); requiredMethod( "removeTabController()"); - + log.println("removing TABCONTROL1 and TABCONTROL2"); oObj.removeTabController(tabControl1); oObj.removeTabController(tabControl2); - + log.println("get current controllers"); XTabController[] myTabControllers = oObj.getTabControllers(); log.println("set new controllers"); oObj.setTabControllers( TabControllers ); - + log.println("get new current controllers"); XTabController[] myNewTabControllers = oObj.getTabControllers(); - tRes.tested("setTabControllers()", + tRes.tested("setTabControllers()", (myTabControllers.length < myNewTabControllers.length )); - + } /** @@ -127,28 +127,28 @@ public class _XUnoControlContainer extends MultiMethodTest { /** * Test calls the method with object relation 'TABCONTROL1' as a parameter.<p> - * Has <b> OK </b> status if the sequenze of <code>XTabController[]</code> - * get before calling method is smaller then sequenze of + * Has <b> OK </b> status if the sequenze of <code>XTabController[]</code> + * get before calling method is smaller then sequenze of * <code>XTabController[]</code> get after calling method.<p> */ public void _addTabController() { log.println("get current controllers"); XTabController[] myTabControllers = oObj.getTabControllers(); - + log.println("add TABCONTROL1"); oObj.addTabController( tabControl1 ); - + log.println("get new current controllers"); XTabController[] myNewTabControllers = oObj.getTabControllers(); - - tRes.tested("addTabController()", + + tRes.tested("addTabController()", (myTabControllers.length < myNewTabControllers.length )); } /** * Test calls the method with object relation 'TABCONTROL2' as a parameter.<p> - * Has <b> OK </b> status if the sequenze of <code>XTabController[]</code> - * get before calling method is smaller then sequenze of + * Has <b> OK </b> status if the sequenze of <code>XTabController[]</code> + * get before calling method is smaller then sequenze of * <code>XTabController[]</code> get after calling method.<p> * * The following method tests are to be completed successfully before : @@ -163,17 +163,17 @@ public class _XUnoControlContainer extends MultiMethodTest { log.println("add TABCONTROL2"); oObj.addTabController( tabControl2 ); - + log.println("get current controllers"); XTabController[] myTabControllers = oObj.getTabControllers(); - + log.println("remove TABCONTROL2"); oObj.removeTabController(tabControl2); log.println("get new current controllers"); XTabController[] myNewTabControllers = oObj.getTabControllers(); - tRes.tested("removeTabController()", + tRes.tested("removeTabController()", (myTabControllers.length > myNewTabControllers.length )); } diff --git a/qadevOOo/tests/java/ifc/awt/_XUserInputInterception.java b/qadevOOo/tests/java/ifc/awt/_XUserInputInterception.java index cf52cfb5bd57..a5cbb17829f4 100644 --- a/qadevOOo/tests/java/ifc/awt/_XUserInputInterception.java +++ b/qadevOOo/tests/java/ifc/awt/_XUserInputInterception.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 @@ -67,9 +67,9 @@ import util.AccessibilityTools; */ public class _XUserInputInterception extends MultiMethodTest { public XUserInputInterception oObj = null; - + private XModel m_XModel = null; - + /** the listener 1 for the mouse click test */ private MyMouseClickHandler1 m_MouseListener1 = null; /** the listener 2 for the mouse click test */ @@ -84,23 +84,23 @@ public class _XUserInputInterception extends MultiMethodTest { private boolean m_mousePressed1 = false; /** indicates if the mouseReleased event was called*/ private boolean m_mouseReleased1 = false; - + /** indicates if the mousePressed event was called*/ private boolean m_mousePressed2 = false; /** indicates if the mouseReleased event was called*/ private boolean m_mouseReleased2 = false; - + /** indicates if the mousePressed event was called*/ private boolean m_keyPressed1 = false; /** indicates if the mouseReleased event was called*/ private boolean m_keyReleased1 = false; - + /** indicates if the mousePressed event was called*/ private boolean m_keyPressed2 = false; /** indicates if the mouseReleased event was called*/ private boolean m_keyReleased2 = false; - - /** get the object rlation XUserInputInterception.XModel from the + + /** get the object rlation XUserInputInterception.XModel from the * test environment */ protected void before() { @@ -113,25 +113,25 @@ public class _XUserInputInterception extends MultiMethodTest { /** * This test adds two different key listener to the object. <p> - * + * * Has <b> OK </b> if no exception is thrown. */ public void _addKeyHandler() { - + log.println("creating key listener 1"); m_KeyListener1 = new MyKeyHandler1(); - + log.println("creating key listener 2"); m_KeyListener2 = new MyKeyHandler2(); - - + + log.println("adding key listener 1"); oObj.addKeyHandler(m_KeyListener1); - + log.println("adding key listener 2"); oObj.addKeyHandler(m_KeyListener2); - + tRes.tested("addKeyHandler()", true); } @@ -149,21 +149,21 @@ public class _XUserInputInterception extends MultiMethodTest { requiredMethod("addKeyHandler()"); log.println("remove key listener 2"); - + oObj.removeKeyHandler(m_KeyListener2); - + log.println("starting thread to check the key listener..."); EventTrigger et = new EventTrigger(m_XModel, EventTriggerType.KEY_TEXT_INTO_DOC); et.run(); - + util.utils.shortWait(tParam.getInt(util.PropertyName.SHORT_WAIT) * 2); log.println("key listener thread should be finished."); - - + + boolean bOK = m_keyPressed1 & m_keyReleased1 & ! m_keyPressed2 & ! m_keyReleased2; - + if (! bOK){ log.println("The key listener has not the expectd status:"); log.println("listener\texpected\tgot"); @@ -172,16 +172,16 @@ public class _XUserInputInterception extends MultiMethodTest { log.println("keyPressed2\tfalse\t"+m_keyPressed2); log.println("keyReleased2\tfalse\t"+m_keyReleased2); } - + log.println("remove Key listener 1"); oObj.removeKeyHandler(m_KeyListener1); - + tRes.tested("removeKeyHandler()", bOK); } /** * This test adds two different mouse klick listener to the object. <p> - * + * * Has <b> OK </b> if no exception is thrown. */ public void _addMouseClickHandler() { @@ -189,12 +189,12 @@ public class _XUserInputInterception extends MultiMethodTest { m_MouseListener1 = new MyMouseClickHandler1(); log.println("creating mouse listener 2"); m_MouseListener2 = new MyMouseClickHandler2(); - + log.println("adding mouse listener 1"); oObj.addMouseClickHandler(m_MouseListener1); log.println("adding mouse listener 2"); oObj.addMouseClickHandler(m_MouseListener2); - + tRes.tested("addMouseClickHandler()", true); } @@ -210,22 +210,22 @@ public class _XUserInputInterception extends MultiMethodTest { */ public void _removeMouseClickHandler() { requiredMethod("addMouseClickHandler"); - + log.println("remove mouse listener 2"); - + oObj.removeMouseClickHandler(m_MouseListener2); - + log.println("starting thread to check the mouse listener..."); EventTrigger et = new EventTrigger(m_XModel, EventTriggerType.MOUSE_KLICK_INTO_DOC); et.run(); - + util.utils.shortWait(tParam.getInt(util.PropertyName.SHORT_WAIT) * 2); log.println("mouse listener thread should be finished."); - + boolean bOK = m_mousePressed1 & m_mouseReleased1 & ! m_mousePressed2 & ! m_mouseReleased2; - + if (! bOK){ log.println("The mouse listener has not the expectd status:"); log.println("listener\t\texpected\tgot"); @@ -234,21 +234,21 @@ public class _XUserInputInterception extends MultiMethodTest { log.println("mousePressed2\tfalse\t\t"+m_mousePressed2); log.println("mouseReleased2\tfalse\t\t"+m_mouseReleased2); } - + log.println("remove mouse listener 1"); oObj.removeMouseClickHandler(m_MouseListener1); - + tRes.tested("removeMouseClickHandler()", bOK); } - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); - } - + } + /** * Listener which added and its method must be called * on <code>keyPressed</code> and <code>keyReleased</code> call. @@ -322,7 +322,7 @@ public class _XUserInputInterception extends MultiMethodTest { "This should not be happen because listener is removed!"); } } - + /** * Listener which added and its method must be called * on <code>mousePressed</code> and <code>mouseReleased</code> call. @@ -358,7 +358,7 @@ public class _XUserInputInterception extends MultiMethodTest { log.println("XMouseClickHandler 1: disposing-Event"); } }; - + /** * Listener which added and removed. Its method must NOT be called * on <code>mousePressed</code> and <code>mouseReleased</code> call. @@ -397,14 +397,14 @@ public class _XUserInputInterception extends MultiMethodTest { " This should not be happen because listener is removed!"); } }; - + /** * To check the events this class is a thread which click a mouse button and * press a key with the <CODE>Robot</CODE> class * @see java.awt.Robot */ private class EventTrigger extends Thread{ - + /** * represents a <CODE>AccessibilityTools</CODE> */ @@ -418,7 +418,7 @@ public class _XUserInputInterception extends MultiMethodTest { * represents a <CODE>XModel</CODE> of a document */ private XModel xModel = null; - + /** * Creates an instacne of this class. The parameter <CODE>eType</CODE> represents * the kind of event wich will be triggert at <CODE>run()</CODE> @@ -430,17 +430,17 @@ public class _XUserInputInterception extends MultiMethodTest { this.xModel = model; this.eventType = eType; } - + /** * Triggers the event wich is represented by <CODE>eventType</CODE> * The scenarios are: * <ul> * <li>EventTest.EventTriggerType.MOUSE_KLICK_INTO_DOC - * which calls + * which calls * <li><CODE>clickIntoDoc</CODE></LI> * </LI> * <li>EventTest.EventTriggerType.KEY_TEXT_INTO_DOC - * which calls + * which calls * <li><CODE>clickIntodoc</CODE></LI> * <li><CODE>keyIntoDoc</CODE></LI> * </LI> @@ -449,7 +449,7 @@ public class _XUserInputInterception extends MultiMethodTest { public void run(){ switch (this.eventType){ - + case EventTriggerType.MOUSE_KLICK_INTO_DOC: clickIntoDoc(); break; @@ -457,7 +457,7 @@ public class _XUserInputInterception extends MultiMethodTest { clickIntoDoc(); keyIntoDoc(); break; - + } } /** @@ -471,14 +471,14 @@ public class _XUserInputInterception extends MultiMethodTest { try{ util.DesktopTools.bringWindowToFront(xModel); - + XWindow xWindow = at.getCurrentWindow( - (XMultiServiceFactory) tParam.getMSF(), + (XMultiServiceFactory) tParam.getMSF(), xModel); - + XAccessible xRoot = at.getAccessibleObject(xWindow); - - + + XAccessibleContext xPanel = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL); XAccessibleComponent xPanelCont = (XAccessibleComponent) UnoRuntime.queryInterface(XAccessibleComponent.class, xPanel); @@ -504,7 +504,7 @@ public class _XUserInputInterception extends MultiMethodTest { log.println("could not click into the scroll bar: " + e.toString()); } } - + /** * This method press the "A" key. Therefore it uses the <CODE>Robot</CODE> * class. @@ -519,21 +519,21 @@ public class _XUserInputInterception extends MultiMethodTest { } catch (java.awt.AWTException e) { log.println("couldn't press key"); } - + } } - - /** This interface represents all possible actions which could be used + + /** This interface represents all possible actions which could be used * in the <CODE>EventTrigger</CODE> class. * @see EventTest.EventTrigger - */ + */ private interface EventTriggerType{ - + /** klick the mouse into the scroll bar*/ final public static int MOUSE_KLICK_INTO_DOC = 1; - + /** write some text into a spread sheet*/ final public static int KEY_TEXT_INTO_DOC = 2; - } + } } diff --git a/qadevOOo/tests/java/ifc/awt/_XView.java b/qadevOOo/tests/java/ifc/awt/_XView.java index a3f87c2ea3dc..a54c5268387b 100644 --- a/qadevOOo/tests/java/ifc/awt/_XView.java +++ b/qadevOOo/tests/java/ifc/awt/_XView.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 @@ -131,13 +131,13 @@ public class _XView extends MultiMethodTest { oObj.setZoom(2,2); tRes.tested("setZoom()", true); } - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); - } - + } + } diff --git a/qadevOOo/tests/java/ifc/awt/_XWindow.java b/qadevOOo/tests/java/ifc/awt/_XWindow.java index f3cfda4e6085..80c3c70763fb 100644 --- a/qadevOOo/tests/java/ifc/awt/_XWindow.java +++ b/qadevOOo/tests/java/ifc/awt/_XWindow.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 @@ -270,7 +270,7 @@ public class _XWindow extends MultiMethodTest { log.println("set object invisible..."); oObj.setVisible(false); shortWait(); - res = wListener.hidden && !wListener.resized + res = wListener.hidden && !wListener.resized && !wListener.moved && !wListener.shown; result &= res; if (!res) { @@ -288,7 +288,7 @@ public class _XWindow extends MultiMethodTest { log.println("set object visible..."); oObj.setVisible(true) ; shortWait(); - res = wListener.shown && !wListener.resized && + res = wListener.shown && !wListener.resized && !wListener.hidden && !wListener.moved; result &= res; if (!res) { diff --git a/qadevOOo/tests/java/ifc/awt/tree/_TreeControlModel.java b/qadevOOo/tests/java/ifc/awt/tree/_TreeControlModel.java index 197ec80110e8..4cd54d7ae8e4 100644 --- a/qadevOOo/tests/java/ifc/awt/tree/_TreeControlModel.java +++ b/qadevOOo/tests/java/ifc/awt/tree/_TreeControlModel.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 diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeDataModel.java b/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeDataModel.java index cc21a2828db0..d6ff1ce97dd9 100644 --- a/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeDataModel.java +++ b/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeDataModel.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 @@ -45,7 +45,7 @@ import lib.MultiMethodTest; public class _XMutableTreeDataModel extends MultiMethodTest { public XMutableTreeDataModel oObj = null; - + private XMutableTreeNode mNewNode = null; /** @@ -70,26 +70,26 @@ public class _XMutableTreeDataModel extends MultiMethodTest { */ public void _setRoot() { requiredMethod("createNode()") ; - + boolean bOK = true; try { - + oObj.setRoot(mNewNode); } catch (com.sun.star.lang.IllegalArgumentException ex) { bOK = false; log.println("ERROR: while trying to set a new root an IllegalArgumentException was thrown:\n" + ex.toString()); } - + try { - + oObj.setRoot(null); bOK = false; log.println("ERROR: while trying to set a null object as root expected IllegalArgumentException was not thrown."); } catch (com.sun.star.lang.IllegalArgumentException ex) { log.println("expected IllegalArgumentException was thrown => ok"); - + } - + tRes.tested("setRoot()", bOK); } diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeNode.java b/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeNode.java index e90665889733..1373d97c4904 100644 --- a/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeNode.java +++ b/qadevOOo/tests/java/ifc/awt/tree/_XMutableTreeNode.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 @@ -51,68 +51,68 @@ import lib.StatusException; * @see com.sun.star.awt.tree.XTreeDataModel */ public class _XMutableTreeNode extends MultiMethodTest { - + public XMutableTreeNode oObj = null; - + private int mCount = 0; - + private XMutableTreeNodeCreator nodeCreator = null; - + public static interface XMutableTreeNodeCreator{ public XMutableTreeNode createNode(String name); } - + public void before(){ nodeCreator = (XMutableTreeNodeCreator) tEnv.getObjRelation("XMutableTreeNodeCreator"); if (nodeCreator == null){ throw new StatusException(Status.failed( "Couldn't get relation 'XMutableTreeNodeCreator'")); } - + } - + public void _appendChild(){ boolean bOK = true; - + log.println("try to append a valid node..."); - + XMutableTreeNode myNode = nodeCreator.createNode("myNodeToAppend"); - + try { oObj.appendChild(myNode); } catch (com.sun.star.lang.IllegalArgumentException ex) { log.println("ERROR: could not appedn a valid node: " + ex.toString()); bOK = false; } - + log.println("try to append the node a second time..."); try { - + oObj.appendChild(myNode); log.println("ERROR: expected IllegalArgumentException was not thrown => FAILED"); bOK = false; } catch (com.sun.star.lang.IllegalArgumentException ex) { log.println("expected IllegalArgumentException was thrown => OK"); } - + log.println("try to append the object itself..."); try { - + oObj.appendChild(oObj); log.println("ERROR: expected IllegalArgumentException was not thrown => FAILED"); bOK = false; } catch (com.sun.star.lang.IllegalArgumentException ex) { log.println("expected IllegalArgumentException was thrown => OK"); } - + tRes.tested("appendChild()", bOK); } - + public void _insertChildByIndex(){ boolean bOK = true; XMutableTreeNode myNode = nodeCreator.createNode("myNodeToInsert"); - + try { log.println("try to insert a valid node..."); oObj.insertChildByIndex(0, myNode); @@ -123,7 +123,7 @@ public class _XMutableTreeNode extends MultiMethodTest { log.println("ERROR: could not insert a valid node on index '0': " + ex.toString()); bOK = false; } - + try { log.println("try to insert a valid node a second time..."); oObj.insertChildByIndex(0, myNode); @@ -137,7 +137,7 @@ public class _XMutableTreeNode extends MultiMethodTest { } XMutableTreeNode myNode2 = nodeCreator.createNode("myNodeToInsert2"); - + try { log.println("try to insert a valid node on invalid index '-3'..."); oObj.insertChildByIndex(-3, myNode2); @@ -149,7 +149,7 @@ public class _XMutableTreeNode extends MultiMethodTest { } catch (com.sun.star.lang.IndexOutOfBoundsException ex) { log.println("Expected IndexOutOfBoundsException was thrown => OK"); } - + try { log.println("try to insert the object itself..."); oObj.insertChildByIndex(0, oObj); @@ -164,12 +164,12 @@ public class _XMutableTreeNode extends MultiMethodTest { tRes.tested("insertChildByIndex()", bOK); } - + public void _removeChildByIndex(){ - + requiredMethod("insertChildByIndex()"); boolean bOK = true; - + try { log.println("try to remove node at index '0'..."); oObj.removeChildByIndex(0); @@ -177,7 +177,7 @@ public class _XMutableTreeNode extends MultiMethodTest { log.println("ERROR: IndexOutOfBoundsException was thrown => FAILED"); bOK = false; } - + try { log.println("try to remove node at invalid index '-3'"); oObj.removeChildByIndex(-3); @@ -188,88 +188,88 @@ public class _XMutableTreeNode extends MultiMethodTest { } tRes.tested("removeChildByIndex()", bOK); } - + public void _setHasChildrenOnDemand(){ boolean bOK = true; - + log.println("setHasChildrenOnDemand(true)"); oObj.setHasChildrenOnDemand(true); - + log.println("setHasChildrenOnDemand(false)"); oObj.setHasChildrenOnDemand(false); - + tRes.tested("setHasChildrenOnDemand()", bOK); } - + public void _setDisplayValue(){ boolean bOK = true; - + log.println("setDisplayValue(\"MyTestValue\")"); oObj.setDisplayValue("MyTestValue"); log.println("setDisplayValue(null)"); oObj.setDisplayValue(null); - + log.println("oObj.setDisplayValue(oObj)"); oObj.setDisplayValue(oObj); - + tRes.tested("setDisplayValue()", bOK); } - + public void _setNodeGraphicURL(){ boolean bOK = true; - + log.println("setNodeGraphicURL(\"MyTestURL\")"); oObj.setNodeGraphicURL("MyTestURL"); - + log.println("setNodeGraphicURL(null)"); oObj.setNodeGraphicURL(null); - + tRes.tested("setNodeGraphicURL()", bOK); } - + public void _setExpandedGraphicURL(){ boolean bOK = true; - + log.println("setExpandedGraphicURL(\"myExpandedURL\")"); oObj.setExpandedGraphicURL("myExpandedURL"); - + log.println("setExpandedGraphicURL(null)"); oObj.setExpandedGraphicURL(null); - + tRes.tested("setExpandedGraphicURL()", bOK); } - + public void _setCollapsedGraphicURL(){ boolean bOK = true; - + log.println("setCollapsedGraphicURL(\"myCollapsedURL\")"); oObj.setCollapsedGraphicURL("myCollapsedURL"); - + log.println("setCollapsedGraphicURL(null)"); oObj.setCollapsedGraphicURL(null); - + tRes.tested("setCollapsedGraphicURL()", bOK); } - + public void _DataValue(){ boolean bOK = true; - + log.println("setDataValue(\"myDataValue\")"); oObj.setDataValue("myDataValue"); - + String sDataValue = (String) oObj.getDataValue(); - + if ( ! sDataValue.equals("myDataValue")) { log.println("ERROR: getDataVlaue does not return the value which is inserted before:\n" + "\texpected: myDataValue\n" + "\tgot: " + sDataValue); bOK = false; } - + log.println("setDataValue(null)"); oObj.setDataValue(null); - + Object oDataValue = oObj.getDataValue(); if ( oDataValue != null) { log.println("ERROR: getDataVlaue does not return the value which is inserted before:\n" + @@ -277,10 +277,10 @@ public class _XMutableTreeNode extends MultiMethodTest { "\tgot: " + oDataValue.toString()); bOK = false; } - + log.println("oObj.setDisplayValue(oObj)"); oObj.setDisplayValue(oObj); - + oDataValue = oObj.getDataValue(); if ( oDataValue != null) { log.println("ERROR: getDataVlaue does not return the value which is inserted before:\n" + @@ -288,8 +288,8 @@ public class _XMutableTreeNode extends MultiMethodTest { "\tgot: " + oDataValue.toString()); bOK = false; } - + tRes.tested("DataValue()", bOK); } - + } diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java b/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java index 600298aea9e9..fa327967ceb7 100644 --- a/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.java +++ b/qadevOOo/tests/java/ifc/awt/tree/_XTreeControl.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 @@ -67,41 +67,41 @@ import lib.StatusException; * @see com.sun.star.awt.tree.XTreeControl */ public class _XTreeControl extends MultiMethodTest { - + public XTreeControl oObj = null; - + private XMutableTreeNode mNewNode = null; - + private XMutableTreeNode mXNode = null; - + XTreeExpansionListener mTreeExpansionListener1 = new TreeExpansionListenerImpl1(); - + XTreeExpansionListener mTreeExpansionListener2 = new TreeExpansionListenerImpl2(); - + XTreeEditListener mTreeEditListener1 = new TreeEditListenerImpl1(); - + XTreeEditListener mTreeEditListener2 = new TreeEditListenerImpl2(); - + boolean mTreeExpanded1 = false; boolean mTreeExpanding1 = false; boolean mTreeCollapsed1 = false; boolean mTreeCollapsing1 = false; - + boolean mTreeExpanded2 = false; boolean mTreeExpanding2 = false; boolean mTreeCollapsed2 = false; boolean mTreeCollapsing2 = false; - + boolean mTreeNodeEditing1 = false; boolean mTreeNodeEdit1 = false; - + boolean mTreeNodeEditing2 = false; boolean mTreeNodeEdit2 = false; - + public static interface XTreeDataModelListenerEvent{ public void fireEvent(); } - + public class TreeExpansionListenerImpl1 implements XTreeExpansionListener{ public void requestChildNodes(TreeExpansionEvent treeExpansionEvent) { log.println("event at ExpansionListener 1: requestChildNodes"); @@ -131,7 +131,7 @@ public class _XTreeControl extends MultiMethodTest { log.println("event at ExpansionListener 1: disposing"); } } - + public class TreeExpansionListenerImpl2 implements XTreeExpansionListener{ public void requestChildNodes(TreeExpansionEvent treeExpansionEvent) { log.println("event at ExpansionListener 2: requestChildNodes"); @@ -160,9 +160,9 @@ public class _XTreeControl extends MultiMethodTest { public void disposing(EventObject eventObject) { log.println("event at ExpansionListener 2: disposing"); } - + } - + public class TreeEditListenerImpl1 implements XTreeEditListener{ public void nodeEditing(XTreeNode xTreeNode) throws VetoException { log.println("event at EditListener 1: nodeEditing"); @@ -178,7 +178,7 @@ public class _XTreeControl extends MultiMethodTest { log.println("event at EditListener 1: disposing"); } } - + public class TreeEditListenerImpl2 implements XTreeEditListener{ public void nodeEditing(XTreeNode xTreeNode) throws VetoException { log.println("event at EditListener 2: nodeEditing"); @@ -195,7 +195,7 @@ public class _XTreeControl extends MultiMethodTest { log.println("event at EditListener 2: disposing"); } } - + private void resetTreeExpandingListener(){ mTreeExpanded1 = false; mTreeExpanded2 = false; @@ -206,42 +206,42 @@ public class _XTreeControl extends MultiMethodTest { mTreeCollapsing1 = false; mTreeCollapsing2 = false; } - + private void resetEditListener(){ mTreeNodeEditing1 = false; mTreeNodeEdit1 = false; mTreeNodeEditing2 = false; mTreeNodeEdit2 = false; } - + public void before(){ mXNode = (XMutableTreeNode) tEnv.getObjRelation("XTreeControl_Node"); if (mXNode == null) { throw new StatusException(Status.failed("ERROR: could not get object relation 'XTreeControl_Node'")); } } - + public void _isNodeExpanded() throws ExpandVetoException{ boolean bOK = true; boolean isExpanded = false; - + try { isExpanded = oObj.isNodeExpanded(mXNode); log.println("node is expanded: " + isExpanded); - + } catch (com.sun.star.lang.IllegalArgumentException ex) { bOK = false; log.println("ERROR: could not query for 'isNodeExpanded()': " + ex.toString()); } - - if (isExpanded) + + if (isExpanded) try { - + log.println("try to collapse node..."); oObj.collapseNode(mXNode); - + } catch (ExpandVetoException ex) { bOK = false; log.println("ERROR: could not collapse node: " + ex.toString()); @@ -249,12 +249,12 @@ public class _XTreeControl extends MultiMethodTest { bOK = false; log.println("ERROR: could not collapse node: " + ex.toString()); } - else + else try { - + log.println("try to expand node..."); oObj.expandNode(mXNode); - + } catch (ExpandVetoException ex) { bOK = false; log.println("ERROR: could not expand node: " + ex.toString()); @@ -262,44 +262,44 @@ public class _XTreeControl extends MultiMethodTest { bOK = false; log.println("ERROR: could not expand node: " + ex.toString()); } - + try { - + boolean isAlsoExpanded = oObj.isNodeExpanded(mXNode); - + bOK &= (isExpanded != isAlsoExpanded); - + log.println("node is expanded: " + isAlsoExpanded + " => " + bOK); } catch (com.sun.star.lang.IllegalArgumentException ex) { bOK = false; log.println("ERROR: could not query for 'isNodeExpanded()': " + ex.toString()); } - + tRes.tested("isNodeExpanded()", bOK); - + } public void _isNodeCollapsed(){ - + boolean bOK = true; boolean isCollapsed = false; - + try { isCollapsed = oObj.isNodeCollapsed(mXNode); log.println("node is Collapsed: " + isCollapsed); - + } catch (com.sun.star.lang.IllegalArgumentException ex) { bOK = false; log.println("ERROR: could not query for 'isNodeCollapsed()': " + ex.toString()); } - - if ( ! isCollapsed) + + if ( ! isCollapsed) try { - + log.println("try to collapse node..."); oObj.collapseNode(mXNode); - + } catch (ExpandVetoException ex) { bOK = false; log.println("ERROR: could not collapse node: " + ex.toString()); @@ -307,12 +307,12 @@ public class _XTreeControl extends MultiMethodTest { bOK = false; log.println("ERROR: could not collapse node: " + ex.toString()); } - else + else try { - + log.println("try to expand node..."); oObj.expandNode(mXNode); - + } catch (ExpandVetoException ex) { bOK = false; log.println("ERROR: could not expand node: " + ex.toString()); @@ -320,28 +320,28 @@ public class _XTreeControl extends MultiMethodTest { bOK = false; log.println("ERROR: could not expand node: " + ex.toString()); } - + try { - + boolean isAlsoCollapsed = oObj.isNodeCollapsed(mXNode); - + bOK &= (isCollapsed != isAlsoCollapsed); - + log.println("node is Collapsed: " + isAlsoCollapsed + " => " + bOK); } catch (com.sun.star.lang.IllegalArgumentException ex) { bOK = false; log.println("ERROR: could not query for 'isNodeCollapsed()': " + ex.toString()); } - + tRes.tested("isNodeCollapsed()", bOK); - + } public void _makeNodeVisible(){ - + boolean bOK = true; try { - + oObj.makeNodeVisible(mXNode); } catch (ExpandVetoException ex) { bOK = false; @@ -351,53 +351,53 @@ public class _XTreeControl extends MultiMethodTest { log.println("ERROR: could not call method 'makeNodeVisible()' successfully: " + ex.toString()); } try { - + bOK &= oObj.isNodeVisible(mXNode); } catch (com.sun.star.lang.IllegalArgumentException ex) { bOK = false; log.println("ERROR: could not call method 'isNodeVisible()' successfully: " + ex.toString()); } - + tRes.tested("makeNodeVisible()", bOK); - + } public void _isNodeVisible(){ - + this.requiredMethod("makeNodeVisible()"); boolean bOK = true; log.println("since required method 'makeNodeVisible()' uses method 'isNodeVisible()' this test is ok."); tRes.tested("isNodeVisible()", bOK); - + } - + public void _expandNode(){ - + this.requiredMethod("isNodeExpanded()"); - + boolean bOK = true; log.println("since required method 'isnodeExpanded()' uses method 'expandNode()' this test is ok."); tRes.tested("expandNode()", bOK); - + } - + public void _collapseNode(){ - + this.requiredMethod("isNodeCollapsed()"); - + boolean bOK = true; log.println("since required method 'isnodeCollapsed()' uses method 'expandNode()' this test is ok."); tRes.tested("collapseNode()", bOK); - + } - + public void _addTreeExpansionListener(){ - + boolean bOK = true; - + log.println("collapse Node to get an initial status..."); try { - + oObj.collapseNode(mXNode); } catch (ExpandVetoException ex) { bOK = false; @@ -406,15 +406,15 @@ public class _XTreeControl extends MultiMethodTest { bOK = false; log.println("ERROR: could not collapse node: " + ex.toString()); } - + log.println("add mTreeExpansionListener1..."); oObj.addTreeExpansionListener(mTreeExpansionListener1); - + log.println("add mTreeExpansionListener2"); oObj.addTreeExpansionListener(mTreeExpansionListener2); - - resetTreeExpandingListener(); - + + resetTreeExpandingListener(); + log.println("expand Node..."); try { @@ -427,15 +427,15 @@ public class _XTreeControl extends MultiMethodTest { bOK = false; log.println("ERROR: could not expand node: " + ex.toString()); } - + bOK &= mTreeExpanded1 & mTreeExpanded2 & ! mTreeCollapsed1 & ! mTreeCollapsed2 & mTreeExpanding1 & mTreeExpanding2 & ! mTreeCollapsing1 & ! mTreeCollapsing2; - - resetTreeExpandingListener(); - + + resetTreeExpandingListener(); + log.println("collapse Node..."); try { - + oObj.collapseNode(mXNode); } catch (ExpandVetoException ex) { bOK = false; @@ -444,23 +444,23 @@ public class _XTreeControl extends MultiMethodTest { bOK = false; log.println("ERROR: could not collapse node: " + ex.toString()); } - + bOK &= ! mTreeExpanded1 & ! mTreeExpanded2 & mTreeCollapsed1 & mTreeCollapsed2 & ! mTreeExpanding1 & ! mTreeExpanding2 & mTreeCollapsing1 & mTreeCollapsing2; - + tRes.tested("addTreeExpansionListener()", bOK); - + } - + public void _removeTreeExpansionListener(){ - + this.requiredMethod("addTreeExpansionListener()"); - + boolean bOK = true; - + log.println("collapse Node to get an initial status..."); try { - + oObj.collapseNode(mXNode); } catch (ExpandVetoException ex) { bOK = false; @@ -469,12 +469,12 @@ public class _XTreeControl extends MultiMethodTest { bOK = false; log.println("ERROR: could not collapse node: " + ex.toString()); } - + resetTreeExpandingListener(); - + log.println("remove mTreeExpansionListener2 ..."); oObj.removeTreeExpansionListener(mTreeExpansionListener2); - + log.println("expand Node..."); try { @@ -487,15 +487,15 @@ public class _XTreeControl extends MultiMethodTest { bOK = false; log.println("ERROR: could not expand node: " + ex.toString()); } - + bOK &= mTreeExpanded1 & ! mTreeExpanded2 & ! mTreeCollapsed1 & ! mTreeCollapsed2 & mTreeExpanding1 & ! mTreeExpanding2 & ! mTreeCollapsing1 & ! mTreeCollapsing2; - - resetTreeExpandingListener(); - + + resetTreeExpandingListener(); + log.println("collapse Node..."); try { - + oObj.collapseNode(mXNode); } catch (ExpandVetoException ex) { bOK = false; @@ -504,166 +504,166 @@ public class _XTreeControl extends MultiMethodTest { bOK = false; log.println("ERROR: could not collapse node: " + ex.toString()); } - + bOK &= ! mTreeExpanded1 & ! mTreeExpanded2 & mTreeCollapsed1 & ! mTreeCollapsed2 & ! mTreeExpanding1 & ! mTreeExpanding2 & mTreeCollapsing1 & ! mTreeCollapsing2; - + log.println("remove mTreeExpansionListener2 ..."); oObj.removeTreeExpansionListener(mTreeExpansionListener2); - + tRes.tested("removeTreeExpansionListener()", bOK); - + } - + public void _getNodeForLocation(){ - + boolean bOK = false; - - + + tRes.tested("getNodeForLocation()", bOK); - + } - + public void _getClosestNodeForLocation(){ - + boolean bOK = false; - + log.println("try to get Node for location 100,100"); XTreeNode myNode = oObj.getClosestNodeForLocation(100,100); - + bOK &= (myNode != null); - + tRes.tested("getClosestNodeForLocation()", bOK); - + } - + public void _isEditing(){ - + boolean bOK = false; - + log.println("not ready because of i78701"); - + tRes.tested("isEditing()", bOK); - + } - + public void _stopEditing(){ - + boolean bOK = false; log.println("not ready because of i78701"); - - + + tRes.tested("stopEditing()", bOK); - + } - + public void _cancelEditing(){ - + boolean bOK = false; - + log.println("not ready because of i78701"); - + tRes.tested("cancelEditing()", bOK); - + } - + public void _startEditingAtNode(){ - + boolean bOK = false; - + log.println("not ready because of i78701"); - + tRes.tested("startEditingAtNode()", bOK); - + } - + public void _addTreeEditListener(){ - + boolean bOK = true; - + log.println("add EditListener 1...."); oObj.addTreeEditListener(mTreeEditListener1); - + log.println("add EditListener 2...."); oObj.addTreeEditListener(mTreeEditListener2); - + resetEditListener(); - + try { - + oObj.startEditingAtNode(mXNode); } catch (com.sun.star.lang.IllegalArgumentException ex) { log.println("ERROR: could not start editing at node: " + ex.toString()); bOK = false; } - + log.println("not ready because of i78701"); bOK = false; - - + + tRes.tested("addTreeEditListener()", bOK); - + } - + public void _removeTreeEditListener(){ - + boolean bOK = false; - + log.println("not ready because of i78701"); - + tRes.tested("removeTreeEditListener()", bOK); - + } - + public void _DefaultExpandedGraphicURL(){ - + boolean bOK = true; - + String current = oObj.getDefaultExpandedGraphicURL(); log.println("current DefaultExpandedGraphicURL: " + current); - + String changeUrl = null; - - if (current.equals("private:graphicrepository/sd/res/triangle_right.png")) + + if (current.equals("private:graphicrepository/sd/res/triangle_right.png")) changeUrl = "private:graphicrepository/sd/res/triangle_down.png"; else changeUrl = "private:graphicrepository/sd/res/triangle_right.png"; log.println("try to set '" + changeUrl + "' as new DefaultExpandedGraphicURL"); - + oObj.setDefaultExpandedGraphicURL(changeUrl); - + String newUrl = oObj.getDefaultExpandedGraphicURL(); - + log.println("new DefaultExpandedGraphicURL: " + newUrl); - + bOK &= ! newUrl.equals(current); - + tRes.tested("DefaultExpandedGraphicURL()", bOK); - + } - + public void _DefaultCollapsedGraphicURL(){ - + boolean bOK = true; - + String current = oObj.getDefaultCollapsedGraphicURL(); log.println("current DefaultCollapsedGraphicURL: " + current); String changeUrl = null; - - if (current.equals("private:graphicrepository/sd/res/triangle_right.png")) + + if (current.equals("private:graphicrepository/sd/res/triangle_right.png")) changeUrl = "private:graphicrepository/sd/res/triangle_down.png"; else changeUrl = "private:graphicrepository/sd/res/triangle_right.png"; log.println("try to set '" + changeUrl + "' as new DefaultCollapsedGraphicURL"); oObj.setDefaultCollapsedGraphicURL(changeUrl); - + String newUrl = oObj.getDefaultCollapsedGraphicURL(); - + log.println("new DefaultCollapsedGraphicURL: " + newUrl); - + bOK &= ! newUrl.equals(current); - + tRes.tested("DefaultCollapsedGraphicURL()", bOK); } } diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XTreeDataModel.java b/qadevOOo/tests/java/ifc/awt/tree/_XTreeDataModel.java index c2a98b744bae..340523ee0b9d 100644 --- a/qadevOOo/tests/java/ifc/awt/tree/_XTreeDataModel.java +++ b/qadevOOo/tests/java/ifc/awt/tree/_XTreeDataModel.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 @@ -49,80 +49,80 @@ import lib.StatusException; * @see com.sun.star.awt.tree.XTreeDataModel */ public class _XTreeDataModel extends MultiMethodTest { - + public XTreeDataModel oObj = null; - + private XMutableTreeNode mNewNode = null; - + XTreeDataModelListener mListener1 = new myEventListener1(); - + XTreeDataModelListener mListener2 = new myEventListener2(); - + XTreeDataModelListenerEvent mListenerEvent = null; - + boolean mTreeStructureChanged1 = false; - + boolean mTreeStructureChanged2 = false; - + public static interface XTreeDataModelListenerEvent{ public void fireEvent(); } - + public class myEventListener1 implements XTreeDataModelListener{ public void treeNodesChanged(TreeDataModelEvent treeDataModelEvent) { log.println("Listener 1: treeNodesChanged"); } - + public void treeNodesInserted(TreeDataModelEvent treeDataModelEvent) { log.println("Listener 1: treeNodesInserted"); } - + public void treeNodesRemoved(TreeDataModelEvent treeDataModelEvent) { log.println("Listener 1: treeNodesRemoved"); } - + public void treeStructureChanged(TreeDataModelEvent treeDataModelEvent) { log.println("Listener 1: treeStructureChanged"); mTreeStructureChanged1 = true; } - + public void disposing(EventObject eventObject) { log.println("Listener 1: disposing"); } } - + public class myEventListener2 implements XTreeDataModelListener{ public void treeNodesChanged(TreeDataModelEvent treeDataModelEvent) { log.println("Listener 2: treeNodesChanged"); } - + public void treeNodesInserted(TreeDataModelEvent treeDataModelEvent) { log.println("Listener 2: treeNodesInserted"); } - + public void treeNodesRemoved(TreeDataModelEvent treeDataModelEvent) { log.println("Listener 2: treeNodesRemoved"); } - + public void treeStructureChanged(TreeDataModelEvent treeDataModelEvent) { log.println("Listener 2: treeStructureChanged"); mTreeStructureChanged2 = true; } - + public void disposing(EventObject eventObject) { log.println("Listener 2: disposing"); } - + } - + public void before(){ mListenerEvent = (XTreeDataModelListenerEvent) tEnv.getObjRelation("XTreeDataModelListenerEvent"); if (mListenerEvent == null) { - throw new StatusException(Status.failed("ERROR: could not get object relation 'XTreeDataModelListenerEvent'\n" + + throw new StatusException(Status.failed("ERROR: could not get object relation 'XTreeDataModelListenerEvent'\n" + "This object relation must be kind of 'ifc.awt.tree._XTreeDataModel.XTreeDataModelListenerEvent'")); } } - + /** * Gets the title and compares it to the value set in * <code>setTitle</code> method test. <p> @@ -133,50 +133,50 @@ public class _XTreeDataModel extends MultiMethodTest { * </ul> */ public void _getRoot() { - + boolean bOK = true; XTreeNode root = oObj.getRoot(); - + tRes.tested("getRoot()", bOK); - + } - + public void _addTreeDataModelListener(){ - + boolean bOK = true; - + log.println("add listener 1 to object..."); oObj.addTreeDataModelListener(mListener1); - + log.println("add listener 2 to object..."); oObj.addTreeDataModelListener(mListener2); - + mTreeStructureChanged1 = false; mTreeStructureChanged2 = false; - + mListenerEvent.fireEvent(); - + bOK = mTreeStructureChanged1 & mTreeStructureChanged2; - + tRes.tested("addTreeDataModelListener()", bOK); } - + public void _removeTreeDataModelListener(){ - + boolean bOK = true; - + log.println("remove listener 2 from object..."); oObj.removeTreeDataModelListener(mListener2); - + mTreeStructureChanged1 = false; mTreeStructureChanged2 = false; - + mListenerEvent.fireEvent(); - + bOK = mTreeStructureChanged1 & ! mTreeStructureChanged2; - + tRes.tested("removeTreeDataModelListener()", bOK); - + } } diff --git a/qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.java b/qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.java index e1eba75eb497..f7a6424c6152 100644 --- a/qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.java +++ b/qadevOOo/tests/java/ifc/awt/tree/_XTreeNode.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 @@ -51,44 +51,44 @@ import lib.StatusException; * @see com.sun.star.awt.tree.XTreeDataModel */ public class _XTreeNode extends MultiMethodTest { - + public XTreeNode oObj = null; - + private int mCount = 0; - + String msDisplayValue = null; String msExpandedGraphicURL = null; String msCollapsedGraphicURL = null; String msNodeGraphicURL = null; - - + + public void before(){ msDisplayValue = (String) tEnv.getObjRelation("XTreeNode_DisplayValue"); if (msDisplayValue == null){ throw new StatusException(Status.failed( "Couldn't get relation 'XTreeNode_DisplayVlaue'")); } - + msExpandedGraphicURL = (String) tEnv.getObjRelation("XTreeNode_ExpandedGraphicURL"); if (msExpandedGraphicURL == null){ throw new StatusException(Status.failed( "Couldn't get relation 'XTreeNode_ExpandedGraphicURL'")); } - + msCollapsedGraphicURL = (String) tEnv.getObjRelation("XTreeNode_CollapsedGraphicURL"); if (msCollapsedGraphicURL == null){ throw new StatusException(Status.failed( "Couldn't get relation 'XTreeNode_CollapsedGraphicURL'")); } - + msNodeGraphicURL = (String) tEnv.getObjRelation("XTreeNode_NodeGraphicURL"); if(msNodeGraphicURL == null){ throw new StatusException(Status.failed( "Couldn't get relation 'XTreeNode_NodeGraphicURL'")); } - + } - + /** * Gets the title and compares it to the value set in * <code>setTitle</code> method test. <p> @@ -101,7 +101,7 @@ public class _XTreeNode extends MultiMethodTest { public void _getChildAt(){ this.requiredMethod("getChildCount()"); boolean bOK = true; - + for (int i=0; i < mCount ; i++){ XTreeNode xNode = null; try { @@ -114,13 +114,13 @@ public class _XTreeNode extends MultiMethodTest { bOK = false; } } - + tRes.tested("getChildAt()", bOK); } - - + + public void _getChildCount(){ - + boolean bOK = true; mCount = oObj.getChildCount(); log.println("got count '" + mCount + "' of children"); @@ -130,11 +130,11 @@ public class _XTreeNode extends MultiMethodTest { } tRes.tested("getChildCount()", bOK); } - - + + public void _getParent(){ this.requiredMethod("getChildAt()"); - + boolean bOK = true; XTreeNode xNode = null; try { @@ -143,20 +143,20 @@ public class _XTreeNode extends MultiMethodTest { } catch (com.sun.star.lang.IndexOutOfBoundsException ex) { log.println("ERROR: getChildAt(0): " + ex.toString()); } - + log.println("try to get parrent of children"); XTreeNode xParrent = xNode.getParent(); - - + + bOK = oObj.equals(xParrent); log.println("original object and parrent should be the same: " + bOK); tRes.tested("getParent()", bOK); } - - + + public void _getIndex(){ this.requiredMethod("getChildAt()"); - + boolean bOK = true; XTreeNode xNode = null; try { @@ -165,57 +165,57 @@ public class _XTreeNode extends MultiMethodTest { } catch (com.sun.star.lang.IndexOutOfBoundsException ex) { log.println("ERROR: getChildAt(0): " + ex.toString()); } - + log.println("try to get index from child..."); int index = oObj.getIndex(xNode); - + if (index != 0){ log.println("ERROR: getIndex() does not return '0' => FAILED"); bOK = false; } - + tRes.tested("getIndex()", bOK); } - - + + public void _hasChildrenOnDemand(){ - + boolean bOK = true; - + bOK = oObj.hasChildrenOnDemand(); tRes.tested("hasChildrenOnDemand()", bOK); } - - + + public void _getDisplayValue(){ - + boolean bOK = true; String DisplayValue = null; Object dispVal = oObj.getDisplayValue(); - + try { DisplayValue = AnyConverter.toString(dispVal); } catch (com.sun.star.lang.IllegalArgumentException ex) { log.println("ERROR: could not convert the returned object of 'getDisplyValue()' " + "to String with AnyConverter: " + ex.toString()); } - + if ( ! this.msDisplayValue.equals(DisplayValue)){ log.println("ERROR: getNodeGraphicURL() does not return expected value:\n" + "\tExpected: " + this.msDisplayValue +"\n" + "\tGot: " + DisplayValue); bOK = false; } - + tRes.tested("getDisplayValue()", bOK); } - - + + public void _getNodeGraphicURL(){ - + boolean bOK = true; String graphicURL = oObj.getNodeGraphicURL(); - + if ( ! this.msNodeGraphicURL.equals(graphicURL)){ log.println("ERROR: getNodeGraphicURL() does not return expected value:\n" + "\tExpected: " + this.msNodeGraphicURL +"\n" + @@ -224,38 +224,38 @@ public class _XTreeNode extends MultiMethodTest { } tRes.tested("getNodeGraphicURL()", bOK); } - - + + public void _getExpandedGraphicURL(){ - + boolean bOK = true; String ExpandedGraphicURL = oObj.getExpandedGraphicURL(); - + if ( ! this.msExpandedGraphicURL.equals(ExpandedGraphicURL)){ log.println("ERROR: getExpandedGraphicURL() does not return expected value:\n" + "\tExpected: " + this.msExpandedGraphicURL +"\n" + "\tGot: " + ExpandedGraphicURL); bOK = false; } - + tRes.tested("getExpandedGraphicURL()", bOK); } - - + + public void _getCollapsedGraphicURL(){ - + boolean bOK = true; - + String CollapsedGraphicURL = oObj.getCollapsedGraphicURL(); - + if ( ! this.msCollapsedGraphicURL.equals(CollapsedGraphicURL)){ log.println("ERROR: getExpandedGraphicURL() does not return expected value:\n" + "\tExpected: " + this.msCollapsedGraphicURL +"\n" + "\tGot: " + CollapsedGraphicURL); bOK = false; } - + tRes.tested("getCollapsedGraphicURL()", bOK); } - + }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/beans/_XExactName.java b/qadevOOo/tests/java/ifc/beans/_XExactName.java index 805510ca93e0..467980f3e66b 100644 --- a/qadevOOo/tests/java/ifc/beans/_XExactName.java +++ b/qadevOOo/tests/java/ifc/beans/_XExactName.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 diff --git a/qadevOOo/tests/java/ifc/beans/_XFastPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XFastPropertySet.java index d4d29cfb4354..7ee65e44ae09 100644 --- a/qadevOOo/tests/java/ifc/beans/_XFastPropertySet.java +++ b/qadevOOo/tests/java/ifc/beans/_XFastPropertySet.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 diff --git a/qadevOOo/tests/java/ifc/beans/_XHierarchicalPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XHierarchicalPropertySet.java index 43cd9bffb43a..a62e5b56dd7d 100644 --- a/qadevOOo/tests/java/ifc/beans/_XHierarchicalPropertySet.java +++ b/qadevOOo/tests/java/ifc/beans/_XHierarchicalPropertySet.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 @@ -47,7 +47,7 @@ public class _XHierarchicalPropertySet extends MultiMethodTest { } else { log.println( "The component doesn't provide HierarchicalPropertySetInfo"); - tRes.tested("getHierarchicalPropertySetInfo()", + tRes.tested("getHierarchicalPropertySetInfo()", Status.skipped(true)); return; @@ -111,7 +111,7 @@ public class _XHierarchicalPropertySet extends MultiMethodTest { //reset Value oObj.setHierarchicalPropertyValue(pNames[k], oldValue); - + res &= localRes; } catch (com.sun.star.beans.UnknownPropertyException e) { log.println("Property is unknown"); @@ -122,7 +122,7 @@ public class _XHierarchicalPropertySet extends MultiMethodTest { } catch (com.sun.star.lang.WrappedTargetException e) { log.println("WrappedTarget "+e.getMessage()); } - + } tRes.tested("setHierarchicalPropertyValue()", res); diff --git a/qadevOOo/tests/java/ifc/beans/_XIntrospection.java b/qadevOOo/tests/java/ifc/beans/_XIntrospection.java index 0ba091c50309..a1a29d48d624 100644 --- a/qadevOOo/tests/java/ifc/beans/_XIntrospection.java +++ b/qadevOOo/tests/java/ifc/beans/_XIntrospection.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 diff --git a/qadevOOo/tests/java/ifc/beans/_XMultiHierarchicalPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XMultiHierarchicalPropertySet.java index b9348befa147..5eedf06029f1 100644 --- a/qadevOOo/tests/java/ifc/beans/_XMultiHierarchicalPropertySet.java +++ b/qadevOOo/tests/java/ifc/beans/_XMultiHierarchicalPropertySet.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 @@ -47,7 +47,7 @@ public class _XMultiHierarchicalPropertySet extends MultiMethodTest { } else { log.println( "The component doesn't provide HierarchicalPropertySetInfo"); - tRes.tested("getHierarchicalPropertySetInfo()", + tRes.tested("getHierarchicalPropertySetInfo()", Status.skipped(true)); return; @@ -78,7 +78,7 @@ public class _XMultiHierarchicalPropertySet extends MultiMethodTest { if (ro != null) { log.println(ro); - tRes.tested("setHierarchicalPropertyValues()", + tRes.tested("setHierarchicalPropertyValues()", Status.skipped(true)); return; @@ -100,7 +100,7 @@ public class _XMultiHierarchicalPropertySet extends MultiMethodTest { Object[] getValues = oObj.getHierarchicalPropertyValues(pNames); for (int k = 0; k < pNames.length; k++) { - boolean localRes = ValueComparer.equalValue(getValues[k], + boolean localRes = ValueComparer.equalValue(getValues[k], newValues[k]); if (!localRes) { diff --git a/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java index 27948c941f9b..ab71b24327f3 100644 --- a/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java +++ b/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.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 @@ -177,7 +177,7 @@ public class _XMultiPropertySet extends MultiMethodTest { boolean result = true ; // Creating listener oObj.addPropertiesChangeListener(testPropsNames, PClistener); - + if ((testPropsAmount==1) && (testPropsNames[0].equals("none"))) { testPropsAmount = 0; } @@ -278,15 +278,15 @@ public class _XMultiPropertySet extends MultiMethodTest { log.println("all properties are readOnly"); tRes.tested("setPropertyValues()",Status.skipped(true)); return; - } - + } + log.println("Changing all properties"); Object[] gValues = oObj.getPropertyValues(testPropsNames); for (int i=0; i<testPropsAmount;i++) { Object oldValue = gValues[i]; Object newValue = ValueChanger.changePValue(oldValue); gValues[i] = newValue; - } + } try { oObj.setPropertyValues(testPropsNames, gValues); @@ -329,7 +329,7 @@ public class _XMultiPropertySet extends MultiMethodTest { boolean isBound = ((property.Attributes & PropertyAttribute.BOUND) != 0); boolean isExcluded = exclProps.contains(name); - + //exclude UserDefined, because we can't change XNameContainer if (name.indexOf("UserDefined")>0 || name.indexOf("Device")>0) { isWritable=false; diff --git a/qadevOOo/tests/java/ifc/beans/_XMultiPropertyStates.java b/qadevOOo/tests/java/ifc/beans/_XMultiPropertyStates.java index 552a012f1161..601450c715ea 100644 --- a/qadevOOo/tests/java/ifc/beans/_XMultiPropertyStates.java +++ b/qadevOOo/tests/java/ifc/beans/_XMultiPropertyStates.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 @@ -71,7 +71,7 @@ public class _XMultiPropertyStates extends MultiMethodTest { log.print("}"); log.println(""); } - + /** * Test calls the method and checks return value. @@ -120,14 +120,14 @@ public class _XMultiPropertyStates extends MultiMethodTest { // searching for property which currently don't have default value // and preferable has MAYBEDEFAULT attr // if no such properties are found then the first one is selected - + String ro = (String) tEnv.getObjRelation("allReadOnly"); if (ro != null) { log.println(ro); tRes.tested("setPropertiesToDefault()",Status.skipped(true)); return; } - + boolean mayBeDef = false; String propName = names[0]; @@ -140,7 +140,7 @@ public class _XMultiPropertyStates extends MultiMethodTest { Property prop = null; try { prop = xPropSetInfo.getPropertyByName(names[i]); - } + } catch(com.sun.star.beans.UnknownPropertyException e) { log.println("couldn't get property info: " + e.toString()); throw new StatusException(Status.failed @@ -193,7 +193,7 @@ public class _XMultiPropertyStates extends MultiMethodTest { oObj.setAllPropertiesToDefault(); } catch(RuntimeException e) { log.println("Ignore Runtime Exception: " + e.getMessage()); - } + } log.println("Checking that all properties are now in DEFAULT state" + " excepting may be those which 'cann't be default'"); diff --git a/qadevOOo/tests/java/ifc/beans/_XProperty.java b/qadevOOo/tests/java/ifc/beans/_XProperty.java index a37a6c705b6e..2db3114d856d 100644 --- a/qadevOOo/tests/java/ifc/beans/_XProperty.java +++ b/qadevOOo/tests/java/ifc/beans/_XProperty.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 diff --git a/qadevOOo/tests/java/ifc/beans/_XPropertyAccess.java b/qadevOOo/tests/java/ifc/beans/_XPropertyAccess.java index 37b835431b8d..3a6de40053cc 100644 --- a/qadevOOo/tests/java/ifc/beans/_XPropertyAccess.java +++ b/qadevOOo/tests/java/ifc/beans/_XPropertyAccess.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 @@ -46,12 +46,12 @@ import lib.StatusException; * @see com.sun.star.beans.XPropertyAccess */ public class _XPropertyAccess extends MultiMethodTest { - + /** * oObj filled by MultiMethodTest */ public XPropertyAccess oObj = null;// oObj filled by MultiMethodTest - + /** * object relation X<CODE>PropertyAccess.propertyToChange</CODE><br> * This relation must be filled from the module. It contains a property which must @@ -59,7 +59,7 @@ public class _XPropertyAccess extends MultiMethodTest { * <CODE>setPropertyValues()</CODE> */ public PropertyValue propertyToChange = null; - + /** * checks if the object relation <CODE>XPropertyAccess.propertyToChange</CODE> * is available @@ -70,18 +70,18 @@ public class _XPropertyAccess extends MultiMethodTest { throw new StatusException(Status.failed("Object raltion 'XPropertyAccess.propertyToChange' is null")); } } - + /** * Test calls the method and checks if the returned sequenze contanis a propterty which is named * in the object relation <code>XPropertyAccess.propertyToChange</code>. */ public void _getPropertyValues() { PropertyValue[] properties = oObj.getPropertyValues(); - + boolean ok = true; - + if (properties != null){ - + boolean found = false; for (int i=0; i < properties.length; i++){ if (properties[i].Name.equals(propertyToChange.Name)) found = true; @@ -90,16 +90,16 @@ public class _XPropertyAccess extends MultiMethodTest { log.println("ERROR: could not find desired property '"+ propertyToChange.Name+"'"); ok=false; } - + } else { log.println("ERROR: the method returned NULL"); ok =false; } - + tRes.tested("getPropertyValues()", ok ); return; } - + /** * Test calls the method and checks if: * <ul> @@ -112,18 +112,18 @@ public class _XPropertyAccess extends MultiMethodTest { * </ul> */ public void _setPropertyValues(){ - + boolean ok = true; boolean test = true; boolean exp = false; - + try { PropertyValue[] newProps = new PropertyValue[1]; newProps[0] = propertyToChange; - + log.println("try to set property vlaues given by object relation 'XPropertyAccess.propertyToChange'..."); oObj.setPropertyValues(newProps); - + } catch (UnknownPropertyException ex) { log.println("ERROR: Exception was thrown while trying to set property value: " + ex.toString()); @@ -141,11 +141,11 @@ public class _XPropertyAccess extends MultiMethodTest { ex.toString()); test = false; } - + if ( test){ log.println("... OK"); } - + ok &= test; test = false; exp = false; @@ -176,29 +176,29 @@ public class _XPropertyAccess extends MultiMethodTest { ex.toString()); exp = true; } - + if (! exp){ log.println("FAILED: expected exception 'UnknownPropertyException' was not thrown"); } else { if (test) log.println("... OK"); } - + ok &= test; test = false; exp = false; try { - + log.println("try to set values with invalid property name. " + "Expect 'com.sun.star.beans.UnknownPropertyException'..."); - + PropertyValue[] newProps = new PropertyValue[1]; PropertyValue newProp = new PropertyValue(); newProp.Name = "XPropertyAccess.InvalidPropertyName"; newProp.Value = "invalid property"; newProps[0] = newProp; - + oObj.setPropertyValues(newProps); - + } catch (WrappedTargetException ex) { log.println("ERROR: unexptected exception was thrown while trying to set invalid value: " + ex.toString()); @@ -217,20 +217,20 @@ public class _XPropertyAccess extends MultiMethodTest { exp = true; test = true; } - + ok &= test; - + if (! exp){ log.println("FAILED: expected exception 'UnknownPropertyException' was not thrown"); } else { if (test) log.println("... OK"); } - + tRes.tested("setPropertyValues()", ok); return; - + } - + } /// finish class XPropertyAccess diff --git a/qadevOOo/tests/java/ifc/beans/_XPropertyContainer.java b/qadevOOo/tests/java/ifc/beans/_XPropertyContainer.java index 3f3803fb329e..fdb57b736158 100644 --- a/qadevOOo/tests/java/ifc/beans/_XPropertyContainer.java +++ b/qadevOOo/tests/java/ifc/beans/_XPropertyContainer.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 @@ -47,19 +47,19 @@ import lib.StatusException; * @see com.sun.star.beans.XPropertyAccess */ public class _XPropertyContainer extends MultiMethodTest { - + /** * oObj filled by MultiMethodTest */ public XPropertyContainer oObj = null;// oObj filled by MultiMethodTest - + /** * object relation X<CODE>PropertyAccess.propertyNotRemovable</CODE><br> * This relation must be filled from the module. It contains a property which must * be a property of the implementaion object. */ private String propertyNotRemovable = null; - + /** * checks if the object relation <CODE>XPropertyAccess.propertyNotRemovable</CODE> * is available @@ -70,19 +70,19 @@ public class _XPropertyContainer extends MultiMethodTest { throw new StatusException(Status.failed("Object raltion 'XPropertyAccess.propertyNotRemovable' is null")); } } - - - + + + /** * Test calls the method and checks if the returned sequence contanis a propterty which is named * in the object relation <code>XPropertyAccess.propertyNotRemovable</code>. */ public void _addProperty() { - + boolean ok = true; boolean test = true; boolean exp = false; - + try { log.println("try to add following property:\n" + "\t('myXPropertContainerProperty', com.sun.star.beans.PropertyAttribute.MAYBEVOID, null) ..."); @@ -110,7 +110,7 @@ public class _XPropertyContainer extends MultiMethodTest { if ( test){ log.println("... OK"); } - + ok &= test; test = false; exp = false; @@ -144,7 +144,7 @@ public class _XPropertyContainer extends MultiMethodTest { } else { if (test) log.println("... OK"); } - + ok &= test; test = false; exp = false; @@ -173,13 +173,13 @@ public class _XPropertyContainer extends MultiMethodTest { test = true; exp = true; } - + if (! exp){ log.println("FAILED: expected exception 'IllegalTypeException' was not thrown"); } else { if (test) log.println("... OK"); } - + ok &= test; test = false; exp = false; @@ -209,31 +209,31 @@ public class _XPropertyContainer extends MultiMethodTest { log.println("... FAILED"); exp = true; } - + if (! exp){ log.println("FAILED: expected exception 'IllegalArgumentException' was not thrown"); } else { if (test) log.println("... OK"); } - + ok &= test; - + tRes.tested("addProperty()", ok ); return; } - + /** * Test calls the method and checks if the returned sequence contanis a propterty which is named * in the object relation <code>XPropertyAccess.propertyNotRemovable</code>. */ public void _removeProperty() { - - requiredMethod("addProperty()"); - + + requiredMethod("addProperty()"); + boolean ok = true; boolean test = true; boolean exp = false; - + try { log.println("remove 'myXPropertContainerProperty'"); oObj.removeProperty("myXPropertContainerProperty"); @@ -249,11 +249,11 @@ public class _XPropertyContainer extends MultiMethodTest { if ( test){ log.println("... OK"); } - + ok &= test; test = false; exp=false; - + try { log.println("remove not removeable property '" + propertyNotRemovable + "'") ; oObj.removeProperty(propertyNotRemovable); @@ -269,13 +269,13 @@ public class _XPropertyContainer extends MultiMethodTest { log.println("... FAILED"); exp = true; } - + if (! exp){ log.println("FAILED: expected exception 'NotRemoveableException' was not thrown"); } else { if (test) log.println("... OK"); } - + ok &= test; test = false; exp = false; @@ -303,7 +303,7 @@ public class _XPropertyContainer extends MultiMethodTest { tRes.tested("removeProperty()", ok ); return; - } - - + } + + } /// finish class XPropertyContainer diff --git a/qadevOOo/tests/java/ifc/beans/_XPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XPropertySet.java index dfc135843b44..3b06cce03642 100644 --- a/qadevOOo/tests/java/ifc/beans/_XPropertySet.java +++ b/qadevOOo/tests/java/ifc/beans/_XPropertySet.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 @@ -162,7 +162,7 @@ public class _XPropertySet extends MultiMethodTest { public void _addPropertyChangeListener() { requiredMethod("getPropertySetInfo()"); - + int count = PTT.bound.size(); if ( count==0 || PTT.bound.get(0).equals("none") ) { log.println("*** No bound properties found ***"); @@ -203,7 +203,7 @@ public class _XPropertySet extends MultiMethodTest { } tRes.tested("addPropertyChangeListener()", !error); } - + return; } // end of addPropertyChangeListener() @@ -353,7 +353,7 @@ public class _XPropertySet extends MultiMethodTest { } return runOk; } - + /** * Tests <code>getPropertyValue</code> method. * Just call this method and checks for no exceptions <p> @@ -371,7 +371,7 @@ public class _XPropertySet extends MultiMethodTest { int count = PTT.normal.size(); if ( count==0 || PTT.normal.get(0).equals("none") ) { - Property[] properties = oObj.getPropertySetInfo().getProperties(); + Property[] properties = oObj.getPropertySetInfo().getProperties(); if( properties.length > 0 ) { String propertyName = properties[0].Name; log.println("All properties are Read Only"); @@ -420,7 +420,7 @@ public class _XPropertySet extends MultiMethodTest { log.println("*** No bound properties found ***"); tRes.tested("removePropertyChangeListener()", true) ; } else { - + //remove all listeners first for (int i = 0; i < count; i++) { String propertyName = PTT.bound.get(i); @@ -432,7 +432,7 @@ public class _XPropertySet extends MultiMethodTest { e.printStackTrace(log); } } - + boolean error = false; for (int i = 0; i < count; i++) { String propertyName = PTT.bound.get(i); @@ -496,7 +496,7 @@ public class _XPropertySet extends MultiMethodTest { log.println("*** No constrained properties found ***"); tRes.tested("removeVetoableChangeListener()", true) ; } else { - + //remove all listeners first for (int i = 0; i < count; i++) { String propertyName = PTT.constrained.get(i); @@ -508,7 +508,7 @@ public class _XPropertySet extends MultiMethodTest { e.printStackTrace(log); } } - + boolean error = false; for (int i = 0; i < count; i++) { String propertyName = PTT.constrained.get(i); @@ -563,7 +563,7 @@ public class _XPropertySet extends MultiMethodTest { Property property = properties[i]; String name = property.Name; - + boolean cont = false; for (int j = 0; j < skip.length; j++) { if (name.equals(skip[j])){ @@ -571,9 +571,9 @@ public class _XPropertySet extends MultiMethodTest { cont = true; } } - + if (cont) continue; - + if (name.equals(oObj)) log.println("Checking '"+name+"'"); boolean isWritable = ((property.Attributes & diff --git a/qadevOOo/tests/java/ifc/beans/_XPropertySetInfo.java b/qadevOOo/tests/java/ifc/beans/_XPropertySetInfo.java index ee41be8a79b7..6b696ac52759 100644 --- a/qadevOOo/tests/java/ifc/beans/_XPropertySetInfo.java +++ b/qadevOOo/tests/java/ifc/beans/_XPropertySetInfo.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 diff --git a/qadevOOo/tests/java/ifc/beans/_XPropertyState.java b/qadevOOo/tests/java/ifc/beans/_XPropertyState.java index ced711b1cf94..677131176ea8 100644 --- a/qadevOOo/tests/java/ifc/beans/_XPropertyState.java +++ b/qadevOOo/tests/java/ifc/beans/_XPropertyState.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 @@ -153,12 +153,12 @@ public class _XPropertyState extends MultiMethodTest { */ public void _getPropertyState(){ boolean result = true ; - + String localName = pName; if (localName == null) { localName = (propertySetInfo.getProperties()[0]).Name; - } - + } + try { PropertyState ps = oObj.getPropertyState(localName); if (ps == null) { @@ -181,12 +181,12 @@ public class _XPropertyState extends MultiMethodTest { */ public void _getPropertyStates(){ boolean result = true ; - + String localName = pName; if (localName == null) { localName = (propertySetInfo.getProperties()[0]).Name; - } - + } + try { PropertyState[] ps = oObj.getPropertyStates (new String[] {localName}); @@ -222,7 +222,7 @@ public class _XPropertyState extends MultiMethodTest { */ public void _setPropertyToDefault(){ requiredMethod("getPropertyDefault()") ; - + if (pName == null) { log.println("all found properties are read only"); tRes.tested("setPropertyToDefault()",Status.skipped(true)); diff --git a/qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java b/qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java index ef89c8448e7d..5f702320fa33 100644 --- a/qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java +++ b/qadevOOo/tests/java/ifc/beans/_XPropertyWithState.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 @@ -47,67 +47,67 @@ import lib.StatusException; */ public class _XPropertyWithState extends MultiMethodTest { - + /** * the test object */ public XPropertyWithState oObj; - - + + /** - * Test calls the method. - * Test has ok status if no + * Test calls the method. + * Test has ok status if no * <CODE>com.sun.star.lang.WrappedTargetException</CODE> * was thrown */ public void _getDefaultAsProperty() { try{ - + XInterface defaultState = (XInterface) oObj.getDefaultAsProperty(); - + } catch (com.sun.star.lang.WrappedTargetException e){ e.printStackTrace(log); throw new StatusException(Status.failed("'com.sun.star.lang.WrappedTargetException' was thrown")); } - + tRes.tested("getDefaultAsProperty()", true); } - + /** * Test is ok if <CODE>getStateAsProperty()</CODE> returns * as <CODE>PropertyState</CODE> which is not <CODE>null</CODE> */ public void _getStateAsProperty() { - + boolean res = true; - + PropertyState propState = oObj.getStateAsProperty(); - + if (propState == null) { log.println("the returned PropertyState is null -> FALSE"); res = false; } - + tRes.tested("getStateAsProperty()", res); } - + /** - * Test calls the method. - * Test has ok status if no + * Test calls the method. + * Test has ok status if no * <CODE>com.sun.star.lang.WrappedTargetException</CODE> * was thrown */ public void _setToDefaultAsProperty() { try{ - + oObj.setToDefaultAsProperty(); - + } catch (com.sun.star.lang.WrappedTargetException e){ e.printStackTrace(log); throw new StatusException(Status.failed("'com.sun.star.lang.WrappedTargetException' was thrown")); } - + tRes.tested("setToDefaultAsProperty()", true); } - + } diff --git a/qadevOOo/tests/java/ifc/beans/_XTolerantMultiPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XTolerantMultiPropertySet.java index 0d783ad18e97..2d8664f07511 100644 --- a/qadevOOo/tests/java/ifc/beans/_XTolerantMultiPropertySet.java +++ b/qadevOOo/tests/java/ifc/beans/_XTolerantMultiPropertySet.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 @@ -56,7 +56,7 @@ public class _XTolerantMultiPropertySet extends MultiMethodTest { protected Property[] properties = null; protected XPropertyState pState = null; protected XPropertySet PS = null; - + /* * Queries XPropertySet from the given Component and gets XPropertySetInfo @@ -66,7 +66,7 @@ public class _XTolerantMultiPropertySet extends MultiMethodTest { * Throws a lib StatusException if the Component doesn't support XPropertySet or XPropertyState */ public void before() { - PS = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, + PS = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, tEnv.getTestObject()); if (PS == null) { @@ -89,7 +89,7 @@ public class _XTolerantMultiPropertySet extends MultiMethodTest { /* * Calls the method getDirectPropertyValuesTolerant() and compares the resulting - * sequence with the one gained as direct values in the before() method.<br> + * sequence with the one gained as direct values in the before() method.<br> * Has OK state if both sequences equal. */ public void _getDirectPropertyValuesTolerant() { @@ -147,13 +147,13 @@ public class _XTolerantMultiPropertySet extends MultiMethodTest { boolean localres = true; if (!(GPR[i].Value instanceof com.sun.star.uno.Any)) { - localres = ValueComparer.equalValue(GPR[i].Value, + localres = ValueComparer.equalValue(GPR[i].Value, valuesOfProperties[i]); } if (!localres) { - log.println("Values differ for : " + + log.println("Values differ for : " + namesOfProperties[i]); log.println("\t" + GPR[i].Value); log.println("Expected: "); @@ -173,7 +173,7 @@ public class _XTolerantMultiPropertySet extends MultiMethodTest { SetPropertyTolerantFailed[] SPTF = null; try { - SPTF = oObj.setPropertyValuesTolerant(namesOfProperties, + SPTF = oObj.setPropertyValuesTolerant(namesOfProperties, getNewValues( valuesOfProperties)); } catch (com.sun.star.lang.IllegalArgumentException e) { @@ -210,14 +210,14 @@ public class _XTolerantMultiPropertySet extends MultiMethodTest { GetPropertyTolerantResult[] GPR = oObj.getPropertyValuesTolerant( namesOfProperties); - if ((!(GPR[i].Value instanceof com.sun.star.uno.Any)) && + if ((!(GPR[i].Value instanceof com.sun.star.uno.Any)) && (SPTF[i].Result == com.sun.star.beans.TolerantPropertySetResultType.SUCCESS)) { - localres = ValueComparer.equalValue(GPR[i].Value, + localres = ValueComparer.equalValue(GPR[i].Value, valuesOfProperties[i]); } if (!localres) { - log.println("Values differ for : " + + log.println("Values differ for : " + namesOfProperties[i]); log.println("\t" + GPR[i].Value); log.println("Expected: "); @@ -271,7 +271,7 @@ public class _XTolerantMultiPropertySet extends MultiMethodTest { if (name.startsWith("MetaFile")) isUsable = false; return isUsable; } - + /* * This method returns a sorted list of property names * contained in a given sequence of properties @@ -297,7 +297,7 @@ public class _XTolerantMultiPropertySet extends MultiMethodTest { } /* - * Returns the values of a given array of properties in an Object array + * Returns the values of a given array of properties in an Object array */ protected Object[] getPropertyValues(String[] propertyNames) { Object[] values = new Object[propertyNames.length]; diff --git a/qadevOOo/tests/java/ifc/bridge/_XBridge.java b/qadevOOo/tests/java/ifc/bridge/_XBridge.java index 98f28bba0236..f6303b558147 100644 --- a/qadevOOo/tests/java/ifc/bridge/_XBridge.java +++ b/qadevOOo/tests/java/ifc/bridge/_XBridge.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 diff --git a/qadevOOo/tests/java/ifc/bridge/_XBridgeFactory.java b/qadevOOo/tests/java/ifc/bridge/_XBridgeFactory.java index 99f920e92019..58643bc7e9aa 100644 --- a/qadevOOo/tests/java/ifc/bridge/_XBridgeFactory.java +++ b/qadevOOo/tests/java/ifc/bridge/_XBridgeFactory.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 diff --git a/qadevOOo/tests/java/ifc/bridge/_XUnoUrlResolver.java b/qadevOOo/tests/java/ifc/bridge/_XUnoUrlResolver.java index 14448c8f742f..8d1e88cbc6e2 100644 --- a/qadevOOo/tests/java/ifc/bridge/_XUnoUrlResolver.java +++ b/qadevOOo/tests/java/ifc/bridge/_XUnoUrlResolver.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 @@ -202,6 +202,6 @@ public class _XUnoUrlResolver extends MultiMethodTest { log.println("Unexpected exception thrown " + e.getMessage()); e.printStackTrace(log); throw new StatusException("Unexpected exception", e); - } + } } } diff --git a/qadevOOo/tests/java/ifc/chart/_BarDiagram.java b/qadevOOo/tests/java/ifc/chart/_BarDiagram.java index f22709df85bc..1972c23dab89 100644 --- a/qadevOOo/tests/java/ifc/chart/_BarDiagram.java +++ b/qadevOOo/tests/java/ifc/chart/_BarDiagram.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 diff --git a/qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java b/qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java index 531ec39478ed..9b1e19c47cc6 100644 --- a/qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java +++ b/qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.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 @@ -93,7 +93,7 @@ public class _Chart3DBarProperties extends MultiPropertyTest { throw new StatusException("Couldn't change Diagram to 3D", e); } } - + /** * Sets the diagram back to 2D as 2D rendering is much faster for the following tests. */ @@ -126,7 +126,7 @@ public class _Chart3DBarProperties extends MultiPropertyTest { throw new StatusException("Couldn't change Diagram back to 2D", e); } } - + } // finish class _Chart3DBarProperties diff --git a/qadevOOo/tests/java/ifc/chart/_ChartAxis.java b/qadevOOo/tests/java/ifc/chart/_ChartAxis.java index 7fad534b1948..18c8e7f6dbea 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartAxis.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartAxis.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 diff --git a/qadevOOo/tests/java/ifc/chart/_ChartAxisXSupplier.java b/qadevOOo/tests/java/ifc/chart/_ChartAxisXSupplier.java index daf1ca3cc122..50915301c92f 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartAxisXSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartAxisXSupplier.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 diff --git a/qadevOOo/tests/java/ifc/chart/_ChartAxisYSupplier.java b/qadevOOo/tests/java/ifc/chart/_ChartAxisYSupplier.java index 40f6f1663513..51520d6a37a7 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartAxisYSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartAxisYSupplier.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 diff --git a/qadevOOo/tests/java/ifc/chart/_ChartAxisZSupplier.java b/qadevOOo/tests/java/ifc/chart/_ChartAxisZSupplier.java index 2de116ddb80a..926652c8cf6f 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartAxisZSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartAxisZSupplier.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 diff --git a/qadevOOo/tests/java/ifc/chart/_ChartDataPointProperties.java b/qadevOOo/tests/java/ifc/chart/_ChartDataPointProperties.java index 2ae9ac7fa36b..7307326cf59a 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartDataPointProperties.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartDataPointProperties.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 diff --git a/qadevOOo/tests/java/ifc/chart/_ChartDataRowProperties.java b/qadevOOo/tests/java/ifc/chart/_ChartDataRowProperties.java index 82dc477efed1..911f12953f2a 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartDataRowProperties.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartDataRowProperties.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 @@ -41,7 +41,7 @@ import lib.MultiPropertyTest; * @see com.sun.star.chart.ChartDataRowProperties */ public class _ChartDataRowProperties extends MultiPropertyTest { - + public void _Axis() { try { Integer axis = (Integer) oObj.getPropertyValue("Axis"); @@ -57,7 +57,7 @@ public class _ChartDataRowProperties extends MultiPropertyTest { } catch (Exception e) { e.printStackTrace(log); tRes.tested("Axis",false); - } + } } } diff --git a/qadevOOo/tests/java/ifc/chart/_ChartDocument.java b/qadevOOo/tests/java/ifc/chart/_ChartDocument.java index 0bb5c2cf5e2b..5dd5131b8575 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartDocument.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartDocument.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 diff --git a/qadevOOo/tests/java/ifc/chart/_ChartLegend.java b/qadevOOo/tests/java/ifc/chart/_ChartLegend.java index 33f7f9ce7283..2f1edebc2367 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartLegend.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartLegend.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 diff --git a/qadevOOo/tests/java/ifc/chart/_ChartStatistics.java b/qadevOOo/tests/java/ifc/chart/_ChartStatistics.java index ca1fe56a8b59..92defbad16f7 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartStatistics.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartStatistics.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 diff --git a/qadevOOo/tests/java/ifc/chart/_ChartTableAddressSupplier.java b/qadevOOo/tests/java/ifc/chart/_ChartTableAddressSupplier.java index a44cb3731d57..51373d472446 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartTableAddressSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartTableAddressSupplier.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 diff --git a/qadevOOo/tests/java/ifc/chart/_ChartTitle.java b/qadevOOo/tests/java/ifc/chart/_ChartTitle.java index 7c3176eedb65..1db82215916a 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartTitle.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartTitle.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 diff --git a/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisXSupplier.java b/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisXSupplier.java index a2ec31aa9145..77d75c1736cb 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisXSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisXSupplier.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 diff --git a/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisYSupplier.java b/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisYSupplier.java index fa29c50d9b20..bbd20ef25b4a 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisYSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisYSupplier.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 diff --git a/qadevOOo/tests/java/ifc/chart/_Diagram.java b/qadevOOo/tests/java/ifc/chart/_Diagram.java index a5bc75a98792..1aa0f5d246bc 100644 --- a/qadevOOo/tests/java/ifc/chart/_Diagram.java +++ b/qadevOOo/tests/java/ifc/chart/_Diagram.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 diff --git a/qadevOOo/tests/java/ifc/chart/_Dim3DDiagram.java b/qadevOOo/tests/java/ifc/chart/_Dim3DDiagram.java index a28cf52a48fb..d892776b6027 100644 --- a/qadevOOo/tests/java/ifc/chart/_Dim3DDiagram.java +++ b/qadevOOo/tests/java/ifc/chart/_Dim3DDiagram.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 diff --git a/qadevOOo/tests/java/ifc/chart/_LineDiagram.java b/qadevOOo/tests/java/ifc/chart/_LineDiagram.java index a2555ea26f69..6296be6ddd05 100644 --- a/qadevOOo/tests/java/ifc/chart/_LineDiagram.java +++ b/qadevOOo/tests/java/ifc/chart/_LineDiagram.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 diff --git a/qadevOOo/tests/java/ifc/chart/_StackableDiagram.java b/qadevOOo/tests/java/ifc/chart/_StackableDiagram.java index a6bca2a0b131..566e91ecafe8 100644 --- a/qadevOOo/tests/java/ifc/chart/_StackableDiagram.java +++ b/qadevOOo/tests/java/ifc/chart/_StackableDiagram.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 diff --git a/qadevOOo/tests/java/ifc/chart/_StockDiagram.java b/qadevOOo/tests/java/ifc/chart/_StockDiagram.java index d76875fe017c..ce883591b50d 100644 --- a/qadevOOo/tests/java/ifc/chart/_StockDiagram.java +++ b/qadevOOo/tests/java/ifc/chart/_StockDiagram.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 diff --git a/qadevOOo/tests/java/ifc/chart/_X3DDisplay.java b/qadevOOo/tests/java/ifc/chart/_X3DDisplay.java index 16553df61ad9..15bbaa57682f 100644 --- a/qadevOOo/tests/java/ifc/chart/_X3DDisplay.java +++ b/qadevOOo/tests/java/ifc/chart/_X3DDisplay.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 diff --git a/qadevOOo/tests/java/ifc/chart/_XAxisXSupplier.java b/qadevOOo/tests/java/ifc/chart/_XAxisXSupplier.java index 6e318e0acebc..1c3ac80b8496 100644 --- a/qadevOOo/tests/java/ifc/chart/_XAxisXSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_XAxisXSupplier.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 diff --git a/qadevOOo/tests/java/ifc/chart/_XAxisYSupplier.java b/qadevOOo/tests/java/ifc/chart/_XAxisYSupplier.java index d5e75fa27131..31eae0e015cc 100644 --- a/qadevOOo/tests/java/ifc/chart/_XAxisYSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_XAxisYSupplier.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 diff --git a/qadevOOo/tests/java/ifc/chart/_XAxisZSupplier.java b/qadevOOo/tests/java/ifc/chart/_XAxisZSupplier.java index 9e7fd3212c53..a05249f118fd 100644 --- a/qadevOOo/tests/java/ifc/chart/_XAxisZSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_XAxisZSupplier.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 diff --git a/qadevOOo/tests/java/ifc/chart/_XChartData.java b/qadevOOo/tests/java/ifc/chart/_XChartData.java index 98dad0741509..4113a6c4513f 100644 --- a/qadevOOo/tests/java/ifc/chart/_XChartData.java +++ b/qadevOOo/tests/java/ifc/chart/_XChartData.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 @@ -76,16 +76,16 @@ public class _XChartData extends MultiMethodTest { dataArray.setData(data); if (!dataChanged[0]) { - log.println("ChartDataChangeEventListener1 " + + log.println("ChartDataChangeEventListener1 " + "isn't called after changing data"); } if (!dataChanged[1]) { - log.println("ChartDataChangeEventListener2 " + + log.println("ChartDataChangeEventListener2 " + "isn't called after changing data"); } - tRes.tested("addChartDataChangeEventListener()", + tRes.tested("addChartDataChangeEventListener()", dataChanged[0] && dataChanged[1]); } @@ -115,11 +115,11 @@ public class _XChartData extends MultiMethodTest { oObj.removeChartDataChangeEventListener(listener2); if (dataChanged[0]) { - log.println("ChartDataChangeEventListener1 is " + + log.println("ChartDataChangeEventListener1 is " + "called after removing listener"); } - tRes.tested("removeChartDataChangeEventListener()", + tRes.tested("removeChartDataChangeEventListener()", ((!dataChanged[0]) && (dataChanged[1]))); } diff --git a/qadevOOo/tests/java/ifc/chart/_XChartDataArray.java b/qadevOOo/tests/java/ifc/chart/_XChartDataArray.java index 1c6b9b8a10f7..173187be7dda 100644 --- a/qadevOOo/tests/java/ifc/chart/_XChartDataArray.java +++ b/qadevOOo/tests/java/ifc/chart/_XChartDataArray.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 @@ -83,7 +83,7 @@ public class _XChartDataArray extends MultiMethodTest { } } } - + /** * Test calls the method and restores new values. <p> * Has <b> OK </b> status if the method successfully returns. <p> @@ -112,14 +112,14 @@ public class _XChartDataArray extends MultiMethodTest { * <li> <code> setColumnDescriptions </code></li> * </ul> */ - public void _setRowDescriptions() { + public void _setRowDescriptions() { bResult = true; rowDscs = oObj.getRowDescriptions(); if (mbExcludeSetRowAndSetColumn) { log.println(msExcludeMessage); throw new StatusException(Status.skipped(true)); - } + } for (int i = 0; i < rowDscs.length; i++) { rowDscs[i] = "Row" + i; } @@ -136,10 +136,10 @@ public class _XChartDataArray extends MultiMethodTest { * <li> <code> setRowDescriptions </code></li> * </ul> */ - public void _setData() { + public void _setData() { rowDscs = oObj.getRowDescriptions(); colDscs = oObj.getColumnDescriptions(); - + bResult = true; double[][] _data = oObj.getData(); data = _data; @@ -224,7 +224,7 @@ public class _XChartDataArray extends MultiMethodTest { tRes.tested("getData()", bResult); } - + protected void after() { disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/chart/_XChartDocument.java b/qadevOOo/tests/java/ifc/chart/_XChartDocument.java index 1ce64a0b5ab0..51d8f97b95f2 100644 --- a/qadevOOo/tests/java/ifc/chart/_XChartDocument.java +++ b/qadevOOo/tests/java/ifc/chart/_XChartDocument.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 diff --git a/qadevOOo/tests/java/ifc/chart/_XDiagram.java b/qadevOOo/tests/java/ifc/chart/_XDiagram.java index e91ba14cd61c..d600fa951f1b 100644 --- a/qadevOOo/tests/java/ifc/chart/_XDiagram.java +++ b/qadevOOo/tests/java/ifc/chart/_XDiagram.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 diff --git a/qadevOOo/tests/java/ifc/chart/_XStatisticDisplay.java b/qadevOOo/tests/java/ifc/chart/_XStatisticDisplay.java index 984838a65ae8..dd941cae41b7 100644 --- a/qadevOOo/tests/java/ifc/chart/_XStatisticDisplay.java +++ b/qadevOOo/tests/java/ifc/chart/_XStatisticDisplay.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 diff --git a/qadevOOo/tests/java/ifc/chart/_XTwoAxisXSupplier.java b/qadevOOo/tests/java/ifc/chart/_XTwoAxisXSupplier.java index 3455f51c95d1..394207dc11e2 100644 --- a/qadevOOo/tests/java/ifc/chart/_XTwoAxisXSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_XTwoAxisXSupplier.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 diff --git a/qadevOOo/tests/java/ifc/chart/_XTwoAxisYSupplier.java b/qadevOOo/tests/java/ifc/chart/_XTwoAxisYSupplier.java index 5786da65c2d1..2f5e0e6a5442 100644 --- a/qadevOOo/tests/java/ifc/chart/_XTwoAxisYSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_XTwoAxisYSupplier.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 diff --git a/qadevOOo/tests/java/ifc/configuration/_XTemplateContainer.java b/qadevOOo/tests/java/ifc/configuration/_XTemplateContainer.java index 4c368c30fefe..46030cae8844 100644 --- a/qadevOOo/tests/java/ifc/configuration/_XTemplateContainer.java +++ b/qadevOOo/tests/java/ifc/configuration/_XTemplateContainer.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 @@ -32,19 +32,19 @@ import lib.MultiMethodTest; public class _XTemplateContainer extends MultiMethodTest { - + public XTemplateContainer oObj; - + public void _getElementTemplateName() { String tName = (String) tEnv.getObjRelation("TemplateName"); String oTName = oObj.getElementTemplateName(); - log.println("TemplateName: "+oTName); + log.println("TemplateName: "+oTName); boolean res = oTName.equals(tName); if (!res) { log.println("Expected: "+tName); log.println("Gained: "+oTName); } - tRes.tested("getElementTemplateName()", res); + tRes.tested("getElementTemplateName()", res); } - + } diff --git a/qadevOOo/tests/java/ifc/configuration/_XTemplateInstance.java b/qadevOOo/tests/java/ifc/configuration/_XTemplateInstance.java index 52a0cd3f6b0d..2eab9baa63bc 100644 --- a/qadevOOo/tests/java/ifc/configuration/_XTemplateInstance.java +++ b/qadevOOo/tests/java/ifc/configuration/_XTemplateInstance.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 @@ -32,10 +32,10 @@ import lib.MultiMethodTest; public class _XTemplateInstance extends MultiMethodTest { - + public XTemplateInstance oObj; - - + + public void _getTemplateName() { String expected = (String) tEnv.getObjRelation("TemplateInstance"); String getting = oObj.getTemplateName(); @@ -46,5 +46,5 @@ public class _XTemplateInstance extends MultiMethodTest { } tRes.tested("getTemplateName()",res); } - + } diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XBackend.java b/qadevOOo/tests/java/ifc/configuration/backend/_XBackend.java index 68d113ebb8b4..3545928c4da4 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XBackend.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XBackend.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 @@ -89,7 +89,7 @@ public class _XBackend extends MultiMethodTest { try { XUpdateHandler aHandler = oObj.getUpdateHandler( - "org.openoffice.Office.TypeDetection", + "org.openoffice.Office.TypeDetection", "illegal"); log.println("Exception expected -- FAILED"); res = false; @@ -106,10 +106,10 @@ public class _XBackend extends MultiMethodTest { try { XStringSubstitution sts = createStringSubstitution( (XMultiServiceFactory) tParam.getMSF()); - String ent = sts.getSubstituteVariableValue("$(inst)") + + String ent = sts.getSubstituteVariableValue("$(inst)") + "/share/registry"; XUpdateHandler aHandler = oObj.getUpdateHandler( - "org.openoffice.Office.Jobs", + "org.openoffice.Office.Jobs", ent); if (aHandler == null) { @@ -138,11 +138,11 @@ public class _XBackend extends MultiMethodTest { try { XStringSubstitution sts = createStringSubstitution( (XMultiServiceFactory) tParam.getMSF()); - String ent = sts.getSubstituteVariableValue("$(inst)") + + String ent = sts.getSubstituteVariableValue("$(inst)") + "/share/registry"; XLayer[] Layers = oObj.listLayers( "org.openoffice.Office.Linguistic", ent); - + for (int i = 0; i < Layers.length; i++) { log.println("Checking Layer " + i); res &= checkLayer(Layers[i]); @@ -175,7 +175,7 @@ public class _XBackend extends MultiMethodTest { if (Layers.length==0) { System.out.println("No Layers found -- FAILED"); res &= false; - } + } } catch (com.sun.star.configuration.backend.BackendAccessException e) { log.println("unexpected Exception " + e + " -- FAILED"); res = false; diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XBackendEntities.java b/qadevOOo/tests/java/ifc/configuration/backend/_XBackendEntities.java index 6a36c889985f..18330bc4a01c 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XBackendEntities.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XBackendEntities.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 diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XLayer.java b/qadevOOo/tests/java/ifc/configuration/backend/_XLayer.java index 784f14b4b5b0..e958d186921e 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XLayer.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XLayer.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 @@ -32,14 +32,14 @@ import lib.MultiMethodTest; import util.XLayerHandlerImpl; public class _XLayer extends MultiMethodTest { - - public XLayer oObj; - + + public XLayer oObj; + public void _readData() { boolean res = false; - + log.println("Checking for Exception in case of nul argument"); - + try { oObj.readData(null); } catch (com.sun.star.lang.NullPointerException e) { @@ -49,8 +49,8 @@ public class _XLayer extends MultiMethodTest { log.println("Unexpected Exception ("+e+") -- FAILED"); } catch (com.sun.star.configuration.backend.MalformedDataException e) { log.println("Unexpected Exception ("+e+") -- FAILED"); - } - + } + log.println("checking read data with own XLayerHandler implementation"); try { XLayerHandlerImpl xLayerHandler = new XLayerHandlerImpl(); @@ -63,7 +63,7 @@ public class _XLayer extends MultiMethodTest { res &= false; } else { log.println("startLayer was called -- OK"); - res &= true; + res &= true; } int el = implCalled.indexOf("endLayer"); if (el < 0) { @@ -71,8 +71,8 @@ public class _XLayer extends MultiMethodTest { res &= false; } else { log.println("endLayer was called -- OK"); - res &= true; - } + res &= true; + } } catch (com.sun.star.lang.NullPointerException e) { log.println("Unexpected Exception ("+e+") -- FAILED"); res &= false; @@ -83,8 +83,8 @@ public class _XLayer extends MultiMethodTest { log.println("Unexpected Exception ("+e+") -- FAILED"); res &= false; } - + tRes.tested("readData()",res); } - + } diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java index 181555180534..f267d2500294 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.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 @@ -53,55 +53,55 @@ public class _XLayerHandler extends MultiMethodTest { oObj.startLayer(); oObj.overrideNode("org.openoffice.Setup", (short) 0, false); oObj.overrideNode("Office", (short) 0, false); - oObj.overrideProperty("ooSetupInstCompleted", (short) 0, + oObj.overrideProperty("ooSetupInstCompleted", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue(new Boolean(false)); oObj.endProperty(); - oObj.overrideProperty("ooSetupShowIntro", (short) 0, + oObj.overrideProperty("ooSetupShowIntro", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue(new Boolean(true)); oObj.endProperty(); - oObj.overrideProperty("ooSetupLocales", (short) 0, + oObj.overrideProperty("ooSetupLocales", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue("en-US"); oObj.endProperty(); oObj.overrideNode("Factories", (short) 0, false); - oObj.addOrReplaceNode("com.sun.star.chart.ChartDocument", + oObj.addOrReplaceNode("com.sun.star.chart.ChartDocument", (short) 0); - oObj.overrideProperty("ooSetupFactoryEmptyDocumentURL", (short) 0, + oObj.overrideProperty("ooSetupFactoryEmptyDocumentURL", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue("private:factory/schart"); oObj.endProperty(); - oObj.overrideProperty("ooSetupFactoryIcon", (short) 0, + oObj.overrideProperty("ooSetupFactoryIcon", (short) 0, new Type(java.lang.Long.class), false); oObj.setPropertyValue(new Integer(13)); oObj.endProperty(); - oObj.overrideProperty("ooSetupFactoryShortName", (short) 0, + oObj.overrideProperty("ooSetupFactoryShortName", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue("schart"); oObj.setPropertyValueForLocale("TemplateFile", "en-US"); oObj.endProperty(); - oObj.overrideProperty("ooSetupFactoryTemplateFile", (short) 0, + oObj.overrideProperty("ooSetupFactoryTemplateFile", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue("empty"); oObj.endProperty(); - oObj.addProperty("ooSetupFactoryTemplateFile", (short) 0, + oObj.addProperty("ooSetupFactoryTemplateFile", (short) 0, new Type(java.lang.String.class)); - oObj.addPropertyWithValue("ooSetupFactoryTemplateFile", (short) 0, + oObj.addPropertyWithValue("ooSetupFactoryTemplateFile", (short) 0, "TemplateFile"); oObj.endNode(); oObj.addOrReplaceNode("dropme", (short) 0); - oObj.overrideProperty("anyway", (short) 0, + oObj.overrideProperty("anyway", (short) 0, new Type(java.lang.String.class), false); oObj.setPropertyValue("nice"); oObj.endProperty(); oObj.dropNode("dropme"); oObj.endNode(); - oObj.addOrReplaceNodeFromTemplate("FromTemplate", + oObj.addOrReplaceNodeFromTemplate("FromTemplate", new com.sun.star.configuration.backend.TemplateIdentifier( - "org.openoffice.Setup", + "org.openoffice.Setup", "Setup"), (short) 0); oObj.endNode(); @@ -118,11 +118,11 @@ public class _XLayerHandler extends MultiMethodTest { Object fileacc = ((XMultiServiceFactory) tParam.getMSF()).createInstance( "com.sun.star.comp.ucb.SimpleFileAccess"); XSimpleFileAccess simpleAccess = (XSimpleFileAccess) UnoRuntime.queryInterface( - XSimpleFileAccess.class, + XSimpleFileAccess.class, fileacc); String filename = util.utils.getOfficeTemp( - (XMultiServiceFactory) tParam.getMSF()) + + (XMultiServiceFactory) tParam.getMSF()) + "LayerWriter.xcu"; log.println("Going to parse: " + filename); @@ -130,7 +130,7 @@ public class _XLayerHandler extends MultiMethodTest { xSink.setInputStream(xStream); - XLayer xLayer = (XLayer) UnoRuntime.queryInterface(XLayer.class, + XLayer xLayer = (XLayer) UnoRuntime.queryInterface(XLayer.class, LayerParser); XLayerHandlerImpl xLayerHandler = new XLayerHandlerImpl(); diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.java b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.java index 39193787a857..6cf29ee71dae 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.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 @@ -32,15 +32,15 @@ import com.sun.star.configuration.backend.XLayerImporter; import lib.MultiMethodTest; public class _XLayerImporter extends MultiMethodTest { - - public XLayerImporter oObj; + + public XLayerImporter oObj; public XBackend xBackend = null; - + public void _getTargetBackend() { xBackend = oObj.getTargetBackend(); tRes.tested("getTargetBackend()", xBackend != null); } - + public void _importLayer() { boolean res = false; log.println("checking for exception is argument null is given"); @@ -49,22 +49,22 @@ public class _XLayerImporter extends MultiMethodTest { log.println("\tException expected -- FAILED"); } catch (com.sun.star.lang.NullPointerException ne) { res = true; - log.println("\tExpected exception was thrown -- OK"); + log.println("\tExpected exception was thrown -- OK"); } catch (com.sun.star.configuration.backend.MalformedDataException mde) { res = false; - log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.IllegalArgumentException iae) { res = false; - log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.WrappedTargetException wte) { res = false; - log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); } - + log.println("checking own implementation of XLayer"); try { util.XLayerImpl xLayer = new util.XLayerImpl(); - oObj.importLayer(xLayer); + oObj.importLayer(xLayer); if (! xLayer.hasBeenCalled()) { log.println("\tXLayer hasn't been imported -- FAILED"); res &= false; @@ -74,21 +74,21 @@ public class _XLayerImporter extends MultiMethodTest { } } catch (com.sun.star.lang.NullPointerException ne) { res &= false; - log.println("\tExpected exception "+ne+" was thrown -- FAILED"); + log.println("\tExpected exception "+ne+" was thrown -- FAILED"); } catch (com.sun.star.configuration.backend.MalformedDataException mde) { res &= false; - log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.IllegalArgumentException iae) { res &= false; - log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.WrappedTargetException wte) { res &= false; - log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); - } - - tRes.tested("importLayer()",res); + log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); + } + + tRes.tested("importLayer()",res); } - + public void _importLayerForEntity() { boolean res = false; log.println("checking for exception for argument (null,\"\")"); @@ -97,22 +97,22 @@ public class _XLayerImporter extends MultiMethodTest { log.println("\tException expected -- FAILED"); } catch (com.sun.star.lang.NullPointerException ne) { res = true; - log.println("\tExpected exception was thrown -- OK"); + log.println("\tExpected exception was thrown -- OK"); } catch (com.sun.star.configuration.backend.MalformedDataException mde) { res = false; - log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.IllegalArgumentException iae) { res = false; - log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.WrappedTargetException wte) { res = false; - log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); } - + log.println("checking own implementation of XLayer"); try { util.XLayerImpl xLayer = new util.XLayerImpl(); - oObj.importLayerForEntity(xLayer,""); + oObj.importLayerForEntity(xLayer,""); if (! xLayer.hasBeenCalled()) { log.println("\tXLayer hasn't been imported -- FAILED"); res &= false; @@ -122,21 +122,21 @@ public class _XLayerImporter extends MultiMethodTest { } } catch (com.sun.star.lang.NullPointerException ne) { res &= false; - log.println("\tExpected exception "+ne+" was thrown -- FAILED"); + log.println("\tExpected exception "+ne+" was thrown -- FAILED"); } catch (com.sun.star.configuration.backend.MalformedDataException mde) { res &= false; - log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.IllegalArgumentException iae) { res &= false; - log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.WrappedTargetException wte) { res &= false; - log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); - } - - tRes.tested("importLayerForEntity()",res); + log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); + } + + tRes.tested("importLayerForEntity()",res); } - + public void _setTargetBackend() { requiredMethod("getTargetBackend()"); boolean res = false; @@ -148,7 +148,7 @@ public class _XLayerImporter extends MultiMethodTest { res = true; log.println("\tExpected exception was thrown -- OK"); } - + log.println("checking argument previously gained by getTargetBackend"); try { oObj.setTargetBackend(xBackend); @@ -157,10 +157,10 @@ public class _XLayerImporter extends MultiMethodTest { } catch (com.sun.star.lang.NullPointerException ne) { res &= false; log.println("\tException was thrown -- FAILED"); - } - + } + tRes.tested("setTargetBackend()",res); - + } - + } diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XMultiLayerStratum.java b/qadevOOo/tests/java/ifc/configuration/backend/_XMultiLayerStratum.java index aae4743e01fc..46ecb1b7487f 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XMultiLayerStratum.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XMultiLayerStratum.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 @@ -88,7 +88,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { log.println("Checking first on "+LayerIds[0]); res &= checkLayer(Layers[0]); log.println("Checking second on "+LayerIds[1]); - res &= checkLayer(Layers[1]); + res &= checkLayer(Layers[1]); } catch (com.sun.star.configuration.backend.BackendAccessException e) { log.println("unexpected Exception -- FAILED"); res = false; @@ -110,14 +110,14 @@ public class _XMultiLayerStratum extends MultiMethodTest { String[] Times = new String[2]; Times[0] = ""; Times[1] = ""; - + XLayer[] Layers = oObj.getMultipleLayers(LayerIds, Times); res = Layers.length == 2; log.println("Getting two XLayers -- OK"); log.println("Checking first on "+LayerIds[0]); res &= checkLayer(Layers[0]); log.println("Checking second on "+LayerIds[1]); - res &= checkLayer(Layers[1]); + res &= checkLayer(Layers[1]); } catch (com.sun.star.configuration.backend.BackendAccessException e) { log.println("unexpected Exception -- FAILED"); res = false; @@ -126,7 +126,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { res = false; } - tRes.tested("getMultipleLayers()", res); + tRes.tested("getMultipleLayers()", res); } public void _getUpdatableLayer() { @@ -166,7 +166,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { res = false; } - tRes.tested("getUpdatableLayer()", res); + tRes.tested("getUpdatableLayer()", res); } public void _getUpdateLayerId() { @@ -174,7 +174,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { try { String UpdateLayerID = oObj.getUpdateLayerId( - "org.openoffice.Office.TypeDetection", + "org.openoffice.Office.TypeDetection", "illegal"); log.println("Exception expected -- FAILED"); res = false; @@ -190,7 +190,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { try { String ent = util.utils.getOfficeURL( - (XMultiServiceFactory) tParam.getMSF()) + + (XMultiServiceFactory) tParam.getMSF()) + "/../share/registry"; String UpdateLayerID = oObj.getUpdateLayerId( "org.openoffice.Office.Linguistic", ent); @@ -220,7 +220,7 @@ public class _XMultiLayerStratum extends MultiMethodTest { try { String[] LayerIDs = oObj.listLayerIds( - "org.openoffice.Office.TypeDetection", + "org.openoffice.Office.TypeDetection", "illegal"); log.println("Exception expected -- FAILED"); res = false; @@ -233,9 +233,9 @@ public class _XMultiLayerStratum extends MultiMethodTest { try { String ent = util.utils.getOfficeURL( - (XMultiServiceFactory) tParam.getMSF()) + + (XMultiServiceFactory) tParam.getMSF()) + "/../share/registry"; - String[] LayerIDs = oObj.listLayerIds("org.openoffice.Office.Jobs", + String[] LayerIDs = oObj.listLayerIds("org.openoffice.Office.Jobs", ent); res &= LayerIDs[0].endsWith("Jobs.xcu"); aLayerID = LayerIDs[0]; diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XSchema.java b/qadevOOo/tests/java/ifc/configuration/backend/_XSchema.java index 36be98ebc1fb..6c4ed22f8782 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XSchema.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XSchema.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 @@ -42,13 +42,13 @@ public class _XSchema extends MultiMethodTest { public XSchema oObj; XSchemaHandlerImpl xSchemaHandlerImpl = new XSchemaHandlerImpl(); String filename = null; - + protected void before() { filename = (String)tEnv.getObjRelation("ParsedFileName"); } - + public void _readComponent() { - requiredMethod("readTemplates()"); + requiredMethod("readTemplates()"); boolean res = false; log.println("Checking for Exception in case of null argument"); @@ -70,10 +70,10 @@ public class _XSchema extends MultiMethodTest { try { xSchemaHandlerImpl.cleanCalls(); oObj.readComponent(xSchemaHandlerImpl); - + String implCalled = xSchemaHandlerImpl.getCalls(); - - System.out.println(implCalled); + + System.out.println(implCalled); int sc = implCalled.indexOf("startComponent"); @@ -134,7 +134,7 @@ public class _XSchema extends MultiMethodTest { xSchemaHandlerImpl.cleanCalls(); oObj.readSchema(xSchemaHandlerImpl); - String implCalled = xSchemaHandlerImpl.getCalls(); + String implCalled = xSchemaHandlerImpl.getCalls(); int sc = implCalled.indexOf("startSchema"); @@ -178,8 +178,8 @@ public class _XSchema extends MultiMethodTest { } catch (com.sun.star.configuration.backend.MalformedDataException e) { log.println("Unexpected Exception (" + e + ") -- FAILED"); } - - tRes.tested("readSchema()", res); + + tRes.tested("readSchema()", res); reopenFile(); } @@ -205,8 +205,8 @@ public class _XSchema extends MultiMethodTest { try { xSchemaHandlerImpl.cleanCalls(); oObj.readComponent(xSchemaHandlerImpl); - - String implCalled = xSchemaHandlerImpl.getCalls(); + + String implCalled = xSchemaHandlerImpl.getCalls(); int sc = implCalled.indexOf("startGroup"); @@ -238,10 +238,10 @@ public class _XSchema extends MultiMethodTest { res &= false; } - tRes.tested("readTemplates()", res); + tRes.tested("readTemplates()", res); reopenFile(); } - + /** * reopen the parsed file again, to avoid the wrapped target exception. */ @@ -251,13 +251,13 @@ public class _XSchema extends MultiMethodTest { try { Object fileacc = ((XMultiServiceFactory)tParam.getMSF()).createInstance("com.sun.star.comp.ucb.SimpleFileAccess"); simpleAccess = (XSimpleFileAccess) - UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); + UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); log.println("Going to parse: "+filename); xStream = simpleAccess.openFileRead(filename); } catch (com.sun.star.uno.Exception e) { - } + } - XActiveDataSink xSink = (XActiveDataSink) UnoRuntime.queryInterface(XActiveDataSink.class, oObj); + XActiveDataSink xSink = (XActiveDataSink) UnoRuntime.queryInterface(XActiveDataSink.class, oObj); xSink.setInputStream(xStream); } }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XSchemaSupplier.java b/qadevOOo/tests/java/ifc/configuration/backend/_XSchemaSupplier.java index 99346705b4fb..0df57288bd00 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XSchemaSupplier.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XSchemaSupplier.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 @@ -57,7 +57,7 @@ public class _XSchemaSupplier extends MultiMethodTest { } tRes.tested("getComponentSchema()",res); } - + protected boolean checkSchema(XSchema aSchema) { boolean res = false; XSchemaHandlerImpl xSchemaHandlerImpl = new XSchemaHandlerImpl(); @@ -80,8 +80,8 @@ public class _XSchemaSupplier extends MultiMethodTest { try { aSchema.readComponent(xSchemaHandlerImpl); - - String implCalled = xSchemaHandlerImpl.getCalls(); + + String implCalled = xSchemaHandlerImpl.getCalls(); int sc = implCalled.indexOf("startComponent"); if (sc < 0) { @@ -112,7 +112,7 @@ public class _XSchemaSupplier extends MultiMethodTest { res &= false; } - return res; - + return res; + } }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java b/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java index 32049d8f7015..92c90499be0f 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.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 @@ -49,70 +49,70 @@ public class _XUpdateHandler extends MultiMethodTest { try { xLayerHandler.startLayer(); - xLayerHandler.overrideNode("org.openoffice.Setup", (short) 0, + xLayerHandler.overrideNode("org.openoffice.Setup", (short) 0, false); xLayerHandler.overrideNode("Office", (short) 0, false); - xLayerHandler.overrideProperty("ooSetupInstCompleted", (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("ooSetupInstCompleted", (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue(new Boolean(false)); xLayerHandler.endProperty(); - xLayerHandler.overrideProperty("ooSetupShowIntro", (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("ooSetupShowIntro", (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue(new Boolean(true)); xLayerHandler.endProperty(); - xLayerHandler.overrideProperty("ooSetupLocales", (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("ooSetupLocales", (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue("en-US"); xLayerHandler.endProperty(); xLayerHandler.overrideNode("Factories", (short) 0, false); - xLayerHandler.addOrReplaceNode("com.sun.star.chart.ChartDocument", + xLayerHandler.addOrReplaceNode("com.sun.star.chart.ChartDocument", (short) 0); - xLayerHandler.overrideProperty("ooSetupFactoryEmptyDocumentURL", - (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("ooSetupFactoryEmptyDocumentURL", + (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue("private:factory/schart"); xLayerHandler.endProperty(); - xLayerHandler.overrideProperty("ooSetupFactoryIcon", (short) 0, - new Type(java.lang.Long.class), + xLayerHandler.overrideProperty("ooSetupFactoryIcon", (short) 0, + new Type(java.lang.Long.class), false); xLayerHandler.setPropertyValue(new Integer(13)); xLayerHandler.endProperty(); - xLayerHandler.overrideProperty("ooSetupFactoryShortName", - (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("ooSetupFactoryShortName", + (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue("schart"); xLayerHandler.setPropertyValueForLocale("TemplateFile", "en-US"); xLayerHandler.endProperty(); - xLayerHandler.overrideProperty("ooSetupFactoryTemplateFile", - (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("ooSetupFactoryTemplateFile", + (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue("empty"); xLayerHandler.endProperty(); - xLayerHandler.addProperty("ooSetupFactoryTemplateFile", (short) 0, + xLayerHandler.addProperty("ooSetupFactoryTemplateFile", (short) 0, new Type(java.lang.String.class)); - xLayerHandler.addPropertyWithValue("ooSetupFactoryTemplateFile", + xLayerHandler.addPropertyWithValue("ooSetupFactoryTemplateFile", (short) 0, "TemplateFile"); xLayerHandler.endNode(); xLayerHandler.addOrReplaceNode("dropme", (short) 0); - xLayerHandler.overrideProperty("anyway", (short) 0, - new Type(java.lang.String.class), + xLayerHandler.overrideProperty("anyway", (short) 0, + new Type(java.lang.String.class), false); xLayerHandler.setPropertyValue("nice"); xLayerHandler.endProperty(); xLayerHandler.dropNode("dropme"); xLayerHandler.endNode(); - xLayerHandler.addOrReplaceNodeFromTemplate("FromTemplate", + xLayerHandler.addOrReplaceNodeFromTemplate("FromTemplate", new com.sun.star.configuration.backend.TemplateIdentifier( - "org.openoffice.Setup", - "Setup"), + "org.openoffice.Setup", + "Setup"), (short) 0); xLayerHandler.endNode(); @@ -217,17 +217,17 @@ public class _XUpdateHandler extends MultiMethodTest { log.println("Layer called (before): " + xLayer.hasBeenCalled()); oObj.startUpdate(); oObj.addOrReplaceNode("whatever", (short) 0); - oObj.addOrReplaceNodeFromTemplate("Office", (short) 0, + oObj.addOrReplaceNodeFromTemplate("Office", (short) 0, new TemplateIdentifier()); - oObj.addOrReplaceProperty("prop", (short) 0, + oObj.addOrReplaceProperty("prop", (short) 0, new Type(java.lang.String.class)); oObj.addOrReplacePropertyWithValue("prop2", (short) 0, "this"); - oObj.modifyProperty("ooSetupFactoryIcon", (short) 0, (short) 0, + oObj.modifyProperty("ooSetupFactoryIcon", (short) 0, (short) 0, new Type(java.lang.String.class)); oObj.resetPropertyValue(); oObj.resetPropertyValueForLocale("en-US"); oObj.endProperty(); - oObj.modifyProperty("ooSetupFactoryEmptyDocumentURL", (short) 0, + oObj.modifyProperty("ooSetupFactoryEmptyDocumentURL", (short) 0, (short) 0, new Type(java.lang.String.class)); oObj.setPropertyValue("newValue"); oObj.setPropertyValueForLocale("newValue-US", "de-DE"); diff --git a/qadevOOo/tests/java/ifc/connection/_XAcceptor.java b/qadevOOo/tests/java/ifc/connection/_XAcceptor.java index 7622c547253d..7f0ea801fe97 100644 --- a/qadevOOo/tests/java/ifc/connection/_XAcceptor.java +++ b/qadevOOo/tests/java/ifc/connection/_XAcceptor.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 diff --git a/qadevOOo/tests/java/ifc/connection/_XConnector.java b/qadevOOo/tests/java/ifc/connection/_XConnector.java index 12ae67dedea3..d9788976de9a 100644 --- a/qadevOOo/tests/java/ifc/connection/_XConnector.java +++ b/qadevOOo/tests/java/ifc/connection/_XConnector.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 @@ -117,7 +117,7 @@ public class _XConnector extends MultiMethodTest { public void _connect() { boolean result = true ; AcceptorThread acceptorThread = null; - XAcceptor xAcceptor = null ; + XAcceptor xAcceptor = null ; XConnection aCon = null; XInterface x = null; diff --git a/qadevOOo/tests/java/ifc/container/_XChild.java b/qadevOOo/tests/java/ifc/container/_XChild.java index 2c142573ef01..cda4a19fff42 100644 --- a/qadevOOo/tests/java/ifc/container/_XChild.java +++ b/qadevOOo/tests/java/ifc/container/_XChild.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 @@ -74,9 +74,9 @@ public class _XChild extends MultiMethodTest { */ public void _setParent() { requiredMethod("getParent()") ; - + String parentComment = (String) tEnv.getObjRelation("cannotSwitchParent"); - + if (parentComment != null) { log.println(parentComment); tRes.tested("setParent()",Status.skipped(true)); diff --git a/qadevOOo/tests/java/ifc/container/_XContainer.java b/qadevOOo/tests/java/ifc/container/_XContainer.java index e3122bc28f66..f4e016100e73 100644 --- a/qadevOOo/tests/java/ifc/container/_XContainer.java +++ b/qadevOOo/tests/java/ifc/container/_XContainer.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 @@ -108,12 +108,12 @@ public class _XContainer extends MultiMethodTest { if (NC == null) { container = tEnv.getObjRelation("XContainer.Container") ; } - + if (container != null) { if (container instanceof com.sun.star.awt.XControlContainer) { CC = (XControlContainer) container; } else if (container instanceof com.sun.star.uno.XNamingService) { - NV = (XNamingService) container; + NV = (XNamingService) container; } else if (container instanceof com.sun.star.container.XNameReplace) { NR = (XNameReplace) container; inst2 = tEnv.getObjRelation("XContainer.NewValue"); @@ -122,7 +122,7 @@ public class _XContainer extends MultiMethodTest { NC = (XNameContainer) container; } } - + if (NC == null && CC == null && NV == null && NR == null) throw new StatusException( Status.failed("Neither object implements XNameContainer" + @@ -178,14 +178,14 @@ public class _XContainer extends MultiMethodTest { if (NR == null) bResult &= bElementInserted; if (!bResult) { - log.println("inserted was " + (bElementInserted ? "" : "NOT") + log.println("inserted was " + (bElementInserted ? "" : "NOT") + " called."); - + if (NC != null) { - log.println("replaced was " + (bElementReplaced ? "" : "NOT") + log.println("replaced was " + (bElementReplaced ? "" : "NOT") + " called."); } - log.println("removed was " + (bElementRemoved ? "" : "NOT") + log.println("removed was " + (bElementRemoved ? "" : "NOT") + " called."); } @@ -260,14 +260,14 @@ public class _XContainer extends MultiMethodTest { return bResult; } - + /** * In case no XNameContainer is available, but a XControlContainer - * instead. + * instead. * the XControl instance is inserted * Method returns true if the count of Controls is changed afterwards */ - protected boolean performChanges2() { + protected boolean performChanges2() { int precount = CC.getControls().length; CC.addControl("NewControl",(XControl) inst); shortWait(); @@ -276,25 +276,25 @@ public class _XContainer extends MultiMethodTest { shortWait(); return count>precount; } - + /** * In case no XNameContainer is available, but a XNamingService - * instead. + * instead. * the instance is registered and revoked again * Method return true if getRegisteredObject() works after * registering and doesn't after revoke */ - protected boolean performChanges3() { + protected boolean performChanges3() { boolean res = true; Object reg = null; - + try { reg = NV.getRegisteredObject("MyFactory"); - NV.revokeObject("MyFactory"); + NV.revokeObject("MyFactory"); } catch (Exception e) { - + } - + try { NV.registerObject("MyFactory", inst); reg = NV.getRegisteredObject("MyFactory"); @@ -304,7 +304,7 @@ public class _XContainer extends MultiMethodTest { log.println("registerObject failed"); res &= false; } - + try { NV.revokeObject("MyFactory"); reg = NV.getRegisteredObject("MyFactory"); @@ -313,20 +313,20 @@ public class _XContainer extends MultiMethodTest { } catch (Exception e) { res &= true; } - + return res; - } - + } + /** * In case no XNameContainer is available, but a XNamingReplace - * instead. + * instead. */ - protected boolean performChanges4() { + protected boolean performChanges4() { boolean res = true; Object newValue = inst2; Object originalValue = null; String name = null; - + try { name = (String)inst; } @@ -335,7 +335,7 @@ public class _XContainer extends MultiMethodTest { e.printStackTrace(log); return false; } - + try { originalValue = NR.getByName(name); NR.replaceByName(name, newValue); @@ -352,7 +352,7 @@ public class _XContainer extends MultiMethodTest { } return res; - } + } /** * Sleeps for 0.5 sec. to allow StarOffice to react on <code> @@ -364,7 +364,7 @@ public class _XContainer extends MultiMethodTest { } catch (InterruptedException e) { log.println("While waiting :" + e) ; } - } + } } diff --git a/qadevOOo/tests/java/ifc/container/_XContainerQuery.java b/qadevOOo/tests/java/ifc/container/_XContainerQuery.java index eb6fe34c5ff3..03e079156628 100644 --- a/qadevOOo/tests/java/ifc/container/_XContainerQuery.java +++ b/qadevOOo/tests/java/ifc/container/_XContainerQuery.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 @@ -45,13 +45,13 @@ import com.sun.star.container.XEnumeration; * </ul> * This test needs the following object relations : * <ul> -* <li> <code>'XContainerQuery.createSubSetEnumerationByProperties'</code> : -* <code>NameValue[]</code> which is a valid argument for +* <li> <code>'XContainerQuery.createSubSetEnumerationByProperties'</code> : +* <code>NameValue[]</code> which is a valid argument for * <code>createSubSetEnumerationByProperties()</code>.</li> * <li> <code>'XContainerQuery.createSubSetEnumerationByQuery'</code> : <b>(optional)</b> -* Normaly <code>createSubSetEnumerationByProperties()</code> covers all -* possible queries. But for special cases, i.e. sorted output, the function -* <code>createSubSetEnumerationByQuery()</code> was made. The special cases was not +* Normaly <code>createSubSetEnumerationByProperties()</code> covers all +* possible queries. But for special cases, i.e. sorted output, the function +* <code>createSubSetEnumerationByQuery()</code> was made. The special cases was not * implemented by default in the implemetation object. So this function could be * marked as <code>optional</code></li> * <ul> <p> @@ -62,7 +62,7 @@ import com.sun.star.container.XEnumeration; public class _XContainerQuery extends MultiMethodTest { public XContainerQuery oObj = null; - private NamedValue[] m_querySequenze = null; + private NamedValue[] m_querySequenze = null; private String[] m_queryStrings = null; @@ -71,26 +71,26 @@ public class _XContainerQuery extends MultiMethodTest { * @throws StatusException If one of relations not found. */ public void before() throws StatusException { - + m_querySequenze = (NamedValue[]) tEnv.getObjRelation( "XContainerQuery.createSubSetEnumerationByProperties"); if (m_querySequenze == null) { throw new StatusException( - Status.failed("Could not get object relation " + + Status.failed("Could not get object relation " + "'XContainerQuery.createSubSetEnumerationByProperties'")) ; } - + m_queryStrings = (String[]) tEnv.getObjRelation( "XContainerQuery.createSubSetEnumerationByQuery"); if (m_queryStrings == null) { - log.println("Could not get object relation " + + log.println("Could not get object relation " + "'XContainerQuery.createSubSetEnumerationByQuery'"); } } /** - * If object relation is available, the function was called with relation + * If object relation is available, the function was called with relation * as parameter. The returned <code>XEnumeration</code> must not be null and * elements of it must be valid. * If object relation is not available, the result is always <code>true</coed> @@ -129,23 +129,23 @@ public class _XContainerQuery extends MultiMethodTest { } /** - * The function was called with object relation + * The function was called with object relation * as parameter. The returned <code>XEnumeration</code> must not be null and * elements of it must be valid. - * + * */ public void _createSubSetEnumerationByProperties() { boolean bResult = true; XEnumeration subSet = oObj.createSubSetEnumerationByProperties( m_querySequenze ); - + bResult = subSet.hasMoreElements(); - + while (subSet.hasMoreElements()) { try{ Object element = subSet.nextElement(); - + } catch (com.sun.star.container.NoSuchElementException e){ log.println("Exception occured "); e.printStackTrace(log); diff --git a/qadevOOo/tests/java/ifc/container/_XContentEnumerationAccess.java b/qadevOOo/tests/java/ifc/container/_XContentEnumerationAccess.java index 5339febb521a..550fc20e7a03 100644 --- a/qadevOOo/tests/java/ifc/container/_XContentEnumerationAccess.java +++ b/qadevOOo/tests/java/ifc/container/_XContentEnumerationAccess.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 diff --git a/qadevOOo/tests/java/ifc/container/_XElementAccess.java b/qadevOOo/tests/java/ifc/container/_XElementAccess.java index e732db774c05..83c121f10927 100644 --- a/qadevOOo/tests/java/ifc/container/_XElementAccess.java +++ b/qadevOOo/tests/java/ifc/container/_XElementAccess.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 diff --git a/qadevOOo/tests/java/ifc/container/_XEnumeration.java b/qadevOOo/tests/java/ifc/container/_XEnumeration.java index eaf5a2d5991d..6b2595656f8a 100644 --- a/qadevOOo/tests/java/ifc/container/_XEnumeration.java +++ b/qadevOOo/tests/java/ifc/container/_XEnumeration.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 @@ -125,7 +125,7 @@ public class _XEnumeration extends MultiMethodTest { result = false; } catch (NoSuchElementException e) { log.println("nextElement: correct exception"); - } + } tRes.tested("nextElement()", result); diff --git a/qadevOOo/tests/java/ifc/container/_XEnumerationAccess.java b/qadevOOo/tests/java/ifc/container/_XEnumerationAccess.java index 87de9304e309..d929233bcd91 100644 --- a/qadevOOo/tests/java/ifc/container/_XEnumerationAccess.java +++ b/qadevOOo/tests/java/ifc/container/_XEnumerationAccess.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 diff --git a/qadevOOo/tests/java/ifc/container/_XHierarchicalName.java b/qadevOOo/tests/java/ifc/container/_XHierarchicalName.java index c2723ccce0af..d690f1df8ebe 100644 --- a/qadevOOo/tests/java/ifc/container/_XHierarchicalName.java +++ b/qadevOOo/tests/java/ifc/container/_XHierarchicalName.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 @@ -46,7 +46,7 @@ public class _XHierarchicalName extends MultiMethodTest { res = hn.startsWith(expName); if (!res) { - log.println("Getting : " + hn + + log.println("Getting : " + hn + " but expected it to start with " + expName); } } catch (com.sun.star.lang.IllegalArgumentException e) { diff --git a/qadevOOo/tests/java/ifc/container/_XHierarchicalNameAccess.java b/qadevOOo/tests/java/ifc/container/_XHierarchicalNameAccess.java index 2270d68502ba..2fb8e6d19011 100644 --- a/qadevOOo/tests/java/ifc/container/_XHierarchicalNameAccess.java +++ b/qadevOOo/tests/java/ifc/container/_XHierarchicalNameAccess.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 diff --git a/qadevOOo/tests/java/ifc/container/_XIndexAccess.java b/qadevOOo/tests/java/ifc/container/_XIndexAccess.java index c87a62baaf23..e9bcad12b2b2 100644 --- a/qadevOOo/tests/java/ifc/container/_XIndexAccess.java +++ b/qadevOOo/tests/java/ifc/container/_XIndexAccess.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 @@ -125,16 +125,16 @@ public class _XIndexAccess extends MultiMethodTest { tRes.tested("getByIndex()", result); } // end getByIndex - + private boolean checkGetByIndex(int index){ Object o = null; boolean result = true; try { log.println("getByIndex(" + index + ")"); o = oObj.getByIndex(index); - + if ( tEnv.getObjRelation("XIndexAccess.getByIndex.mustBeNull") != null){ - result = (o == null); + result = (o == null); if (result) log.println("OK"); else log.println("FAILED -> not null"); } else { result = (o != null); @@ -148,7 +148,7 @@ public class _XIndexAccess extends MultiMethodTest { log.println("Exception! " + e); result = false; } - + return result; } diff --git a/qadevOOo/tests/java/ifc/container/_XIndexContainer.java b/qadevOOo/tests/java/ifc/container/_XIndexContainer.java index fcd9e80f7589..60fddf132635 100644 --- a/qadevOOo/tests/java/ifc/container/_XIndexContainer.java +++ b/qadevOOo/tests/java/ifc/container/_XIndexContainer.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 diff --git a/qadevOOo/tests/java/ifc/container/_XIndexReplace.java b/qadevOOo/tests/java/ifc/container/_XIndexReplace.java index b25dce3456ab..518c2f25a256 100644 --- a/qadevOOo/tests/java/ifc/container/_XIndexReplace.java +++ b/qadevOOo/tests/java/ifc/container/_XIndexReplace.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 diff --git a/qadevOOo/tests/java/ifc/container/_XNameAccess.java b/qadevOOo/tests/java/ifc/container/_XNameAccess.java index be3909179f3d..e141d5da5fe8 100644 --- a/qadevOOo/tests/java/ifc/container/_XNameAccess.java +++ b/qadevOOo/tests/java/ifc/container/_XNameAccess.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 diff --git a/qadevOOo/tests/java/ifc/container/_XNameContainer.java b/qadevOOo/tests/java/ifc/container/_XNameContainer.java index 045a43f135e7..2e54cca7e0f5 100644 --- a/qadevOOo/tests/java/ifc/container/_XNameContainer.java +++ b/qadevOOo/tests/java/ifc/container/_XNameContainer.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 @@ -204,7 +204,7 @@ public class _XNameContainer extends MultiMethodTest { oObj.removeByName(Name); } catch (com.sun.star.container.NoSuchElementException e1) { } catch (com.sun.star.lang.WrappedTargetException e1) { - } + } } boolean result = true; diff --git a/qadevOOo/tests/java/ifc/container/_XNameReplace.java b/qadevOOo/tests/java/ifc/container/_XNameReplace.java index a56edc5ce3db..91ad64e51051 100644 --- a/qadevOOo/tests/java/ifc/container/_XNameReplace.java +++ b/qadevOOo/tests/java/ifc/container/_XNameReplace.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 @@ -136,24 +136,24 @@ public class _XNameReplace extends MultiMethodTest { log.println("replace object '" + oNames[0] + "' with another instance"); oObj.replaceByName(oNames[0],oInstance); Object newEl = oObj.getByName(oNames[0]) ; - + if (tEnv.getTestCase().getObjectName().equals("ScCellRangesObj")) { ok = compareRanges(old, newEl); } else { - ok = ! ValueComparer.equalValue(old, newEl); + ok = ! ValueComparer.equalValue(old, newEl); } result &= ok; log.println("result of replace: " + ok); log.println("replace back the old object"); - oObj.replaceByName(oNames[0],old); + oObj.replaceByName(oNames[0],old); Object origEl = oObj.getByName(oNames[0]) ; - + if (tEnv.getTestCase().getObjectName().equals("ScCellRangesObj")) { ok = ! compareRanges(old, origEl); } else { ok = ValueComparer.equalValue(old, origEl); } - + result &= ok; log.println("result of replace back: " + ok); } catch (com.sun.star.lang.IllegalArgumentException e ) { @@ -177,48 +177,48 @@ public class _XNameReplace extends MultiMethodTest { public void after() { disposeEnvironment() ; } - + // method returns false if the ranges are equal and true otherwise - + private boolean compareRanges(Object old, Object newEl) { - XCellRangeAddressable xCRA = (XCellRangeAddressable) + XCellRangeAddressable xCRA = (XCellRangeAddressable) UnoRuntime.queryInterface(XCellRangeAddressable.class,old); - - XCellRangeAddressable xCRA2 = (XCellRangeAddressable) + + XCellRangeAddressable xCRA2 = (XCellRangeAddressable) UnoRuntime.queryInterface(XCellRangeAddressable.class,newEl); - + int orgStartCol = xCRA.getRangeAddress().StartColumn; - int orgEndCol = xCRA.getRangeAddress().EndColumn; + int orgEndCol = xCRA.getRangeAddress().EndColumn; int orgStartRow = xCRA.getRangeAddress().StartRow; - int orgEndRow = xCRA.getRangeAddress().EndRow; - + int orgEndRow = xCRA.getRangeAddress().EndRow; + int newStartCol = xCRA2.getRangeAddress().StartColumn; - int newEndCol = xCRA2.getRangeAddress().EndColumn; + int newEndCol = xCRA2.getRangeAddress().EndColumn; int newStartRow = xCRA2.getRangeAddress().StartRow; int newEndRow = xCRA2.getRangeAddress().EndRow; - + boolean ret = true; - + if (orgStartCol == newStartCol) { log.println("\t StartColumn is the same"); ret = false; } - + if (orgEndCol == newEndCol) { log.println("\t EndColumn is the same"); ret = false; - } + } if (orgStartRow == newStartRow) { log.println("\t StartRow is the same"); ret = false; } - + if (orgEndRow == newEndRow) { log.println("\t EndRow is the same"); ret = false; - } - - return ret; + } + + return ret; } } diff --git a/qadevOOo/tests/java/ifc/container/_XNamed.java b/qadevOOo/tests/java/ifc/container/_XNamed.java index 81d9130e17ca..ed569c102922 100644 --- a/qadevOOo/tests/java/ifc/container/_XNamed.java +++ b/qadevOOo/tests/java/ifc/container/_XNamed.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 @@ -153,7 +153,7 @@ public class _XNamed extends MultiMethodTest { result &= loc_result; oObj.setName(oldName); } else { - log.println("The names for the object '" + testobjname + + log.println("The names for the object '" + testobjname + "' are fixed."); log.println("It is not possible to rename."); log.println("So 'setName()' is always OK"); diff --git a/qadevOOo/tests/java/ifc/container/_XSet.java b/qadevOOo/tests/java/ifc/container/_XSet.java index 191b107ebc08..bb18e18d9b0b 100644 --- a/qadevOOo/tests/java/ifc/container/_XSet.java +++ b/qadevOOo/tests/java/ifc/container/_XSet.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 diff --git a/qadevOOo/tests/java/ifc/datatransfer/_XDataFormatTranslator.java b/qadevOOo/tests/java/ifc/datatransfer/_XDataFormatTranslator.java index c9343c60ec2f..c97fa9b3f5ec 100644 --- a/qadevOOo/tests/java/ifc/datatransfer/_XDataFormatTranslator.java +++ b/qadevOOo/tests/java/ifc/datatransfer/_XDataFormatTranslator.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 diff --git a/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java b/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java index 6835b2d87aaf..0aca5f06ec85 100644 --- a/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java +++ b/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.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 diff --git a/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboard.java b/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboard.java index c8b13bc73fb4..5d74a3ab8f0e 100644 --- a/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboard.java +++ b/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboard.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 diff --git a/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardEx.java b/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardEx.java index 186ede4922d3..73baebba772a 100644 --- a/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardEx.java +++ b/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardEx.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 diff --git a/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardNotifier.java b/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardNotifier.java index 77a9a2d99284..9062b0b03317 100644 --- a/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardNotifier.java +++ b/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardNotifier.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 diff --git a/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XFlushableClipboard.java b/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XFlushableClipboard.java index c790d42df531..1c0f5b34dd45 100644 --- a/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XFlushableClipboard.java +++ b/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XFlushableClipboard.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 diff --git a/qadevOOo/tests/java/ifc/document/_DocumentInfo.java b/qadevOOo/tests/java/ifc/document/_DocumentInfo.java index 6bb34e303329..ec7d1d24789d 100644 --- a/qadevOOo/tests/java/ifc/document/_DocumentInfo.java +++ b/qadevOOo/tests/java/ifc/document/_DocumentInfo.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 diff --git a/qadevOOo/tests/java/ifc/document/_ExportFilter.java b/qadevOOo/tests/java/ifc/document/_ExportFilter.java index e8801774c83a..b3135639f4e9 100644 --- a/qadevOOo/tests/java/ifc/document/_ExportFilter.java +++ b/qadevOOo/tests/java/ifc/document/_ExportFilter.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 diff --git a/qadevOOo/tests/java/ifc/document/_ImportFilter.java b/qadevOOo/tests/java/ifc/document/_ImportFilter.java index a2d0afb809cc..30133010df80 100644 --- a/qadevOOo/tests/java/ifc/document/_ImportFilter.java +++ b/qadevOOo/tests/java/ifc/document/_ImportFilter.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 diff --git a/qadevOOo/tests/java/ifc/document/_LinkTarget.java b/qadevOOo/tests/java/ifc/document/_LinkTarget.java index 166dae9de48e..d588c1421a59 100644 --- a/qadevOOo/tests/java/ifc/document/_LinkTarget.java +++ b/qadevOOo/tests/java/ifc/document/_LinkTarget.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 diff --git a/qadevOOo/tests/java/ifc/document/_OfficeDocument.java b/qadevOOo/tests/java/ifc/document/_OfficeDocument.java index 71611b09985f..22a3fc0073c2 100644 --- a/qadevOOo/tests/java/ifc/document/_OfficeDocument.java +++ b/qadevOOo/tests/java/ifc/document/_OfficeDocument.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 diff --git a/qadevOOo/tests/java/ifc/document/_Settings.java b/qadevOOo/tests/java/ifc/document/_Settings.java index 7cd31f5f137c..a644d57df146 100644 --- a/qadevOOo/tests/java/ifc/document/_Settings.java +++ b/qadevOOo/tests/java/ifc/document/_Settings.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 @@ -45,7 +45,7 @@ import lib.StatusException; * Generic test for all properties contained in this service */ public class _Settings extends MultiPropertyTest { - + /** * This property accepts only values in a range of 1-3 * @see com.sun.star.document.PrinterIndependentLayout @@ -54,21 +54,21 @@ public class _Settings extends MultiPropertyTest { try{ Short oldVal = (Short) oObj.getPropertyValue("PrinterIndependentLayout"); Short newVal = oldVal.intValue() == 1 ? new Short("3") : new Short("1"); - - + + testProperty("PrinterIndependentLayout", oldVal, newVal); - + } catch (com.sun.star.beans.UnknownPropertyException e) { throw new StatusException(Status.failed("the property 'PrinterIndependentLayout' is unknown.")); } catch (com.sun.star.lang.WrappedTargetException e) { throw new StatusException(Status.failed("the property 'PrinterIndependentLayout' could not be tested.")); } } - + public void _PrinterName() { Object[] oServices = null; Exception ex = null; - + try { Class cPrinterJob = Class.forName("java.awt.print.PrinterJob"); Method lookupMethod = cPrinterJob.getDeclaredMethod("lookupPrintServices", new Class[0]); @@ -98,7 +98,7 @@ public class _Settings extends MultiPropertyTest { // PrintService[] services = PrinterJob.lookupPrintServices(); if (oServices.length > 1) { - testProperty("PrinterName", getPrinterNameWithReflection(oServices[0]), + testProperty("PrinterName", getPrinterNameWithReflection(oServices[0]), getPrinterNameWithReflection(oServices[1])); } else { log.println( @@ -123,16 +123,16 @@ public class _Settings extends MultiPropertyTest { //check if the property has the right type Object pValue = oObj.getPropertyValue("ForbiddenCharacters"); XForbiddenCharacters fc = (XForbiddenCharacters) UnoRuntime.queryInterface( - XForbiddenCharacters.class, + XForbiddenCharacters.class, pValue); res &= (fc != null); } catch (com.sun.star.beans.UnknownPropertyException e) { log.println( - "Exception while checking property 'ForbiddenCharacters' " + + "Exception while checking property 'ForbiddenCharacters' " + e.getMessage()); } catch (com.sun.star.lang.WrappedTargetException e) { log.println( - "Exception while checking property 'ForbiddenCharacters' " + + "Exception while checking property 'ForbiddenCharacters' " + e.getMessage()); } @@ -151,7 +151,7 @@ public class _Settings extends MultiPropertyTest { return res; } - + private String getPrinterNameWithReflection(Object pService) { String pName = null; try { @@ -159,7 +159,7 @@ public class _Settings extends MultiPropertyTest { Method getNameMethod = cPrintService.getDeclaredMethod("getName", new Class[0]); Object retValue = getNameMethod.invoke(pService, new Object[0]); pName = (String)retValue; - } + } // ignore all excptions: we already ran into one of these if Java is too old catch(java.lang.ClassNotFoundException e) { } diff --git a/qadevOOo/tests/java/ifc/document/_XActionLockable.java b/qadevOOo/tests/java/ifc/document/_XActionLockable.java index bfba13d6bb2e..5cfcb5aab072 100644 --- a/qadevOOo/tests/java/ifc/document/_XActionLockable.java +++ b/qadevOOo/tests/java/ifc/document/_XActionLockable.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 diff --git a/qadevOOo/tests/java/ifc/document/_XDocumentInfo.java b/qadevOOo/tests/java/ifc/document/_XDocumentInfo.java index c7b7ec582d1c..d04f0fc66f1a 100644 --- a/qadevOOo/tests/java/ifc/document/_XDocumentInfo.java +++ b/qadevOOo/tests/java/ifc/document/_XDocumentInfo.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 diff --git a/qadevOOo/tests/java/ifc/document/_XDocumentInfoSupplier.java b/qadevOOo/tests/java/ifc/document/_XDocumentInfoSupplier.java index e227017937c3..d458465b4db9 100644 --- a/qadevOOo/tests/java/ifc/document/_XDocumentInfoSupplier.java +++ b/qadevOOo/tests/java/ifc/document/_XDocumentInfoSupplier.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 @@ -37,7 +37,7 @@ import lib.MultiMethodTest; */ public class _XDocumentInfoSupplier extends MultiMethodTest { public XDocumentInfoSupplier oObj = null; - + public void _getDocumentInfo() { // returns a com.sun.star.document.DocumentInfo XDocumentInfo info = oObj.getDocumentInfo(); @@ -50,7 +50,7 @@ public class _XDocumentInfoSupplier extends MultiMethodTest { e.printStackTrace((java.io.PrintWriter)log); title = null; } - log.println("Got document title: " + title); + log.println("Got document title: " + title); tRes.tested("getDocumentInfo()", title != null); } } diff --git a/qadevOOo/tests/java/ifc/document/_XDocumentInsertable.java b/qadevOOo/tests/java/ifc/document/_XDocumentInsertable.java index 76a7be2593dc..98a39a7a2c10 100644 --- a/qadevOOo/tests/java/ifc/document/_XDocumentInsertable.java +++ b/qadevOOo/tests/java/ifc/document/_XDocumentInsertable.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 @@ -169,15 +169,15 @@ public class _XDocumentInsertable extends MultiMethodTest { ex.printStackTrace(log); result = false ; } - + try { PropertyValue [] szEmptyArgs = new PropertyValue [0]; String docURL = "file:///c:/ThisIsAnInvaldURL"; log.println("Inserting document from URL '" + docURL + "'"); oObj.insertDocumentFromURL(docURL, szEmptyArgs); - + result=false; - + } catch (IOException ex) { log.println("expected exception was thrown -> ok"); } catch (com.sun.star.lang.IllegalArgumentException ex) { @@ -187,12 +187,12 @@ public class _XDocumentInsertable extends MultiMethodTest { tRes.tested("insertDocumentFromURL()", result); } - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); - } + } } // finish class _XDocumentInsertable diff --git a/qadevOOo/tests/java/ifc/document/_XEmbeddedObjectSupplier.java b/qadevOOo/tests/java/ifc/document/_XEmbeddedObjectSupplier.java index 8a52ed436ef1..c4a26149bdeb 100644 --- a/qadevOOo/tests/java/ifc/document/_XEmbeddedObjectSupplier.java +++ b/qadevOOo/tests/java/ifc/document/_XEmbeddedObjectSupplier.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 diff --git a/qadevOOo/tests/java/ifc/document/_XEventBroadcaster.java b/qadevOOo/tests/java/ifc/document/_XEventBroadcaster.java index 871133307dee..6e507f0618f2 100644 --- a/qadevOOo/tests/java/ifc/document/_XEventBroadcaster.java +++ b/qadevOOo/tests/java/ifc/document/_XEventBroadcaster.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 @@ -36,48 +36,48 @@ import com.sun.star.frame.XModel; import com.sun.star.uno.UnoRuntime; public class _XEventBroadcaster extends MultiMethodTest { - + public XEventBroadcaster oObj; protected static boolean listenerCalled=false; private static XEventListener listener=null; - + public class MyEventListener implements XEventListener { - + public void disposing(com.sun.star.lang.EventObject eventObject) { } - + public void notifyEvent(com.sun.star.document.EventObject eventObject) { System.out.println("EventObject "+eventObject.EventName); listenerCalled = true; } - + } - + private void switchFocus() { XModel docModel = (XModel) UnoRuntime.queryInterface( - XModel.class,tEnv.getTestObject()); - docModel.getCurrentController().getFrame().getContainerWindow().setFocus(); - util.utils.shortWait(1000); + XModel.class,tEnv.getTestObject()); + docModel.getCurrentController().getFrame().getContainerWindow().setFocus(); + util.utils.shortWait(1000); XController xc = (XController) UnoRuntime.queryInterface(XController.class,tEnv.getObjRelation("CONT2")); - xc.getFrame().getContainerWindow().setFocus(); + xc.getFrame().getContainerWindow().setFocus(); } - + public void _addEventListener() { - listener = new MyEventListener(); - listenerCalled = false; - oObj.addEventListener(listener); + listener = new MyEventListener(); + listenerCalled = false; + oObj.addEventListener(listener); switchFocus(); util.utils.shortWait(1000); tRes.tested("addEventListener()",listenerCalled); } - + public void _removeEventListener() { - requiredMethod("addEventListener()"); - listenerCalled = false; + requiredMethod("addEventListener()"); + listenerCalled = false; oObj.removeEventListener(listener); switchFocus(); - util.utils.shortWait(1000); - tRes.tested("removeEventListener()",!listenerCalled); + util.utils.shortWait(1000); + tRes.tested("removeEventListener()",!listenerCalled); } - + } diff --git a/qadevOOo/tests/java/ifc/document/_XEventsSupplier.java b/qadevOOo/tests/java/ifc/document/_XEventsSupplier.java index daf0ff59d39a..2d07f295523c 100644 --- a/qadevOOo/tests/java/ifc/document/_XEventsSupplier.java +++ b/qadevOOo/tests/java/ifc/document/_XEventsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/document/_XExporter.java b/qadevOOo/tests/java/ifc/document/_XExporter.java index 581fe0de7821..c8ea0ad9822d 100644 --- a/qadevOOo/tests/java/ifc/document/_XExporter.java +++ b/qadevOOo/tests/java/ifc/document/_XExporter.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 diff --git a/qadevOOo/tests/java/ifc/document/_XFilter.java b/qadevOOo/tests/java/ifc/document/_XFilter.java index dfdaa7acd735..49f7f8b3016e 100644 --- a/qadevOOo/tests/java/ifc/document/_XFilter.java +++ b/qadevOOo/tests/java/ifc/document/_XFilter.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 @@ -72,7 +72,7 @@ public class _XFilter extends MultiMethodTest { protected FilterChecker checker = null ; protected XComponent sourceDoc = null; protected boolean dummy = false; - + /** * Retrieves object relations. * @throws StatusException If one of relations not found.<br> @@ -85,7 +85,7 @@ public class _XFilter extends MultiMethodTest { if (name.indexOf("Importer")>0) { log.println(name+" contains only a dummy implementation"); log.println("therefore all methods are skipped"); - dummy = true; + dummy = true; } mDesc = (PropertyValue[]) tEnv.getObjRelation("MediaDescriptor") ; checker = (FilterChecker) tEnv.getObjRelation("XFilter.Checker") ; @@ -101,11 +101,11 @@ public class _XFilter extends MultiMethodTest { } catch (com.sun.star.lang.IllegalArgumentException e) {} } - + public void after() { - if (dummy) { + if (dummy) { throw new StatusException(Status.skipped(true)); - } + } } /** @@ -119,7 +119,7 @@ public class _XFilter extends MultiMethodTest { } boolean result = true ; result = oObj.filter(mDesc) ; - + if (checker == null) { log.println("!!! Warning : cann't check filter as no relation found"); } else { @@ -137,7 +137,7 @@ public class _XFilter extends MultiMethodTest { if (dummy) { tRes.tested("cancel()",true); return; - } + } requiredMethod("filter()"); if (tEnv.getObjRelation("NoFilter.cancel()") != null) { System.out.println("Cancel not tested."); diff --git a/qadevOOo/tests/java/ifc/document/_XImporter.java b/qadevOOo/tests/java/ifc/document/_XImporter.java index 2296bf5802df..caae1c60b30e 100644 --- a/qadevOOo/tests/java/ifc/document/_XImporter.java +++ b/qadevOOo/tests/java/ifc/document/_XImporter.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 diff --git a/qadevOOo/tests/java/ifc/document/_XLinkTargetSupplier.java b/qadevOOo/tests/java/ifc/document/_XLinkTargetSupplier.java index bc2c8da5e68f..6fbbd0c73208 100644 --- a/qadevOOo/tests/java/ifc/document/_XLinkTargetSupplier.java +++ b/qadevOOo/tests/java/ifc/document/_XLinkTargetSupplier.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 diff --git a/qadevOOo/tests/java/ifc/document/_XMimeTypeInfo.java b/qadevOOo/tests/java/ifc/document/_XMimeTypeInfo.java index 02ebd9df736f..b4a7e82c1e2b 100644 --- a/qadevOOo/tests/java/ifc/document/_XMimeTypeInfo.java +++ b/qadevOOo/tests/java/ifc/document/_XMimeTypeInfo.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 diff --git a/qadevOOo/tests/java/ifc/document/_XStandaloneDocumentInfo.java b/qadevOOo/tests/java/ifc/document/_XStandaloneDocumentInfo.java index 33996a2f6f5f..b01063c9cfff 100644 --- a/qadevOOo/tests/java/ifc/document/_XStandaloneDocumentInfo.java +++ b/qadevOOo/tests/java/ifc/document/_XStandaloneDocumentInfo.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 diff --git a/qadevOOo/tests/java/ifc/document/_XTypeDetection.java b/qadevOOo/tests/java/ifc/document/_XTypeDetection.java index 81342805f4df..b615f2c5df17 100644 --- a/qadevOOo/tests/java/ifc/document/_XTypeDetection.java +++ b/qadevOOo/tests/java/ifc/document/_XTypeDetection.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 @@ -106,7 +106,7 @@ public class _XTypeDetection extends MultiMethodTest { ok = type.indexOf("calc") > -1; result &= ok; log.println("deep detection should detect a calc and has detected '"+ type +"': " + ok); - + log.println("test dokument with bookmark: " + bookmarkURL); mediaDescr = new PropertyValue[1][1]; mediaDescr[0][0] = new PropertyValue(); @@ -116,7 +116,7 @@ public class _XTypeDetection extends MultiMethodTest { ok = type.indexOf("writer") > -1; result &= ok; log.println("deep detection should detect a writer and has detected '"+ type +"': " + ok); - + tRes.tested("queryTypeByDescriptor()", result) ; } } diff --git a/qadevOOo/tests/java/ifc/document/_XViewDataSupplier.java b/qadevOOo/tests/java/ifc/document/_XViewDataSupplier.java index 59c159229496..6ff065b53592 100644 --- a/qadevOOo/tests/java/ifc/document/_XViewDataSupplier.java +++ b/qadevOOo/tests/java/ifc/document/_XViewDataSupplier.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 @@ -36,7 +36,7 @@ import lib.Status; /** * Check the XViewDataSupplier interface. - * Test idea: take the property values from the index access, change one + * Test idea: take the property values from the index access, change one * property value, put this into the index access and write it back. * Get the property value again and check that the change made it. */ @@ -46,7 +46,7 @@ public class _XViewDataSupplier extends MultiMethodTest { PropertyValue[] newProps = null; PropertyValue[] oldProps = null; String myview = "myview1"; - + public void _getViewData() { xAccess = oObj.getViewData(); // util.dbg.printInterfaces(xAccess); @@ -55,15 +55,15 @@ public class _XViewDataSupplier extends MultiMethodTest { } tRes.tested("getViewData()", true); } - + public void _setViewData() { if (xAccess == null) { log.println("No view data to change available"); tRes.tested("setViewData()", Status.skipped(true)); - } + } else { // 2do: provide an own implementation of the XIndexAccess to set. - // this will work without "setViewData()", it just checks that a + // this will work without "setViewData()", it just checks that a // setViewData can be done. oObj.setViewData(xAccess); XIndexAccess xAccess2 = oObj.getViewData(); @@ -71,7 +71,7 @@ public class _XViewDataSupplier extends MultiMethodTest { tRes.tested("setViewData()", newView.equals(myview)); } } - + private void setViewID(XIndexAccess xAccess, String value) { XIndexContainer xIndexContainer = (XIndexContainer)UnoRuntime.queryInterface(XIndexContainer.class, xAccess); int count = xAccess.getCount(); @@ -98,7 +98,7 @@ public class _XViewDataSupplier extends MultiMethodTest { e.printStackTrace((java.io.PrintWriter)log); } } - + private String getViewID(XIndexAccess xAccess) { String retValue = null; int count = xAccess.getCount(); diff --git a/qadevOOo/tests/java/ifc/drawing/_AreaShapeDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_AreaShapeDescriptor.java index cfa23536a205..57dfa0f56e18 100644 --- a/qadevOOo/tests/java/ifc/drawing/_AreaShapeDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_AreaShapeDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_CaptionShape.java b/qadevOOo/tests/java/ifc/drawing/_CaptionShape.java index a4c7441d63e0..9c55c9a3c69a 100644 --- a/qadevOOo/tests/java/ifc/drawing/_CaptionShape.java +++ b/qadevOOo/tests/java/ifc/drawing/_CaptionShape.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_ConnectorProperties.java b/qadevOOo/tests/java/ifc/drawing/_ConnectorProperties.java index 68438641a353..86443f0548d7 100644 --- a/qadevOOo/tests/java/ifc/drawing/_ConnectorProperties.java +++ b/qadevOOo/tests/java/ifc/drawing/_ConnectorProperties.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_ConnectorShape.java b/qadevOOo/tests/java/ifc/drawing/_ConnectorShape.java index 6b9a27841ae5..041e0beb7498 100644 --- a/qadevOOo/tests/java/ifc/drawing/_ConnectorShape.java +++ b/qadevOOo/tests/java/ifc/drawing/_ConnectorShape.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_ConnectorShapeDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_ConnectorShapeDescriptor.java index 509ca7b15a87..21f9b5653db5 100644 --- a/qadevOOo/tests/java/ifc/drawing/_ConnectorShapeDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_ConnectorShapeDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_DimensioningShapeDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_DimensioningShapeDescriptor.java index 29b7be1de0cf..613ca542bcc9 100644 --- a/qadevOOo/tests/java/ifc/drawing/_DimensioningShapeDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_DimensioningShapeDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_DrawingDocument.java b/qadevOOo/tests/java/ifc/drawing/_DrawingDocument.java index c74760addd35..0fdf4a3ba122 100644 --- a/qadevOOo/tests/java/ifc/drawing/_DrawingDocument.java +++ b/qadevOOo/tests/java/ifc/drawing/_DrawingDocument.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.java b/qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.java index 23e54d39d2e8..85e1b981f4a6 100644 --- a/qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.java +++ b/qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.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 @@ -149,7 +149,7 @@ public class _DrawingDocumentDrawView extends MultiPropertyTest { e.printStackTrace(log); } } - + public void _ZoomType() { Object oldValue=null; Object newValue=null; @@ -171,7 +171,7 @@ public class _DrawingDocumentDrawView extends MultiPropertyTest { log.println("oldZoomValue: "+oldValue); log.println("newZoomValue: "+newValue); tRes.tested("ZoomType",(!oldValue.equals(newValue))); - } - + } + } diff --git a/qadevOOo/tests/java/ifc/drawing/_EllipseShape.java b/qadevOOo/tests/java/ifc/drawing/_EllipseShape.java index 5f312f823a97..7c0acbfd22cb 100644 --- a/qadevOOo/tests/java/ifc/drawing/_EllipseShape.java +++ b/qadevOOo/tests/java/ifc/drawing/_EllipseShape.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_EllipseShapeDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_EllipseShapeDescriptor.java index c043369b5f29..f51b27035d3d 100644 --- a/qadevOOo/tests/java/ifc/drawing/_EllipseShapeDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_EllipseShapeDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_FillProperties.java b/qadevOOo/tests/java/ifc/drawing/_FillProperties.java index ba1dc4925664..e0c24398e87c 100644 --- a/qadevOOo/tests/java/ifc/drawing/_FillProperties.java +++ b/qadevOOo/tests/java/ifc/drawing/_FillProperties.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_GenericDrawPage.java b/qadevOOo/tests/java/ifc/drawing/_GenericDrawPage.java index 836abbe75f85..8b39c26f995b 100644 --- a/qadevOOo/tests/java/ifc/drawing/_GenericDrawPage.java +++ b/qadevOOo/tests/java/ifc/drawing/_GenericDrawPage.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_GenericDrawingDocument.java b/qadevOOo/tests/java/ifc/drawing/_GenericDrawingDocument.java index 53afa0cd3cb0..4f787f7543d7 100644 --- a/qadevOOo/tests/java/ifc/drawing/_GenericDrawingDocument.java +++ b/qadevOOo/tests/java/ifc/drawing/_GenericDrawingDocument.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 @@ -29,6 +29,6 @@ package ifc.drawing; import lib.MultiPropertyTest; -public class _GenericDrawingDocument extends MultiPropertyTest { - +public class _GenericDrawingDocument extends MultiPropertyTest { + } diff --git a/qadevOOo/tests/java/ifc/drawing/_GraphicObjectShape.java b/qadevOOo/tests/java/ifc/drawing/_GraphicObjectShape.java index 4e2483dc8630..636138e3869b 100644 --- a/qadevOOo/tests/java/ifc/drawing/_GraphicObjectShape.java +++ b/qadevOOo/tests/java/ifc/drawing/_GraphicObjectShape.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 @@ -131,7 +131,7 @@ public class _GraphicObjectShape extends MultiPropertyTest { try { boolean result = true; Object imapObject = tEnv.getObjRelation("ImapObject"); - + if ( imapObject == null){ System.out.println("ERROR: object relation 'ImapObject' isn't available"); tRes.tested("ImageMap", false); @@ -148,12 +148,12 @@ public class _GraphicObjectShape extends MultiPropertyTest { // behind "ImageMap" stays the same, but for a real change a C++ // implementation is needed. See css.lang.XUnoTunnel oObj.setPropertyValue("ImageMap", xIndexContainer); - Object newObject = oObj.getPropertyValue("ImageMap"); + Object newObject = oObj.getPropertyValue("ImageMap"); xIndexContainer = (XIndexContainer)UnoRuntime.queryInterface(XIndexContainer.class, newObject); int elementCountSecond = xIndexContainer.getCount(); result = (elementCountFirst + 1 == elementCountSecond); - + tRes.tested("ImageMap", result); } catch (com.sun.star.beans.UnknownPropertyException e) { log.println("Exception while checking 'ImageMap'"); diff --git a/qadevOOo/tests/java/ifc/drawing/_GraphicObjectShapeDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_GraphicObjectShapeDescriptor.java index 21a113fd58f8..82185ffad811 100644 --- a/qadevOOo/tests/java/ifc/drawing/_GraphicObjectShapeDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_GraphicObjectShapeDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_Layer.java b/qadevOOo/tests/java/ifc/drawing/_Layer.java index 62ab7ebbdd08..d5cccf4651a1 100644 --- a/qadevOOo/tests/java/ifc/drawing/_Layer.java +++ b/qadevOOo/tests/java/ifc/drawing/_Layer.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_LineProperties.java b/qadevOOo/tests/java/ifc/drawing/_LineProperties.java index b6fb1f2186a1..34aa8e4fac60 100644 --- a/qadevOOo/tests/java/ifc/drawing/_LineProperties.java +++ b/qadevOOo/tests/java/ifc/drawing/_LineProperties.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 @@ -74,7 +74,7 @@ public class _LineProperties extends MultiPropertyTest { log.println("Testing with custom Property tester"); testProperty("LineStartName", LineTester) ; } - + public void _LineDash() { LineDash aLineDash = new LineDash(); LineDash aLineDash2 = new LineDash(); diff --git a/qadevOOo/tests/java/ifc/drawing/_LineShapeDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_LineShapeDescriptor.java index 1b3ae8920357..4449d96c8976 100644 --- a/qadevOOo/tests/java/ifc/drawing/_LineShapeDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_LineShapeDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_MeasureProperties.java b/qadevOOo/tests/java/ifc/drawing/_MeasureProperties.java index 6715d6c08e92..4554c31deb43 100644 --- a/qadevOOo/tests/java/ifc/drawing/_MeasureProperties.java +++ b/qadevOOo/tests/java/ifc/drawing/_MeasureProperties.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_MeasureShape.java b/qadevOOo/tests/java/ifc/drawing/_MeasureShape.java index 65b0d32134be..2f9dbfa5d4d3 100644 --- a/qadevOOo/tests/java/ifc/drawing/_MeasureShape.java +++ b/qadevOOo/tests/java/ifc/drawing/_MeasureShape.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_PolyPolygonBezierDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_PolyPolygonBezierDescriptor.java index 674444a361c7..22ad4a0ab27f 100644 --- a/qadevOOo/tests/java/ifc/drawing/_PolyPolygonBezierDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_PolyPolygonBezierDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_PolyPolygonDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_PolyPolygonDescriptor.java index 9b9c1ccbead3..467c745d0b80 100644 --- a/qadevOOo/tests/java/ifc/drawing/_PolyPolygonDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_PolyPolygonDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_RotationDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_RotationDescriptor.java index 2a09eeb4dac5..86bc5bcee519 100644 --- a/qadevOOo/tests/java/ifc/drawing/_RotationDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_RotationDescriptor.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 @@ -72,15 +72,15 @@ public class _RotationDescriptor extends MultiPropertyTest { * Tests the property with custom tester */ public void _ShearAngle() { - + Object noShear = tEnv.getObjRelation("NoShear"); - + if (noShear != null) { log.println("This shape type doesn't support shear, see #85556#"); tRes.tested("ShearAngle",Status.skipped(true)); return; } - + try { oObj.setPropertyValue("RotateAngle",new Short((short) 0)); } catch (Exception e) { @@ -92,7 +92,7 @@ public class _RotationDescriptor extends MultiPropertyTest { /** * Tests the property with custom tester */ - public void _RotateAngle() { + public void _RotateAngle() { log.println("Testing with custom Property tester") ; testProperty("RotateAngle", drawMeasureTester) ; } diff --git a/qadevOOo/tests/java/ifc/drawing/_ShadowDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_ShadowDescriptor.java index 00ff64c2a49d..0d335d35b609 100644 --- a/qadevOOo/tests/java/ifc/drawing/_ShadowDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_ShadowDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_ShadowProperties.java b/qadevOOo/tests/java/ifc/drawing/_ShadowProperties.java index 8ea905755992..8dc1baf01b51 100644 --- a/qadevOOo/tests/java/ifc/drawing/_ShadowProperties.java +++ b/qadevOOo/tests/java/ifc/drawing/_ShadowProperties.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_Shape.java b/qadevOOo/tests/java/ifc/drawing/_Shape.java index 5a64f7012b88..1595a1a2e3f3 100644 --- a/qadevOOo/tests/java/ifc/drawing/_Shape.java +++ b/qadevOOo/tests/java/ifc/drawing/_Shape.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 @@ -107,7 +107,7 @@ public class _Shape extends MultiPropertyTest { } else if (tEnv.getTestCase().getObjectName().equals("ScShapeObj")) { log.println("There is only one Layer for ScShapeObj"); log.println("Therefore this property can't be changed"); - tRes.tested("LayerName",true); + tRes.tested("LayerName",true); } else if (tEnv.getTestCase().getObjectName().equals("ScAnnotationShapeObj")) { log.println("There is only one Layer for ScAnnotationShapeObj"); log.println("Therefore this property can't be changed"); @@ -118,7 +118,7 @@ public class _Shape extends MultiPropertyTest { } catch (Exception e) { e.printStackTrace (log); } - tRes.tested("LayerName",aName != null); + tRes.tested("LayerName",aName != null); } else { log.println("Testing with custom Property tester") ; testProperty("LayerName", StringTester) ; @@ -129,12 +129,12 @@ public class _Shape extends MultiPropertyTest { if (tEnv.getTestCase().getObjectName().equals("ScAnnotationShapeObj")) { log.println("There is only one Layer for ScAnnotationShapeObj"); log.println("Therefore this property can't be changed"); - tRes.tested("ZOrder",true); + tRes.tested("ZOrder",true); } else { testProperty("ZOrder", new Integer(0), new Integer(1)); } } - + public void _LayerID() { if (tEnv.getTestCase().getObjectName().equals("ScAnnotationShapeObj")) { log.println("There is only one Layer for ScAnnotationShapeObj"); @@ -146,7 +146,7 @@ public class _Shape extends MultiPropertyTest { } catch (Exception e) { e.printStackTrace (log); } - tRes.tested("LayerID",aID != null); + tRes.tested("LayerID",aID != null); } else { log.println("Testing with custom Property tester") ; testProperty("LayerID"); diff --git a/qadevOOo/tests/java/ifc/drawing/_ShapeDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_ShapeDescriptor.java index abeb24bf1e33..9c431b08e10b 100644 --- a/qadevOOo/tests/java/ifc/drawing/_ShapeDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_ShapeDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_Text.java b/qadevOOo/tests/java/ifc/drawing/_Text.java index 588ff1efe3c4..8e0cf1891f6e 100644 --- a/qadevOOo/tests/java/ifc/drawing/_Text.java +++ b/qadevOOo/tests/java/ifc/drawing/_Text.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_TextProperties.java b/qadevOOo/tests/java/ifc/drawing/_TextProperties.java index e7e8190e4a46..5d63d892eebc 100644 --- a/qadevOOo/tests/java/ifc/drawing/_TextProperties.java +++ b/qadevOOo/tests/java/ifc/drawing/_TextProperties.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_TextShape.java b/qadevOOo/tests/java/ifc/drawing/_TextShape.java index 9fa917bae4a3..98e498634d02 100644 --- a/qadevOOo/tests/java/ifc/drawing/_TextShape.java +++ b/qadevOOo/tests/java/ifc/drawing/_TextShape.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_TextShapeDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_TextShapeDescriptor.java index c5651534bf90..13cf5da5b5cf 100644 --- a/qadevOOo/tests/java/ifc/drawing/_TextShapeDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_TextShapeDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XConnectorShape.java b/qadevOOo/tests/java/ifc/drawing/_XConnectorShape.java index 319c5a7c2ee5..7dc3323fd172 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XConnectorShape.java +++ b/qadevOOo/tests/java/ifc/drawing/_XConnectorShape.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XControlShape.java b/qadevOOo/tests/java/ifc/drawing/_XControlShape.java index 7141ce155f3f..2abd8beb85f1 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XControlShape.java +++ b/qadevOOo/tests/java/ifc/drawing/_XControlShape.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XDrawPageDuplicator.java b/qadevOOo/tests/java/ifc/drawing/_XDrawPageDuplicator.java index 5bbb6560fe59..204f2c639b2e 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XDrawPageDuplicator.java +++ b/qadevOOo/tests/java/ifc/drawing/_XDrawPageDuplicator.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XDrawPageExpander.java b/qadevOOo/tests/java/ifc/drawing/_XDrawPageExpander.java index 01afaee841c1..baa940f1c8a8 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XDrawPageExpander.java +++ b/qadevOOo/tests/java/ifc/drawing/_XDrawPageExpander.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer.java b/qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer.java index fe0d5a9eca77..37a39af23d34 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer.java +++ b/qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XDrawPageSupplier.java b/qadevOOo/tests/java/ifc/drawing/_XDrawPageSupplier.java index c504e2d864ea..a7738bee2272 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XDrawPageSupplier.java +++ b/qadevOOo/tests/java/ifc/drawing/_XDrawPageSupplier.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 @@ -35,7 +35,7 @@ import lib.MultiMethodTest; */ public class _XDrawPageSupplier extends MultiMethodTest { public XDrawPageSupplier oObj = null; - + public void _getDrawPage() { XDrawPage xPage = oObj.getDrawPage(); log.println("xPage: " + util.utils.getImplName(xPage)); diff --git a/qadevOOo/tests/java/ifc/drawing/_XDrawPages.java b/qadevOOo/tests/java/ifc/drawing/_XDrawPages.java index 078fb1fba876..a6d03cdafe49 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XDrawPages.java +++ b/qadevOOo/tests/java/ifc/drawing/_XDrawPages.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XDrawPagesSupplier.java b/qadevOOo/tests/java/ifc/drawing/_XDrawPagesSupplier.java index 912051db3dcd..fc70ae1cedf6 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XDrawPagesSupplier.java +++ b/qadevOOo/tests/java/ifc/drawing/_XDrawPagesSupplier.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XDrawView.java b/qadevOOo/tests/java/ifc/drawing/_XDrawView.java index 643f68865de6..cd0018d792d5 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XDrawView.java +++ b/qadevOOo/tests/java/ifc/drawing/_XDrawView.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XGluePointsSupplier.java b/qadevOOo/tests/java/ifc/drawing/_XGluePointsSupplier.java index b0eb03245414..ca647a7cc0ce 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XGluePointsSupplier.java +++ b/qadevOOo/tests/java/ifc/drawing/_XGluePointsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XLayerManager.java b/qadevOOo/tests/java/ifc/drawing/_XLayerManager.java index c971df91ee9b..ed4210d50c58 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XLayerManager.java +++ b/qadevOOo/tests/java/ifc/drawing/_XLayerManager.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XLayerSupplier.java b/qadevOOo/tests/java/ifc/drawing/_XLayerSupplier.java index 770abc9c4eba..3dd3e9ff8adc 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XLayerSupplier.java +++ b/qadevOOo/tests/java/ifc/drawing/_XLayerSupplier.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XMasterPageTarget.java b/qadevOOo/tests/java/ifc/drawing/_XMasterPageTarget.java index 393469bd21e0..6160a1bb42d1 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XMasterPageTarget.java +++ b/qadevOOo/tests/java/ifc/drawing/_XMasterPageTarget.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XMasterPagesSupplier.java b/qadevOOo/tests/java/ifc/drawing/_XMasterPagesSupplier.java index 3cf4adae07aa..794493e35b8d 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XMasterPagesSupplier.java +++ b/qadevOOo/tests/java/ifc/drawing/_XMasterPagesSupplier.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XShape.java b/qadevOOo/tests/java/ifc/drawing/_XShape.java index e774721c9fdc..c1a6378bfc46 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XShape.java +++ b/qadevOOo/tests/java/ifc/drawing/_XShape.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 @@ -136,7 +136,7 @@ public class _XShape extends MultiMethodTest { } Size gSize = oObj.getSize() ; - + log.println("Previously: "+sOld.Height+";"+sOld.Width); log.println("Expected: "+sNew.Height+";"+sNew.Width); log.println("Getting: "+gSize.Height+";"+gSize.Width); @@ -144,7 +144,7 @@ public class _XShape extends MultiMethodTest { //result &= util.ValueComparer.equalValue(sNew, gSize) ; //errors in calculation from points/twips less then 1 are acceptable result &= (sNew.Height-gSize.Height <= 2) && (sNew.Width-gSize.Width <= 2); - + if (result && ((sNew.Height-gSize.Height != 0) || (sNew.Width-gSize.Width != 0))){ log.println("NOTE: there is a difference between the expected and the getted value. " + "This might be ok because of problems in calculation from points <-> twips"); @@ -179,11 +179,11 @@ public class _XShape extends MultiMethodTest { oObj.setPosition(pNew); Point gPos = oObj.getPosition() ; - + log.println("Previously: "+pOld.X+";"+pOld.Y); log.println("Expected: "+pNew.X+";"+pNew.Y); log.println("Getting: "+gPos.X+";"+gPos.Y); - + result = !util.ValueComparer.equalValue(pOld, gPos) ; tRes.tested("setPosition()", result); diff --git a/qadevOOo/tests/java/ifc/drawing/_XShapeBinder.java b/qadevOOo/tests/java/ifc/drawing/_XShapeBinder.java index d150aa986815..93326c756210 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XShapeBinder.java +++ b/qadevOOo/tests/java/ifc/drawing/_XShapeBinder.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XShapeCombiner.java b/qadevOOo/tests/java/ifc/drawing/_XShapeCombiner.java index f83025c08a84..6c22a42614b9 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XShapeCombiner.java +++ b/qadevOOo/tests/java/ifc/drawing/_XShapeCombiner.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XShapeDescriptor.java b/qadevOOo/tests/java/ifc/drawing/_XShapeDescriptor.java index 6ebcc1897402..89291f222464 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XShapeDescriptor.java +++ b/qadevOOo/tests/java/ifc/drawing/_XShapeDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XShapeGroup.java b/qadevOOo/tests/java/ifc/drawing/_XShapeGroup.java index 5c7dd2d724f4..aa5dfb60ddd7 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XShapeGroup.java +++ b/qadevOOo/tests/java/ifc/drawing/_XShapeGroup.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XShapeGrouper.java b/qadevOOo/tests/java/ifc/drawing/_XShapeGrouper.java index 9831886ca7c2..251e6ab6b66d 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XShapeGrouper.java +++ b/qadevOOo/tests/java/ifc/drawing/_XShapeGrouper.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 diff --git a/qadevOOo/tests/java/ifc/drawing/_XShapes.java b/qadevOOo/tests/java/ifc/drawing/_XShapes.java index a28833819e09..b5f7e4e02b4a 100644 --- a/qadevOOo/tests/java/ifc/drawing/_XShapes.java +++ b/qadevOOo/tests/java/ifc/drawing/_XShapes.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 diff --git a/qadevOOo/tests/java/ifc/form/_DataAwareControlModel.java b/qadevOOo/tests/java/ifc/form/_DataAwareControlModel.java index a43eaf6f53e8..7578975a3a2b 100644 --- a/qadevOOo/tests/java/ifc/form/_DataAwareControlModel.java +++ b/qadevOOo/tests/java/ifc/form/_DataAwareControlModel.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 diff --git a/qadevOOo/tests/java/ifc/form/_FormComponent.java b/qadevOOo/tests/java/ifc/form/_FormComponent.java index 094edfea935e..aa8ca1e37a78 100644 --- a/qadevOOo/tests/java/ifc/form/_FormComponent.java +++ b/qadevOOo/tests/java/ifc/form/_FormComponent.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 diff --git a/qadevOOo/tests/java/ifc/form/_FormControlModel.java b/qadevOOo/tests/java/ifc/form/_FormControlModel.java index b33b70cfd1d5..749fc911a559 100644 --- a/qadevOOo/tests/java/ifc/form/_FormControlModel.java +++ b/qadevOOo/tests/java/ifc/form/_FormControlModel.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 diff --git a/qadevOOo/tests/java/ifc/form/_XApproveActionBroadcaster.java b/qadevOOo/tests/java/ifc/form/_XApproveActionBroadcaster.java index fc7112312b44..b977764d0d63 100644 --- a/qadevOOo/tests/java/ifc/form/_XApproveActionBroadcaster.java +++ b/qadevOOo/tests/java/ifc/form/_XApproveActionBroadcaster.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 diff --git a/qadevOOo/tests/java/ifc/form/_XBoundComponent.java b/qadevOOo/tests/java/ifc/form/_XBoundComponent.java index a95dd18649a5..d6c7e0c23dbe 100644 --- a/qadevOOo/tests/java/ifc/form/_XBoundComponent.java +++ b/qadevOOo/tests/java/ifc/form/_XBoundComponent.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 diff --git a/qadevOOo/tests/java/ifc/form/_XBoundControl.java b/qadevOOo/tests/java/ifc/form/_XBoundControl.java index 0015c812ff3b..8303447e75ae 100644 --- a/qadevOOo/tests/java/ifc/form/_XBoundControl.java +++ b/qadevOOo/tests/java/ifc/form/_XBoundControl.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 diff --git a/qadevOOo/tests/java/ifc/form/_XChangeBroadcaster.java b/qadevOOo/tests/java/ifc/form/_XChangeBroadcaster.java index e4ad44e55185..a55e44325ea0 100644 --- a/qadevOOo/tests/java/ifc/form/_XChangeBroadcaster.java +++ b/qadevOOo/tests/java/ifc/form/_XChangeBroadcaster.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 @@ -158,7 +158,7 @@ public class _XChangeBroadcaster extends MultiMethodTest { requiredMethod("addChangeListener()"); changed = false; log.println("Testing removeChangeListener ..."); - oObj.addChangeListener( listener ); + oObj.addChangeListener( listener ); XWindow win2 = (XWindow) tEnv.getObjRelation("Win2"); win2.setFocus(); diff --git a/qadevOOo/tests/java/ifc/form/_XConfirmDeleteBroadcaster.java b/qadevOOo/tests/java/ifc/form/_XConfirmDeleteBroadcaster.java index 89359e331157..957dafe6ff4c 100644 --- a/qadevOOo/tests/java/ifc/form/_XConfirmDeleteBroadcaster.java +++ b/qadevOOo/tests/java/ifc/form/_XConfirmDeleteBroadcaster.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 @@ -51,9 +51,9 @@ import lib.MultiMethodTest; public class _XConfirmDeleteBroadcaster extends MultiMethodTest { public XConfirmDeleteBroadcaster oObj = null; protected boolean confirmed = false; - protected XConfirmDeleteListener mxConfirmDeleteListener = + protected XConfirmDeleteListener mxConfirmDeleteListener = new ConfirmDeleteImpl(); - + private class ConfirmDeleteImpl implements XConfirmDeleteListener { public boolean confirmDelete(RowChangeEvent rowChangeEvent) { confirmed = true; @@ -62,12 +62,12 @@ public class _XConfirmDeleteBroadcaster extends MultiMethodTest { public void disposing(EventObject eventObject) { } } - + protected void addConfirmDeleteListener() { oObj.addConfirmDeleteListener(mxConfirmDeleteListener); tRes.tested("addConfirmDeleteListener()", true); } - + protected void removeConfirmDeleteListener() { oObj.removeConfirmDeleteListener(mxConfirmDeleteListener); tRes.tested("removeConfirmDeleteListener()", true); diff --git a/qadevOOo/tests/java/ifc/form/_XDatabaseParameterBroadcaster.java b/qadevOOo/tests/java/ifc/form/_XDatabaseParameterBroadcaster.java index c7c9e69bea38..cbc75e7a4a97 100755 --- a/qadevOOo/tests/java/ifc/form/_XDatabaseParameterBroadcaster.java +++ b/qadevOOo/tests/java/ifc/form/_XDatabaseParameterBroadcaster.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 @@ -37,11 +37,11 @@ import lib.MultiMethodTest; * */ public class _XDatabaseParameterBroadcaster extends MultiMethodTest { - + // oObj filled by MultiMethodTest public XDatabaseParameterBroadcaster oObj = null ; private CheckParameterListener listenerChecker = null; - + /** * Interface to implement so the call of the listener can be checked. */ @@ -66,19 +66,19 @@ public class _XDatabaseParameterBroadcaster extends MultiMethodTest { tEnv.getObjRelation("ParameterListenerChecker"); listenerChecker.setLog((PrintWriter)log); } - + /** */ public void _addParameterListener() { oObj.addParameterListener(listenerChecker); tRes.tested("addParameterListener()", true); } - + /** */ public void _removeParameterListener() { requiredMethod("addParameterListener()"); - + // trigger the action. try { XRowSet xRowSet = (XRowSet)UnoRuntime.queryInterface(XRowSet.class, oObj); @@ -93,7 +93,7 @@ public class _XDatabaseParameterBroadcaster extends MultiMethodTest { oObj.removeParameterListener(listenerChecker); tRes.tested("removeParameterListener()", listenerChecker.checkListener()); } - + protected void after() { disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/form/_XFormController.java b/qadevOOo/tests/java/ifc/form/_XFormController.java index 1fa0c93f868b..5f9ebd8b1eb7 100644 --- a/qadevOOo/tests/java/ifc/form/_XFormController.java +++ b/qadevOOo/tests/java/ifc/form/_XFormController.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 diff --git a/qadevOOo/tests/java/ifc/form/_XFormsSupplier.java b/qadevOOo/tests/java/ifc/form/_XFormsSupplier.java index 1a8083413d6e..c50d7e41c90c 100644 --- a/qadevOOo/tests/java/ifc/form/_XFormsSupplier.java +++ b/qadevOOo/tests/java/ifc/form/_XFormsSupplier.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 @@ -31,14 +31,14 @@ import com.sun.star.container.XNameContainer; public class _XFormsSupplier extends lib.MultiMethodTest { - public com.sun.star.form.XFormsSupplier oObj = null; + public com.sun.star.form.XFormsSupplier oObj = null; public void _getForms() { XNameContainer forms = oObj.getForms(); if (!forms.hasElements()) { log.println("NameContainer doesn't contain forms"); } - tRes.tested("getForms()",forms.hasElements()); + tRes.tested("getForms()",forms.hasElements()); } - + } diff --git a/qadevOOo/tests/java/ifc/form/_XGrid.java b/qadevOOo/tests/java/ifc/form/_XGrid.java index 92b7332ef74a..8de0741dc357 100644 --- a/qadevOOo/tests/java/ifc/form/_XGrid.java +++ b/qadevOOo/tests/java/ifc/form/_XGrid.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 diff --git a/qadevOOo/tests/java/ifc/form/_XGridColumnFactory.java b/qadevOOo/tests/java/ifc/form/_XGridColumnFactory.java index 4128b26847d2..707fac8cacd5 100644 --- a/qadevOOo/tests/java/ifc/form/_XGridColumnFactory.java +++ b/qadevOOo/tests/java/ifc/form/_XGridColumnFactory.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 diff --git a/qadevOOo/tests/java/ifc/form/_XGridFieldDataSupplier.java b/qadevOOo/tests/java/ifc/form/_XGridFieldDataSupplier.java index c3968a7e21ab..269d3c91d381 100644 --- a/qadevOOo/tests/java/ifc/form/_XGridFieldDataSupplier.java +++ b/qadevOOo/tests/java/ifc/form/_XGridFieldDataSupplier.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 diff --git a/qadevOOo/tests/java/ifc/form/_XImageProducerSupplier.java b/qadevOOo/tests/java/ifc/form/_XImageProducerSupplier.java index 63495f353872..1f794560c4ab 100644 --- a/qadevOOo/tests/java/ifc/form/_XImageProducerSupplier.java +++ b/qadevOOo/tests/java/ifc/form/_XImageProducerSupplier.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 diff --git a/qadevOOo/tests/java/ifc/form/_XLoadListener.java b/qadevOOo/tests/java/ifc/form/_XLoadListener.java index fffc9c1178db..97cba4d7985b 100644 --- a/qadevOOo/tests/java/ifc/form/_XLoadListener.java +++ b/qadevOOo/tests/java/ifc/form/_XLoadListener.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 diff --git a/qadevOOo/tests/java/ifc/form/_XLoadable.java b/qadevOOo/tests/java/ifc/form/_XLoadable.java index 347a3b7dc870..d04bf79e4555 100644 --- a/qadevOOo/tests/java/ifc/form/_XLoadable.java +++ b/qadevOOo/tests/java/ifc/form/_XLoadable.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 @@ -239,7 +239,7 @@ public class _XLoadable extends MultiMethodTest { tRes.tested("removeLoadListener()", result) ; } - + protected void after() { disposeEnvironment(); } diff --git a/qadevOOo/tests/java/ifc/form/_XReset.java b/qadevOOo/tests/java/ifc/form/_XReset.java index 324df29e9976..2a5ac373cce8 100644 --- a/qadevOOo/tests/java/ifc/form/_XReset.java +++ b/qadevOOo/tests/java/ifc/form/_XReset.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 diff --git a/qadevOOo/tests/java/ifc/form/_XSubmit.java b/qadevOOo/tests/java/ifc/form/_XSubmit.java index 0a7fd40f6e0c..bde221c4e11f 100644 --- a/qadevOOo/tests/java/ifc/form/_XSubmit.java +++ b/qadevOOo/tests/java/ifc/form/_XSubmit.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 @@ -179,13 +179,13 @@ public class _XSubmit extends MultiMethodTest { log.println("While waiting :" + e) ; } } - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); - } - + } + } diff --git a/qadevOOo/tests/java/ifc/form/_XUpdateBroadcaster.java b/qadevOOo/tests/java/ifc/form/_XUpdateBroadcaster.java index 4a527a5d98f1..67c782037295 100644 --- a/qadevOOo/tests/java/ifc/form/_XUpdateBroadcaster.java +++ b/qadevOOo/tests/java/ifc/form/_XUpdateBroadcaster.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 @@ -235,14 +235,14 @@ public class _XUpdateBroadcaster extends MultiMethodTest { } } - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); } - + } diff --git a/qadevOOo/tests/java/ifc/form/binding/_BindableDatabaseCheckBox.java b/qadevOOo/tests/java/ifc/form/binding/_BindableDatabaseCheckBox.java index ba88f052b6d2..e8025e63ebd4 100644 --- a/qadevOOo/tests/java/ifc/form/binding/_BindableDatabaseCheckBox.java +++ b/qadevOOo/tests/java/ifc/form/binding/_BindableDatabaseCheckBox.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 @@ -31,6 +31,6 @@ package ifc.form.binding; import lib.MultiPropertyTest; public class _BindableDatabaseCheckBox extends MultiPropertyTest -{ - +{ + } diff --git a/qadevOOo/tests/java/ifc/form/binding/_BindableDatabaseRadioButton.java b/qadevOOo/tests/java/ifc/form/binding/_BindableDatabaseRadioButton.java index e5c490201c55..c6fe6baf2efe 100644 --- a/qadevOOo/tests/java/ifc/form/binding/_BindableDatabaseRadioButton.java +++ b/qadevOOo/tests/java/ifc/form/binding/_BindableDatabaseRadioButton.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 @@ -31,6 +31,6 @@ package ifc.form.binding; import lib.MultiPropertyTest; public class _BindableDatabaseRadioButton extends MultiPropertyTest -{ - +{ + } diff --git a/qadevOOo/tests/java/ifc/form/binding/_XBindableValue.java b/qadevOOo/tests/java/ifc/form/binding/_XBindableValue.java index d8ecf916965b..dc895edef8ae 100644 --- a/qadevOOo/tests/java/ifc/form/binding/_XBindableValue.java +++ b/qadevOOo/tests/java/ifc/form/binding/_XBindableValue.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 @@ -104,7 +104,7 @@ public class _XBindableValue extends MultiMethodTest { } public void setValue(Object obj) - throws com.sun.star.form.binding.IncompatibleTypesException, + throws com.sun.star.form.binding.IncompatibleTypesException, com.sun.star.lang.NoSupportException { } diff --git a/qadevOOo/tests/java/ifc/form/component/_CheckBox.java b/qadevOOo/tests/java/ifc/form/component/_CheckBox.java index a35a5318203b..7ccee9121742 100644 --- a/qadevOOo/tests/java/ifc/form/component/_CheckBox.java +++ b/qadevOOo/tests/java/ifc/form/component/_CheckBox.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_ComboBox.java b/qadevOOo/tests/java/ifc/form/component/_ComboBox.java index 6e81cf0718c2..22c66d713b5b 100644 --- a/qadevOOo/tests/java/ifc/form/component/_ComboBox.java +++ b/qadevOOo/tests/java/ifc/form/component/_ComboBox.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_CommandButton.java b/qadevOOo/tests/java/ifc/form/component/_CommandButton.java index 88e2161bf5de..d70a51eb284c 100644 --- a/qadevOOo/tests/java/ifc/form/component/_CommandButton.java +++ b/qadevOOo/tests/java/ifc/form/component/_CommandButton.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_CurrencyField.java b/qadevOOo/tests/java/ifc/form/component/_CurrencyField.java index d5395baebc30..f28ac4196c74 100644 --- a/qadevOOo/tests/java/ifc/form/component/_CurrencyField.java +++ b/qadevOOo/tests/java/ifc/form/component/_CurrencyField.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_DataForm.java b/qadevOOo/tests/java/ifc/form/component/_DataForm.java index 2562994ec32a..88cc991e3b11 100644 --- a/qadevOOo/tests/java/ifc/form/component/_DataForm.java +++ b/qadevOOo/tests/java/ifc/form/component/_DataForm.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseComboBox.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseComboBox.java index 255153b2e0f0..97bc9178de95 100644 --- a/qadevOOo/tests/java/ifc/form/component/_DatabaseComboBox.java +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseComboBox.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseForm.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseForm.java index 6201f3cbe407..5a6ff6becfb6 100644 --- a/qadevOOo/tests/java/ifc/form/component/_DatabaseForm.java +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseForm.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseFormattedField.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseFormattedField.java index 0e7cf7e499ac..04f4d56a6926 100644 --- a/qadevOOo/tests/java/ifc/form/component/_DatabaseFormattedField.java +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseFormattedField.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseImageControl.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseImageControl.java index 8953e68263b5..d34d774fc09b 100644 --- a/qadevOOo/tests/java/ifc/form/component/_DatabaseImageControl.java +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseImageControl.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseListBox.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseListBox.java index 2b2bcd9f28ff..14a73206a4a7 100644 --- a/qadevOOo/tests/java/ifc/form/component/_DatabaseListBox.java +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseListBox.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabasePatternField.java b/qadevOOo/tests/java/ifc/form/component/_DatabasePatternField.java index cedad761180d..b16cdd00d8c0 100644 --- a/qadevOOo/tests/java/ifc/form/component/_DatabasePatternField.java +++ b/qadevOOo/tests/java/ifc/form/component/_DatabasePatternField.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseTextField.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseTextField.java index 2ff48480d0e7..b82a60f038ab 100644 --- a/qadevOOo/tests/java/ifc/form/component/_DatabaseTextField.java +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseTextField.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_DateField.java b/qadevOOo/tests/java/ifc/form/component/_DateField.java index 4241b543d1d3..cb020595d796 100644 --- a/qadevOOo/tests/java/ifc/form/component/_DateField.java +++ b/qadevOOo/tests/java/ifc/form/component/_DateField.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_FileControl.java b/qadevOOo/tests/java/ifc/form/component/_FileControl.java index 9b73a1d995d5..5aea1454f06d 100644 --- a/qadevOOo/tests/java/ifc/form/component/_FileControl.java +++ b/qadevOOo/tests/java/ifc/form/component/_FileControl.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_FormattedField.java b/qadevOOo/tests/java/ifc/form/component/_FormattedField.java index e75f212edbef..8ed7517fc7dd 100644 --- a/qadevOOo/tests/java/ifc/form/component/_FormattedField.java +++ b/qadevOOo/tests/java/ifc/form/component/_FormattedField.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_GridControl.java b/qadevOOo/tests/java/ifc/form/component/_GridControl.java index 58412dc4667d..685867bf98f0 100644 --- a/qadevOOo/tests/java/ifc/form/component/_GridControl.java +++ b/qadevOOo/tests/java/ifc/form/component/_GridControl.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 @@ -83,7 +83,7 @@ public class _GridControl extends MultiPropertyTest { } }) ; } - + /** * This property can be void, so if old value is <code> null </code> * new value must be specified. diff --git a/qadevOOo/tests/java/ifc/form/component/_HTMLForm.java b/qadevOOo/tests/java/ifc/form/component/_HTMLForm.java index d592a979706c..a2d750c9d813 100644 --- a/qadevOOo/tests/java/ifc/form/component/_HTMLForm.java +++ b/qadevOOo/tests/java/ifc/form/component/_HTMLForm.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_HiddenControl.java b/qadevOOo/tests/java/ifc/form/component/_HiddenControl.java index 3e895e9aa2c2..33d34d8c855e 100644 --- a/qadevOOo/tests/java/ifc/form/component/_HiddenControl.java +++ b/qadevOOo/tests/java/ifc/form/component/_HiddenControl.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_ImageButton.java b/qadevOOo/tests/java/ifc/form/component/_ImageButton.java index 772d41c23ab0..2a51c2bcab69 100644 --- a/qadevOOo/tests/java/ifc/form/component/_ImageButton.java +++ b/qadevOOo/tests/java/ifc/form/component/_ImageButton.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_ListBox.java b/qadevOOo/tests/java/ifc/form/component/_ListBox.java index 12cb1c9a5808..ffa807c586ba 100644 --- a/qadevOOo/tests/java/ifc/form/component/_ListBox.java +++ b/qadevOOo/tests/java/ifc/form/component/_ListBox.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_NavigationToolBar.java b/qadevOOo/tests/java/ifc/form/component/_NavigationToolBar.java index 0b4714d74cbb..61c1b4a75d50 100644 --- a/qadevOOo/tests/java/ifc/form/component/_NavigationToolBar.java +++ b/qadevOOo/tests/java/ifc/form/component/_NavigationToolBar.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 @@ -30,7 +30,7 @@ package ifc.form.component; import lib.MultiPropertyTest; public class _NavigationToolBar extends MultiPropertyTest { - + public void _TextColor() { testProperty("TextColor", new PropertyTester() { protected Object getNewValue(String prop, Object old) { @@ -38,8 +38,8 @@ public class _NavigationToolBar extends MultiPropertyTest { super.getNewValue(prop, old) ; } }) ; - } - + } + public void _TextLineColor() { testProperty("TextLineColor", new PropertyTester() { protected Object getNewValue(String prop, Object old) { @@ -47,6 +47,6 @@ public class _NavigationToolBar extends MultiPropertyTest { super.getNewValue(prop, old) ; } }) ; - } - + } + }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/form/component/_NumericField.java b/qadevOOo/tests/java/ifc/form/component/_NumericField.java index 12eb31bab662..69e0ec8fbd73 100644 --- a/qadevOOo/tests/java/ifc/form/component/_NumericField.java +++ b/qadevOOo/tests/java/ifc/form/component/_NumericField.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_PatternField.java b/qadevOOo/tests/java/ifc/form/component/_PatternField.java index 67a109e28b4d..c5d75c6c0f2b 100644 --- a/qadevOOo/tests/java/ifc/form/component/_PatternField.java +++ b/qadevOOo/tests/java/ifc/form/component/_PatternField.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_RadioButton.java b/qadevOOo/tests/java/ifc/form/component/_RadioButton.java index 44e0ef9f7ed0..7387bcf3450b 100644 --- a/qadevOOo/tests/java/ifc/form/component/_RadioButton.java +++ b/qadevOOo/tests/java/ifc/form/component/_RadioButton.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_RichTextControl.java b/qadevOOo/tests/java/ifc/form/component/_RichTextControl.java index e154930b4336..25c5653a8a60 100644 --- a/qadevOOo/tests/java/ifc/form/component/_RichTextControl.java +++ b/qadevOOo/tests/java/ifc/form/component/_RichTextControl.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 @@ -30,5 +30,5 @@ package ifc.form.component; import lib.MultiPropertyTest; public class _RichTextControl extends MultiPropertyTest { - + } diff --git a/qadevOOo/tests/java/ifc/form/component/_ScrollBar.java b/qadevOOo/tests/java/ifc/form/component/_ScrollBar.java index d2038667dd95..3197ca957e84 100644 --- a/qadevOOo/tests/java/ifc/form/component/_ScrollBar.java +++ b/qadevOOo/tests/java/ifc/form/component/_ScrollBar.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 @@ -29,6 +29,6 @@ package ifc.form.component; import lib.MultiPropertyTest; -public class _ScrollBar extends MultiPropertyTest{ - +public class _ScrollBar extends MultiPropertyTest{ + } diff --git a/qadevOOo/tests/java/ifc/form/component/_SpinButton.java b/qadevOOo/tests/java/ifc/form/component/_SpinButton.java index 1564705b004b..dfd279582a34 100644 --- a/qadevOOo/tests/java/ifc/form/component/_SpinButton.java +++ b/qadevOOo/tests/java/ifc/form/component/_SpinButton.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 @@ -30,5 +30,5 @@ package ifc.form.component; import lib.MultiPropertyTest; public class _SpinButton extends MultiPropertyTest { - + } diff --git a/qadevOOo/tests/java/ifc/form/component/_TextField.java b/qadevOOo/tests/java/ifc/form/component/_TextField.java index 1b552e184b19..a04cf25db8af 100644 --- a/qadevOOo/tests/java/ifc/form/component/_TextField.java +++ b/qadevOOo/tests/java/ifc/form/component/_TextField.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 diff --git a/qadevOOo/tests/java/ifc/form/component/_TimeField.java b/qadevOOo/tests/java/ifc/form/component/_TimeField.java index 70dc2a75720b..19e4deeae2d8 100644 --- a/qadevOOo/tests/java/ifc/form/component/_TimeField.java +++ b/qadevOOo/tests/java/ifc/form/component/_TimeField.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 diff --git a/qadevOOo/tests/java/ifc/form/submission/_XSubmission.java b/qadevOOo/tests/java/ifc/form/submission/_XSubmission.java index 14c8b37be71d..a4788be7f97d 100644 --- a/qadevOOo/tests/java/ifc/form/submission/_XSubmission.java +++ b/qadevOOo/tests/java/ifc/form/submission/_XSubmission.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 diff --git a/qadevOOo/tests/java/ifc/form/submission/_XSubmissionSupplier.java b/qadevOOo/tests/java/ifc/form/submission/_XSubmissionSupplier.java index dc003235e8b9..5b033752befb 100644 --- a/qadevOOo/tests/java/ifc/form/submission/_XSubmissionSupplier.java +++ b/qadevOOo/tests/java/ifc/form/submission/_XSubmissionSupplier.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 diff --git a/qadevOOo/tests/java/ifc/form/validation/_XValidatable.java b/qadevOOo/tests/java/ifc/form/validation/_XValidatable.java index bc0b30a4f1d1..4db33af162d3 100644 --- a/qadevOOo/tests/java/ifc/form/validation/_XValidatable.java +++ b/qadevOOo/tests/java/ifc/form/validation/_XValidatable.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 diff --git a/qadevOOo/tests/java/ifc/form/validation/_XValidatableFormComponent.java b/qadevOOo/tests/java/ifc/form/validation/_XValidatableFormComponent.java index 2a7e989418b2..bc3fe69df914 100644 --- a/qadevOOo/tests/java/ifc/form/validation/_XValidatableFormComponent.java +++ b/qadevOOo/tests/java/ifc/form/validation/_XValidatableFormComponent.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 @@ -137,7 +137,7 @@ public class _XValidatableFormComponent extends MultiMethodTest // System.out.println("Name: "+testPropsNames[i]); // System.out.println("OldValue: "+oldValue); // System.out.println("NewValue: "+newValue); - // System.out.println("#############################################"); + // System.out.println("#############################################"); } try @@ -159,7 +159,7 @@ public class _XValidatableFormComponent extends MultiMethodTest log.println("Exception occured while setting properties"); e.printStackTrace(log); } - // end of try-catch + // end of try-catch } //Get the properties being tested diff --git a/qadevOOo/tests/java/ifc/form/validation/_XValidityConstraintListener.java b/qadevOOo/tests/java/ifc/form/validation/_XValidityConstraintListener.java index 055a3da4478b..3c1ed61b7c9f 100644 --- a/qadevOOo/tests/java/ifc/form/validation/_XValidityConstraintListener.java +++ b/qadevOOo/tests/java/ifc/form/validation/_XValidityConstraintListener.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 @@ -42,20 +42,20 @@ public class _XValidityConstraintListener extends MultiMethodTest { boolean res = false; try { XValidatable xValidatable = (XValidatable) UnoRuntime.queryInterface( - XValidatable.class, + XValidatable.class, tEnv.getTestObject()); log.println("adding Validator"); XValidator xValidator = new MyValidator(); - xValidatable.setValidator(xValidator); + xValidatable.setValidator(xValidator); ValidatorCalled = false; - + log.println("calling validityConstraintChanged()"); oObj.validityConstraintChanged( new com.sun.star.lang.EventObject()); res = ValidatorCalled; } catch (com.sun.star.util.VetoException e) { - e.printStackTrace(); + e.printStackTrace(); } tRes.tested("validityConstraintChanged()",res); } diff --git a/qadevOOo/tests/java/ifc/formula/_FormulaProperties.java b/qadevOOo/tests/java/ifc/formula/_FormulaProperties.java index f78b6b024771..6f6f412c7ede 100644 --- a/qadevOOo/tests/java/ifc/formula/_FormulaProperties.java +++ b/qadevOOo/tests/java/ifc/formula/_FormulaProperties.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 diff --git a/qadevOOo/tests/java/ifc/frame/_Desktop.java b/qadevOOo/tests/java/ifc/frame/_Desktop.java index 1e608f73fe8d..f930c5396974 100644 --- a/qadevOOo/tests/java/ifc/frame/_Desktop.java +++ b/qadevOOo/tests/java/ifc/frame/_Desktop.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 diff --git a/qadevOOo/tests/java/ifc/frame/_Frame.java b/qadevOOo/tests/java/ifc/frame/_Frame.java index a389bb17d242..34787b5c5c72 100644 --- a/qadevOOo/tests/java/ifc/frame/_Frame.java +++ b/qadevOOo/tests/java/ifc/frame/_Frame.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 diff --git a/qadevOOo/tests/java/ifc/frame/_FrameLoader.java b/qadevOOo/tests/java/ifc/frame/_FrameLoader.java index 06ffd1c4b358..e55ec835a8b9 100644 --- a/qadevOOo/tests/java/ifc/frame/_FrameLoader.java +++ b/qadevOOo/tests/java/ifc/frame/_FrameLoader.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 diff --git a/qadevOOo/tests/java/ifc/frame/_SynchronousFrameLoader.java b/qadevOOo/tests/java/ifc/frame/_SynchronousFrameLoader.java index 259cd21d9afa..7d011edd59c1 100644 --- a/qadevOOo/tests/java/ifc/frame/_SynchronousFrameLoader.java +++ b/qadevOOo/tests/java/ifc/frame/_SynchronousFrameLoader.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XComponentLoader.java b/qadevOOo/tests/java/ifc/frame/_XComponentLoader.java index 39e7a0b9bb49..0149b8682800 100644 --- a/qadevOOo/tests/java/ifc/frame/_XComponentLoader.java +++ b/qadevOOo/tests/java/ifc/frame/_XComponentLoader.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 @@ -62,7 +62,7 @@ public class _XComponentLoader extends MultiMethodTest { PropertyValue [] szEmptyArgs = new PropertyValue [0]; String frameName = "_blank"; XComponent oDoc = null; - + log.println("load writer doc that contains links"); PropertyValue [] szArgs = new PropertyValue [1]; PropertyValue Arg = new PropertyValue(); @@ -73,30 +73,30 @@ public class _XComponentLoader extends MultiMethodTest { log.println("try to load '" + url + "'"); oDoc = oObj.loadComponentFromURL( url, frameName, 0, szArgs); - - try { + + try { Thread.sleep(500); } catch (InterruptedException ex) { - } - + } + oDoc.dispose(); - + url = util.utils.getFullTestURL("Calc_Link.sxc"); log.println("try to load '" + url + "'"); oDoc = oObj.loadComponentFromURL( url, frameName, 0, szArgs); - - try { + + try { Thread.sleep(500); } catch (InterruptedException ex) { - } - - oDoc.dispose(); - - - + } + + oDoc.dispose(); + + + log.println("load a blank impress doc"); Arg.Name = "OpenFlags"; Arg.Value = "S"; diff --git a/qadevOOo/tests/java/ifc/frame/_XController.java b/qadevOOo/tests/java/ifc/frame/_XController.java index dd2afe4ca825..7105622ef893 100644 --- a/qadevOOo/tests/java/ifc/frame/_XController.java +++ b/qadevOOo/tests/java/ifc/frame/_XController.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XDesktop.java b/qadevOOo/tests/java/ifc/frame/_XDesktop.java index 996cc5af1ae9..a3e99723870c 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDesktop.java +++ b/qadevOOo/tests/java/ifc/frame/_XDesktop.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XDispatch.java b/qadevOOo/tests/java/ifc/frame/_XDispatch.java index 6fad036bec57..3f760dded161 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDispatch.java +++ b/qadevOOo/tests/java/ifc/frame/_XDispatch.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 @@ -120,8 +120,8 @@ public class _XDispatch extends MultiMethodTest { TestNotificationListener notificationListener = null; URL url = null ; - /** - * Not all implementations could call the + /** + * Not all implementations could call the * <code>com.sun.star.frame.XStatusListener</code>. For this purposes the * <code>com.sun.star.frame.XDispatchWithNotification</code> was designed. * If <code>com.sun.star.frame.XStatusListener</code> was not called and @@ -130,13 +130,13 @@ public class _XDispatch extends MultiMethodTest { */ private boolean checkXDispatchWithNotification() { - XNotifyingDispatch xND = (XNotifyingDispatch) + XNotifyingDispatch xND = (XNotifyingDispatch) UnoRuntime.queryInterface(XNotifyingDispatch.class, oObj); if ( xND != null) { log.println(" XNotifyingDispatch found:"); - PropertyValue[] arguments = (PropertyValue[]) + PropertyValue[] arguments = (PropertyValue[]) tEnv.getObjRelation("XNotifyingDispatchArgument"); - + notificationListener = new TestNotificationListener(log) ; xND.dispatchWithNotification(url, arguments, notificationListener); @@ -151,7 +151,7 @@ public class _XDispatch extends MultiMethodTest { } else { return false; } - + } /** * Retrieves object relations and creates new listeners. @@ -189,9 +189,9 @@ public class _XDispatch extends MultiMethodTest { catch(java.lang.InterruptedException e) {} log.println("Listener called: "+ listener.statusChangedCalled); - + result = listener.statusChangedCalled; - + if (result == false) { result = checkXDispatchWithNotification(); } @@ -234,9 +234,9 @@ public class _XDispatch extends MultiMethodTest { catch(java.lang.InterruptedException e) {} System.out.println("Listener called: "+ listener.statusChangedCalled); - + result = ! listener.statusChangedCalled; - + tRes.tested("removeStatusListener()", result) ; } } diff --git a/qadevOOo/tests/java/ifc/frame/_XDispatchProvider.java b/qadevOOo/tests/java/ifc/frame/_XDispatchProvider.java index d3091201070d..39f4849eda95 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDispatchProvider.java +++ b/qadevOOo/tests/java/ifc/frame/_XDispatchProvider.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XDispatchProviderInterception.java b/qadevOOo/tests/java/ifc/frame/_XDispatchProviderInterception.java index 549731315d7c..5455ab227e5d 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDispatchProviderInterception.java +++ b/qadevOOo/tests/java/ifc/frame/_XDispatchProviderInterception.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XDispatchRecorder.java b/qadevOOo/tests/java/ifc/frame/_XDispatchRecorder.java index 0b1cd3afd430..b6e73a80d246 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDispatchRecorder.java +++ b/qadevOOo/tests/java/ifc/frame/_XDispatchRecorder.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 @@ -70,18 +70,18 @@ public class _XDispatchRecorder extends MultiMethodTest { } public void _startRecording() { - + oObj.startRecording(xFrame); oObj.endRecording(); tRes.tested("startRecording()", true); } public void _getRecordedMacro() { - + clearBuffer(); - + oObj.startRecording(xFrame); - + log.println("dispatch calles via API must be recorded"); dispURL = utils.parseURL((XMultiServiceFactory)tParam.getMSF(), ".uno:InsertText"); @@ -109,12 +109,12 @@ public class _XDispatchRecorder extends MultiMethodTest { && macro.indexOf(dispURL.Complete) > -1; if (!res) log.println("Dispatch URL '" + dispURL.Complete + "' was NOT found in macro - FAILED"); - + tRes.tested("getRecordedMacro()", res); } public void _endRecording() { - + oObj.startRecording(xFrame); oObj.endRecording(); String macro = oObj.getRecordedMacro(); @@ -124,16 +124,16 @@ public class _XDispatchRecorder extends MultiMethodTest { log.println(macro); res = false; } - + tRes.tested("endRecording()", res); } public void _recordDispatch() { clearBuffer(); - + oObj.startRecording(xFrame); - // positve test + // positve test dispURL = utils.parseURL((XMultiServiceFactory)tParam.getMSF(), ".uno:InsertText"); PropertyValue prop = new PropertyValue(); @@ -149,7 +149,7 @@ public class _XDispatchRecorder extends MultiMethodTest { log.println(macro); oObj.endRecording(); - + boolean res = macro != null && macro.indexOf(dispURL.Complete) > -1 && macro.indexOf((String)dispArgs[0].Value) > -1; @@ -162,9 +162,9 @@ public class _XDispatchRecorder extends MultiMethodTest { public void _recordDispatchAsComment() { clearBuffer(); - + oObj.startRecording(xFrame); - + dispURL = utils.parseURL((XMultiServiceFactory)tParam.getMSF(), ".uno:InsertText"); PropertyValue prop = new PropertyValue(); @@ -178,7 +178,7 @@ public class _XDispatchRecorder extends MultiMethodTest { log.println("Getting macro ... :"); String macro = oObj.getRecordedMacro(); log.println(macro); - + oObj.endRecording(); boolean res = macro != null @@ -204,13 +204,13 @@ public class _XDispatchRecorder extends MultiMethodTest { tRes.tested("recordDispatchAsComment()", res); } - + private void shortWait() { try { Thread.sleep(500); } catch (InterruptedException ex) {} } - + private void clearBuffer() { oObj.startRecording(xFrame); oObj.endRecording(); @@ -220,5 +220,5 @@ public class _XDispatchRecorder extends MultiMethodTest { log.println(macro); } } - + } diff --git a/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java b/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java index b6c1f06c5a7e..f89edf56426a 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java +++ b/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.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 @@ -194,7 +194,7 @@ public class _XDispatchRecorderSupplier extends MultiMethodTest { UnoRuntime.queryInterface(XDispatchProvider.class, fr); URL dispURL = utils.parseURL((XMultiServiceFactory) tParam.getMSF(), ".uno:InsertText"); - + XDispatch xDisp = xDispProv.queryDispatch(dispURL,"",0); PropertyValue[] args = new PropertyValue[1]; diff --git a/qadevOOo/tests/java/ifc/frame/_XDocumentTemplates.java b/qadevOOo/tests/java/ifc/frame/_XDocumentTemplates.java index 5bd47fa83904..7aee5f6eb47e 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDocumentTemplates.java +++ b/qadevOOo/tests/java/ifc/frame/_XDocumentTemplates.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XFrame.java b/qadevOOo/tests/java/ifc/frame/_XFrame.java index aaf59e61ee59..12beaccc011a 100644 --- a/qadevOOo/tests/java/ifc/frame/_XFrame.java +++ b/qadevOOo/tests/java/ifc/frame/_XFrame.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 @@ -290,7 +290,7 @@ public class _XFrame extends MultiMethodTest { boolean result = true; XWindow win = oObj.getComponentWindow() ; - + if (tEnv.getTestCase().getObjectName().equals("Desktop")) { log.println("Desktop has no component window"); tRes.tested("getComponentWindow()", true) ; @@ -503,7 +503,7 @@ public class _XFrame extends MultiMethodTest { requiredMethod("setCreator()") ; boolean result = true; - + XWindow oldWindow = oObj.getComponentWindow(); XController oldController = oObj.getController(); boolean rs = oObj.setComponent(null, null); @@ -527,10 +527,10 @@ public class _XFrame extends MultiMethodTest { /** * Test calls the method. <p> * Has <b> OK </b> status if the method successfully returns. - * In case a frame should initialised twice, a + * In case a frame should initialised twice, a * <CODE>com.sun.star.uno.RuntimeException</CODE> was thron. This is ok. But since * a com.sun.star.uno.RuntimeException could thrown in any state the message of - * the exception must contain a defined string. In this case the test get an + * the exception must contain a defined string. In this case the test get an * <CODE>OK</CODE> status. * The following method tests are to be completed successfully before : * <ul> @@ -553,7 +553,7 @@ public class _XFrame extends MultiMethodTest { log.println(e.toString()); bOK=false; } - + } tRes.tested("initialize()", bOK) ; } @@ -573,7 +573,7 @@ public class _XFrame extends MultiMethodTest { return false; } } - + /** * Forces environment recreation. */ diff --git a/qadevOOo/tests/java/ifc/frame/_XFrameActionListener.java b/qadevOOo/tests/java/ifc/frame/_XFrameActionListener.java index b95e438972ac..bf74de351059 100644 --- a/qadevOOo/tests/java/ifc/frame/_XFrameActionListener.java +++ b/qadevOOo/tests/java/ifc/frame/_XFrameActionListener.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 @@ -32,10 +32,10 @@ import com.sun.star.frame.XFrameActionListener; import lib.MultiMethodTest; public class _XFrameActionListener extends MultiMethodTest { - + public XFrameActionListener oObj = null; - + public void _frameAction() { FrameActionEvent event = new FrameActionEvent(); oObj.frameAction(event); diff --git a/qadevOOo/tests/java/ifc/frame/_XFrameLoader.java b/qadevOOo/tests/java/ifc/frame/_XFrameLoader.java index a914d3e711b9..f386667de545 100644 --- a/qadevOOo/tests/java/ifc/frame/_XFrameLoader.java +++ b/qadevOOo/tests/java/ifc/frame/_XFrameLoader.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XFramesSupplier.java b/qadevOOo/tests/java/ifc/frame/_XFramesSupplier.java index bd6bcd7a4f86..ffb34939a793 100644 --- a/qadevOOo/tests/java/ifc/frame/_XFramesSupplier.java +++ b/qadevOOo/tests/java/ifc/frame/_XFramesSupplier.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 @@ -172,7 +172,7 @@ public class _XFramesSupplier extends MultiMethodTest { new Type(XFrame.class),frames.getByIndex(0)); } catch (com.sun.star.lang.IllegalArgumentException iae) { log.println("Can't convert any"); - } + } else try { sFrame = (XFrame) AnyConverter.toObject( diff --git a/qadevOOo/tests/java/ifc/frame/_XInplaceLayout.java b/qadevOOo/tests/java/ifc/frame/_XInplaceLayout.java index 2d644d2b2391..74d9e42efa55 100644 --- a/qadevOOo/tests/java/ifc/frame/_XInplaceLayout.java +++ b/qadevOOo/tests/java/ifc/frame/_XInplaceLayout.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 @@ -39,7 +39,7 @@ public class _XInplaceLayout extends MultiMethodTest { // oObj.setInplaceMenuBar(l); tRes.tested("setInplaceMenuBar()", true); } - + public void _resetInplaceMenuBar() { requiredMethod("setInplaceMenuBar()"); oObj.resetInplaceMenuBar(); diff --git a/qadevOOo/tests/java/ifc/frame/_XLayoutManager.java b/qadevOOo/tests/java/ifc/frame/_XLayoutManager.java index 34fd55182e92..24ef9d4eee12 100644 --- a/qadevOOo/tests/java/ifc/frame/_XLayoutManager.java +++ b/qadevOOo/tests/java/ifc/frame/_XLayoutManager.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 @@ -39,14 +39,14 @@ import util.utils; public class _XLayoutManager extends MultiMethodTest { public XLayoutManager oObj = null; - + private XFrame xFrame = null; private String sElementName = "private:resource/menubar/myMenu"; - + public void before() { xFrame = (XFrame)tEnv.getObjRelation("XLayoutManager.Frame"); } - + public void _attachFrame() { oObj.attachFrame(xFrame); tRes.tested("attachFrame()", true); @@ -57,19 +57,19 @@ public class _XLayoutManager extends MultiMethodTest { oObj.createElement(sElementName); tRes.tested("createElement()", true); } - + public void _destroyElement() { requiredMethod("getElement()"); requiredMethod("getElements()"); oObj.destroyElement(sElementName); tRes.tested("destroyElement()", true); } - + public void _doLayout() { oObj.doLayout(); tRes.tested("doLayout()", true); } - + public void _dockWindow() { requiredMethod("createElement()"); Point p = new Point(); @@ -78,35 +78,35 @@ public class _XLayoutManager extends MultiMethodTest { oObj.dockWindow(sElementName, DockingArea.DOCKINGAREA_TOP, p); tRes.tested("dockWindow()", true); } - + public void _floatWindow() { requiredMethod("createElement()"); oObj.floatWindow(sElementName); tRes.tested("floatWindow()", true); } - + public void _getCurrentDockingArea() { requiredMethod("attachFrame()"); Rectangle rect = oObj.getCurrentDockingArea(); tRes.tested("getCurrentDockingArea()", rect != null); } - + public void _getElement() { requiredMethod("createElement()"); XUIElement xElement = oObj.getElement(sElementName); tRes.tested("getElement()", true); } - + public void _getElementPos() { Point p = oObj.getElementPos(sElementName); tRes.tested("getElementPos()", p != null); } - + public void _getElementSize() { Size s = oObj.getElementSize(sElementName); tRes.tested("getElementSize()", s != null); } - + public void _getElements() { requiredMethod("createElement()"); XUIElement[] xElements = oObj.getElements(); @@ -116,42 +116,42 @@ public class _XLayoutManager extends MultiMethodTest { } tRes.tested("getElements()", xElements != null); } - + public void _hideElement() { boolean hidden = oObj.hideElement(sElementName); tRes.tested("hideElement()", true); } - + public void _isElementDocked() { boolean docked = oObj.isElementDocked(sElementName); tRes.tested("isElementDocked()", true); } - + public void _isElementFloating() { boolean docked = oObj.isElementFloating(sElementName); tRes.tested("isElementFloating()", true); } - + public void _isElementVisible() { boolean docked = oObj.isElementVisible(sElementName); tRes.tested("isElementVisible()", true); } - + public void _lock() { oObj.lock(); tRes.tested("lock()", true); } - + public void _reset() { oObj.reset(); tRes.tested("reset()", true); } - + public void _setDockingAreaAcceptor() { oObj.setDockingAreaAcceptor(null); tRes.tested("setDockingAreaAcceptor()", true); } - + public void _setElementPos() { requiredMethod("createElement()"); Point p = new Point(); @@ -160,7 +160,7 @@ public class _XLayoutManager extends MultiMethodTest { oObj.setElementPos(sElementName, p); tRes.tested("setElementPos()", true); } - + public void _setElementPosSize() { requiredMethod("createElement()"); Point p = new Point(); @@ -172,7 +172,7 @@ public class _XLayoutManager extends MultiMethodTest { oObj.setElementPosSize(sElementName, p, size); tRes.tested("setElementPosSize()", true); } - + public void _setElementSize() { requiredMethod("createElement()"); Size size = new Size(); @@ -181,18 +181,18 @@ public class _XLayoutManager extends MultiMethodTest { oObj.setElementSize(sElementName, size); tRes.tested("setElementSize()", true); } - + public void _showElement() { requiredMethod("createElement()"); boolean shown = oObj.showElement(sElementName); tRes.tested("showElement()", true); } - + public void _unlock() { requiredMethod("lock()"); oObj.unlock(); tRes.tested("unlock()", true); } - + } diff --git a/qadevOOo/tests/java/ifc/frame/_XModel.java b/qadevOOo/tests/java/ifc/frame/_XModel.java index 6fa133e28780..4cc92fbe553b 100644 --- a/qadevOOo/tests/java/ifc/frame/_XModel.java +++ b/qadevOOo/tests/java/ifc/frame/_XModel.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XModuleManager.java b/qadevOOo/tests/java/ifc/frame/_XModuleManager.java index 375500f89bb6..e542b249266b 100755 --- a/qadevOOo/tests/java/ifc/frame/_XModuleManager.java +++ b/qadevOOo/tests/java/ifc/frame/_XModuleManager.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 @@ -70,7 +70,7 @@ public class _XModuleManager extends MultiMethodTest { * coresponding value.<p> * As enhancement the method <CODE>identify()</CODE> was called with incvalid * parameter. In this case the thrown exceptions was catched. - */ + */ public XModuleManager oObj = null; /** * Test calls the method. <p> @@ -82,35 +82,35 @@ public class _XModuleManager extends MultiMethodTest { * relation 'Frame' </li> * </ul> */ - + private PropertyValue[] xFrameSeq = null; private PropertyValue[] xControllerSeq = null; private PropertyValue[] xModelSeq = null; /** Retrieves object relations. */ - + public void before() { - + xFrameSeq = (PropertyValue[]) tEnv.getObjRelation("XModuleManager.XFrame") ; if (xFrameSeq == null) throw new StatusException (Status.failed("Relation 'xFrameSeq' not found.")) ; - - + + xControllerSeq = (PropertyValue[]) tEnv.getObjRelation("XModuleManager.XController") ; if (xControllerSeq == null) throw new StatusException (Status.failed("Relation 'xControllerSeq' not found.")) ; - - + + xModelSeq = (PropertyValue[]) tEnv.getObjRelation("XModuleManager.XModel") ; if (xModelSeq == null) throw new StatusException (Status.failed("Relation 'xModelSeq' not found.")) ; } - + /** The method <CODE>identify()</CODE> was tesed for every entry in sequeze of * object relations. - */ + */ public void _identify() { boolean ok = true; log.println("testing frame sequenze..."); @@ -130,7 +130,7 @@ public class _XModuleManager extends MultiMethodTest { log.println("expected exception."); } } - + private boolean testSequenze(PropertyValue[] sequenze){ boolean ok = true; for (int i = 0 ; i < sequenze.length; i++){ @@ -138,10 +138,10 @@ public class _XModuleManager extends MultiMethodTest { log.println("testing '" + sequenze[i].Name + "'"); if (oObj.identify(sequenze[i].Value).equals( sequenze[i].Name)){ - ok &= ok; + ok &= ok; }else{ - log.println("failure: returned value: '" + - oObj.identify(sequenze[i].Value) + + log.println("failure: returned value: '" + + oObj.identify(sequenze[i].Value) + "' ,expected value: '" + sequenze[i].Name + "'"); ok = false; } @@ -149,7 +149,7 @@ public class _XModuleManager extends MultiMethodTest { log.println("Could not get value of sequenze '" + sequenze[i].Name + "'"); return false; - + } catch (UnknownModuleException e){ log.println("Could not indetify value of sequenze '" + sequenze[i].Name + "'"); @@ -158,6 +158,6 @@ public class _XModuleManager extends MultiMethodTest { } return ok; } - + } diff --git a/qadevOOo/tests/java/ifc/frame/_XNotifyingDispatch.java b/qadevOOo/tests/java/ifc/frame/_XNotifyingDispatch.java index 8402aac41db2..096408a55e31 100644 --- a/qadevOOo/tests/java/ifc/frame/_XNotifyingDispatch.java +++ b/qadevOOo/tests/java/ifc/frame/_XNotifyingDispatch.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 @@ -46,7 +46,7 @@ import com.sun.star.frame.DispatchResultEvent; * <ul> * <li> <code>'XDispatch.URL'</code> (of type <code>com.sun.star.util.URL * </code>): URL for passing to <code>dispatch()</code> method. </li> -* <li> <code>[OPTIONAL] 'XNotifyingDispatchArgument'</code> +* <li> <code>[OPTIONAL] 'XNotifyingDispatchArgument'</code> * (of type sequence<code>com::sun::star::beans::PropertyValue * </code>): argumets for <code>dispatchWithNotification()</code> method. </li> * <ul> <p> @@ -98,8 +98,8 @@ public class _XNotifyingDispatch extends MultiMethodTest { if (url == null) throw new StatusException (Status.failed("Relation not found.")) ; - - arguments = (PropertyValue[]) + + arguments = (PropertyValue[]) tEnv.getObjRelation("XNotifyingDispatchArgument"); } @@ -120,9 +120,9 @@ public class _XNotifyingDispatch extends MultiMethodTest { catch(java.lang.InterruptedException e) {} log.println("Listener called: "+ notificationListener.finishedDispatch); - + result = notificationListener.finishedDispatch; - + tRes.tested("dispatchWithNotification()", result) ; } diff --git a/qadevOOo/tests/java/ifc/frame/_XPopupMenuController.java b/qadevOOo/tests/java/ifc/frame/_XPopupMenuController.java index f057e64824c5..d53acd11e290 100644 --- a/qadevOOo/tests/java/ifc/frame/_XPopupMenuController.java +++ b/qadevOOo/tests/java/ifc/frame/_XPopupMenuController.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 @@ -35,103 +35,103 @@ public class _XPopupMenuController extends MultiMethodTest { public XPopupMenuController oObj = null; public void before() { - + } - + public void _setPopupMenu() { XPopupMenu xMenu = new PopupMenuImpl(); oObj.setPopupMenu(xMenu); tRes.tested("setPopupMenu()", true); } - + public void _updatePopupMenu() { oObj.updatePopupMenu(); tRes.tested("updatePopupMenu()", true); } - + private class PopupMenuImpl implements XPopupMenu { - + public void addMenuListener(com.sun.star.awt.XMenuListener xMenuListener) { System.out.println("addMenuListener called."); } - + public void checkItem(short param, boolean param1) { System.out.println("checkItemListener called."); } - + public void enableItem(short param, boolean param1) { System.out.println("enableItem called."); } - + public short execute(com.sun.star.awt.XWindowPeer xWindowPeer, com.sun.star.awt.Rectangle rectangle, short param) { System.out.println("execute called."); return 0; } - + public short getDefaultItem() { System.out.println("getDefaultItem called."); return 0; } - + public short getItemCount() { System.out.println("getItemCount called."); return 0; } - + public short getItemId(short param) { System.out.println("getItemId called."); return 0; } - + public short getItemPos(short param) { System.out.println("getItemPos called."); return 0; } - + public String getItemText(short param) { System.out.println("getItemText called."); return "Hi."; } - + public com.sun.star.awt.XPopupMenu getPopupMenu(short param) { System.out.println("getPopupMenu called."); return this; } - + public void insertItem(short param, String str, short param2, short param3) { System.out.println("insertItem called."); } - + public void insertSeparator(short param) { System.out.println("insertSeparator called."); } - + public boolean isItemChecked(short param) { System.out.println("isItemChecked called."); return false; } - + public boolean isItemEnabled(short param) { System.out.println("isItemEnabled called."); return false; } - + public void removeItem(short param, short param1) { System.out.println("removeItem called."); } - + public void removeMenuListener(com.sun.star.awt.XMenuListener xMenuListener) { System.out.println("removeMenuListener called."); } - + public void setDefaultItem(short param) { System.out.println("setDefaultItem called."); } - + public void setItemText(short param, String str) { System.out.println("setItemText called."); } - + public void setPopupMenu(short param, com.sun.star.awt.XPopupMenu xPopupMenu) { System.out.println("setPopupMenu called."); } diff --git a/qadevOOo/tests/java/ifc/frame/_XStatusListener.java b/qadevOOo/tests/java/ifc/frame/_XStatusListener.java index 23f71df14e78..4b08c23e320f 100644 --- a/qadevOOo/tests/java/ifc/frame/_XStatusListener.java +++ b/qadevOOo/tests/java/ifc/frame/_XStatusListener.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 @@ -34,11 +34,11 @@ import lib.MultiMethodTest; public class _XStatusListener extends MultiMethodTest { public XStatusListener oObj = null; - + public void before() { - + } - + public void _statusChanged() { FeatureStateEvent event = new FeatureStateEvent(); oObj.statusChanged(event); diff --git a/qadevOOo/tests/java/ifc/frame/_XStorable.java b/qadevOOo/tests/java/ifc/frame/_XStorable.java index 4edc1eb45e54..416065db5e4e 100644 --- a/qadevOOo/tests/java/ifc/frame/_XStorable.java +++ b/qadevOOo/tests/java/ifc/frame/_XStorable.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.java b/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.java index 2f430afa6e39..0fd36904c26c 100644 --- a/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.java +++ b/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.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 @@ -129,7 +129,7 @@ public class _XSynchronousFrameLoader extends MultiMethodTest { descr[0].Name = "URL" ; descr[0].Value = urlS[0] ; } - + /** * Tries to load component to a frame. <p> diff --git a/qadevOOo/tests/java/ifc/frame/_XTasksSupplier.java b/qadevOOo/tests/java/ifc/frame/_XTasksSupplier.java index c6702fd9dec1..18c2997e304b 100644 --- a/qadevOOo/tests/java/ifc/frame/_XTasksSupplier.java +++ b/qadevOOo/tests/java/ifc/frame/_XTasksSupplier.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XUIControllerRegistration.java b/qadevOOo/tests/java/ifc/frame/_XUIControllerRegistration.java index 34441e23e36d..595acf8fc7c8 100644 --- a/qadevOOo/tests/java/ifc/frame/_XUIControllerRegistration.java +++ b/qadevOOo/tests/java/ifc/frame/_XUIControllerRegistration.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 @@ -38,20 +38,20 @@ public class _XUIControllerRegistration extends MultiMethodTest { public void before() { aRegisteredController = (String)tEnv.getObjRelation("XUIControllerRegistration.RegisteredController"); } - - + + public void _registerController() { oObj.registerController(aController, "", "com.sun.star.comp.framework.FooterMenuController"); oObj.registerController(aRegisteredController, "", "com.sun.star.comp.framework.HeaderMenuController"); tRes.tested("registerController()", true); } - + public void _deregisterController() { requiredMethod("registerController()"); oObj.deregisterController(aController, ""); tRes.tested("deregisterController()", true); } - + public void _hasController() { requiredMethod("registerController()"); requiredMethod("deregisterController()"); @@ -59,5 +59,5 @@ public class _XUIControllerRegistration extends MultiMethodTest { res &= !oObj.hasController(aController, ""); tRes.tested("hasController()", res); } - + } diff --git a/qadevOOo/tests/java/ifc/i18n/_XBreakIterator.java b/qadevOOo/tests/java/ifc/i18n/_XBreakIterator.java index 7589bc8774c8..9ab9fe9ef5cd 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XBreakIterator.java +++ b/qadevOOo/tests/java/ifc/i18n/_XBreakIterator.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 @@ -152,7 +152,7 @@ public class _XBreakIterator extends MultiMethodTest { public void _previousCharacters() { short nCharacterIteratorMode = com.sun.star.i18n.CharacterIteratorMode.SKIPCHARACTER; - + //Start from position : Travel ... chars : Actual position after : //How many chars traveled diff --git a/qadevOOo/tests/java/ifc/i18n/_XCalendar.java b/qadevOOo/tests/java/ifc/i18n/_XCalendar.java index 5453eefa49cb..cc0fd80aaef4 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XCalendar.java +++ b/qadevOOo/tests/java/ifc/i18n/_XCalendar.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 @@ -93,7 +93,7 @@ public class _XCalendar extends MultiMethodTest { count = new int[installed_locales.length]; oObj.loadDefaultCalendar(installed_locales[0]); aOriginalDTime = oObj.getDateTime(); - + debug = tParam.getBool("DebugIsActive"); } @@ -105,7 +105,7 @@ public class _XCalendar extends MultiMethodTest { oObj.loadDefaultCalendar(installed_locales[0]); oObj.setDateTime(aOriginalDTime); } - + /** * Loads default calendar for different locales. <p> * Has <b> OK </b> status if method loads calendar, that is @@ -250,7 +250,7 @@ public class _XCalendar extends MultiMethodTest { public void _setDateTime() { boolean res = true; - + for (int i=0; i<installed_locales.length; i++) { String lang = "Language: "+installed_locales[i].Language + ", Country: "+ installed_locales[i].Country + @@ -320,15 +320,15 @@ public class _XCalendar extends MultiMethodTest { CalendarFieldIndex.MONTH }; for (int k=0; k<fields.length;k++) { - + oObj.setDateTime(0.0); - + // save the current values for debug purposes short[] oldValues = new short[fields.length]; for (int n=0; n < oldValues.length; n++){ oldValues[n] = oObj.getValue(fields[n]); } - + short set = oObj.getValue(fields[k]); if (fields[k] == CalendarFieldIndex.MONTH) set = newValue; oObj.setValue(fields[k],set); @@ -344,7 +344,7 @@ public class _XCalendar extends MultiMethodTest { for (int n=0; n < fields.length;n++){ log.println(names[n] + ":" + oObj.getValue(fields[n])); } - + error += "failed for "+names[k]+" expected "+ set+" gained "+get+" ; \n"; } @@ -539,7 +539,7 @@ public class _XCalendar extends MultiMethodTest { */ public void _isValid() { boolean res = true; - + oObj.loadDefaultCalendar(installed_locales[0]); oObj.setValue(CalendarFieldIndex.MONTH, (short) 37); res &= !oObj.isValid(); diff --git a/qadevOOo/tests/java/ifc/i18n/_XCharacterClassification.java b/qadevOOo/tests/java/ifc/i18n/_XCharacterClassification.java index e81b8aa68307..0b6ee05ca44c 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XCharacterClassification.java +++ b/qadevOOo/tests/java/ifc/i18n/_XCharacterClassification.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 @@ -111,7 +111,7 @@ public class _XCharacterClassification extends MultiMethodTest { public void _toUpper() { boolean res = true; char[] characters = new char[]{586,65,97,498,721,4588,772,8413,3404}; - String toCheck = new String(characters); + String toCheck = new String(characters); String get = ""; String exp = ""; diff --git a/qadevOOo/tests/java/ifc/i18n/_XCollator.java b/qadevOOo/tests/java/ifc/i18n/_XCollator.java index 1905ca9a68ea..b5cd552a74d6 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XCollator.java +++ b/qadevOOo/tests/java/ifc/i18n/_XCollator.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 diff --git a/qadevOOo/tests/java/ifc/i18n/_XExtendedCalendar.java b/qadevOOo/tests/java/ifc/i18n/_XExtendedCalendar.java index 8004a4eb97b0..9240ee792c56 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XExtendedCalendar.java +++ b/qadevOOo/tests/java/ifc/i18n/_XExtendedCalendar.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 @@ -64,7 +64,7 @@ public class _XExtendedCalendar extends MultiMethodTest { Locale lo = installed_locales[0]; for (int i=0; i<installed_locales.length; i++) { // search for "en" and "US" - if (installed_locales[i].Language.equals("en") && + if (installed_locales[i].Language.equals("en") && installed_locales[i].Country.equals("US")) { lo = installed_locales[i]; useUSENLocale = true; @@ -73,8 +73,8 @@ public class _XExtendedCalendar extends MultiMethodTest { log.println("Choose Locale: '" + lo.Language + "', '" + lo.Country + "'"); oObj.loadDefaultCalendar(lo); } - - + + public void _getDisplayString() { // against regression: the current state is the right one. boolean result = true; @@ -83,13 +83,13 @@ public class _XExtendedCalendar extends MultiMethodTest { String[] expectedStringResult = new String[6]; Calendar cal = new GregorianCalendar(); Date actualDate = cal.getTime(); - + SimpleDateFormat sdf = getSDF("yy"); expectedStringResult[0] = "AD" + sdf.format(actualDate); - + sdf = getSDF("yyyy"); expectedStringResult[1] = "AD" + sdf.format(actualDate); - + sdf = getSDF("MM"); expectedStringResult[2] = sdf.format(actualDate); @@ -101,36 +101,36 @@ public class _XExtendedCalendar extends MultiMethodTest { else if (month > 10 && month < 13) {quarter = "Q4"; longQuarter = "4th quarter"; } expectedStringResult[3] = quarter; expectedStringResult[4] = longQuarter; - + sdf = getSDF("MMMM"); expectedStringResult[5] = sdf.format(actualDate); - + displayString[0] = oObj.getDisplayString(CalendarDisplayCode.SHORT_YEAR_AND_ERA, NativeNumberMode.NATNUM0); displayString[1] = oObj.getDisplayString(CalendarDisplayCode.LONG_YEAR_AND_ERA, NativeNumberMode.NATNUM0); displayString[2] = oObj.getDisplayString(CalendarDisplayCode.LONG_MONTH, NativeNumberMode.NATNUM0); displayString[3] = oObj.getDisplayString(CalendarDisplayCode.SHORT_QUARTER, NativeNumberMode.NATNUM0); displayString[4] = oObj.getDisplayString(CalendarDisplayCode.LONG_QUARTER, NativeNumberMode.NATNUM0); displayString[5] = oObj.getDisplayString(CalendarDisplayCode.LONG_MONTH_NAME, NativeNumberMode.NATNUM0); - + for (int i=0; i<displayString.length; i++) { boolean locResult = false; if (useUSENLocale) { locResult = displayString[i].equals(expectedStringResult[i]); if (!locResult) - log.println("getDisplayString() result " + i + ": '" + displayString[i] + log.println("getDisplayString() result " + i + ": '" + displayString[i] + "', expected: '" + expectedStringResult[i] + "'"); result &= locResult; } else { // no defaults for other locales, just expect a String locResult &= displayString[i] != null; if (!locResult) - log.println("getDisplayString() result " + i + " was 'null'"); + log.println("getDisplayString() result " + i + " was 'null'"); result &= locResult; } } tRes.tested("getDisplayString()", result); } - + private SimpleDateFormat getSDF(String format){ if (useUSENLocale) return new SimpleDateFormat(format, java.util.Locale.US); return new SimpleDateFormat(format); diff --git a/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java b/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java index 2443156b0baf..abdce31d7dc6 100755 --- a/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java +++ b/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.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 @@ -48,7 +48,7 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { short result1 = oObj.compareIndexEntry(val1, "", locale, val1, "", locale); short result2 = oObj.compareIndexEntry(val1, "", locale, val2, "", locale); short result3 = oObj.compareIndexEntry(val2, "", locale, val1, "", locale); - + tRes.tested("compareIndexEntry()", result1 == 0 && result2 + result3 == 0); } @@ -60,21 +60,21 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { requiredMethod("getLocaleList()"); boolean result = true; - boolean locResult = false; - + boolean locResult = false; + for (int i = 0; i < locales.length; i++) { String[] algNames = oObj.getAlgorithmList(locales[i]); algorithms.put(new Integer(i), algNames); locResult = algNames != null && algNames.length > 0; System.out.println("Locale " + i + ": " + locales[i].Country+","+locales[i].Language); - + for (int j=0; j<algNames.length; j++) { System.out.println("\tAlgorithm " + j + ": " + algNames[j]); } - + if (!locResult) { - log.println("No Algorithm found for " + locales[i].Country + + log.println("No Algorithm found for " + locales[i].Country + "," + locales[i].Language); } @@ -94,10 +94,10 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { for (int j = 0; j < algorithms.size(); j++) { String[] algs = (String[])algorithms.get(new Integer(j)); for (int k=0;k<algs.length;k++) { - log.println("\t Algorythm :" + + log.println("\t Algorythm :" + algs[k]); oObj.loadAlgorithm(locales[i], algs[k], CollatorOptions.CollatorOptions_IGNORE_CASE); - log.println("\t\t Get: " + + log.println("\t\t Get: " + oObj.getIndexKey(getIndexFor, "", locales[i])); } } @@ -123,8 +123,8 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { boolean res = true; Locale loc = new Locale("zh", "CN", ""); - - for (int i = 0;i<UnicodeStringPair.getValCount();i++) { + + for (int i = 0;i<UnicodeStringPair.getValCount();i++) { char[] c = new char[]{UnicodeStringPair.getUnicodeValue(i)}; @@ -144,8 +144,8 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { } /* - * loads all algorithms available in all language. - * Is OK if no exception occurs and the method returns + * loads all algorithms available in all language. + * Is OK if no exception occurs and the method returns * true for each valid algorithm and false otherwise */ public void _loadAlgorithm() { @@ -155,13 +155,13 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { for (int i = 0; i < algorithms.size(); i++) { String[] names = (String[]) algorithms.get(new Integer(i)); - log.println("loading algorithms for " + locales[i].Country + + log.println("loading algorithms for " + locales[i].Country + "," + locales[i].Language); for (int j = 0; j < names.length; j++) { log.println("\t Loading " + names[j]); - boolean localres = oObj.loadAlgorithm(locales[i], names[j], + boolean localres = oObj.loadAlgorithm(locales[i], names[j], CollatorOptions.CollatorOptions_IGNORE_CASE); if (!localres) { @@ -175,7 +175,7 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { /* log.println("\tTrying to load 'dummy' algorithm"); - boolean localres = !oObj.loadAlgorithm(locales[i], "dummy", + boolean localres = !oObj.loadAlgorithm(locales[i], "dummy", CollatorOptions.CollatorOptions_IGNORE_WIDTH); if (!localres) { @@ -191,7 +191,7 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { } /* - * checks the method usePhoneticEntry(). Only the languages ja, ko and zh + * checks the method usePhoneticEntry(). Only the languages ja, ko and zh * should return true. Has OK state if exactly this is the case. */ public void _usePhoneticEntry() { @@ -202,8 +202,8 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { for (int i = 0; i < locales.length; i++) { boolean expected = false; - if (locales[i].Language.equals("ja") || - locales[i].Language.equals("ko") || + if (locales[i].Language.equals("ja") || + locales[i].Language.equals("ko") || locales[i].Language.equals("zh")) { expected = true; } @@ -221,7 +221,7 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { tRes.tested("usePhoneticEntry()", res); } - + /** * Helper class to handle the phonetic equivalence of unicode characters * This class delivers an amount oif unicode characters and the equivalent phonetics @@ -231,27 +231,27 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { final static int valCount = 78; static String[] sStringEquivalence = null; static char[] iUnicodeEquivalence = null; - + static { sStringEquivalence = new String[valCount]; iUnicodeEquivalence = new char[valCount]; fillValues(); } - + public static int getValCount() { return valCount; } - + public static String getExpectedPhoneticString(int index) { if (index >= valCount) return null; return sStringEquivalence[index]; } - + public static char getUnicodeValue(int index) { if (index > valCount) return 0; return iUnicodeEquivalence[index]; } - + private static void fillValues() { iUnicodeEquivalence[0] = 20049; sStringEquivalence[0] = "zhong"; iUnicodeEquivalence[1] = 19968; sStringEquivalence[1] = "yi"; diff --git a/qadevOOo/tests/java/ifc/i18n/_XExtendedTransliteration.java b/qadevOOo/tests/java/ifc/i18n/_XExtendedTransliteration.java index caea6c06541a..087710c79420 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XExtendedTransliteration.java +++ b/qadevOOo/tests/java/ifc/i18n/_XExtendedTransliteration.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 @@ -38,11 +38,11 @@ public class _XExtendedTransliteration extends MultiMethodTest { public XExtendedTransliteration oObj = null; // private Locale loc = new Locale("ja", "JP", "") ; private Locale loc = new Locale("en", "US", "") ; - + public void before() { oObj.loadModule(TransliterationModules.LOWERCASE_UPPERCASE, loc); } - + /** * Check lowercase - uppercase conversion of chars */ @@ -62,7 +62,7 @@ public class _XExtendedTransliteration extends MultiMethodTest { } tRes.tested("transliterateChar2Char()", result); } - + /** * Check lowercase - uppercase conversion of char to string */ @@ -77,7 +77,7 @@ public class _XExtendedTransliteration extends MultiMethodTest { result &= out.equals("$"); tRes.tested("transliterateChar2String()", result); } - + /** * Check lowercase - uppercase conversion of strings */ diff --git a/qadevOOo/tests/java/ifc/i18n/_XIndexEntrySupplier.java b/qadevOOo/tests/java/ifc/i18n/_XIndexEntrySupplier.java index 903068b152aa..124004934271 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XIndexEntrySupplier.java +++ b/qadevOOo/tests/java/ifc/i18n/_XIndexEntrySupplier.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 diff --git a/qadevOOo/tests/java/ifc/i18n/_XLocaleData.java b/qadevOOo/tests/java/ifc/i18n/_XLocaleData.java index fcb1f4b266a5..9df9a573715b 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XLocaleData.java +++ b/qadevOOo/tests/java/ifc/i18n/_XLocaleData.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 diff --git a/qadevOOo/tests/java/ifc/i18n/_XNumberFormatCode.java b/qadevOOo/tests/java/ifc/i18n/_XNumberFormatCode.java index 0566e27112c4..7f35409a3f89 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XNumberFormatCode.java +++ b/qadevOOo/tests/java/ifc/i18n/_XNumberFormatCode.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 diff --git a/qadevOOo/tests/java/ifc/i18n/_XTransliteration.java b/qadevOOo/tests/java/ifc/i18n/_XTransliteration.java index ea8502d31f29..b7c0893e878c 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XTransliteration.java +++ b/qadevOOo/tests/java/ifc/i18n/_XTransliteration.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 diff --git a/qadevOOo/tests/java/ifc/inspection/_XObjectInspector.java b/qadevOOo/tests/java/ifc/inspection/_XObjectInspector.java index 8bf57eb657fe..714246a1d3f1 100644 --- a/qadevOOo/tests/java/ifc/inspection/_XObjectInspector.java +++ b/qadevOOo/tests/java/ifc/inspection/_XObjectInspector.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 @@ -54,7 +54,7 @@ import lib.StatusException; */ public class _XObjectInspector extends MultiMethodTest { - + /** * the test object */ @@ -71,7 +71,7 @@ public class _XObjectInspector extends MultiMethodTest { * test the method <CODE>setInspectorModel()</CODE> */ public XObjectInspectorModel xSetModel = null; - + /** * get object relations * <ul> @@ -79,38 +79,38 @@ public class _XObjectInspector extends MultiMethodTest { * </ul> */ public void before() { - + oInspect = (Object[]) tEnv.getObjRelation("XObjectInspector.toInspect"); - + if (oInspect == null) throw new StatusException (Status.failed("Relation 'XObjectInspector.toInspect' not found.")) ; - + xSetModel = (XObjectInspectorModel) tEnv.getObjRelation("XObjectInspector.InspectorModelToSet"); - + if (xSetModel == null) throw new StatusException (Status.failed("Relation 'XObjectInspector.InspectorModelToSet' not found.")) ; } - + /** * Inspects a new collection of one or more objects given by object realtion * <CODE>XObjectInspector.toInspect</CODE><br> * Has <b>OK</b> status if no runtime exceptions occured. */ public void _inspect() { - + boolean result = true; - + try { oObj.inspect(oInspect); - + } catch (com.sun.star.util.VetoException e){ log.println("ERROR:" + e.toString()); result = false; } - + tRes.tested("inspect()", result) ; } - + /** * First call the method <CODE>getInspectorModel()</CODE> and save the value<br> * Second call the method <CODE>setInspectorModel()</CODE> with the module variable @@ -124,20 +124,20 @@ public class _XObjectInspector extends MultiMethodTest { log.println("testing 'getInspectorModel()'..."); XObjectInspectorModel xGetModel = oObj.getInspectorModel() ; - + boolean result = xGetModel != null; - + log.println(result? "got a not null object -> OK" : "got a NULL object -> FAILED"); log.println("testing 'setInspectorModel()'..."); oObj.setInspectorModel(xSetModel); - + XObjectInspectorModel xNewModel = oObj.getInspectorModel(); - + if (result) oObj.setInspectorModel(xGetModel); - + result &= xSetModel.equals(xNewModel); - + tRes.tested("InspectorModel()", result) ; } diff --git a/qadevOOo/tests/java/ifc/inspection/_XObjectInspectorModel.java b/qadevOOo/tests/java/ifc/inspection/_XObjectInspectorModel.java index e03cb51a1c5f..c064f9b19fa8 100644 --- a/qadevOOo/tests/java/ifc/inspection/_XObjectInspectorModel.java +++ b/qadevOOo/tests/java/ifc/inspection/_XObjectInspectorModel.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 @@ -45,116 +45,116 @@ import lib.MultiMethodTest; * */ public class _XObjectInspectorModel extends MultiMethodTest { - + /** * the test object */ public XObjectInspectorModel oObj = null; - + /** * calls the method <CODE>getHandlerFactories()</CODE> * Has <b>OK</b> status if returned value is not null. */ public void _HandlerFactories() { - + Object[] HandlerFactories = oObj.getHandlerFactories(); - + tRes.tested("HandlerFactories()", HandlerFactories != null) ; } - + /** * Call the method <CODE>getPropertyOrderIndex()</CODE> with an invalid propety name. * Has <CODE>OK</CODE> status if the returned index is "0". */ public void _getPropertyOrderIndex() { - + int index = 0; boolean result = true; - + log.println("try to get index of INvalid property name 'InvalidPropertyName' ..."); index = oObj.getPropertyOrderIndex("InvalidPropertyName"); log.println("index is: " + index); result = (index == 0); - + tRes.tested("getPropertyOrderIndex()", result) ; } - + /** * Call the method <CODE>describeCategories()</CODE> * Has <b>OK</b> status if returned value is not null. */ public void _describeCategories() { - + PropertyCategoryDescriptor[] categories = oObj.describeCategories(); - + tRes.tested("describeCategories()", categories != null) ; } - + /** * Call the method <CODE>getHasHelpSection()</CODE> * Has <b>OK</b> status if method returned </CODE>true</CODE> */ public void _HasHelpSection() { - + boolean hasHelpSection = oObj.getHasHelpSection(); - + tRes.tested("HasHelpSection()", hasHelpSection) ; } - + /** * Call the method <CODE>getMinHelpTextLines()</CODE> * Has <b>OK</b> status if returned value equals to object relation 'minHelpTextLines' */ public void _MinHelpTextLines() { - + Integer minHelpTextLines = (Integer) tEnv.getObjRelation("minHelpTextLines"); - + int getMinHelpTextLines = oObj.getMinHelpTextLines(); - + boolean result = (minHelpTextLines.intValue() == getMinHelpTextLines); - + if (!result) log.println("FAILED: value:" + minHelpTextLines + " getted value:" + getMinHelpTextLines); - + tRes.tested("MinHelpTextLines()", result) ; } - + /** * Call the method <CODE>getMaxHelpTextLines())</CODE> * Has <b>OK</b> status if returned value equals to object relation 'maxHelpTextLines' */ public void _MaxHelpTextLines() { - + Integer maxHelpTextLines = (Integer) tEnv.getObjRelation("maxHelpTextLines"); - + int getMaxHelpTextLines = oObj.getMaxHelpTextLines(); - + boolean result = (maxHelpTextLines.intValue() == getMaxHelpTextLines); - + if (!result) log.println("FAILED: expected value:" + maxHelpTextLines + " getted value:" + getMaxHelpTextLines); - + tRes.tested("MaxHelpTextLines()", result); } - + public void _IsReadOnly() { boolean readOnly = oObj.getIsReadOnly(); - + oObj.setIsReadOnly(!readOnly); - + boolean result = (readOnly != oObj.getIsReadOnly()); if (!result){ log.println("FAILED: could not change 'IsReadOnly' to value '" + !readOnly + "'"); } - + oObj.setIsReadOnly(readOnly); - + result &= (readOnly == oObj.getIsReadOnly()); if (!result){ log.println("FAILED: could not change back 'IsReadOnly' to value '" + !readOnly + "'"); } - + tRes.tested("IsReadOnly()", result); } - + } diff --git a/qadevOOo/tests/java/ifc/io/_XActiveDataControl.java b/qadevOOo/tests/java/ifc/io/_XActiveDataControl.java index 1203fdeecbcb..905558b55118 100644 --- a/qadevOOo/tests/java/ifc/io/_XActiveDataControl.java +++ b/qadevOOo/tests/java/ifc/io/_XActiveDataControl.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 diff --git a/qadevOOo/tests/java/ifc/io/_XActiveDataSink.java b/qadevOOo/tests/java/ifc/io/_XActiveDataSink.java index 5a1c5f054719..c415d0c02b4a 100644 --- a/qadevOOo/tests/java/ifc/io/_XActiveDataSink.java +++ b/qadevOOo/tests/java/ifc/io/_XActiveDataSink.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 diff --git a/qadevOOo/tests/java/ifc/io/_XActiveDataSource.java b/qadevOOo/tests/java/ifc/io/_XActiveDataSource.java index a363dd5edeb8..e0589774c72b 100644 --- a/qadevOOo/tests/java/ifc/io/_XActiveDataSource.java +++ b/qadevOOo/tests/java/ifc/io/_XActiveDataSource.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 diff --git a/qadevOOo/tests/java/ifc/io/_XConnectable.java b/qadevOOo/tests/java/ifc/io/_XConnectable.java index 471714aeee23..e0c054fd91bb 100644 --- a/qadevOOo/tests/java/ifc/io/_XConnectable.java +++ b/qadevOOo/tests/java/ifc/io/_XConnectable.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 diff --git a/qadevOOo/tests/java/ifc/io/_XDataInputStream.java b/qadevOOo/tests/java/ifc/io/_XDataInputStream.java index b4015abacc82..b7e26b1b95e8 100644 --- a/qadevOOo/tests/java/ifc/io/_XDataInputStream.java +++ b/qadevOOo/tests/java/ifc/io/_XDataInputStream.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 diff --git a/qadevOOo/tests/java/ifc/io/_XDataOutputStream.java b/qadevOOo/tests/java/ifc/io/_XDataOutputStream.java index 5511422f777c..fc61a9dd5206 100644 --- a/qadevOOo/tests/java/ifc/io/_XDataOutputStream.java +++ b/qadevOOo/tests/java/ifc/io/_XDataOutputStream.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 diff --git a/qadevOOo/tests/java/ifc/io/_XInputStream.java b/qadevOOo/tests/java/ifc/io/_XInputStream.java index 2f3161532ef4..73155b6138e1 100644 --- a/qadevOOo/tests/java/ifc/io/_XInputStream.java +++ b/qadevOOo/tests/java/ifc/io/_XInputStream.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 diff --git a/qadevOOo/tests/java/ifc/io/_XMarkableStream.java b/qadevOOo/tests/java/ifc/io/_XMarkableStream.java index 629122702438..32ee221361fb 100644 --- a/qadevOOo/tests/java/ifc/io/_XMarkableStream.java +++ b/qadevOOo/tests/java/ifc/io/_XMarkableStream.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 diff --git a/qadevOOo/tests/java/ifc/io/_XObjectInputStream.java b/qadevOOo/tests/java/ifc/io/_XObjectInputStream.java index 6f3d94e38e92..bf4888e48526 100644 --- a/qadevOOo/tests/java/ifc/io/_XObjectInputStream.java +++ b/qadevOOo/tests/java/ifc/io/_XObjectInputStream.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 @@ -73,7 +73,7 @@ public class _XObjectInputStream extends MultiMethodTest { tRes.tested("readObject()", false) ; return ; } - + // write the object try { XObjectOutputStream oStream = (XObjectOutputStream) diff --git a/qadevOOo/tests/java/ifc/io/_XObjectOutputStream.java b/qadevOOo/tests/java/ifc/io/_XObjectOutputStream.java index fb635d472a5f..96b9f94e97af 100644 --- a/qadevOOo/tests/java/ifc/io/_XObjectOutputStream.java +++ b/qadevOOo/tests/java/ifc/io/_XObjectOutputStream.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 diff --git a/qadevOOo/tests/java/ifc/io/_XOutputStream.java b/qadevOOo/tests/java/ifc/io/_XOutputStream.java index c49aa479ee38..7b92d23d26b5 100644 --- a/qadevOOo/tests/java/ifc/io/_XOutputStream.java +++ b/qadevOOo/tests/java/ifc/io/_XOutputStream.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 diff --git a/qadevOOo/tests/java/ifc/io/_XPersistObject.java b/qadevOOo/tests/java/ifc/io/_XPersistObject.java index 94d1e87ca9ed..4d236b89e17a 100644 --- a/qadevOOo/tests/java/ifc/io/_XPersistObject.java +++ b/qadevOOo/tests/java/ifc/io/_XPersistObject.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 diff --git a/qadevOOo/tests/java/ifc/java/_XJavaThreadRegister_11.java b/qadevOOo/tests/java/ifc/java/_XJavaThreadRegister_11.java index 3aa2d4f6e712..d7658959f020 100644 --- a/qadevOOo/tests/java/ifc/java/_XJavaThreadRegister_11.java +++ b/qadevOOo/tests/java/ifc/java/_XJavaThreadRegister_11.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 diff --git a/qadevOOo/tests/java/ifc/java/_XJavaVM.java b/qadevOOo/tests/java/ifc/java/_XJavaVM.java index c0db5e795d3d..86482d9beea9 100644 --- a/qadevOOo/tests/java/ifc/java/_XJavaVM.java +++ b/qadevOOo/tests/java/ifc/java/_XJavaVM.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 diff --git a/qadevOOo/tests/java/ifc/lang/_ServiceManager.java b/qadevOOo/tests/java/ifc/lang/_ServiceManager.java index d2e84e748c6a..0d96ffbbf2c0 100644 --- a/qadevOOo/tests/java/ifc/lang/_ServiceManager.java +++ b/qadevOOo/tests/java/ifc/lang/_ServiceManager.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 diff --git a/qadevOOo/tests/java/ifc/lang/_XComponent.java b/qadevOOo/tests/java/ifc/lang/_XComponent.java index e7493e377141..9e443916add0 100644 --- a/qadevOOo/tests/java/ifc/lang/_XComponent.java +++ b/qadevOOo/tests/java/ifc/lang/_XComponent.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 @@ -52,7 +52,7 @@ public class _XComponent extends MultiMethodTest { public static XComponent oObj = null; private XNameContainer xContainer = null; private XComponent altDispose = null; - + boolean listenerDisposed[] = new boolean[2]; String[] Loutput = new String[2]; @@ -91,7 +91,7 @@ public class _XComponent extends MultiMethodTest { altDispose = (XComponent)tEnv.getObjRelation("XComponent.DisposeThis"); } - + /** * Adds two listeners. <p> * Has OK status if then the first listener will receive an event @@ -145,15 +145,15 @@ public class _XComponent extends MultiMethodTest { log.println( "begin dispose in thread " + Thread.currentThread()); XDesktop oDesk = (XDesktop) tEnv.getObjRelation("Desktop"); if (oDesk !=null) { - oDesk.terminate(); + oDesk.terminate(); } else { - if (altDispose == null) - oObj.dispose(); + if (altDispose == null) + oObj.dispose(); else altDispose.dispose(); } - + try { Thread.sleep(500) ; } catch (InterruptedException e) {} diff --git a/qadevOOo/tests/java/ifc/lang/_XEventListener.java b/qadevOOo/tests/java/ifc/lang/_XEventListener.java index a2748309dcc0..0a93d54711f2 100644 --- a/qadevOOo/tests/java/ifc/lang/_XEventListener.java +++ b/qadevOOo/tests/java/ifc/lang/_XEventListener.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 diff --git a/qadevOOo/tests/java/ifc/lang/_XInitialization.java b/qadevOOo/tests/java/ifc/lang/_XInitialization.java index 4ce7fe05a410..bf7d3fb3ff5f 100644 --- a/qadevOOo/tests/java/ifc/lang/_XInitialization.java +++ b/qadevOOo/tests/java/ifc/lang/_XInitialization.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 @@ -55,11 +55,11 @@ public class _XInitialization extends MultiMethodTest { */ public void _initialize() { boolean result = true ; - + try { XInitialization xInit = (XInitialization) tEnv.getObjRelation("XInitialization.xIni"); if (xInit == null) xInit = oObj; - + log.println("calling method with valid arguments..."); Object[] args = (Object[]) tEnv.getObjRelation("XInitialization.args"); if (args==null) { @@ -68,7 +68,7 @@ public class _XInitialization extends MultiMethodTest { } else { xInit.initialize(args); } - + // try to call the method with invalid parameters Object[] ExArgs = (Object[]) tEnv.getObjRelation("XInitialization.ExceptionArgs"); if (ExArgs !=null) { @@ -83,7 +83,7 @@ public class _XInitialization extends MultiMethodTest { log.println("Expected Exception 'com.sun.star.uno.RuntimeException' occured -> OK") ; result = true ; } catch (Exception e) { - log.println("Un-Expected Exception occured -> FALSE") ; + log.println("Un-Expected Exception occured -> FALSE") ; log.println(e.toString()); e.printStackTrace(); } diff --git a/qadevOOo/tests/java/ifc/lang/_XLocalizable.java b/qadevOOo/tests/java/ifc/lang/_XLocalizable.java index fd2f503c0529..e305063a1de2 100644 --- a/qadevOOo/tests/java/ifc/lang/_XLocalizable.java +++ b/qadevOOo/tests/java/ifc/lang/_XLocalizable.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 @@ -56,13 +56,13 @@ public class _XLocalizable extends MultiMethodTest { oObj.setLocale(newLocale); Locale getLocale = oObj.getLocale(); - boolean res = ((getLocale.Country.equals(newLocale.Country)) && + boolean res = ((getLocale.Country.equals(newLocale.Country)) && (getLocale.Language.equals(newLocale.Language))); if (!res) { - log.println("Expected Language " + newLocale.Language + + log.println("Expected Language " + newLocale.Language + " and Country " + newLocale.Country); - log.println("Getting Language " + getLocale.Language + + log.println("Getting Language " + getLocale.Language + " and Country " + getLocale.Country); } diff --git a/qadevOOo/tests/java/ifc/lang/_XMain.java b/qadevOOo/tests/java/ifc/lang/_XMain.java index e1cecaeb1849..ab3954ec3c55 100644 --- a/qadevOOo/tests/java/ifc/lang/_XMain.java +++ b/qadevOOo/tests/java/ifc/lang/_XMain.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 diff --git a/qadevOOo/tests/java/ifc/lang/_XMultiComponentFactory.java b/qadevOOo/tests/java/ifc/lang/_XMultiComponentFactory.java index 4abeca730765..5c2bb53c81d6 100644 --- a/qadevOOo/tests/java/ifc/lang/_XMultiComponentFactory.java +++ b/qadevOOo/tests/java/ifc/lang/_XMultiComponentFactory.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 @@ -49,7 +49,7 @@ public class _XMultiComponentFactory extends MultiMethodTest { public XComponentContext xContext = null; private String[] availableServiceNames = null; - + public void before(){ xContext = (XComponentContext)tEnv.getObjRelation("DC"); availableServiceNames = (String[])tEnv.getObjRelation("XMultiComponentFactory.ServiceNames"); @@ -88,7 +88,7 @@ public class _XMultiComponentFactory extends MultiMethodTest { requiredMethod("getAvailableServiceNames()"); boolean result = true; XInterface component = null; - + try { component = (XInterface)oObj.createInstanceWithArgumentsAndContext( availableServiceNames[0], new Object[0], xContext); diff --git a/qadevOOo/tests/java/ifc/lang/_XMultiServiceFactory.java b/qadevOOo/tests/java/ifc/lang/_XMultiServiceFactory.java index 49d3be1daf35..5eafe0a7fa3c 100644 --- a/qadevOOo/tests/java/ifc/lang/_XMultiServiceFactory.java +++ b/qadevOOo/tests/java/ifc/lang/_XMultiServiceFactory.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 @@ -117,14 +117,14 @@ public class _XMultiServiceFactory extends MultiMethodTest { String needArgs = (String) tEnv.getObjRelation("needArgs"); if (needArgs != null) { - log.println("The " + needArgs + + log.println("The " + needArgs + " doesn't support createInstance without arguments"); tRes.tested("createInstance()", true); return; } - boolean res = true; + boolean res = true; for (int k = 0; k < services.length; k++) { try { @@ -165,7 +165,7 @@ public class _XMultiServiceFactory extends MultiMethodTest { if (args == null) { log.println("Relation 'XMSF.serviceNamesWithArgs' not found"); - log.println("The component assumed not support " + + log.println("The component assumed not support " + "createInstanceWithArguments()"); tRes.tested("createInstanceWithArguments()", true); } else { @@ -176,11 +176,11 @@ public class _XMultiServiceFactory extends MultiMethodTest { boolean res = true; for (int k = 0; k < sNames.length; k++) { - log.println("Creating service '" + sNames[k] + + log.println("Creating service '" + sNames[k] + "' with arguments"); try { - Object Inst = oObj.createInstanceWithArguments(sNames[k], + Object Inst = oObj.createInstanceWithArguments(sNames[k], args[k]); res &= (Inst != null); } catch (com.sun.star.uno.Exception ex) { diff --git a/qadevOOo/tests/java/ifc/lang/_XServiceDisplayName.java b/qadevOOo/tests/java/ifc/lang/_XServiceDisplayName.java index 1a7884b8f02d..50f56583d57b 100644 --- a/qadevOOo/tests/java/ifc/lang/_XServiceDisplayName.java +++ b/qadevOOo/tests/java/ifc/lang/_XServiceDisplayName.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 diff --git a/qadevOOo/tests/java/ifc/lang/_XServiceInfo.java b/qadevOOo/tests/java/ifc/lang/_XServiceInfo.java index 3ff929c895dd..0eed0e8c67e6 100644 --- a/qadevOOo/tests/java/ifc/lang/_XServiceInfo.java +++ b/qadevOOo/tests/java/ifc/lang/_XServiceInfo.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 diff --git a/qadevOOo/tests/java/ifc/lang/_XSingleServiceFactory.java b/qadevOOo/tests/java/ifc/lang/_XSingleServiceFactory.java index 1bc68938ce41..1bba7b25cc3b 100644 --- a/qadevOOo/tests/java/ifc/lang/_XSingleServiceFactory.java +++ b/qadevOOo/tests/java/ifc/lang/_XSingleServiceFactory.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 diff --git a/qadevOOo/tests/java/ifc/lang/_XTypeProvider.java b/qadevOOo/tests/java/ifc/lang/_XTypeProvider.java index 123f7729fb5a..940f1fb90427 100644 --- a/qadevOOo/tests/java/ifc/lang/_XTypeProvider.java +++ b/qadevOOo/tests/java/ifc/lang/_XTypeProvider.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 diff --git a/qadevOOo/tests/java/ifc/linguistic2/_LinguProperties.java b/qadevOOo/tests/java/ifc/linguistic2/_LinguProperties.java index 2e533e449eac..e0a865b65696 100644 --- a/qadevOOo/tests/java/ifc/linguistic2/_LinguProperties.java +++ b/qadevOOo/tests/java/ifc/linguistic2/_LinguProperties.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 diff --git a/qadevOOo/tests/java/ifc/linguistic2/_XAvailableLocales.java b/qadevOOo/tests/java/ifc/linguistic2/_XAvailableLocales.java index c8342fe1ecbd..2c4a4b8c03fa 100644 --- a/qadevOOo/tests/java/ifc/linguistic2/_XAvailableLocales.java +++ b/qadevOOo/tests/java/ifc/linguistic2/_XAvailableLocales.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 diff --git a/qadevOOo/tests/java/ifc/linguistic2/_XDictionaryList.java b/qadevOOo/tests/java/ifc/linguistic2/_XDictionaryList.java index 36850c05364d..9aebd66e0ea2 100644 --- a/qadevOOo/tests/java/ifc/linguistic2/_XDictionaryList.java +++ b/qadevOOo/tests/java/ifc/linguistic2/_XDictionaryList.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 diff --git a/qadevOOo/tests/java/ifc/linguistic2/_XHyphenator.java b/qadevOOo/tests/java/ifc/linguistic2/_XHyphenator.java index 4752651e71f9..64f37366cbab 100644 --- a/qadevOOo/tests/java/ifc/linguistic2/_XHyphenator.java +++ b/qadevOOo/tests/java/ifc/linguistic2/_XHyphenator.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 diff --git a/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceEventBroadcaster.java b/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceEventBroadcaster.java index d799299db636..3295e6721d54 100644 --- a/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceEventBroadcaster.java +++ b/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceEventBroadcaster.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 diff --git a/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceManager.java b/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceManager.java index 12dd56a3028f..622abee984df 100644 --- a/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceManager.java +++ b/qadevOOo/tests/java/ifc/linguistic2/_XLinguServiceManager.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 diff --git a/qadevOOo/tests/java/ifc/linguistic2/_XSearchableDictionaryList.java b/qadevOOo/tests/java/ifc/linguistic2/_XSearchableDictionaryList.java index ce12dc72522b..a39562321f7a 100644 --- a/qadevOOo/tests/java/ifc/linguistic2/_XSearchableDictionaryList.java +++ b/qadevOOo/tests/java/ifc/linguistic2/_XSearchableDictionaryList.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 diff --git a/qadevOOo/tests/java/ifc/linguistic2/_XSpellChecker.java b/qadevOOo/tests/java/ifc/linguistic2/_XSpellChecker.java index 47ad1d25e836..0f41bebd33f0 100644 --- a/qadevOOo/tests/java/ifc/linguistic2/_XSpellChecker.java +++ b/qadevOOo/tests/java/ifc/linguistic2/_XSpellChecker.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 @@ -49,7 +49,7 @@ public class _XSpellChecker extends MultiMethodTest { public XSpellChecker oObj = null; XSpellChecker alternative = null; - + public void before() { alternative = (XSpellChecker) tEnv.getObjRelation("AlternativeChecker"); if (alternative == null) throw new StatusException(Status.failed @@ -70,10 +70,10 @@ public class _XSpellChecker extends MultiMethodTest { PropertyValue[] empty = new PropertyValue[0] ; res &= oObj.isValid("Sun", new Locale("en","US",""), empty); res &= !oObj.isValid("Summersun", new Locale("en","US","") ,empty); - log.println("Result so far is - "+ (res ? "OK" : "failed")); + log.println("Result so far is - "+ (res ? "OK" : "failed")); log.println("Checking alternative Spellchecker"); res &= alternative.isValid("Sun", new Locale("en","US",""), empty); - res &= !alternative.isValid("Summersun", new Locale("en","US","") ,empty); + res &= !alternative.isValid("Summersun", new Locale("en","US","") ,empty); } catch (com.sun.star.lang.IllegalArgumentException ex) { log.println("Exception while checking 'isValid'"); res = false; @@ -97,7 +97,7 @@ public class _XSpellChecker extends MultiMethodTest { "Summersun",new Locale("en","US",""),empty); String alternatives = alt.getAlternatives()[0]; res = (alternatives != null); - log.println("Result so far is - "+ (res ? "OK" : "failed")); + log.println("Result so far is - "+ (res ? "OK" : "failed")); log.println("Checking alternative Spellchecker"); alt =alternative.spell( "Summersun",new Locale("en","US",""),empty); diff --git a/qadevOOo/tests/java/ifc/linguistic2/_XSupportedLocales.java b/qadevOOo/tests/java/ifc/linguistic2/_XSupportedLocales.java index 1457bd76fd39..8302b4cb99cf 100644 --- a/qadevOOo/tests/java/ifc/linguistic2/_XSupportedLocales.java +++ b/qadevOOo/tests/java/ifc/linguistic2/_XSupportedLocales.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 diff --git a/qadevOOo/tests/java/ifc/linguistic2/_XThesaurus.java b/qadevOOo/tests/java/ifc/linguistic2/_XThesaurus.java index c8a9ffbafe8c..87bd8453e3e6 100644 --- a/qadevOOo/tests/java/ifc/linguistic2/_XThesaurus.java +++ b/qadevOOo/tests/java/ifc/linguistic2/_XThesaurus.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 diff --git a/qadevOOo/tests/java/ifc/loader/_XImplementationLoader.java b/qadevOOo/tests/java/ifc/loader/_XImplementationLoader.java index 47918fef95af..1230579543d6 100644 --- a/qadevOOo/tests/java/ifc/loader/_XImplementationLoader.java +++ b/qadevOOo/tests/java/ifc/loader/_XImplementationLoader.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 diff --git a/qadevOOo/tests/java/ifc/presentation/_OutlineView.java b/qadevOOo/tests/java/ifc/presentation/_OutlineView.java index 1b1f4af09fda..1c9322f99958 100644 --- a/qadevOOo/tests/java/ifc/presentation/_OutlineView.java +++ b/qadevOOo/tests/java/ifc/presentation/_OutlineView.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 diff --git a/qadevOOo/tests/java/ifc/presentation/_Presentation.java b/qadevOOo/tests/java/ifc/presentation/_Presentation.java index 41b89e851459..bb8e549662c9 100644 --- a/qadevOOo/tests/java/ifc/presentation/_Presentation.java +++ b/qadevOOo/tests/java/ifc/presentation/_Presentation.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 diff --git a/qadevOOo/tests/java/ifc/presentation/_PresentationView.java b/qadevOOo/tests/java/ifc/presentation/_PresentationView.java index a79684570a50..18e5462e4683 100644 --- a/qadevOOo/tests/java/ifc/presentation/_PresentationView.java +++ b/qadevOOo/tests/java/ifc/presentation/_PresentationView.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 diff --git a/qadevOOo/tests/java/ifc/presentation/_PreviewView.java b/qadevOOo/tests/java/ifc/presentation/_PreviewView.java index 1e2e6436ab04..72b2c02948e0 100644 --- a/qadevOOo/tests/java/ifc/presentation/_PreviewView.java +++ b/qadevOOo/tests/java/ifc/presentation/_PreviewView.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 @@ -30,7 +30,7 @@ package ifc.presentation; import lib.MultiPropertyTest; public class _PreviewView extends MultiPropertyTest { - + public void _CurrentPage() { Object obj1 = tEnv.getObjRelation("FirstPage"); Object obj2 = tEnv.getObjRelation("SecondPage"); diff --git a/qadevOOo/tests/java/ifc/presentation/_SlidesView.java b/qadevOOo/tests/java/ifc/presentation/_SlidesView.java index e20e9a9d14ab..b5c433965d10 100644 --- a/qadevOOo/tests/java/ifc/presentation/_SlidesView.java +++ b/qadevOOo/tests/java/ifc/presentation/_SlidesView.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 diff --git a/qadevOOo/tests/java/ifc/presentation/_XCustomPresentationSupplier.java b/qadevOOo/tests/java/ifc/presentation/_XCustomPresentationSupplier.java index 8507daae8bf0..7af935049f08 100644 --- a/qadevOOo/tests/java/ifc/presentation/_XCustomPresentationSupplier.java +++ b/qadevOOo/tests/java/ifc/presentation/_XCustomPresentationSupplier.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 diff --git a/qadevOOo/tests/java/ifc/presentation/_XPresentation.java b/qadevOOo/tests/java/ifc/presentation/_XPresentation.java index d729348bed04..cc3ca14e2a12 100644 --- a/qadevOOo/tests/java/ifc/presentation/_XPresentation.java +++ b/qadevOOo/tests/java/ifc/presentation/_XPresentation.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 diff --git a/qadevOOo/tests/java/ifc/presentation/_XPresentationSupplier.java b/qadevOOo/tests/java/ifc/presentation/_XPresentationSupplier.java index b3fbdcb4c407..63880efed4d3 100644 --- a/qadevOOo/tests/java/ifc/presentation/_XPresentationSupplier.java +++ b/qadevOOo/tests/java/ifc/presentation/_XPresentationSupplier.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 diff --git a/qadevOOo/tests/java/ifc/qadevooo/_SelfTest.java b/qadevOOo/tests/java/ifc/qadevooo/_SelfTest.java index 32c37ee87710..c38faa0d3625 100755 --- a/qadevOOo/tests/java/ifc/qadevooo/_SelfTest.java +++ b/qadevOOo/tests/java/ifc/qadevooo/_SelfTest.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 @@ -45,7 +45,7 @@ public class _SelfTest extends MultiMethodTest /** */ - public void before() + public void before() { log.println("_SelfTest.before()"); } @@ -58,7 +58,7 @@ public class _SelfTest extends MultiMethodTest log.println("_SelfTest._testmethod()"); tRes.tested("testmethod()", true); } - + public void _testmethod2() { log.println("_SelfTest._testmethod2()"); diff --git a/qadevOOo/tests/java/ifc/reflection/_XIdlReflection.java b/qadevOOo/tests/java/ifc/reflection/_XIdlReflection.java index 3f6345ff183f..4bc54010a8b8 100644 --- a/qadevOOo/tests/java/ifc/reflection/_XIdlReflection.java +++ b/qadevOOo/tests/java/ifc/reflection/_XIdlReflection.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 diff --git a/qadevOOo/tests/java/ifc/reflection/_XProxyFactory.java b/qadevOOo/tests/java/ifc/reflection/_XProxyFactory.java index 655cb59256d0..bb207246fb1f 100644 --- a/qadevOOo/tests/java/ifc/reflection/_XProxyFactory.java +++ b/qadevOOo/tests/java/ifc/reflection/_XProxyFactory.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 diff --git a/qadevOOo/tests/java/ifc/reflection/_XTypeDescriptionEnumerationAccess.java b/qadevOOo/tests/java/ifc/reflection/_XTypeDescriptionEnumerationAccess.java index 615d12f18a35..a53278a46ea8 100644 --- a/qadevOOo/tests/java/ifc/reflection/_XTypeDescriptionEnumerationAccess.java +++ b/qadevOOo/tests/java/ifc/reflection/_XTypeDescriptionEnumerationAccess.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 @@ -61,15 +61,15 @@ public class _XTypeDescriptionEnumerationAccess extends MultiMethodTest { return; } try { - XTypeDescriptionEnumeration oEnum = - oObj.createTypeDescriptionEnumeration(sString, tClass, + XTypeDescriptionEnumeration oEnum = + oObj.createTypeDescriptionEnumeration(sString, tClass, TypeDescriptionSearchDepth.INFINITE); try { log.println("Got an enumeration."); while (true) { XTypeDescription desc = oEnum.nextTypeDescription(); i++; - log.println("\tdesc name: " + desc.getName()); + log.println("\tdesc name: " + desc.getName()); } } catch(com.sun.star.container.NoSuchElementException e) { diff --git a/qadevOOo/tests/java/ifc/registry/_XImplementationRegistration.java b/qadevOOo/tests/java/ifc/registry/_XImplementationRegistration.java index 6d2458274cf1..409242d74f5b 100644 --- a/qadevOOo/tests/java/ifc/registry/_XImplementationRegistration.java +++ b/qadevOOo/tests/java/ifc/registry/_XImplementationRegistration.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 diff --git a/qadevOOo/tests/java/ifc/registry/_XSimpleRegistry.java b/qadevOOo/tests/java/ifc/registry/_XSimpleRegistry.java index 9a7b22ac3002..30d437059c8c 100644 --- a/qadevOOo/tests/java/ifc/registry/_XSimpleRegistry.java +++ b/qadevOOo/tests/java/ifc/registry/_XSimpleRegistry.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 @@ -384,7 +384,7 @@ public class _XSimpleRegistry extends MultiMethodTest { * @param arg2 specifies if the data source should be created if it does not * already exist */ - public void openReg(XSimpleRegistry reg, String url, boolean arg1, + public void openReg(XSimpleRegistry reg, String url, boolean arg1, boolean arg2) { if (nr == null) { try { diff --git a/qadevOOo/tests/java/ifc/script/_XEventAttacherManager.java b/qadevOOo/tests/java/ifc/script/_XEventAttacherManager.java index 8d9007dddc29..42215aaa44c1 100644 --- a/qadevOOo/tests/java/ifc/script/_XEventAttacherManager.java +++ b/qadevOOo/tests/java/ifc/script/_XEventAttacherManager.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 diff --git a/qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory.java b/qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory.java index e71b7f052182..718c5dd83dfe 100644 --- a/qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory.java +++ b/qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory.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 diff --git a/qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory2.java b/qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory2.java index 50a563986974..5f959312e6e0 100644 --- a/qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory2.java +++ b/qadevOOo/tests/java/ifc/script/_XInvocationAdapterFactory2.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 diff --git a/qadevOOo/tests/java/ifc/script/_XTypeConverter.java b/qadevOOo/tests/java/ifc/script/_XTypeConverter.java index 9a25a8fd2d22..f288f2839158 100644 --- a/qadevOOo/tests/java/ifc/script/_XTypeConverter.java +++ b/qadevOOo/tests/java/ifc/script/_XTypeConverter.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 diff --git a/qadevOOo/tests/java/ifc/sdb/_DataAccessDescriptor.java b/qadevOOo/tests/java/ifc/sdb/_DataAccessDescriptor.java index e829acf98d5b..8ac12a3bba8b 100644 --- a/qadevOOo/tests/java/ifc/sdb/_DataAccessDescriptor.java +++ b/qadevOOo/tests/java/ifc/sdb/_DataAccessDescriptor.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 @@ -49,7 +49,7 @@ public class _DataAccessDescriptor extends MultiPropertyTest { log.println("set property to a new value..."); oObj.setPropertyValue(propName, newValue); - + log.println("get the new value..."); XResultSet getValue = (XResultSet) UnoRuntime.queryInterface(XResultSet.class,oObj.getPropertyValue(propName)); @@ -66,7 +66,7 @@ public class _DataAccessDescriptor extends MultiPropertyTest { log.println("Property '" + propName + "' is optional and not supported"); tRes.tested(propName,true); - + } else { log.println("could not get property '"+ propName +"' from XPropertySet!"); tRes.tested(propName, false); @@ -92,7 +92,7 @@ public class _DataAccessDescriptor extends MultiPropertyTest { log.println("set property to a new value..."); oObj.setPropertyValue(propName, newValue); - + log.println("get the new value..."); XConnection getValue = (XConnection) UnoRuntime.queryInterface(XConnection.class,oObj.getPropertyValue(propName)); @@ -109,7 +109,7 @@ public class _DataAccessDescriptor extends MultiPropertyTest { log.println("Property '" + propName + "' is optional and not supported"); tRes.tested(propName,true); - + } else { log.println("could not get property '"+ propName +"' from XPropertySet!"); tRes.tested(propName, false); @@ -119,7 +119,7 @@ public class _DataAccessDescriptor extends MultiPropertyTest { tRes.tested(propName, false); } } - + } diff --git a/qadevOOo/tests/java/ifc/sdb/_DataSource.java b/qadevOOo/tests/java/ifc/sdb/_DataSource.java index 735ad17f0d81..dc275fe5df7a 100644 --- a/qadevOOo/tests/java/ifc/sdb/_DataSource.java +++ b/qadevOOo/tests/java/ifc/sdb/_DataSource.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 diff --git a/qadevOOo/tests/java/ifc/sdb/_DatasourceAdministrationDialog.java b/qadevOOo/tests/java/ifc/sdb/_DatasourceAdministrationDialog.java index d3eca94c6556..9d62bab6405c 100644 --- a/qadevOOo/tests/java/ifc/sdb/_DatasourceAdministrationDialog.java +++ b/qadevOOo/tests/java/ifc/sdb/_DatasourceAdministrationDialog.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 diff --git a/qadevOOo/tests/java/ifc/sdb/_ErrorMessageDialog.java b/qadevOOo/tests/java/ifc/sdb/_ErrorMessageDialog.java index 581e4c59ecdd..f9af42b69173 100644 --- a/qadevOOo/tests/java/ifc/sdb/_ErrorMessageDialog.java +++ b/qadevOOo/tests/java/ifc/sdb/_ErrorMessageDialog.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 @@ -58,7 +58,7 @@ public class _ErrorMessageDialog extends MultiPropertyTest { testProperty("SQLException", tEnv.getObjRelation("ERR1"), tEnv.getObjRelation("ERR2")) ; } - + public void _ParentWindow(){ log.println("Testing with custom Property tester"); testProperty("ParentWindow", tEnv.getObjRelation("ERR_XWindow"), null); diff --git a/qadevOOo/tests/java/ifc/sdb/_QueryDefinition.java b/qadevOOo/tests/java/ifc/sdb/_QueryDefinition.java index 593420423a0b..a87733c044ff 100644 --- a/qadevOOo/tests/java/ifc/sdb/_QueryDefinition.java +++ b/qadevOOo/tests/java/ifc/sdb/_QueryDefinition.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 diff --git a/qadevOOo/tests/java/ifc/sdb/_RowSet.java b/qadevOOo/tests/java/ifc/sdb/_RowSet.java index 367b353d0f68..593092780a1e 100644 --- a/qadevOOo/tests/java/ifc/sdb/_RowSet.java +++ b/qadevOOo/tests/java/ifc/sdb/_RowSet.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 @@ -119,15 +119,15 @@ public class _RowSet extends MultiPropertyTest { boolean result = false; try { XConnection the_connection = null; - + try { the_connection = (XConnection) AnyConverter.toObject( new Type(XConnection.class), oObj.getPropertyValue("ActiveConnection")); } catch (com.sun.star.lang.IllegalArgumentException iae) { throw new StatusException("couldn't convert Any",iae); - } - + } + result = (the_connection != null); } catch (com.sun.star.beans.UnknownPropertyException e) { log.println("the property is unknown"); diff --git a/qadevOOo/tests/java/ifc/sdb/_SingleSelectQueryComposer.java b/qadevOOo/tests/java/ifc/sdb/_SingleSelectQueryComposer.java index e7fb46e65055..0ccbf0420602 100644 --- a/qadevOOo/tests/java/ifc/sdb/_SingleSelectQueryComposer.java +++ b/qadevOOo/tests/java/ifc/sdb/_SingleSelectQueryComposer.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 diff --git a/qadevOOo/tests/java/ifc/sdb/_XBookmarksSupplier.java b/qadevOOo/tests/java/ifc/sdb/_XBookmarksSupplier.java index 135188848a7f..47a1f501224e 100644 --- a/qadevOOo/tests/java/ifc/sdb/_XBookmarksSupplier.java +++ b/qadevOOo/tests/java/ifc/sdb/_XBookmarksSupplier.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 diff --git a/qadevOOo/tests/java/ifc/sdb/_XCompletedConnection.java b/qadevOOo/tests/java/ifc/sdb/_XCompletedConnection.java index 8dc2192ab057..6d36198bfa0f 100644 --- a/qadevOOo/tests/java/ifc/sdb/_XCompletedConnection.java +++ b/qadevOOo/tests/java/ifc/sdb/_XCompletedConnection.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 diff --git a/qadevOOo/tests/java/ifc/sdb/_XCompletedExecution.java b/qadevOOo/tests/java/ifc/sdb/_XCompletedExecution.java index 2710085b3281..3d1c28c6aea0 100755 --- a/qadevOOo/tests/java/ifc/sdb/_XCompletedExecution.java +++ b/qadevOOo/tests/java/ifc/sdb/_XCompletedExecution.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 @@ -39,7 +39,7 @@ public class _XCompletedExecution extends MultiMethodTest { // oObj filled by MultiMethodTest public XCompletedExecution oObj = null ; - + private CheckInteractionHandler checkHandler = null; /** * Interface to implement so the call of the listener can be checked. @@ -64,7 +64,7 @@ public class _XCompletedExecution extends MultiMethodTest { checkHandler.setLog((PrintWriter)log); } - + public void _executeWithCompletion() { try { oObj.executeWithCompletion(checkHandler); @@ -74,7 +74,7 @@ public class _XCompletedExecution extends MultiMethodTest { tRes.tested("executeWithCompletion()", false); return; } - + tRes.tested("executeWithCompletion()", checkHandler.checkInteractionHandler()); } diff --git a/qadevOOo/tests/java/ifc/sdb/_XFormDocumentsSupplier.java b/qadevOOo/tests/java/ifc/sdb/_XFormDocumentsSupplier.java index b4a415bc3ac1..b8985324e96a 100644 --- a/qadevOOo/tests/java/ifc/sdb/_XFormDocumentsSupplier.java +++ b/qadevOOo/tests/java/ifc/sdb/_XFormDocumentsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/sdb/_XParametersSupplier.java b/qadevOOo/tests/java/ifc/sdb/_XParametersSupplier.java index 109bb24c4462..865c3f15e47f 100644 --- a/qadevOOo/tests/java/ifc/sdb/_XParametersSupplier.java +++ b/qadevOOo/tests/java/ifc/sdb/_XParametersSupplier.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 diff --git a/qadevOOo/tests/java/ifc/sdb/_XQueryDefinitionsSupplier.java b/qadevOOo/tests/java/ifc/sdb/_XQueryDefinitionsSupplier.java index 942da74cc999..2c9d83716d2f 100644 --- a/qadevOOo/tests/java/ifc/sdb/_XQueryDefinitionsSupplier.java +++ b/qadevOOo/tests/java/ifc/sdb/_XQueryDefinitionsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/sdb/_XReportDocumentsSupplier.java b/qadevOOo/tests/java/ifc/sdb/_XReportDocumentsSupplier.java index 75b7c2f51a0a..2abe69303961 100644 --- a/qadevOOo/tests/java/ifc/sdb/_XReportDocumentsSupplier.java +++ b/qadevOOo/tests/java/ifc/sdb/_XReportDocumentsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/sdb/_XResultSetAccess.java b/qadevOOo/tests/java/ifc/sdb/_XResultSetAccess.java index 7f68a57d0b1c..29711bff9f33 100644 --- a/qadevOOo/tests/java/ifc/sdb/_XResultSetAccess.java +++ b/qadevOOo/tests/java/ifc/sdb/_XResultSetAccess.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 diff --git a/qadevOOo/tests/java/ifc/sdb/_XRowSetApproveBroadcaster.java b/qadevOOo/tests/java/ifc/sdb/_XRowSetApproveBroadcaster.java index 2993b60fe19a..cd4a0490559b 100644 --- a/qadevOOo/tests/java/ifc/sdb/_XRowSetApproveBroadcaster.java +++ b/qadevOOo/tests/java/ifc/sdb/_XRowSetApproveBroadcaster.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 diff --git a/qadevOOo/tests/java/ifc/sdb/_XSQLErrorBroadcaster.java b/qadevOOo/tests/java/ifc/sdb/_XSQLErrorBroadcaster.java index 47facc31805e..2b5d7f1513a7 100644 --- a/qadevOOo/tests/java/ifc/sdb/_XSQLErrorBroadcaster.java +++ b/qadevOOo/tests/java/ifc/sdb/_XSQLErrorBroadcaster.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 @@ -33,6 +33,6 @@ import lib.MultiMethodTest; * */ public class _XSQLErrorBroadcaster extends MultiMethodTest { - + public XSQLErrorBroadcaster oObj = null; } diff --git a/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryAnalyzer.java b/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryAnalyzer.java index 5b7dca9342f4..cc88075a9b8b 100644 --- a/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryAnalyzer.java +++ b/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryAnalyzer.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 @@ -60,9 +60,9 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { public XSingleSelectQueryAnalyzer oObj = null ; private String queryString = "SELECT * FROM \"biblio\""; - + private XSingleSelectQueryComposer xComposer = null; - + /** * Recieves the object relations: * <ul> @@ -79,9 +79,9 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { if (xComposer == null) { throw new StatusException(Status.failed( "Couldn't get object relation 'xComposer'. Test must be modified")); - + } - + } /** * call <code>setQuery()</code> once with valid query, once with invalid @@ -94,7 +94,7 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { } catch (com.sun.star.sdbc.SQLException e){ log.println("expected Exception. "); } - + try{ oObj.setQuery(queryString); } catch (com.sun.star.sdbc.SQLException e){ @@ -103,7 +103,7 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { } tRes.tested("setQuery()", true); } - + /** * checks of the returned value of <code>getQuery()</code> * equals the string which was set by <code>setQuery()</code> @@ -117,13 +117,13 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { this.requiredMethod("setQuery()"); boolean res = false; - + res = oObj.getQuery().equals(queryString); - + tRes.tested("getQuery()", res); } - - + + /** * Object relation <code>xComposer</code> set a filter. This filter * must returned while calling <code>getFilter</code> @@ -133,13 +133,13 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { String filter = "\"Identifier\" = 'BOR02b'"; xComposer.setFilter(filter); tRes.tested("getFilter()", (oObj.getFilter().equals(filter))); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("getFilter()", false); } } - + /** * Object relation <code>xComposer</code> set a complex filter with method . <code>setFilter</code>. Then <code>getStructuredFilter</code> returns a @@ -164,7 +164,7 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { xComposer.setFilter(""); xComposer.setStructuredFilter(aStructuredFilter); tRes.tested("getStructuredFilter()", (oObj.getFilter().equals(complexFilter))); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("getStructuredFilter()", false); @@ -173,7 +173,7 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { tRes.tested("getStructuredFilter()", false); } } - + /** * Object relation <code>xComposer</code> set a goup. This group * must returned while calling <code>getGroup</code> @@ -183,25 +183,25 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { String group = "\"Identifier\""; xComposer.setGroup(group); tRes.tested("getGroup()", (oObj.getGroup().equals(group))); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("getGroup()", false); } } - + /** * Method <code>getGroupColumns</code> retunrs a <code>XIndexAccess</code> * Test has ok status if returned value is an useable <code>XIndexAccess</code> */ public void _getGroupColumns() { try{ - XIndexAccess xGroupColumns = oObj.getGroupColumns(); - - tRes.tested("getGroupColumns()", (xGroupColumns != null && - xGroupColumns.getCount() == 1 && + XIndexAccess xGroupColumns = oObj.getGroupColumns(); + + tRes.tested("getGroupColumns()", (xGroupColumns != null && + xGroupColumns.getCount() == 1 && xGroupColumns.getByIndex(0) != null)); - + } catch (com.sun.star.lang.IndexOutOfBoundsException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("getGroupColumns()", false); @@ -210,7 +210,7 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { tRes.tested("getGroupColumns()", false); } } - + /** * Object relation <code>xComposer</code> set a clause. This clause * must returned while calling <code>getHavingClause</code> @@ -221,13 +221,13 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { xComposer.setHavingClause(clause); tRes.tested("getHavingClause()", ( oObj.getHavingClause().equals(clause))); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("getHavingClause()", false); } } - + /** * Object relation <code>xComposer</code> set a clause. This clause * must returned while calling <code>getHavingClause</code> @@ -244,21 +244,21 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { requiredMethod("getFilter()"); executeMethod("getStructuredFilter()"); String complexFilter = "( \"Identifier\" = '1' AND \"Type\" = '4' ) OR ( \"Identifier\" = '2' AND \"Type\" = '5' ) OR ( \"Identifier\" = '3' AND \"Type\" = '6' AND \"Address\" = '7' ) OR ( \"Address\" = '8' ) OR ( \"Type\" = '9' )"; - + try{ xComposer.setHavingClause(complexFilter); PropertyValue[][] aStructuredHaving = oObj.getStructuredHavingClause(); xComposer.setHavingClause(""); xComposer.setStructuredHavingClause(aStructuredHaving); - tRes.tested("getStructuredHavingClause()", + tRes.tested("getStructuredHavingClause()", (oObj.getHavingClause().equals(complexFilter))); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("getStructuredHavingClause()", false); } } - + /** * Object relation <code>xComposer</code> set an order. This order * must returned while calling <code>getOrder</code> @@ -268,13 +268,13 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { String order = "\"Identifier\""; xComposer.setOrder(order); tRes.tested("getOrder()", (oObj.getOrder().equals(order))); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("getOrder()", false); } } - + /** * Method <code>getGroupColumns</code> retunrs a <code>XIndexAccess</code> * Test has ok status if returned value is an useable <code>XIndexAccess</code> @@ -282,10 +282,10 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { public void _getOrderColumns() { try{ XIndexAccess xOrderColumns = oObj.getOrderColumns(); - tRes.tested("getOrderColumns()", (xOrderColumns != null && - xOrderColumns.getCount() == 1 && + tRes.tested("getOrderColumns()", (xOrderColumns != null && + xOrderColumns.getCount() == 1 && xOrderColumns.getByIndex(0) != null)); - + } catch (com.sun.star.lang.IndexOutOfBoundsException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("getOrderColumns()", false); @@ -294,6 +294,6 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { tRes.tested("getOrderColumns()", false); } } - + } // finish class _XSingleSelectQueryAnalyzer diff --git a/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer.java b/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer.java index fa987a09a227..12562abde2b9 100644 --- a/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer.java +++ b/qadevOOo/tests/java/ifc/sdb/_XSingleSelectQueryComposer.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 @@ -62,13 +62,13 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { public XSingleSelectQueryComposer oObj = null ; private String queryString = "SELECT * FROM \"biblio\""; - + private XSingleSelectQueryAnalyzer xQueryAna = null; - + private XPropertySet xProp = null; - + private String colName = null; - + /** * Retcieves the object relations: * <ul> @@ -88,9 +88,9 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { if (xQueryAna == null) { throw new StatusException(Status.failed( "Couldn't get object relation 'xQueryAna'. Test must be modified")); - + } - + xProp = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, tEnv.getObjRelation("xProp")); @@ -98,9 +98,9 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { if (xProp == null) { throw new StatusException(Status.failed( "Couldn't get object relation 'xProp'. Test must be modified")); - + } - + try { colName = AnyConverter.toString(tEnv.getObjRelation("colName")); @@ -113,12 +113,12 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { if (colName == null) { throw new StatusException(Status.failed( "Couldn't get object relation 'colName'. Test must be modified")); - + } - + } - - + + /** * Object relation <code>xQueryAna</code> set a filter. This filter * must returned while calling <code>getFilter</code> @@ -128,13 +128,13 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { String filter = "\"Identifier\" = 'BOR02b'"; oObj.setFilter(filter); tRes.tested("setFilter()", (xQueryAna.getFilter().equals(filter))); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("setFilter()", false); } } - + /** * Object relation <code>xQueryAna</code> set a complex filter with method . <code>setFilter</code>. Then <code>getStructuredFilter</code> returns a @@ -152,7 +152,7 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { oObj.setFilter(""); oObj.setStructuredFilter(aStructuredFilter); tRes.tested("setStructuredFilter()", (xQueryAna.getFilter().equals(complexFilter))); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("setStructuredFilter()", false); @@ -161,10 +161,10 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { tRes.tested("setStructuredFilter()", false); } } - + /** - * At first the object relation <code>xProp</code> was set as parameter. - * Relation <code>xQueryAna</code> was used to chek if realtion + * At first the object relation <code>xProp</code> was set as parameter. + * Relation <code>xQueryAna</code> was used to chek if realtion * <code>colName</code> was found. * Second an empty <code>XPropertySet</code> was used as parameter. A * <code>com.sun.star.sdbc.SQLException</code> must be thrown. @@ -172,22 +172,22 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { public void _appendFilterByColumn() { boolean ok = true; try{ - + oObj.appendFilterByColumn(xProp, true,SQLFilterOperator.EQUAL); log.println("appendFilterByColumn: " + xQueryAna.getFilter()); ok = ok && (xQueryAna.getFilter().indexOf(colName) > 0); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("appendFilterByColumn()", false); } try{ - + oObj.appendFilterByColumn(xProp, false,SQLFilterOperator.EQUAL); log.println("appendFilterByColumn: " + xQueryAna.getFilter()); ok = ok && (xQueryAna.getFilter().indexOf(colName) > 0); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("appendFilterByColumn()", false); @@ -198,7 +198,7 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { oObj.appendFilterByColumn(dummy, true,SQLFilterOperator.EQUAL); log.println("expected Exception was not thrown"); tRes.tested("appendFilterByColumn()", false); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("expected Exception"); ok = ok && true; @@ -216,11 +216,11 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { public void _appendGroupByColumn() { boolean ok = true; try{ - + oObj.appendGroupByColumn(xProp); log.println("appendGroupByColumn: " + xQueryAna.getFilter()); ok = ok && (xQueryAna.getFilter().indexOf(colName) > 0); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("appendGroupByColumn()", false); @@ -230,17 +230,17 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { oObj.appendGroupByColumn(dummy); log.println("expected Exception was not thrown"); tRes.tested("appendGroupByColumn()", false); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("expected Exception"); ok = ok && true; } - tRes.tested("appendGroupByColumn()", ok); + tRes.tested("appendGroupByColumn()", ok); } /** * The group which was setted by <code>setGroup</code> must be returned - * while calling from object relation <code>XQueryAna</code> + * while calling from object relation <code>XQueryAna</code> * method <code>getGroup</code> */ public void _setGroup() { @@ -248,17 +248,17 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { String group = "\"Identifier\""; oObj.setGroup(group); tRes.tested("setGroup()", (xQueryAna.getGroup().equals(group))); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("setGroup()", false); } } - - + + /** * The cluase which was setted by <code>setHavingClause</code> must be returned - * while calling from object relation <code>XQueryAna</code> + * while calling from object relation <code>XQueryAna</code> * method <code>getHavingClause</code> */ public void _setHavingClause() { @@ -267,17 +267,17 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { oObj.setHavingClause(clause); tRes.tested("setHavingClause()", ( xQueryAna.getHavingClause().equals(clause))); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("setHavingClause()", false); } } - + /** * At first <code>setHavingClause</code> sets a complex clause. * Then method <code>getStructuredHavingClause</code> from object relation - * <code>xQueryAna</code> returns a valid <code>PropertyValue[][]</code> + * <code>xQueryAna</code> returns a valid <code>PropertyValue[][]</code> * Method <code>setHavingClause</code> was called with an empty sting to * reset filter. Now <code>setStructuredHavingClause</code> with the valid * <code>PropertyValue[][]</code> as parameter was called. @@ -294,16 +294,16 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { requiredMethod("setHavingClause()"); executeMethod("setStructuredFilter()"); String complexFilter = "( \"Identifier\" = '1' AND \"Type\" = '4' ) OR ( \"Identifier\" = '2' AND \"Type\" = '5' ) OR ( \"Identifier\" = '3' AND \"Type\" = '6' AND \"Address\" = '7' ) OR ( \"Address\" = '8' ) OR ( \"Type\" = '9' )"; - + try{ oObj.setHavingClause(complexFilter); - PropertyValue[][] aStructuredHaving = + PropertyValue[][] aStructuredHaving = xQueryAna.getStructuredHavingClause(); oObj.setHavingClause(""); oObj.setStructuredHavingClause(aStructuredHaving); - tRes.tested("setStructuredHavingClause()", + tRes.tested("setStructuredHavingClause()", (xQueryAna.getHavingClause().equals(complexFilter))); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("setStructuredHavingClause()", false); @@ -320,11 +320,11 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { public void _appendHavingClauseByColumn() { boolean ok = true; try{ - + oObj.appendHavingClauseByColumn(xProp, true,SQLFilterOperator.EQUAL); log.println("appendHavingClauseByColumn: " + xQueryAna.getFilter()); ok = ok && (xQueryAna.getFilter().indexOf(colName) > 0); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("appendHavingClauseByColumn()", false); @@ -334,7 +334,7 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { oObj.appendHavingClauseByColumn(dummy, true,SQLFilterOperator.EQUAL); log.println("expected Exception was not thrown"); tRes.tested("appendHavingClauseByColumn()", false); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("expected Exception"); ok = ok && true; @@ -352,11 +352,11 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { public void _appendOrderByColumn() { boolean ok = true; try{ - + oObj.appendOrderByColumn(xProp, true); log.println("appendOrderByColumn: " + xQueryAna.getFilter()); ok = ok && (xQueryAna.getFilter().indexOf(colName) > 0); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("appendOrderByColumn()", false); @@ -366,7 +366,7 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { oObj.appendOrderByColumn(dummy, true); log.println("expected Exception was not thrown"); tRes.tested("appendOrderByColumn()", false); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("expected Exception"); ok = ok && true; @@ -384,13 +384,13 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { String order = "\"Identifier\""; oObj.setOrder(order); tRes.tested("setOrder()", (xQueryAna.getOrder().equals(order))); - + } catch (com.sun.star.sdbc.SQLException e){ log.println("unexpected Exception: " + e.toString()); tRes.tested("setOrder()", false); } } - - + + } // finish class _XSingleSelectQueryComposer diff --git a/qadevOOo/tests/java/ifc/sdbc/_ResultSet.java b/qadevOOo/tests/java/ifc/sdbc/_ResultSet.java index bbbee54f9427..c85adfb261e8 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_ResultSet.java +++ b/qadevOOo/tests/java/ifc/sdbc/_ResultSet.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 diff --git a/qadevOOo/tests/java/ifc/sdbc/_RowSet.java b/qadevOOo/tests/java/ifc/sdbc/_RowSet.java index 3a4fcecbadd8..2c8aaee986ab 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_RowSet.java +++ b/qadevOOo/tests/java/ifc/sdbc/_RowSet.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 @@ -73,9 +73,9 @@ public class _RowSet extends MultiPropertyTest { } catch(com.sun.star.beans.UnknownPropertyException e) { log.println("Exception " + e.getMessage()); } - + tRes.tested("TypeMap",result); - } + } } // finish class _RowSet diff --git a/qadevOOo/tests/java/ifc/sdbc/_XCloseable.java b/qadevOOo/tests/java/ifc/sdbc/_XCloseable.java index 7877ad3742d9..ab4c0d936b18 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XCloseable.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XCloseable.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 diff --git a/qadevOOo/tests/java/ifc/sdbc/_XColumnLocate.java b/qadevOOo/tests/java/ifc/sdbc/_XColumnLocate.java index d91c5c1ab2d0..bb391c18334a 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XColumnLocate.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XColumnLocate.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 diff --git a/qadevOOo/tests/java/ifc/sdbc/_XDataSource.java b/qadevOOo/tests/java/ifc/sdbc/_XDataSource.java index 6c1767887861..78c4cf317ff3 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XDataSource.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XDataSource.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 diff --git a/qadevOOo/tests/java/ifc/sdbc/_XDriver.java b/qadevOOo/tests/java/ifc/sdbc/_XDriver.java index 8c9085a96f51..51603b7edeaa 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XDriver.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XDriver.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 @@ -110,10 +110,10 @@ public class _XDriver extends MultiMethodTest { res &= (connection == null); log.println("Connected? " + !res); } catch(SQLException e) { - log.println("Unexpected exception"); + log.println("Unexpected exception"); res &= false; } - + if (nbu==null) { try { String badUrl = url + "bla"; diff --git a/qadevOOo/tests/java/ifc/sdbc/_XDriverManager.java b/qadevOOo/tests/java/ifc/sdbc/_XDriverManager.java index 6921aef8db7e..a4a01f2fbce6 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XDriverManager.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XDriverManager.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 @@ -139,7 +139,7 @@ public class _XDriverManager extends MultiMethodTest { * the method <code>getLoginTimeout()</code> are equal. */ public void _setLoginTimeout() { - requiredMethod("getLoginTimeout()"); + requiredMethod("getLoginTimeout()"); final int TO = 111; log.println("setLoginTimeout(" + TO + ")"); oObj.setLoginTimeout(TO); diff --git a/qadevOOo/tests/java/ifc/sdbc/_XIsolatedConnection.java b/qadevOOo/tests/java/ifc/sdbc/_XIsolatedConnection.java index 36ea27516c26..dd2500fdf9c9 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XIsolatedConnection.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XIsolatedConnection.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 @@ -107,7 +107,7 @@ public class _XIsolatedConnection extends MultiMethodTest { pwd = userSettings[1].equals("")?"<empty>":userSettings[1]; else pwd = "<null>"; - + log.println("Testing \"getIsolatedConnection('user', 'password')\"\n" + "with user = '" + user + "'; password = '" + pwd + "'"); XConnection con = null ; diff --git a/qadevOOo/tests/java/ifc/sdbc/_XParameters.java b/qadevOOo/tests/java/ifc/sdbc/_XParameters.java index e462a9aecab2..a87562948ec1 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XParameters.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XParameters.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 diff --git a/qadevOOo/tests/java/ifc/sdbc/_XResultSet.java b/qadevOOo/tests/java/ifc/sdbc/_XResultSet.java index 69c7d1468b7a..0f62b6659a9f 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XResultSet.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XResultSet.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 diff --git a/qadevOOo/tests/java/ifc/sdbc/_XResultSetMetaDataSupplier.java b/qadevOOo/tests/java/ifc/sdbc/_XResultSetMetaDataSupplier.java index 84844907f03a..7ffeb893d4d5 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XResultSetMetaDataSupplier.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XResultSetMetaDataSupplier.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 diff --git a/qadevOOo/tests/java/ifc/sdbc/_XResultSetUpdate.java b/qadevOOo/tests/java/ifc/sdbc/_XResultSetUpdate.java index db5b2d1599da..695a087acf86 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XResultSetUpdate.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XResultSetUpdate.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 diff --git a/qadevOOo/tests/java/ifc/sdbc/_XRow.java b/qadevOOo/tests/java/ifc/sdbc/_XRow.java index 6c442d0255a5..7e7845344174 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XRow.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XRow.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 diff --git a/qadevOOo/tests/java/ifc/sdbc/_XRowSet.java b/qadevOOo/tests/java/ifc/sdbc/_XRowSet.java index 0bfa4cba2957..78099cee0826 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XRowSet.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XRowSet.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 diff --git a/qadevOOo/tests/java/ifc/sdbc/_XRowUpdate.java b/qadevOOo/tests/java/ifc/sdbc/_XRowUpdate.java index c22246888441..619678af2f91 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XRowUpdate.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XRowUpdate.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 diff --git a/qadevOOo/tests/java/ifc/sdbc/_XWarningsSupplier.java b/qadevOOo/tests/java/ifc/sdbc/_XWarningsSupplier.java index cbca4c600a4a..9f49eec04eca 100644 --- a/qadevOOo/tests/java/ifc/sdbc/_XWarningsSupplier.java +++ b/qadevOOo/tests/java/ifc/sdbc/_XWarningsSupplier.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 @@ -69,7 +69,7 @@ public class _XWarningsSupplier extends MultiMethodTest { // not sure what the below test was intended to test, but it actually fails with an SQLException (which is // correct for what is done there), and thus makes the complete interface test fail (which is not correct) // So, for the moment, just let the test succeed all the time - until issue #i84235# is fixed - + if ( false ) { int oldVal = 0, newVal = 0; @@ -95,7 +95,7 @@ public class _XWarningsSupplier extends MultiMethodTest { boolean res = false; - try + try { Object warns = oObj.getWarnings(); res = (!utils.isVoid(warns)); diff --git a/qadevOOo/tests/java/ifc/sdbcx/_ResultSet.java b/qadevOOo/tests/java/ifc/sdbcx/_ResultSet.java index 2e8cbaf4b006..4150ce3d4fc3 100644 --- a/qadevOOo/tests/java/ifc/sdbcx/_ResultSet.java +++ b/qadevOOo/tests/java/ifc/sdbcx/_ResultSet.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 @@ -41,5 +41,5 @@ import lib.MultiPropertyTest; */ public class _ResultSet extends MultiPropertyTest { -} +} diff --git a/qadevOOo/tests/java/ifc/sdbcx/_XColumnsSupplier.java b/qadevOOo/tests/java/ifc/sdbcx/_XColumnsSupplier.java index 61fa1c2a145b..79d1eee422e6 100644 --- a/qadevOOo/tests/java/ifc/sdbcx/_XColumnsSupplier.java +++ b/qadevOOo/tests/java/ifc/sdbcx/_XColumnsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/sdbcx/_XCreateCatalog.java b/qadevOOo/tests/java/ifc/sdbcx/_XCreateCatalog.java index d657aac3f587..bda344bf26fb 100644 --- a/qadevOOo/tests/java/ifc/sdbcx/_XCreateCatalog.java +++ b/qadevOOo/tests/java/ifc/sdbcx/_XCreateCatalog.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 diff --git a/qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.java b/qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.java index 11f68d19ce86..e12d10ace540 100644 --- a/qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.java +++ b/qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.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 diff --git a/qadevOOo/tests/java/ifc/sdbcx/_XDeleteRows.java b/qadevOOo/tests/java/ifc/sdbcx/_XDeleteRows.java index 230e513e1b2c..0c2712b236de 100644 --- a/qadevOOo/tests/java/ifc/sdbcx/_XDeleteRows.java +++ b/qadevOOo/tests/java/ifc/sdbcx/_XDeleteRows.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 diff --git a/qadevOOo/tests/java/ifc/sdbcx/_XDropCatalog.java b/qadevOOo/tests/java/ifc/sdbcx/_XDropCatalog.java index f3135c15e3bf..e6d59b16e376 100644 --- a/qadevOOo/tests/java/ifc/sdbcx/_XDropCatalog.java +++ b/qadevOOo/tests/java/ifc/sdbcx/_XDropCatalog.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 diff --git a/qadevOOo/tests/java/ifc/sdbcx/_XRowLocate.java b/qadevOOo/tests/java/ifc/sdbcx/_XRowLocate.java index 6c8bca02ada1..0e11f9c59c3d 100644 --- a/qadevOOo/tests/java/ifc/sdbcx/_XRowLocate.java +++ b/qadevOOo/tests/java/ifc/sdbcx/_XRowLocate.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 @@ -69,7 +69,7 @@ public class _XRowLocate extends MultiMethodTest { try { bookmark1 = oObj.getBookmark() ; } catch (SQLException e) { - log.println("Exception occured :" + e) ; + log.println("Exception occured :" + e) ; } tRes.tested("getBookmark()", bookmark1 != null) ; diff --git a/qadevOOo/tests/java/ifc/sdbcx/_XTablesSupplier.java b/qadevOOo/tests/java/ifc/sdbcx/_XTablesSupplier.java index c3318d2f2fa4..c3747553ccda 100644 --- a/qadevOOo/tests/java/ifc/sdbcx/_XTablesSupplier.java +++ b/qadevOOo/tests/java/ifc/sdbcx/_XTablesSupplier.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 @@ -55,7 +55,7 @@ public class _XTablesSupplier extends MultiMethodTest { XNameAccess tabs = oObj.getTables() ; - + String[] tabNames = tabs.getElementNames() ; log.println("Table names:") ; @@ -71,7 +71,7 @@ public class _XTablesSupplier extends MultiMethodTest { log.println("Support : " + info.supportsService("com.sun.star.sdbcx.Table")) ; - + tRes.tested("getTables()", tabs != null) ; } diff --git a/qadevOOo/tests/java/ifc/sheet/_CellAreaLink.java b/qadevOOo/tests/java/ifc/sheet/_CellAreaLink.java index cef1fcd32153..55bc00bd0bd5 100644 --- a/qadevOOo/tests/java/ifc/sheet/_CellAreaLink.java +++ b/qadevOOo/tests/java/ifc/sheet/_CellAreaLink.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_DataPilotField.java b/qadevOOo/tests/java/ifc/sheet/_DataPilotField.java index 272c49798d54..0f5bd210fada 100644 --- a/qadevOOo/tests/java/ifc/sheet/_DataPilotField.java +++ b/qadevOOo/tests/java/ifc/sheet/_DataPilotField.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 @@ -44,7 +44,7 @@ import lib.MultiPropertyTest; * @see com.sun.star.sheet.DataPilotField */ public class _DataPilotField extends MultiPropertyTest { - + /** *This class is destined to custom test of property <code>SortInfo</code>. */ @@ -64,13 +64,13 @@ public class _DataPilotField extends MultiPropertyTest { */ public void _SortInfo() { testProperty("SortInfo", SortInfoTester); - } - + } + public void _HasSortInfo() { requiredMethod("SortInfo"); testProperty("HasSortInfo"); } - + /** *This class is destined to custom test of property <code>LayoutInfo</code>. */ @@ -89,13 +89,13 @@ public class _DataPilotField extends MultiPropertyTest { */ public void _LayoutInfo() { testProperty("LayoutInfo", LayoutInfoTester); - } - + } + public void _HasLayoutInfo() { requiredMethod("LayoutInfo"); testProperty("HasLayoutInfo"); - } - + } + /** *This class is destined to custom test of property <code>AutoShowInfo</code>. */ @@ -114,13 +114,13 @@ public class _DataPilotField extends MultiPropertyTest { */ public void _AutoShowInfo() { testProperty("AutoShowInfo", AutoShowInfoTester); - } - + } + public void _HasAutoShowInfo() { requiredMethod("AutoShowInfo"); testProperty("HasAutoShowInfo"); - } - + } + /** *This class is destined to custom test of property <code>Reference</code>. */ @@ -139,13 +139,13 @@ public class _DataPilotField extends MultiPropertyTest { */ public void _Reference() { testProperty("Reference", ReferenceTester); - } - + } + public void _HasReference() { requiredMethod("Reference"); testProperty("HasReference"); - } - + } + /* * this property can only set a true value to false, fo ungrouping purposes */ @@ -157,7 +157,7 @@ public class _DataPilotField extends MultiPropertyTest { oObj.setPropertyValue ("IsGroupField", Boolean.FALSE); Boolean propV = (Boolean) oObj.getPropertyValue ("IsGroupField"); result = !propV.booleanValue (); - } + } } catch (Exception e) { log.println ("Exception while getting Property 'IsGroupField'"+e); result = false; diff --git a/qadevOOo/tests/java/ifc/sheet/_DataPilotItem.java b/qadevOOo/tests/java/ifc/sheet/_DataPilotItem.java index a83bd47543f4..368723761e58 100644 --- a/qadevOOo/tests/java/ifc/sheet/_DataPilotItem.java +++ b/qadevOOo/tests/java/ifc/sheet/_DataPilotItem.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_DatabaseImportDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_DatabaseImportDescriptor.java index bb819a0f43e7..688b77d2eed8 100644 --- a/qadevOOo/tests/java/ifc/sheet/_DatabaseImportDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_DatabaseImportDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_DatabaseRange.java b/qadevOOo/tests/java/ifc/sheet/_DatabaseRange.java index f32fe6c27c40..c4c1732e7a38 100644 --- a/qadevOOo/tests/java/ifc/sheet/_DatabaseRange.java +++ b/qadevOOo/tests/java/ifc/sheet/_DatabaseRange.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_DocumentSettings.java b/qadevOOo/tests/java/ifc/sheet/_DocumentSettings.java index 6074e8e6cb3f..6bda7836fde1 100644 --- a/qadevOOo/tests/java/ifc/sheet/_DocumentSettings.java +++ b/qadevOOo/tests/java/ifc/sheet/_DocumentSettings.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 @@ -34,6 +34,6 @@ import lib.MultiPropertyTest; */ public class _DocumentSettings extends MultiPropertyTest{ - - + + } diff --git a/qadevOOo/tests/java/ifc/sheet/_FunctionDescription.java b/qadevOOo/tests/java/ifc/sheet/_FunctionDescription.java index 3fe0017ad6db..9a9e242086a1 100644 --- a/qadevOOo/tests/java/ifc/sheet/_FunctionDescription.java +++ b/qadevOOo/tests/java/ifc/sheet/_FunctionDescription.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_GlobalSheetSettings.java b/qadevOOo/tests/java/ifc/sheet/_GlobalSheetSettings.java index 514645be45b3..9a42db1d5eb8 100644 --- a/qadevOOo/tests/java/ifc/sheet/_GlobalSheetSettings.java +++ b/qadevOOo/tests/java/ifc/sheet/_GlobalSheetSettings.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_Scenario.java b/qadevOOo/tests/java/ifc/sheet/_Scenario.java index b7d206465d2a..4f9db71d140e 100644 --- a/qadevOOo/tests/java/ifc/sheet/_Scenario.java +++ b/qadevOOo/tests/java/ifc/sheet/_Scenario.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 @@ -34,7 +34,7 @@ import lib.MultiPropertyTest; public class _Scenario extends MultiPropertyTest { public void before() { - oObj = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, + oObj = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, tEnv.getObjRelation( "ScenarioSheet")); } diff --git a/qadevOOo/tests/java/ifc/sheet/_Shape.java b/qadevOOo/tests/java/ifc/sheet/_Shape.java index 0d1daca95b54..ad23b22b2239 100644 --- a/qadevOOo/tests/java/ifc/sheet/_Shape.java +++ b/qadevOOo/tests/java/ifc/sheet/_Shape.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 @@ -37,7 +37,7 @@ import lib.MultiPropertyTest; public class _Shape extends MultiPropertyTest { public void _Anchor() { XSpreadsheetDocument xSheetDoc = (XSpreadsheetDocument) UnoRuntime.queryInterface( - XSpreadsheetDocument.class, + XSpreadsheetDocument.class, tEnv.getObjRelation( "DOCUMENT")); String[] sheetNames = xSheetDoc.getSheets().getElementNames(); @@ -46,7 +46,7 @@ public class _Shape extends MultiPropertyTest { try { xSheet = (XSpreadsheet) UnoRuntime.queryInterface( - XSpreadsheet.class, + XSpreadsheet.class, xSheetDoc.getSheets().getByName(sheetNames[0])); xCell = xSheet.getCellByPosition(0, 0); } catch (com.sun.star.container.NoSuchElementException e) { diff --git a/qadevOOo/tests/java/ifc/sheet/_SheetCell.java b/qadevOOo/tests/java/ifc/sheet/_SheetCell.java index ebb943082792..b132f8c4b15d 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SheetCell.java +++ b/qadevOOo/tests/java/ifc/sheet/_SheetCell.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 @@ -32,7 +32,7 @@ import lib.MultiPropertyTest; public class _SheetCell extends MultiPropertyTest { - + } diff --git a/qadevOOo/tests/java/ifc/sheet/_SheetCellRange.java b/qadevOOo/tests/java/ifc/sheet/_SheetCellRange.java index d2db014584a0..d8f0a2bf1ddc 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SheetCellRange.java +++ b/qadevOOo/tests/java/ifc/sheet/_SheetCellRange.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_SheetCellRanges.java b/qadevOOo/tests/java/ifc/sheet/_SheetCellRanges.java index 7e7ed35e092f..9da72fb53c80 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SheetCellRanges.java +++ b/qadevOOo/tests/java/ifc/sheet/_SheetCellRanges.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_SheetFilterDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_SheetFilterDescriptor.java index 423042bb8d3a..02b7616d0e7c 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SheetFilterDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_SheetFilterDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_SheetLink.java b/qadevOOo/tests/java/ifc/sheet/_SheetLink.java index d4711f878716..0e2b8dd13b75 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SheetLink.java +++ b/qadevOOo/tests/java/ifc/sheet/_SheetLink.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_SheetSortDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_SheetSortDescriptor.java index cf63e30250d9..f4628605f912 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SheetSortDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_SheetSortDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_Spreadsheet.java b/qadevOOo/tests/java/ifc/sheet/_Spreadsheet.java index f1a78acc64aa..4d2058e1ec73 100644 --- a/qadevOOo/tests/java/ifc/sheet/_Spreadsheet.java +++ b/qadevOOo/tests/java/ifc/sheet/_Spreadsheet.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_SpreadsheetDocument.java b/qadevOOo/tests/java/ifc/sheet/_SpreadsheetDocument.java index 0fe1021d7155..f26759a5b08d 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SpreadsheetDocument.java +++ b/qadevOOo/tests/java/ifc/sheet/_SpreadsheetDocument.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_SpreadsheetDocumentSettings.java b/qadevOOo/tests/java/ifc/sheet/_SpreadsheetDocumentSettings.java index 6c4abe99f413..a622af71236d 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SpreadsheetDocumentSettings.java +++ b/qadevOOo/tests/java/ifc/sheet/_SpreadsheetDocumentSettings.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 @@ -64,7 +64,7 @@ public class _SpreadsheetDocumentSettings extends MultiPropertyTest { protected PropertyTester DateTester = new PropertyTester() { protected Object getNewValue(String propName, Object oldValue) { Date date = (Date) oldValue; - Date newDate = new Date((short) (date.Day - 1), date.Month, + Date newDate = new Date((short) (date.Day - 1), date.Month, date.Year); return newDate; @@ -82,10 +82,10 @@ public class _SpreadsheetDocumentSettings extends MultiPropertyTest { protected boolean compare(Object obj1, Object obj2) { Locale loc = new Locale("ru", "RU", ""); XForbiddenCharacters fc1 = (XForbiddenCharacters) UnoRuntime.queryInterface( - XForbiddenCharacters.class, + XForbiddenCharacters.class, obj1); XForbiddenCharacters fc2 = (XForbiddenCharacters) UnoRuntime.queryInterface( - XForbiddenCharacters.class, + XForbiddenCharacters.class, obj2); boolean has1 = fc1.hasForbiddenCharacters(loc); boolean has2 = fc2.hasForbiddenCharacters(loc); @@ -121,8 +121,8 @@ public class _SpreadsheetDocumentSettings extends MultiPropertyTest { public ForbiddenCharacters getForbiddenCharacters(Locale rLocale) throws com.sun.star.container.NoSuchElementException { - if (rLocale.Country.equals(locale.Country) && - rLocale.Language.equals(locale.Language) && + if (rLocale.Country.equals(locale.Country) && + rLocale.Language.equals(locale.Language) && rLocale.Variant.equals(locale.Variant)) { return chrs; } @@ -130,7 +130,7 @@ public class _SpreadsheetDocumentSettings extends MultiPropertyTest { throw new com.sun.star.container.NoSuchElementException(); } - public void setForbiddenCharacters(Locale rLocale, + public void setForbiddenCharacters(Locale rLocale, ForbiddenCharacters rForbiddenCharacters) { } @@ -138,8 +138,8 @@ public class _SpreadsheetDocumentSettings extends MultiPropertyTest { } public boolean hasForbiddenCharacters(Locale rLocale) { - if (rLocale.Country.equals(locale.Country) && - rLocale.Language.equals(locale.Language) && + if (rLocale.Country.equals(locale.Country) && + rLocale.Language.equals(locale.Language) && rLocale.Variant.equals(locale.Variant)) { return true; } diff --git a/qadevOOo/tests/java/ifc/sheet/_SpreadsheetViewSettings.java b/qadevOOo/tests/java/ifc/sheet/_SpreadsheetViewSettings.java index c857b2420020..9563db05ae08 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SpreadsheetViewSettings.java +++ b/qadevOOo/tests/java/ifc/sheet/_SpreadsheetViewSettings.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 @@ -62,7 +62,7 @@ import lib.MultiPropertyTest; */ public class _SpreadsheetViewSettings extends MultiPropertyTest { public void _ZoomType() { - testProperty("ZoomType", new Short(DocumentZoomType.PAGE_WIDTH), + testProperty("ZoomType", new Short(DocumentZoomType.PAGE_WIDTH), new Short(DocumentZoomType.BY_VALUE)); } diff --git a/qadevOOo/tests/java/ifc/sheet/_SubTotalDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_SubTotalDescriptor.java index c478a0f54252..9e6e381be1b1 100644 --- a/qadevOOo/tests/java/ifc/sheet/_SubTotalDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_SubTotalDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_TableAutoFormat.java b/qadevOOo/tests/java/ifc/sheet/_TableAutoFormat.java index bb86aa8bc069..14428e6f71a8 100644 --- a/qadevOOo/tests/java/ifc/sheet/_TableAutoFormat.java +++ b/qadevOOo/tests/java/ifc/sheet/_TableAutoFormat.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.java b/qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.java index 8b6f06acccd9..c7a6c82c178e 100644 --- a/qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.java +++ b/qadevOOo/tests/java/ifc/sheet/_TableAutoFormatField.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_TableValidation.java b/qadevOOo/tests/java/ifc/sheet/_TableValidation.java index 552664f71c68..0ba8b3606cfb 100644 --- a/qadevOOo/tests/java/ifc/sheet/_TableValidation.java +++ b/qadevOOo/tests/java/ifc/sheet/_TableValidation.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XActivationBroadcaster.java b/qadevOOo/tests/java/ifc/sheet/_XActivationBroadcaster.java index c4d03c5abf5f..0348452c611a 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XActivationBroadcaster.java +++ b/qadevOOo/tests/java/ifc/sheet/_XActivationBroadcaster.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 @@ -45,11 +45,11 @@ public class _XActivationBroadcaster extends MultiMethodTest { protected XSpreadsheet two = null; public void _addActivationEventListener() { - + log.println("trying to add an invalid listener"); oObj.addActivationEventListener(listener); log.println(".... OK"); - + log.println("adding a valid listener"); listener = new MyListener(); oObj.addActivationEventListener(listener); @@ -83,7 +83,7 @@ public class _XActivationBroadcaster extends MultiMethodTest { public void before() { xSpreadsheetView = (XSpreadsheetView) UnoRuntime.queryInterface( - XSpreadsheetView.class, + XSpreadsheetView.class, tEnv.getTestObject()); two = (XSpreadsheet) tEnv.getObjRelation("Sheet"); diff --git a/qadevOOo/tests/java/ifc/sheet/_XAreaLink.java b/qadevOOo/tests/java/ifc/sheet/_XAreaLink.java index 74a95f3b2a94..bbefd7e4c642 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XAreaLink.java +++ b/qadevOOo/tests/java/ifc/sheet/_XAreaLink.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XAreaLinks.java b/qadevOOo/tests/java/ifc/sheet/_XAreaLinks.java index 460bce6c3b84..04170976ba85 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XAreaLinks.java +++ b/qadevOOo/tests/java/ifc/sheet/_XAreaLinks.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java b/qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java index 7cb4d8aed12c..2c489e4c4f50 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java +++ b/qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.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 @@ -171,12 +171,12 @@ public class _XArrayFormulaRange extends MultiMethodTest { return p1 == s1.length() && p2 == s2.length() ; } - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); - } + } } diff --git a/qadevOOo/tests/java/ifc/sheet/_XCalculatable.java b/qadevOOo/tests/java/ifc/sheet/_XCalculatable.java index 36bb27423e25..712f74f7c596 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCalculatable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCalculatable.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 @@ -39,7 +39,7 @@ public class _XCalculatable extends MultiMethodTest { public XCalculatable oObj = null; private boolean bIsAutomaticCalculationEnabled = false; private XCell[] xCells = null; - + /** * Get object relation: four cells with values and formulas. * @see mod._sc.ScModelObj @@ -50,7 +50,7 @@ public class _XCalculatable extends MultiMethodTest { throw new StatusException(Status.failed("Couldn't find correct object relation 'XCalculatable.Cells'")); } - + /** * Restore begin setting */ @@ -58,8 +58,8 @@ public class _XCalculatable extends MultiMethodTest { // reset to begin value oObj.enableAutomaticCalculation(bIsAutomaticCalculationEnabled); } - - + + public void _calculate() { requiredMethod("isAutomaticCalculationEnabled()"); boolean result = true; @@ -73,7 +73,7 @@ public class _XCalculatable extends MultiMethodTest { result &= ergValue1 != ergValue2; tRes.tested("calculate()", result); } - + public void _calculateAll() { requiredMethod("isAutomaticCalculationEnabled()"); boolean result = true; @@ -88,18 +88,18 @@ public class _XCalculatable extends MultiMethodTest { oObj.calculateAll(); tRes.tested("calculateAll()", result); } - + public void _enableAutomaticCalculation() { bIsAutomaticCalculationEnabled = oObj.isAutomaticCalculationEnabled(); oObj.enableAutomaticCalculation(!bIsAutomaticCalculationEnabled); tRes.tested("enableAutomaticCalculation()", true); } - + public void _isAutomaticCalculationEnabled() { requiredMethod("enableAutomaticCalculation()"); boolean result = oObj.isAutomaticCalculationEnabled(); oObj.enableAutomaticCalculation(false); tRes.tested("isAutomaticCalculationEnabled()", result != bIsAutomaticCalculationEnabled); } - + } diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellAddressable.java b/qadevOOo/tests/java/ifc/sheet/_XCellAddressable.java index 777fe26b1e2e..d6d1d47b0e6a 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCellAddressable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCellAddressable.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellFormatRangesSupplier.java b/qadevOOo/tests/java/ifc/sheet/_XCellFormatRangesSupplier.java index 4bc93a7f613d..bf0c2a82bd5f 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCellFormatRangesSupplier.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCellFormatRangesSupplier.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 @@ -43,15 +43,15 @@ import com.sun.star.sheet.XCellFormatRangesSupplier; */ public class _XCellFormatRangesSupplier extends MultiMethodTest { - + public XCellFormatRangesSupplier oObj = null; - + /** * call the method getCellFormatRanges and returns OK result if * the gained XIndexAccess isn't null and the method checkIndexAccess * returns true. */ - + public void _getCellFormatRanges() { boolean res = true; XIndexAccess xIA = oObj.getCellFormatRanges(); @@ -63,12 +63,12 @@ public class _XCellFormatRangesSupplier extends MultiMethodTest { } tRes.tested("getCellFormatRanges()",res); } - + /** * calls the method getCount at the IndexAccess, returns true is it is >0 * and getByIndex() doesn't throw an exception for Indexes between 0 and count */ - + protected boolean checkIndexAccess(XIndexAccess xIA) { boolean res = true; int count = xIA.getCount(); @@ -88,5 +88,5 @@ public class _XCellFormatRangesSupplier extends MultiMethodTest { } return res; } - + } diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellRangeAddressable.java b/qadevOOo/tests/java/ifc/sheet/_XCellRangeAddressable.java index 300dcf30dca8..3c0a03f409e3 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCellRangeAddressable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCellRangeAddressable.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellRangeData.java b/qadevOOo/tests/java/ifc/sheet/_XCellRangeData.java index 8127164568b1..61c4b315f3e1 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCellRangeData.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCellRangeData.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 @@ -36,7 +36,7 @@ public class _XCellRangeData extends MultiMethodTest { public XCellRangeData oObj = null; private Object[][] maCRData = null; - + /** * Test calls the method * state is OK if the resulting Object array diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellRangeFormula.java b/qadevOOo/tests/java/ifc/sheet/_XCellRangeFormula.java index e408a3a2b1b0..4152a7d34ffd 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCellRangeFormula.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCellRangeFormula.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 @@ -32,9 +32,9 @@ import com.sun.star.sheet.XCellRangeFormula; public class _XCellRangeFormula extends lib.MultiMethodTest { public XCellRangeFormula oObj = null; - + public String[][] orgValue = null; - + public void _getFormulaArray() { Object noArray = tEnv.getObjRelation("noArray"); if (noArray != null) { @@ -44,7 +44,7 @@ public class _XCellRangeFormula extends lib.MultiMethodTest { + " the whole sheet"); tRes.tested("getFormulaArray()", true); return; - } + } orgValue = oObj.getFormulaArray(); String[][] newValue = oObj.getFormulaArray(); newValue[0][0] = "inserted"; @@ -63,9 +63,9 @@ public class _XCellRangeFormula extends lib.MultiMethodTest { + " the whole sheet"); tRes.tested("setFormulaArray()", true); return; - } + } oObj.setFormulaArray(orgValue); boolean res = oObj.getFormulaArray()[0][0].equals(orgValue[0][0]); tRes.tested("setFormulaArray()",res); - } + } } diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellRangeMovement.java b/qadevOOo/tests/java/ifc/sheet/_XCellRangeMovement.java index 13468122b25e..ef95f1d5a423 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCellRangeMovement.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCellRangeMovement.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellRangeReferrer.java b/qadevOOo/tests/java/ifc/sheet/_XCellRangeReferrer.java index 320c7940d03e..013504395955 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCellRangeReferrer.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCellRangeReferrer.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java b/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java index eac4a5a31d10..082bcd42fb74 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.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 @@ -49,7 +49,7 @@ import com.sun.star.uno.UnoRuntime; * <ul> * <li>"SHEET": an XSpreadSheet object * </li> - * <li>"XCellRangesQuery.EXPECTEDRESULTS": the expected results for the test + * <li>"XCellRangesQuery.EXPECTEDRESULTS": the expected results for the test * methods as a String array.<br> * @see mod._sc.ScCellCurserObj or * @see mod._sc.ScCellObj for an example how this should look like. @@ -73,7 +73,7 @@ public class _XCellRangesQuery extends MultiMethodTest { public static final int QUERYINTERSECTION = 4; public static final int QUERYROWDIFFERENCES = 5; public static final int QUERYVISIBLECELLS = 6; - + protected void before() { oSheet = (XSpreadsheet) tEnv.getObjRelation("SHEET"); @@ -94,13 +94,13 @@ public class _XCellRangesQuery extends MultiMethodTest { "XCellRangesQuery.EXPECTEDRESULTS"); XColumnRowRange oColumnRowRange = (XColumnRowRange) UnoRuntime.queryInterface( - XColumnRowRange.class, + XColumnRowRange.class, oSheet); oRows = (XTableRows)oColumnRowRange.getRows(); oColumns = (XTableColumns) oColumnRowRange.getColumns(); - // set this in object if the interface has to make its own settings - // and the environment has to be disposed: this is necessary for objects + // set this in object if the interface has to make its own settings + // and the environment has to be disposed: this is necessary for objects // that do not make entries on the sheet themselves Object o = tEnv.getObjRelation("XCellRangesQuery.CREATEENTRIES"); if (o != null && o instanceof Boolean) { @@ -116,7 +116,7 @@ public class _XCellRangesQuery extends MultiMethodTest { oSheet.getCellByPosition(2, 1).setFormula("=B2+B3"); oSheet.getCellByPosition(1, 3).setFormula("=B2+B4"); oSheet.getCellByPosition(3, 2).setFormula(""); - oSheet.getCellByPosition(3, 3).setFormula(""); + oSheet.getCellByPosition(3, 3).setFormula(""); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { log.println("Couldn't fill cells " + e.getLocalizedMessage()); } @@ -125,7 +125,7 @@ public class _XCellRangesQuery extends MultiMethodTest { } /** - * Tested method returns each cell of each column that is different to the + * Tested method returns each cell of each column that is different to the * cell in a given row */ public void _queryColumnDifferences() { @@ -145,7 +145,7 @@ public class _XCellRangesQuery extends MultiMethodTest { } /** - * Tested method returns all cells of a given type, defind in + * Tested method returns all cells of a given type, defind in * CellFlags * @see com.sun.star.sheet.CellFlags */ @@ -173,17 +173,17 @@ public class _XCellRangesQuery extends MultiMethodTest { XSheetCellRanges ranges = oObj.queryEmptyCells(); getting = ranges.getRangeAddressesAsString(); expected = mExpectedResults[QUERYEMPTYCELLS]; - + int startIndex = 0; int endIndex = -5; String checkString = null; - + while (endIndex != -1) { startIndex = endIndex + 5; endIndex = expected.indexOf(" ... ", startIndex); if (endIndex == -1) { checkString = expected.substring(startIndex); - } + } else { checkString = expected.substring(startIndex, endIndex); } @@ -199,7 +199,7 @@ public class _XCellRangesQuery extends MultiMethodTest { } /** - * Tested method returns all cells of a given type, defind in + * Tested method returns all cells of a given type, defind in * FormulaResult * @see com.sun.star.sheet.FormulaResult */ @@ -236,7 +236,7 @@ public class _XCellRangesQuery extends MultiMethodTest { } /** - * Tested method returns each cell of each row that is different to the + * Tested method returns each cell of each row that is different to the * cell in a given column */ public void _queryRowDifferences() { @@ -276,22 +276,22 @@ public class _XCellRangesQuery extends MultiMethodTest { protected void setRowVisible(boolean vis) { try { XPropertySet rowProp = (XPropertySet) UnoRuntime.queryInterface( - XPropertySet.class, + XPropertySet.class, oRows.getByIndex(0)); rowProp.setPropertyValue("IsVisible", new Boolean(vis)); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { log.println("couldn't get Row " + e.getLocalizedMessage()); } catch (com.sun.star.lang.WrappedTargetException e) { - log.println("problems setting Property 'isVisible' " + + log.println("problems setting Property 'isVisible' " + e.getLocalizedMessage()); } catch (com.sun.star.beans.UnknownPropertyException e) { - log.println("problems setting Property 'isVisible' " + + log.println("problems setting Property 'isVisible' " + e.getLocalizedMessage()); } catch (com.sun.star.beans.PropertyVetoException e) { - log.println("problems setting Property 'isVisible' " + + log.println("problems setting Property 'isVisible' " + e.getLocalizedMessage()); } catch (com.sun.star.lang.IllegalArgumentException e) { - log.println("problems setting Property 'isVisible' " + + log.println("problems setting Property 'isVisible' " + e.getLocalizedMessage()); } } diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellSeries.java b/qadevOOo/tests/java/ifc/sheet/_XCellSeries.java index 7ed3b4e61761..fc9c595d20bf 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCellSeries.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCellSeries.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 @@ -43,16 +43,16 @@ public class _XCellSeries extends MultiMethodTest { protected boolean isSpreadSheet = false; protected boolean fillAuto = true; protected boolean forceFillAuto = false; - + protected void before() { oSheet = (XSpreadsheet) tEnv.getObjRelation("SHEET"); - + if (oSheet == null) { log.println("Object relation oSheet is missing"); log.println("Trying to query the needed Interface"); oSheet = (XSpreadsheet) UnoRuntime.queryInterface( - XSpreadsheet.class, tEnv.getTestObject()); + XSpreadsheet.class, tEnv.getTestObject()); if (oSheet == null) { throw new StatusException(Status.failed( @@ -61,11 +61,11 @@ public class _XCellSeries extends MultiMethodTest { isSpreadSheet = true; } } - + Boolean myFillAuto = (Boolean) tEnv.getObjRelation("XCELLSERIES_FILLAUTO"); - + if (myFillAuto != null) fillAuto = myFillAuto.booleanValue(); - + if (tParam.containsKey("force_fillauto")){ fillAuto = tParam.getBool("force_fillauto"); forceFillAuto = tParam.getBool("force_fillauto"); @@ -73,14 +73,14 @@ public class _XCellSeries extends MultiMethodTest { } public void _fillAuto() { - + if ((isSpreadSheet && !forceFillAuto) || !fillAuto) { log.println("This method consumes to much time for a complete SpreadSheet"); log.println("Please use parameter '-force_fillauto true' to force this test"); tRes.tested("fillAuto()",Status.skipped(true)); return; } - + boolean res = true; try { @@ -125,13 +125,13 @@ public class _XCellSeries extends MultiMethodTest { } public void _fillSeries() { - + if (isSpreadSheet) { log.println("This method consumes to much time for a complete SpreadSheet"); tRes.tested("fillSeries()",Status.skipped(true)); return; } - + boolean res = true; try { @@ -142,16 +142,16 @@ public class _XCellSeries extends MultiMethodTest { log.println( "calling oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_RIGHT, com.sun.star.sheet.FillMode.LINEAR, com.sun.star.sheet.FillDateMode.FILL_DATE_DAY, 2, 8)"); - oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_RIGHT, - com.sun.star.sheet.FillMode.LINEAR, + oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_RIGHT, + com.sun.star.sheet.FillMode.LINEAR, com.sun.star.sheet.FillDateMode.FILL_DATE_DAY, 2, 8); oSheet.getCellByPosition(0, 4).setFormula("=sum(A1:D1)"); double getting = oSheet.getCellByPosition(0, 4).getValue(); boolean locres = (getting == 20); - + logger.finish(); - + if (!locres) { log.println("Operation failed"); } else { @@ -159,22 +159,22 @@ public class _XCellSeries extends MultiMethodTest { } res &= locres; - + logger = new LoggingThread((LogWriter)log, tParam); logger.start(); - + log.println( "calling oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_RIGHT, com.sun.star.sheet.FillMode.GROWTH, com.sun.star.sheet.FillDateMode.FILL_DATE_DAY, 2, 16)"); - oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_RIGHT, - com.sun.star.sheet.FillMode.GROWTH, - com.sun.star.sheet.FillDateMode.FILL_DATE_DAY, 2, + oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_RIGHT, + com.sun.star.sheet.FillMode.GROWTH, + com.sun.star.sheet.FillDateMode.FILL_DATE_DAY, 2, 16); oSheet.getCellByPosition(0, 4).setFormula("=sum(A1:D1)"); getting = oSheet.getCellByPosition(0, 4).getValue(); locres = (getting == 30); - + logger.finish(); - + if (!locres) { log.println("Operation failed"); } else { @@ -185,11 +185,11 @@ public class _XCellSeries extends MultiMethodTest { logger = new LoggingThread((LogWriter)log, tParam); logger.start(); - + log.println( "calling oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_BOTTOM, com.sun.star.sheet.FillMode.LINEAR, com.sun.star.sheet.FillDateMode.FILL_DATE_DAY, 2, 8)"); - oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_BOTTOM, - com.sun.star.sheet.FillMode.LINEAR, + oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_BOTTOM, + com.sun.star.sheet.FillMode.LINEAR, com.sun.star.sheet.FillDateMode.FILL_DATE_DAY, 2, 8); oSheet.getCellByPosition(4, 0).setFormula("=sum(A1:A4)"); getting = oSheet.getCellByPosition(4, 0).getValue(); @@ -207,12 +207,12 @@ public class _XCellSeries extends MultiMethodTest { logger = new LoggingThread((LogWriter)log, tParam); logger.start(); - + log.println( "calling oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_BOTTOM, com.sun.star.sheet.FillMode.GROWTH, com.sun.star.sheet.FillDateMode.FILL_DATE_DAY, 2, 16)"); - oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_BOTTOM, - com.sun.star.sheet.FillMode.GROWTH, - com.sun.star.sheet.FillDateMode.FILL_DATE_DAY, 2, + oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_BOTTOM, + com.sun.star.sheet.FillMode.GROWTH, + com.sun.star.sheet.FillDateMode.FILL_DATE_DAY, 2, 16); oSheet.getCellByPosition(4, 0).setFormula("=sum(A1:A4)"); getting = oSheet.getCellByPosition(4, 0).getValue(); @@ -234,11 +234,11 @@ public class _XCellSeries extends MultiMethodTest { tRes.tested("fillSeries()", res); } - + /** * Forces environment recreation. */ public void after() { disposeEnvironment(); - } + } }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/sheet/_XConsolidatable.java b/qadevOOo/tests/java/ifc/sheet/_XConsolidatable.java index 08fc51dc3672..a65b7bdc1784 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XConsolidatable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XConsolidatable.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 @@ -36,7 +36,7 @@ import lib.MultiMethodTest; public class _XConsolidatable extends MultiMethodTest { public XConsolidatable oObj = null; XConsolidationDescriptor xDescriptor = null; - + /** * Check consolidation */ @@ -45,7 +45,7 @@ public class _XConsolidatable extends MultiMethodTest { oObj.consolidate(xDescriptor); tRes.tested("consolidate()", true); } - + /** * Check the creation of a ConsolidationDescriptor */ diff --git a/qadevOOo/tests/java/ifc/sheet/_XConsolidationDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_XConsolidationDescriptor.java index f7638dacf5b4..85f149d05a5e 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XConsolidationDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_XConsolidationDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XDDELink.java b/qadevOOo/tests/java/ifc/sheet/_XDDELink.java index 5c475e3c0208..4d096e6c2a1b 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDDELink.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDDELink.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotDescriptor.java index e95aa5870d38..515f77bfe689 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotField.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotField.java index 6e29ad3ceaa4..da332e034100 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotField.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotField.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 @@ -55,11 +55,11 @@ public class _XDataPilotField extends MultiMethodTest { Object element = xIA.getByIndex(k); log.println("Element " + k + " = " + element); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { - log.println("Unexpected Exception while getting by Index (" + k + + log.println("Unexpected Exception while getting by Index (" + k + ")" + e.getMessage()); res &= false; } catch (com.sun.star.lang.WrappedTargetException e) { - log.println("Unexpected Exception while getting by Index (" + k + + log.println("Unexpected Exception while getting by Index (" + k + ")" + e.getMessage()); res &= false; } diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotFieldGrouping.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotFieldGrouping.java index 5f17837fdb0d..013abd362f92 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotFieldGrouping.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotFieldGrouping.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 @@ -42,7 +42,7 @@ import lib.MultiMethodTest; public class _XDataPilotFieldGrouping extends MultiMethodTest { public XDataPilotFieldGrouping oObj = null; - + public void _createNameGroup() { boolean result = true; try { @@ -56,7 +56,7 @@ public class _XDataPilotFieldGrouping extends MultiMethodTest } tRes.tested ("createNameGroup()",result); } - + public void _createDateGroup() { boolean result = true; try { @@ -69,5 +69,5 @@ public class _XDataPilotFieldGrouping extends MultiMethodTest result = false; } tRes.tested ("createDateGroup()",result); - } + } } diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable.java index a63617672ed8..4f7685b20e8f 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java index f3096efc12ab..d5ae775f90ab 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTable2.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 @@ -47,7 +47,7 @@ import lib.MultiMethodTest; import lib.Status; import lib.StatusException; -/** +/** * Testing <code>com.sun.star.sheet.XDataPilotTable2</code> * interface methods : * <ul> @@ -56,12 +56,12 @@ import lib.StatusException; * <li><code> insertDrillDownSheet()</code></li> * <li><code> getOutputRangeByType</code></li> * </ul> - * + * * @see com.sun.star.sheet.XDataPilotTable2 * @see com.sun.star.table.CellAddress - * + * */ -public class _XDataPilotTable2 extends MultiMethodTest +public class _XDataPilotTable2 extends MultiMethodTest { private XSpreadsheetDocument xSheetDoc = null; private XDataPilotTable2 xDPTab2 = null; @@ -71,13 +71,13 @@ public class _XDataPilotTable2 extends MultiMethodTest private ArrayList mDataFieldDims = null; private ArrayList mResultCells = null; - /** + /** * exception to be thrown when obtaining a result data for a cell fails * (probably because the cell is not a result cell). */ private class ResultCellFailure extends com.sun.star.uno.Exception {} - protected void before() + protected void before() { Object o = tEnv.getObjRelation("DATAPILOTTABLE2"); xDPTab2 = (XDataPilotTable2)UnoRuntime.queryInterface( @@ -101,7 +101,7 @@ public class _XDataPilotTable2 extends MultiMethodTest } } - public void _getDrillDownData() + public void _getDrillDownData() { boolean testResult = true; int cellCount = mResultCells.size(); @@ -133,7 +133,7 @@ public class _XDataPilotTable2 extends MultiMethodTest tRes.tested("getDrillDownData()", testResult); } - public void _getPositionData() + public void _getPositionData() { boolean testResult = false; @@ -192,7 +192,7 @@ public class _XDataPilotTable2 extends MultiMethodTest tRes.tested("getPositionData()", testResult); } - public void _insertDrillDownSheet() + public void _insertDrillDownSheet() { boolean testResult = true; int cellCount = mResultCells.size(); @@ -251,7 +251,7 @@ public class _XDataPilotTable2 extends MultiMethodTest String name = xNamed.getName(); try { - xSheets.removeByName(name); + xSheets.removeByName(name); } catch (com.sun.star.uno.Exception e) { @@ -279,13 +279,13 @@ public class _XDataPilotTable2 extends MultiMethodTest tRes.tested("insertDrillDownSheet()", testResult); } - public void _getOutputRangeByType() + public void _getOutputRangeByType() { boolean testResult = false; do { - // Let's make sure this doesn't cause a crash. A range returned for an + // Let's make sure this doesn't cause a crash. A range returned for an // out-of-bound condition is undefined. try { @@ -310,7 +310,7 @@ public class _XDataPilotTable2 extends MultiMethodTest } // Check to make sure the whole range is not empty. - if (mRangeWhole.EndColumn - mRangeWhole.StartColumn <= 0 || + if (mRangeWhole.EndColumn - mRangeWhole.StartColumn <= 0 || mRangeWhole.EndRow - mRangeWhole.EndColumn <= 0) { log.println("whole range is empty"); @@ -359,8 +359,8 @@ public class _XDataPilotTable2 extends MultiMethodTest else if (posData.PositionType == DataPilotTablePositionType.ROW_HEADER) posType = "row header"; - log.println(posType + "; member name: " + header.MemberName + "; dimension: " + - header.Dimension + "; hierarchy: " + header.Hierarchy + + log.println(posType + "; member name: " + header.MemberName + "; dimension: " + + header.Dimension + "; hierarchy: " + header.Hierarchy + "; level: " + header.Level); } @@ -372,7 +372,7 @@ public class _XDataPilotTable2 extends MultiMethodTest double val = res.Value; int flags = res.Flags; int filterCount = resultData.FieldFilters.length; - log.println("result; data field index: " + dataId + "; value: " + val + "; flags: " + flags + + log.println("result; data field index: " + dataId + "; value: " + val + "; flags: " + flags + "; filter count: " + filterCount); for (int i = 0; i < filterCount; ++i) @@ -436,7 +436,7 @@ public class _XDataPilotTable2 extends MultiMethodTest Object field = xFields.getByIndex(i); XPropertySet propSet = (XPropertySet)UnoRuntime.queryInterface( XPropertySet.class, field); - DataPilotFieldOrientation orient = + DataPilotFieldOrientation orient = (DataPilotFieldOrientation)propSet.getPropertyValue("Orientation"); if (orient == DataPilotFieldOrientation.DATA) { @@ -554,7 +554,7 @@ public class _XDataPilotTable2 extends MultiMethodTest { XCellRange xRng = xSheet.getCellRangeByPosition(nCol, nRow, nCol, nRow); XSheetCellRange xSCR = (XSheetCellRange)UnoRuntime.queryInterface( - XSheetCellRange.class, xRng); + XSheetCellRange.class, xRng); XSheetCellCursor xCursor = xSheet.createCursorByRange(xSCR); XCellCursor xCellCursor = (XCellCursor)UnoRuntime.queryInterface( diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTables.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTables.java index 09ee1da76551..da7201829e7a 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTables.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTables.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTablesSupplier.java b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTablesSupplier.java index a291d3513f8f..2bc14b2ce594 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDataPilotTablesSupplier.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDataPilotTablesSupplier.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XDatabaseRange.java b/qadevOOo/tests/java/ifc/sheet/_XDatabaseRange.java index 3b3d3713a5b2..32a1e96ea21a 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDatabaseRange.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDatabaseRange.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XDatabaseRanges.java b/qadevOOo/tests/java/ifc/sheet/_XDatabaseRanges.java index c5f5307cda41..a1ef293541b0 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDatabaseRanges.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDatabaseRanges.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XDocumentAuditing.java b/qadevOOo/tests/java/ifc/sheet/_XDocumentAuditing.java index 084ce09934c7..076eaac66aeb 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XDocumentAuditing.java +++ b/qadevOOo/tests/java/ifc/sheet/_XDocumentAuditing.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 @@ -49,7 +49,7 @@ import lib.Status; import lib.StatusException; /** - * + * */ public class _XDocumentAuditing extends MultiMethodTest { public XDocumentAuditing oObj = null; @@ -58,7 +58,7 @@ public class _XDocumentAuditing extends MultiMethodTest { int elementCount = 0; String sheetName = null; Point pos = null; - + public void before() { Exception ex = null; // get two sheets @@ -100,16 +100,16 @@ public class _XDocumentAuditing extends MultiMethodTest { } catch(com.sun.star.lang.IndexOutOfBoundsException e) { } // ignore exceptions, we'll run into next if statement anyway - catch(com.sun.star.lang.WrappedTargetException e) { + catch(com.sun.star.lang.WrappedTargetException e) { } } - if (xDrawPage == null) { + if (xDrawPage == null) { throw new StatusException(Status.failed("'XSheetAuditing.DrawPage' object relation not found.")); } if (xDrawPage.hasElements()) { elementCount = xDrawPage.getCount(); } - + // switch off the automatic refresh PropertyValue[] props = new PropertyValue[1]; props[0] = new PropertyValue(); @@ -136,7 +136,7 @@ public class _XDocumentAuditing extends MultiMethodTest { throw new StatusException("Could not set formulas on sheets.", e); } } - + public void after() { // switch the automatic refresh back on PropertyValue[] props = new PropertyValue[1]; @@ -146,10 +146,10 @@ public class _XDocumentAuditing extends MultiMethodTest { XModel xModel = (XModel)UnoRuntime.queryInterface(XModel.class, oObj); dispatch(xModel.getCurrentController().getFrame(), (XMultiServiceFactory)tParam.getMSF(), ".uno:AutoRefreshArrows", props); } - + public void _refreshArrows() { boolean result = true; - + Point p0 = pos; try { @@ -160,7 +160,7 @@ public class _XDocumentAuditing extends MultiMethodTest { catch(com.sun.star.lang.IndexOutOfBoundsException e) { throw new StatusException("Could not set formulas on sheets.", e); } - + result &= hasRightAmountOfShapes(1); Point p1 = pos; @@ -169,18 +169,18 @@ public class _XDocumentAuditing extends MultiMethodTest { result &= res; if (!res) log.println("Arrow has been refreshed, but this should have been switched off."); - + oObj.refreshArrows(); result &= hasRightAmountOfShapes(1); Point p2 = pos; - + // points have to differ res = (p1.X != p2.X || p1.Y != p2.Y); result &= res; if (!res) log.println("Arrow has not been refreshed."); - + tRes.tested("refreshArrows()", result); } @@ -212,7 +212,7 @@ public class _XDocumentAuditing extends MultiMethodTest { } return true; } - + private void dispatch(Object oProvider, XMultiServiceFactory xMSF, String url, PropertyValue[] prop) { XDispatchProvider xDispatchProvider = (XDispatchProvider)UnoRuntime.queryInterface(XDispatchProvider.class, oProvider); Object dispatcher = null; @@ -221,7 +221,7 @@ public class _XDocumentAuditing extends MultiMethodTest { } catch(com.sun.star.uno.Exception e) { } - + XDispatchHelper xDispatchHelper = (XDispatchHelper)UnoRuntime.queryInterface(XDispatchHelper.class, dispatcher); xDispatchHelper.executeDispatch(xDispatchProvider, url, "", 0, prop); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java b/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java index 2034bb892047..7277bed21313 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java +++ b/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.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 @@ -59,13 +59,13 @@ public class _XEnhancedMouseClickBroadcaster extends MultiMethodTest { protected boolean mouseReleased = false; protected XEnhancedMouseClickHandler listener = new MyListener(); private XModel docModel = null; - + public void before() { docModel = (XModel) UnoRuntime.queryInterface( XModel.class,tEnv.getObjRelation("FirstModel")); DesktopTools.bringWindowToFront(docModel); } - + public void _addEnhancedMouseClickHandler() { oObj.addEnhancedMouseClickHandler(listener); clickOnSheet(); @@ -92,19 +92,19 @@ public class _XEnhancedMouseClickBroadcaster extends MultiMethodTest { protected boolean clickOnSheet() { log.println("try to open contex menu..."); AccessibilityTools at = new AccessibilityTools(); - + XWindow xWindow = at.getCurrentWindow((XMultiServiceFactory)tParam.getMSF(), docModel); - + XAccessible xRoot = at.getAccessibleObject(xWindow); - + XInterface oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL); - + XAccessibleComponent window = (XAccessibleComponent) UnoRuntime.queryInterface( XAccessibleComponent.class, oObj); - + Point point = window.getLocationOnScreen(); Rectangle rect = window.getBounds(); - + log.println("klick mouse button..."); try { Robot rob = new Robot(); @@ -122,11 +122,11 @@ public class _XEnhancedMouseClickBroadcaster extends MultiMethodTest { rob.mousePress(InputEvent.BUTTON1_MASK); System.out.println("Release Button"); rob.mouseRelease(InputEvent.BUTTON1_MASK); - System.out.println("done "+rob.getAutoDelay()); + System.out.println("done "+rob.getAutoDelay()); } catch (java.awt.AWTException e) { log.println("couldn't press mouse button"); } - + return true; } diff --git a/qadevOOo/tests/java/ifc/sheet/_XFormulaQuery.java b/qadevOOo/tests/java/ifc/sheet/_XFormulaQuery.java index 3e04690ac47b..4c0fe8e53d7b 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XFormulaQuery.java +++ b/qadevOOo/tests/java/ifc/sheet/_XFormulaQuery.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 @@ -43,16 +43,16 @@ import com.sun.star.uno.UnoRuntime; * @author sw93809 */ public class _XFormulaQuery extends MultiMethodTest { - + public XFormulaQuery oObj; - + protected XSpreadsheet oSheet = null; private XCell mxCell; private int miQueryThisDependentRange = 1; private int miQueryThisPrecedentRange = 1; private int[] miExpectedDependentValues; private int[] miExpectedPrecedentValues; - + protected void before() { oSheet = (XSpreadsheet)tEnv.getObjRelation("SHEET"); @@ -78,7 +78,7 @@ public class _XFormulaQuery extends MultiMethodTest { throw new StatusException( Status.failed("Couldn't get initial cell")); } - } + } o = tEnv.getObjRelation("RANGEINDICES"); if (o != null) { @@ -98,7 +98,7 @@ public class _XFormulaQuery extends MultiMethodTest { miExpectedDependentValues[2] = 15; miExpectedDependentValues[3] = 15; } - + o = tEnv.getObjRelation("EXPECTEDPRECEDENTVALUES"); if (o != null) { miExpectedPrecedentValues = (int[])o; @@ -111,7 +111,7 @@ public class _XFormulaQuery extends MultiMethodTest { miExpectedPrecedentValues[3] = 15; } } - + public void _queryDependents() { boolean res = true; @@ -121,15 +121,15 @@ public class _XFormulaQuery extends MultiMethodTest { oSheet.getCellByPosition(1, 0).setValue(1); oSheet.getCellByPosition(2, 0).setValue(1); oSheet.getCellByPosition(3, 0).setValue(1); - + log.println( "calling oObj.queryDependents(false)"); - XSheetCellRanges getting = oObj.queryDependents(false); + XSheetCellRanges getting = oObj.queryDependents(false); CellRangeAddress[] range = getting.getRangeAddresses(); - - res = ((range[miQueryThisDependentRange].StartColumn==miExpectedDependentValues[0]) && - (range[miQueryThisDependentRange].EndColumn==miExpectedDependentValues[1]) && - (range[miQueryThisDependentRange].StartRow==miExpectedDependentValues[2]) && + + res = ((range[miQueryThisDependentRange].StartColumn==miExpectedDependentValues[0]) && + (range[miQueryThisDependentRange].EndColumn==miExpectedDependentValues[1]) && + (range[miQueryThisDependentRange].StartRow==miExpectedDependentValues[2]) && (range[miQueryThisDependentRange].EndRow==miExpectedDependentValues[3])); if (!res) { @@ -148,9 +148,9 @@ public class _XFormulaQuery extends MultiMethodTest { res = false; } - tRes.tested("queryDependents()", res); + tRes.tested("queryDependents()", res); } - + public void _queryPrecedents() { boolean res = true; @@ -161,15 +161,15 @@ public class _XFormulaQuery extends MultiMethodTest { oSheet.getCellByPosition(2, 0).setValue(1); oSheet.getCellByPosition(3, 0).setValue(1); oSheet.getCellByPosition(1, 2).setFormula("=A16*2"); - + log.println( "calling oObj.queryPrecedents(false)"); XSheetCellRanges getting = oObj.queryPrecedents(false); CellRangeAddress[] range = getting.getRangeAddresses(); - - res = ((range[miQueryThisPrecedentRange].StartColumn==miExpectedPrecedentValues[0]) && - (range[miQueryThisPrecedentRange].EndColumn==miExpectedPrecedentValues[1]) && - (range[miQueryThisPrecedentRange].StartRow==miExpectedPrecedentValues[2]) && + + res = ((range[miQueryThisPrecedentRange].StartColumn==miExpectedPrecedentValues[0]) && + (range[miQueryThisPrecedentRange].EndColumn==miExpectedPrecedentValues[1]) && + (range[miQueryThisPrecedentRange].StartRow==miExpectedPrecedentValues[2]) && (range[miQueryThisPrecedentRange].EndRow==miExpectedPrecedentValues[3])); if (!res) { @@ -188,14 +188,14 @@ public class _XFormulaQuery extends MultiMethodTest { res = false; } - tRes.tested("queryPrecedents()", res); + tRes.tested("queryPrecedents()", res); } - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); - } - + } + } diff --git a/qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions.java b/qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions.java index 5f16c7640fec..cb72d09bb32c 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions.java +++ b/qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XGoalSeek.java b/qadevOOo/tests/java/ifc/sheet/_XGoalSeek.java index 24dad9db4bda..b11a550e3ca3 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XGoalSeek.java +++ b/qadevOOo/tests/java/ifc/sheet/_XGoalSeek.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 @@ -70,7 +70,7 @@ public class _XGoalSeek extends MultiMethodTest { if (ex != null) { throw new StatusException("Could not get a sheet.", ex); } - + // set value and formula try { xSheet.getCellByPosition(3, 4).setValue(9); @@ -82,7 +82,7 @@ public class _XGoalSeek extends MultiMethodTest { throw new StatusException("Could not get set formulas on the sheet.", e); } } - + public void _seekGoal() { boolean result = true; double divergence = 0.01; @@ -90,7 +90,7 @@ public class _XGoalSeek extends MultiMethodTest { log.println("Goal Result: " + goal.Result + " Divergence: " + goal.Divergence); result &= goal.Divergence < divergence; result &= goal.Result > 16 - divergence || goal.Result < 16 + divergence; - + goal = oObj.seekGoal(aFormula, aValue, "-4"); log.println("Goal Result: " + goal.Result + " Divergence: " + goal.Divergence); result &= goal.Divergence > 1/divergence; @@ -106,7 +106,7 @@ public class _XGoalSeek extends MultiMethodTest { log.println("Goal Result: " + goal.Result + " Divergence: " + goal.Divergence); result &= goal.Divergence < divergence; result &= goal.Result > 16 - divergence || goal.Result < 16 + divergence; - + tRes.tested("seekGoal()", result); } } diff --git a/qadevOOo/tests/java/ifc/sheet/_XHeaderFooterContent.java b/qadevOOo/tests/java/ifc/sheet/_XHeaderFooterContent.java index d3ee84f7cdc2..3e2561c6f268 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XHeaderFooterContent.java +++ b/qadevOOo/tests/java/ifc/sheet/_XHeaderFooterContent.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XLabelRange.java b/qadevOOo/tests/java/ifc/sheet/_XLabelRange.java index 3bc34fdef5bd..cb58d33dec91 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XLabelRange.java +++ b/qadevOOo/tests/java/ifc/sheet/_XLabelRange.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XLabelRanges.java b/qadevOOo/tests/java/ifc/sheet/_XLabelRanges.java index 9d4d28ff634c..292eb6d1209c 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XLabelRanges.java +++ b/qadevOOo/tests/java/ifc/sheet/_XLabelRanges.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XMultipleOperation.java b/qadevOOo/tests/java/ifc/sheet/_XMultipleOperation.java index e10ca8d55f2f..3ae800e78d38 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XMultipleOperation.java +++ b/qadevOOo/tests/java/ifc/sheet/_XMultipleOperation.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 @@ -64,7 +64,7 @@ public class _XMultipleOperation extends MultiMethodTest { boolean res = true; XCellRange cellRange = oSheet.getCellRangeByName("$A$17:$A$17"); XCellRangeAddressable CRA = (XCellRangeAddressable) UnoRuntime.queryInterface( - XCellRangeAddressable.class, + XCellRangeAddressable.class, cellRange); XCell cell = null; XCell cell2 = null; @@ -88,7 +88,7 @@ public class _XMultipleOperation extends MultiMethodTest { log.println("filling cells"); fillCells(); log.println("setting TableOperation with parameter ROW"); - oObj.setTableOperation(CRA.getRangeAddress(), TableOperationMode.ROW, + oObj.setTableOperation(CRA.getRangeAddress(), TableOperationMode.ROW, CA.getCellAddress(), CA2.getCellAddress()); log.println("checking values"); cellCoords = new Point[] { @@ -100,8 +100,8 @@ public class _XMultipleOperation extends MultiMethodTest { log.println("filling cells"); fillCells(); log.println("setting TableOperation with parameter COLUMN"); - oObj.setTableOperation(CRA.getRangeAddress(), - TableOperationMode.COLUMN, CA.getCellAddress(), + oObj.setTableOperation(CRA.getRangeAddress(), + TableOperationMode.COLUMN, CA.getCellAddress(), CA2.getCellAddress()); log.println("checking values"); cellCoords = new Point[] { @@ -114,8 +114,8 @@ public class _XMultipleOperation extends MultiMethodTest { log.println("filling cells"); fillCells(); log.println("setting TableOperation with parameter BOTH"); - oObj.setTableOperation(CRA.getRangeAddress(), - TableOperationMode.BOTH, + oObj.setTableOperation(CRA.getRangeAddress(), + TableOperationMode.BOTH, CA.getCellAddress(), CA2.getCellAddress()); log.println("checking values"); cellCoords = new Point[] { @@ -148,23 +148,23 @@ public class _XMultipleOperation extends MultiMethodTest { for (int i = 0; i < cellValues.length; i++) { try { - boolean locres = oSheet.getCellByPosition(cellCoords[i].X, + boolean locres = oSheet.getCellByPosition(cellCoords[i].X, cellCoords[i].Y) .getValue() == cellValues[i]; res &= locres; if (!locres) { - log.println("Result differs for cell (" + - cellCoords[i].X + "," + cellCoords[i].Y + + log.println("Result differs for cell (" + + cellCoords[i].X + "," + cellCoords[i].Y + ")"); log.println("Expected: " + cellValues[i]); - log.println("Getting: " + - oSheet.getCellByPosition(cellCoords[i].X, + log.println("Getting: " + + oSheet.getCellByPosition(cellCoords[i].X, cellCoords[i].Y) .getValue()); } } catch (com.sun.star.lang.IndexOutOfBoundsException e) { - log.println("Exception while checking Values " + + log.println("Exception while checking Values " + e.getMessage()); res &= false; } diff --git a/qadevOOo/tests/java/ifc/sheet/_XNamedRange.java b/qadevOOo/tests/java/ifc/sheet/_XNamedRange.java index 06c76956adff..909e84afa1be 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XNamedRange.java +++ b/qadevOOo/tests/java/ifc/sheet/_XNamedRange.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XNamedRanges.java b/qadevOOo/tests/java/ifc/sheet/_XNamedRanges.java index 6baffd4bfdfe..4151fdfbc387 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XNamedRanges.java +++ b/qadevOOo/tests/java/ifc/sheet/_XNamedRanges.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XPrintAreas.java b/qadevOOo/tests/java/ifc/sheet/_XPrintAreas.java index 9c4e865bd52a..1edcb825e692 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XPrintAreas.java +++ b/qadevOOo/tests/java/ifc/sheet/_XPrintAreas.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 @@ -42,7 +42,7 @@ public class _XPrintAreas extends MultiMethodTest { CellRangeAddress subaddress = null; CellRangeAddress titleColumns; CellRangeAddress titleRows; - + public void before() { address = (CellRangeAddress)tEnv.getObjRelation("CellRangeAddress"); subaddress = (CellRangeAddress)tEnv.getObjRelation("CellRangeSubAddress"); @@ -51,7 +51,7 @@ public class _XPrintAreas extends MultiMethodTest { if (subaddress == null) throw new StatusException(Status.failed("Object relation CellRangeSubAddress not found")); } - + public void _getPrintAreas() { requiredMethod("getPrintTitleColumns()"); requiredMethod("getPrintTitleRows()"); @@ -64,32 +64,32 @@ public class _XPrintAreas extends MultiMethodTest { oObj.setPrintAreas(null); printAreas = oObj.getPrintAreas(); ret &= printAreas.length == 0; - + tRes.tested("getPrintAreas()", ret); } - + public void _getPrintTitleColumns() { requiredMethod("setPrintTitleColumns()"); tRes.tested("getPrintTitleColumns()", !oObj.getPrintTitleColumns()); } - + public void _getPrintTitleRows() { requiredMethod("setPrintTitleRows()"); tRes.tested("getPrintTitleRows()", !oObj.getPrintTitleRows()); } - + public void _getTitleColumns() { requiredMethod("setTitleColumns()"); CellRangeAddress setValue = oObj.getTitleColumns(); tRes.tested("getTitleColumns()", ValueComparer.equalValue(setValue,titleColumns)); } - + public void _getTitleRows() { requiredMethod("setTitleRows()"); CellRangeAddress setValue = oObj.getTitleRows(); tRes.tested("getTitleRows()", ValueComparer.equalValue(setValue,titleRows)); } - + public void _setPrintAreas() { boolean ret = false; CellRangeAddress[]setValue = new CellRangeAddress[]{subaddress}; @@ -102,7 +102,7 @@ public class _XPrintAreas extends MultiMethodTest { ret &= ValueComparer.equalValue(newVal, setValue); tRes.tested("setPrintAreas()", ret); } - + public void _setPrintTitleColumns() { requiredMethod("setTitleColumns()"); boolean ret = false; @@ -112,7 +112,7 @@ public class _XPrintAreas extends MultiMethodTest { oObj.setPrintTitleColumns(false); tRes.tested("setPrintTitleColumns()", ret); } - + public void _setPrintTitleRows() { requiredMethod("setTitleRows()"); boolean ret = false; @@ -122,7 +122,7 @@ public class _XPrintAreas extends MultiMethodTest { oObj.setPrintTitleRows(false); tRes.tested("setPrintTitleRows()", ret); } - + public void _setTitleColumns() { requiredMethod("setPrintAreas()"); boolean ret = false; @@ -138,7 +138,7 @@ public class _XPrintAreas extends MultiMethodTest { oObj.setTitleColumns(titleColumns); tRes.tested("setTitleColumns()", ret); } - + public void _setTitleRows() { requiredMethod("setPrintAreas()"); boolean ret = false; diff --git a/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java b/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java index bb61dbe55049..9af63c12204c 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java +++ b/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.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 @@ -60,7 +60,7 @@ import util.AccessibilityTools; public class _XRangeSelection extends MultiMethodTest { public XRangeSelection oObj = null; MyRangeSelectionListener aListener = null; - + public void before() { aListener = new _XRangeSelection.MyRangeSelectionListener(log); // workaround for i34499 @@ -72,44 +72,44 @@ public class _XRangeSelection extends MultiMethodTest { xTopWindow.toFront(); util.utils.shortWait(500); } - - + + public void _abortRangeSelection() { requiredMethod("removeRangeSelectionChangeListener()"); requiredMethod("removeRangeSelectionListener()"); oObj.abortRangeSelection(); tRes.tested("abortRangeSelection()", true); } - + public void _addRangeSelectionChangeListener() { oObj.addRangeSelectionChangeListener(aListener); tRes.tested("addRangeSelectionChangeListener()", true); } - + public void _addRangeSelectionListener() { oObj.addRangeSelectionListener(aListener); tRes.tested("addRangeSelectionListener()", true); } - + public void _removeRangeSelectionChangeListener() { oObj.removeRangeSelectionChangeListener(aListener); tRes.tested("removeRangeSelectionChangeListener()", true); } - + public void _removeRangeSelectionListener() { oObj.removeRangeSelectionListener(aListener); tRes.tested("removeRangeSelectionListener()", true); } - + public void _startRangeSelection() { requiredMethod("addRangeSelectionChangeListener()"); requiredMethod("addRangeSelectionListener()"); - + // get the sheet center Point center = getSheetCenter();; if (center == null) throw new StatusException(Status.failed("Couldn't get the sheet center.")); - + PropertyValue[] props = new PropertyValue[3]; props[0] = new PropertyValue(); props[0].Name = "InitialValue"; @@ -138,7 +138,7 @@ public class _XRangeSelection extends MultiMethodTest { util.utils.shortWait(5000); // System.out.println("X: " + closer.X + " Y: " + closer.Y); - + // just check that we do not have the page instead of the range descriptor /* int childCount = xRoot.getAccessibleContext().getAccessibleChildCount(); if (childCount > 3) {// too many children: wrong type @@ -149,10 +149,10 @@ public class _XRangeSelection extends MultiMethodTest { xAcc = xRoot.getAccessibleContext().getAccessibleChild(1); } catch(com.sun.star.lang.IndexOutOfBoundsException e) { - + } accTools.printAccessibleTree(log, xAcc); -*/ +*/ // open a new range selection props[0].Value = "C4:E6"; oObj.startRangeSelection(props); @@ -160,16 +160,16 @@ public class _XRangeSelection extends MultiMethodTest { props[0].Value = "C2:E3"; oObj.startRangeSelection(props); util.utils.shortWait(1000); - + oObj.startRangeSelection(props); util.utils.shortWait(1000); oObj.abortRangeSelection(); aListener.reset(); System.out.println("Listener called: " + aListener.bAbortCalled); - + tRes.tested("startRangeSelection()", aListener.listenerCalled()); } - + /** * Determine the current top window center and return this as a point. * @ return a point representing the sheet center. @@ -178,11 +178,11 @@ public class _XRangeSelection extends MultiMethodTest { log.println("Trying to get AccessibleSpreadsheet"); AccessibilityTools at = new AccessibilityTools(); XComponent xSheetDoc = (XComponent) tEnv.getObjRelation("DOCUMENT"); - + XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, xSheetDoc); System.out.println("Name: " + xModel.getCurrentController().getFrame().getName()); - + XWindow xWindow = at.getCurrentWindow((XMultiServiceFactory)tParam.getMSF(), xModel); XAccessible xRoot = at.getAccessibleObject(xWindow); @@ -190,10 +190,10 @@ public class _XRangeSelection extends MultiMethodTest { XAccessibleComponent AccessibleSpreadsheet = (XAccessibleComponent) UnoRuntime.queryInterface(XAccessibleComponent.class,AccessibilityTools.SearchedContext); - log.println("Got " + util.utils.getImplName(AccessibleSpreadsheet)); + log.println("Got " + util.utils.getImplName(AccessibleSpreadsheet)); Object toolkit = null; - + try { toolkit = ((XMultiServiceFactory)tParam.getMSF()).createInstance("com.sun.star.awt.Toolkit"); } catch (com.sun.star.uno.Exception e) { @@ -203,14 +203,14 @@ public class _XRangeSelection extends MultiMethodTest { } XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface( - XExtendedToolkit.class, toolkit); - + XExtendedToolkit.class, toolkit); + XTopWindow tw = null; - + int k = tk.getTopWindowCount(); for (int i=0;i<k;i++) { try { - XTopWindow tw_temp = tk.getTopWindow(i); + XTopWindow tw_temp = tk.getTopWindow(i); XAccessible xacc = (XAccessible) UnoRuntime.queryInterface(XAccessible.class, tw_temp); if (xacc != null) { if (xacc.getAccessibleContext().getAccessibleName().indexOf("d2")>0) { @@ -227,7 +227,7 @@ public class _XRangeSelection extends MultiMethodTest { System.out.println("No TopWindow :-("); return null; } - + Point point = AccessibleSpreadsheet.getLocationOnScreen(); Rectangle rect = AccessibleSpreadsheet.getBounds(); Point retPoint = new Point(); @@ -235,7 +235,7 @@ public class _XRangeSelection extends MultiMethodTest { retPoint.Y = point.Y + (rect.Height / 2); return retPoint; } - + /** * Get the closer button on the right top of the current window. * @return A point representing the closer button. @@ -251,12 +251,12 @@ public class _XRangeSelection extends MultiMethodTest { } XExtendedToolkit xExtendedToolkit = (XExtendedToolkit)UnoRuntime.queryInterface(XExtendedToolkit.class, aToolkit); XTopWindow tw = null; - + XAccessibleComponent xAccessibleComponent = null; int k = xExtendedToolkit.getTopWindowCount(); for (int i=0;i<k;i++) { try { - XTopWindow tw_temp = xExtendedToolkit.getTopWindow(i); + XTopWindow tw_temp = xExtendedToolkit.getTopWindow(i); XAccessible xacc = (XAccessible)UnoRuntime.queryInterface(XAccessible.class, tw_temp); if (xacc != null) { System.out.println("Name: " + xacc.getAccessibleContext().getAccessibleName()); @@ -269,7 +269,7 @@ public class _XRangeSelection extends MultiMethodTest { else System.out.println("########## KLAPPT ########## "); } - } + } else { log.println("\t unknown window"); } @@ -281,10 +281,10 @@ public class _XRangeSelection extends MultiMethodTest { System.out.println("No TopWindow :-("); return null; } - + XWindow xWindow = (XWindow)UnoRuntime.queryInterface(XWindow.class, tw); Rectangle posSize = xWindow.getPosSize(); - + // compare the center point with the dimensions of the current top window boolean windowOK = false; while(!windowOK) { @@ -302,7 +302,7 @@ public class _XRangeSelection extends MultiMethodTest { else { windowOK = true; } - + } Point p = xAccessibleComponent.getLocationOnScreen(); @@ -313,8 +313,8 @@ public class _XRangeSelection extends MultiMethodTest { closer.Y = p.Y + 5; System.out.println("Closer: " + closer.X + " " + closer.Y); return closer; - } - + } + protected boolean clickOnSheet(Point point) { log.println("Clicking in the center of the AccessibleSpreadsheet"); @@ -328,10 +328,10 @@ public class _XRangeSelection extends MultiMethodTest { } catch (java.awt.AWTException e) { log.println("couldn't press mouse button"); } - + return true; } - + /** * */ @@ -344,32 +344,32 @@ public class _XRangeSelection extends MultiMethodTest { public MyRangeSelectionListener(PrintWriter log) { this.log = log; } - + public void aborted(RangeSelectionEvent rangeSelectionEvent) { log.println("Called 'aborted' with: " + rangeSelectionEvent.RangeDescriptor); bAbortCalled = true; } - + public void descriptorChanged(RangeSelectionEvent rangeSelectionEvent) { log.println("Called 'descriptorChanged' with: " + rangeSelectionEvent.RangeDescriptor); bChangeCalled = true; } - + public void done(RangeSelectionEvent rangeSelectionEvent) { log.println("Called 'done' with: " + rangeSelectionEvent.RangeDescriptor); bDoneCalled = true; } - + public boolean listenerCalled() { return bAbortCalled & bChangeCalled & bDoneCalled; } - + public void reset() { bAbortCalled = false; bChangeCalled = false; bDoneCalled = false; } - + /** * ignore disposing * @param eventObject The event. diff --git a/qadevOOo/tests/java/ifc/sheet/_XRecentFunctions.java b/qadevOOo/tests/java/ifc/sheet/_XRecentFunctions.java index 117e7607e1c0..87ac408e0249 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XRecentFunctions.java +++ b/qadevOOo/tests/java/ifc/sheet/_XRecentFunctions.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 @@ -118,7 +118,7 @@ public class _XRecentFunctions extends MultiMethodTest { requiredMethod("getMaxRecentFunctions()"); boolean bResult = true; - int[] IDs = new int[0]; + int[] IDs = new int[0]; XNameAccess functionList = null; log.println("First, get the set of available functions."); diff --git a/qadevOOo/tests/java/ifc/sheet/_XScenario.java b/qadevOOo/tests/java/ifc/sheet/_XScenario.java index ea158b8a2cd1..cb00fb56dd8a 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XScenario.java +++ b/qadevOOo/tests/java/ifc/sheet/_XScenario.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 @@ -39,7 +39,7 @@ public class _XScenario extends MultiMethodTest { CellRangeAddress address = null; String comment = null; boolean skipTest = false; - + public void before() { // testing a scenario containing the whole sheet does not make sense. // test is skipped until this interface is implemented somewhere else @@ -54,7 +54,7 @@ public class _XScenario extends MultiMethodTest { oObj.addRanges(new CellRangeAddress[] {address}); tRes.tested("addRanges()", true); } - + public void _apply() { requiredMethod("addRanges()"); if (skipTest) { @@ -64,7 +64,7 @@ public class _XScenario extends MultiMethodTest { oObj.apply(); tRes.tested("apply()", true); } - + public void _getIsScenario() { requiredMethod("apply()"); if (skipTest) { @@ -74,7 +74,7 @@ public class _XScenario extends MultiMethodTest { boolean getIs = oObj.getIsScenario(); tRes.tested("getIsScenario()", getIs); } - + public void _getScenarioComment() { if (skipTest) { tRes.tested("getScenarioComment()",Status.skipped(true)); @@ -83,7 +83,7 @@ public class _XScenario extends MultiMethodTest { comment = oObj.getScenarioComment(); tRes.tested("getScenarioComment()", true); } - + public void _setScenarioComment() { requiredMethod("getScenarioComment()"); if (skipTest) { diff --git a/qadevOOo/tests/java/ifc/sheet/_XScenarioEnhanced.java b/qadevOOo/tests/java/ifc/sheet/_XScenarioEnhanced.java index 42fac78d7d81..cdaea811b686 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XScenarioEnhanced.java +++ b/qadevOOo/tests/java/ifc/sheet/_XScenarioEnhanced.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 @@ -42,7 +42,7 @@ public class _XScenarioEnhanced extends MultiMethodTest { public void before() { oObj = (XScenarioEnhanced) UnoRuntime.queryInterface( - XScenarioEnhanced.class, + XScenarioEnhanced.class, tEnv.getObjRelation("ScenarioSheet")); } @@ -55,35 +55,35 @@ public class _XScenarioEnhanced extends MultiMethodTest { if (!(first.Sheet == 1)) { log.println( - "wrong RangeAddress is returned, expected Sheet=0 and got " + + "wrong RangeAddress is returned, expected Sheet=0 and got " + first.Sheet); res = false; } if (!(first.StartColumn == 0)) { log.println( - "wrong RangeAddress is returned, expected StartColumn=0 and got " + + "wrong RangeAddress is returned, expected StartColumn=0 and got " + first.StartColumn); res = false; } if (!(first.EndColumn == 10)) { log.println( - "wrong RangeAddress is returned, expected EndColumn=10 and got " + + "wrong RangeAddress is returned, expected EndColumn=10 and got " + first.EndColumn); res = false; } if (!(first.StartRow == 0)) { log.println( - "wrong RangeAddress is returned, expected StartRow=0 and got " + + "wrong RangeAddress is returned, expected StartRow=0 and got " + first.StartRow); res = false; } if (!(first.EndRow == 10)) { log.println( - "wrong RangeAddress is returned, expected EndRow=10 and got " + + "wrong RangeAddress is returned, expected EndRow=10 and got " + first.EndRow); res = false; } diff --git a/qadevOOo/tests/java/ifc/sheet/_XScenarios.java b/qadevOOo/tests/java/ifc/sheet/_XScenarios.java index efd4dcb458a0..0935e18b59f2 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XScenarios.java +++ b/qadevOOo/tests/java/ifc/sheet/_XScenarios.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XScenariosSupplier.java b/qadevOOo/tests/java/ifc/sheet/_XScenariosSupplier.java index f1766b82a7da..286bed8eebff 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XScenariosSupplier.java +++ b/qadevOOo/tests/java/ifc/sheet/_XScenariosSupplier.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotation.java b/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotation.java index a50d63f817f9..865a987458b8 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotation.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotation.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotationAnchor.java b/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotationAnchor.java index 76a5b97b0aaf..74a0aa4fa42f 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotationAnchor.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotationAnchor.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 @@ -45,14 +45,14 @@ import com.sun.star.uno.UnoRuntime; */ public class _XSheetAnnotationAnchor extends MultiMethodTest { - public XSheetAnnotationAnchor oObj = null; + public XSheetAnnotationAnchor oObj = null; protected XSheetAnnotation anno = null; public void _getAnnotation() { anno = oObj.getAnnotation(); tRes.tested("getAnnotation()",checkAnnotation()); } - + protected boolean checkAnnotation() { boolean res = true; res &= check_getAuthor(); @@ -62,7 +62,7 @@ public class _XSheetAnnotationAnchor extends MultiMethodTest { res &= check_setIsVisible(); return res; } - + /** * Gets the author of annotation. <p> * Returns <b>true</b> if not null value returned. @@ -127,6 +127,6 @@ public class _XSheetAnnotationAnchor extends MultiMethodTest { } return bResult; - } + } }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotationShapeSupplier.java b/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotationShapeSupplier.java index 9b0f3c193b73..9cd3e9823370 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotationShapeSupplier.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotationShapeSupplier.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 @@ -34,10 +34,10 @@ import lib.MultiMethodTest; public class _XSheetAnnotationShapeSupplier extends MultiMethodTest { public XSheetAnnotationShapeSupplier oObj = null; - + public void _getAnnotationShape() { XShape xShape = oObj.getAnnotationShape (); tRes.tested ("getAnnotationShape()",xShape!=null); } - + } diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotations.java b/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotations.java index d24f2cbf9416..ce53a48b867a 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotations.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotations.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotationsSupplier.java b/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotationsSupplier.java index 544d19c8f630..5946d646762d 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotationsSupplier.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetAnnotationsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java b/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java index a721275ed684..d3efe367b0f4 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.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 @@ -54,7 +54,7 @@ public class _XSheetAuditing extends MultiMethodTest { XCell xDependentAddress = null; XDrawPage xDrawPage = null; int elementCount = 0; - + public void before() { address = (CellAddress)tEnv.getObjRelation("XSheetAuditing.CellAddress"); precedentAddress = (CellAddress)tEnv.getObjRelation("XSheetAuditing.PrecedentCellAddress"); @@ -62,7 +62,7 @@ public class _XSheetAuditing extends MultiMethodTest { if (address == null || precedentAddress == null || dependentAddress == null) { throw new StatusException(Status.failed("Necessary CellAddress object relations not found.")); } - + // get the draw page for checking the shapes xDrawPage = (XDrawPage)tEnv.getObjRelation("XSheetAuditing.DrawPage"); if (xDrawPage == null) { // get from object @@ -70,18 +70,18 @@ public class _XSheetAuditing extends MultiMethodTest { UnoRuntime.queryInterface(XDrawPageSupplier.class, oObj); xDrawPage = (XDrawPage) oDPS.getDrawPage(); } - if (xDrawPage == null) { + if (xDrawPage == null) { throw new StatusException(Status.failed("'XSheetAuditing.DrawPage' object relation not found.")); } if (xDrawPage.hasElements()) { elementCount = xDrawPage.getCount(); } - + // get a sheet for changing the cells XSpreadsheet xSheet = (XSpreadsheet)tEnv.getObjRelation("XSheetAuditing.Spreadsheet"); if (xSheet == null) // query on ther object xSheet = (XSpreadsheet)UnoRuntime.queryInterface(XSpreadsheet.class, oObj); - if (xSheet == null) + if (xSheet == null) throw new StatusException(Status.failed("'XSheetAuditing.Spreadsheet' object relation not found.")); try { xAddress = xSheet.getCellByPosition(address.Column, address.Row); @@ -103,26 +103,26 @@ public class _XSheetAuditing extends MultiMethodTest { erg &= hasRightAmountOfShapes(0); tRes.tested("clearArrows()", erg); } - + public void _hideDependents() { requiredMethod("showDependents()"); oObj.hideDependents(address); tRes.tested("hideDependents()", hasRightAmountOfShapes(0)); } - + public void _hidePrecedents() { requiredMethod("showPrecedents()"); // requiredMethod("showPrecedents()"); oObj.hidePrecedents(address); tRes.tested("hidePrecedents()", hasRightAmountOfShapes(0)); } - + public void _showDependents() { requiredMethod("hidePrecedents()"); oObj.showDependents(address); tRes.tested("showDependents()", hasRightAmountOfShapes(1)); } - + public void _showErrors() { requiredMethod("clearArrows()"); // construct an error: square root from -3 @@ -138,7 +138,7 @@ public class _XSheetAuditing extends MultiMethodTest { erg &= hasRightAmountOfShapes(2); tRes.tested("showErrors()", erg); } - + public void _showInvalid() { requiredMethod("showErrors()"); boolean result = true; @@ -167,15 +167,15 @@ public class _XSheetAuditing extends MultiMethodTest { e.printStackTrace((java.io.PrintWriter)log); result = false; } - + tRes.tested("showInvalid()", result); } - + public void _showPrecedents() { oObj.showPrecedents(address); tRes.tested("showPrecedents()", hasRightAmountOfShapes(2)); } - + /** * Check if the amount of shapes is the right one after displaying that stuff * 2do improve this: check taht the shapes are the correct ones -> convwatch diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetCellCursor.java b/qadevOOo/tests/java/ifc/sheet/_XSheetCellCursor.java index ec484f9bf0d6..7c81f9dc7d29 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetCellCursor.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetCellCursor.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetCellRange.java b/qadevOOo/tests/java/ifc/sheet/_XSheetCellRange.java index 95688c660c91..58b0fa44bd32 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetCellRange.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetCellRange.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetCellRangeContainer.java b/qadevOOo/tests/java/ifc/sheet/_XSheetCellRangeContainer.java index 230306b300cd..a877fcd16159 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetCellRangeContainer.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetCellRangeContainer.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 @@ -194,12 +194,12 @@ public class _XSheetCellRangeContainer extends MultiMethodTest { log.println("Elements after removing: " + cnt); tRes.tested("removeRangeAddresses()" ,result); } - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); - } + } } diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetCellRanges.java b/qadevOOo/tests/java/ifc/sheet/_XSheetCellRanges.java index c64aeae807c4..cf5ca59929b3 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetCellRanges.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetCellRanges.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 @@ -81,7 +81,7 @@ public class _XSheetCellRanges extends MultiMethodTest{ */ public void _getRangeAddressesAsString() { log.println("Testing getRangeAddressesAsString ..."); - String oRanges = oObj.getRangeAddressesAsString(); + String oRanges = oObj.getRangeAddressesAsString(); tRes.tested("getRangeAddressesAsString()",oRanges.indexOf("C1:D4")>0); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetCondition.java b/qadevOOo/tests/java/ifc/sheet/_XSheetCondition.java index 05b0e0f4a3c0..0946511e7ad6 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetCondition.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetCondition.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntries.java b/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntries.java index ba8448366bca..0365a6a5079a 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntries.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntries.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntry.java b/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntry.java index efa3fcc44862..2d8c920b12a5 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntry.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetConditionalEntry.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetFilterDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_XSheetFilterDescriptor.java index ebb6a0a6db57..306742181734 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetFilterDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetFilterDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetFilterable.java b/qadevOOo/tests/java/ifc/sheet/_XSheetFilterable.java index 385b7a2e150d..bd5ca3fcaf4b 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetFilterable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetFilterable.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 @@ -92,11 +92,11 @@ public class _XSheetFilterable extends MultiMethodTest { oObj.filter(desc); XColumnRowRange oColumnRowRange = (XColumnRowRange) UnoRuntime.queryInterface( - XColumnRowRange.class, + XColumnRowRange.class, oSheet); XTableRows oRows = (XTableRows) oColumnRowRange.getRows(); XPropertySet rowProp = (XPropertySet) UnoRuntime.queryInterface( - XPropertySet.class, + XPropertySet.class, oRows.getByIndex(0)); boolean locRes = ((Boolean) rowProp.getPropertyValue("IsVisible")).booleanValue(); @@ -121,11 +121,11 @@ public class _XSheetFilterable extends MultiMethodTest { log.println("couldn't fill cells " + e.getLocalizedMessage()); res = false; } catch (com.sun.star.lang.WrappedTargetException e) { - log.println("problems geting Property 'isVisible' " + + log.println("problems geting Property 'isVisible' " + e.getLocalizedMessage()); res = false; } catch (com.sun.star.beans.UnknownPropertyException e) { - log.println("problems geting Property 'isVisible' " + + log.println("problems geting Property 'isVisible' " + e.getLocalizedMessage()); res = false; } diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetFilterableEx.java b/qadevOOo/tests/java/ifc/sheet/_XSheetFilterableEx.java index afb642290b67..eb02619490ad 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetFilterableEx.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetFilterableEx.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 @@ -38,10 +38,10 @@ import com.sun.star.uno.UnoRuntime; /** * Inteface test for XSheetFilterableEx * - * methods: + * methods: * * createFilterDescriptorByObject - * + * */ public class _XSheetFilterableEx extends MultiMethodTest { public XSheetFilterableEx oObj = null; @@ -51,7 +51,7 @@ public class _XSheetFilterableEx extends MultiMethodTest { * a XSheetFilterDescriptor with it. * Returns OK if the Descriptor isn't null and checkFilterDescriptor returns true */ - + public void _createFilterDescriptorByObject() { boolean res = true; Object parent = tEnv.getTestObject(); @@ -68,11 +68,11 @@ public class _XSheetFilterableEx extends MultiMethodTest { } tRes.tested("createFilterDescriptorByObject()",res); } - + /** * returns true if the Method getFilterFields() returns a non empty array * and all Fields can be gained without exception - */ + */ public boolean checkFilterDescriptor(XSheetFilterDescriptor desc) { TableFilterField[] fields = desc.getFilterFields(); diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetLinkable.java b/qadevOOo/tests/java/ifc/sheet/_XSheetLinkable.java index 4972ef7bcc94..f76da13bdb58 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetLinkable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetLinkable.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 @@ -40,61 +40,61 @@ public class _XSheetLinkable extends MultiMethodTest { String linkSheetName = null; String linkUrl = null; String linkUrl2 = null; - + public void before() { // get a document for linking. linkUrl = (String)tEnv.getObjRelation("XSheetLinkable.LinkSheet"); linkUrl = utils.getFullTestURL(linkUrl); - + // get a second sheet for changing the link url: if it's not set, // this part of the test is omitted. linkUrl2 = (String)tEnv.getObjRelation("XSheetLinkable.LinkSheet2"); if (linkUrl2 != null) linkUrl = utils.getFullTestURL(linkUrl); - + // set a name for the sheet. linkSheetName = "Sheet1"; } - - public void _getLinkMode() { + + public void _getLinkMode() { requiredMethod("link()"); slm = oObj.getLinkMode(); - tRes.tested("getLinkMode()", slm == SheetLinkMode.VALUE); + tRes.tested("getLinkMode()", slm == SheetLinkMode.VALUE); } - - public void _getLinkSheetName() { + + public void _getLinkSheetName() { requiredMethod("link()"); String lSheetName = oObj.getLinkSheetName(); - tRes.tested("getLinkSheetName()", linkSheetName.equals(lSheetName)); + tRes.tested("getLinkSheetName()", linkSheetName.equals(lSheetName)); } - - public void _getLinkUrl() { + + public void _getLinkUrl() { requiredMethod("link()"); String lUrl = oObj.getLinkUrl(); System.out.println("URL: " + lUrl); - tRes.tested("getLinkUrl()", lUrl.equals(linkUrl)); + tRes.tested("getLinkUrl()", lUrl.equals(linkUrl)); } - - public void _link() { + + public void _link() { oObj.link(linkUrl, linkSheetName, "", "", SheetLinkMode.VALUE); - tRes.tested("link()", true); + tRes.tested("link()", true); } - + public void _setLinkMode() { requiredMethod("getLinkMode()"); oObj.setLinkMode(SheetLinkMode.NONE); slm = oObj.getLinkMode(); - tRes.tested("setLinkMode()", slm == SheetLinkMode.NONE); + tRes.tested("setLinkMode()", slm == SheetLinkMode.NONE); } - - public void _setLinkSheetName() { + + public void _setLinkSheetName() { requiredMethod("getLinkSheetName()"); oObj.setLinkSheetName("Sheet2"); linkSheetName = oObj.getLinkSheetName(); - tRes.tested("setLinkSheetName()", linkSheetName.equals("Sheet2")); + tRes.tested("setLinkSheetName()", linkSheetName.equals("Sheet2")); } - - public void _setLinkUrl() { + + public void _setLinkUrl() { requiredMethod("getLinkUrl()"); boolean result = false; if (linkUrl2 == null) { @@ -107,6 +107,6 @@ public class _XSheetLinkable extends MultiMethodTest { linkUrl = oObj.getLinkUrl(); result = linkUrl.equals(linkUrl2); } - tRes.tested("setLinkUrl()", result); + tRes.tested("setLinkUrl()", result); } } diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetOperation.java b/qadevOOo/tests/java/ifc/sheet/_XSheetOperation.java index e57c50c00714..1eb75f9a3b92 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetOperation.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetOperation.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetOutline.java b/qadevOOo/tests/java/ifc/sheet/_XSheetOutline.java index 2a69cb7e0404..b48e55d414d1 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetOutline.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetOutline.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 @@ -44,7 +44,7 @@ public class _XSheetOutline extends MultiMethodTest { public XSheetOutline oObj = null; CellRangeAddress address = null; CellRangeAddress subaddress = null; - + public void before() { address = (CellRangeAddress)tEnv.getObjRelation("CellRangeAddress"); subaddress = (CellRangeAddress)tEnv.getObjRelation("CellRangeSubAddress"); @@ -53,7 +53,7 @@ public class _XSheetOutline extends MultiMethodTest { if (subaddress == null) throw new StatusException(Status.failed("Object relation CellRangeSubAddress not found")); } - + public void _autoOutline() { executeMethod("ungroup()"); boolean result = false; @@ -65,7 +65,7 @@ public class _XSheetOutline extends MultiMethodTest { result &= !isCellShown(subaddress); tRes.tested("autoOutline()", result); } - + public void _clearOutline() { executeMethod("autoOutline()"); boolean result = false; @@ -75,13 +75,13 @@ public class _XSheetOutline extends MultiMethodTest { result &= isCellShown(subaddress); tRes.tested("clearOutline()", result); } - + public void _group() { oObj.group(address, TableOrientation.COLUMNS); oObj.group(address, TableOrientation.ROWS); tRes.tested("group()", true); } - + public void _ungroup() { executeMethod("showDetail()"); oObj.ungroup(address, TableOrientation.COLUMNS); @@ -95,13 +95,13 @@ public class _XSheetOutline extends MultiMethodTest { oObj.hideDetail(address); tRes.tested("hideDetail()", !isCellShown(address)); } - + public void _showDetail() { executeMethod("showLevel()"); oObj.showDetail(address); tRes.tested("showDetail()", isCellShown(address)); } - + public void _showLevel() { executeMethod("hideDetail()"); boolean result = false; @@ -110,11 +110,11 @@ public class _XSheetOutline extends MultiMethodTest { result = isCellShown(address); oObj.showLevel((short)0, TableOrientation.COLUMNS); oObj.showLevel((short)0, TableOrientation.ROWS); - + result &= !isCellShown(address); tRes.tested("showLevel()", result); } - + private boolean isCellShown(CellRangeAddress range) { boolean isNotShown = true; XCellRangesQuery xCellRangesQuery = (XCellRangesQuery)UnoRuntime.queryInterface(XCellRangesQuery.class, oObj); @@ -131,9 +131,9 @@ public class _XSheetOutline extends MultiMethodTest { } return !isNotShown; } - + private boolean dotIsOutsideRange(int dotRow, int dotColumn, CellRangeAddress range) { - log.println("Checking dot(" + dotRow + "," + dotColumn + ") against row[" + log.println("Checking dot(" + dotRow + "," + dotColumn + ") against row[" + range.StartRow + ":" + range.EndRow + "] column[" + range.StartColumn + ":" + range.EndColumn + "]"); boolean isInside = true; diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetPageBreak.java b/qadevOOo/tests/java/ifc/sheet/_XSheetPageBreak.java index bcd47dbc861f..bdecb52e2be1 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetPageBreak.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetPageBreak.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSpreadsheet.java b/qadevOOo/tests/java/ifc/sheet/_XSpreadsheet.java index 8e1f6c044513..e2e47e42a12f 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSpreadsheet.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSpreadsheet.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSpreadsheetDocument.java b/qadevOOo/tests/java/ifc/sheet/_XSpreadsheetDocument.java index c3d667deccf8..a534138fb912 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSpreadsheetDocument.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSpreadsheetDocument.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSpreadsheetView.java b/qadevOOo/tests/java/ifc/sheet/_XSpreadsheetView.java index a016214d0cdf..979aa7e5d68d 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSpreadsheetView.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSpreadsheetView.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSpreadsheets.java b/qadevOOo/tests/java/ifc/sheet/_XSpreadsheets.java index 1b3682586778..a377c1c0dd9e 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSpreadsheets.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSpreadsheets.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSubTotalCalculatable.java b/qadevOOo/tests/java/ifc/sheet/_XSubTotalCalculatable.java index 6d68b74919af..a00a1fdfabb2 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSubTotalCalculatable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSubTotalCalculatable.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSubTotalDescriptor.java b/qadevOOo/tests/java/ifc/sheet/_XSubTotalDescriptor.java index 19c3eefd721a..7b632532631b 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSubTotalDescriptor.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSubTotalDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XSubTotalField.java b/qadevOOo/tests/java/ifc/sheet/_XSubTotalField.java index 000239e84117..58c8acd3d9f5 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSubTotalField.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSubTotalField.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XUniqueCellFormatRangesSupplier.java b/qadevOOo/tests/java/ifc/sheet/_XUniqueCellFormatRangesSupplier.java index 43bd1f3d5adf..69e0e48a9546 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XUniqueCellFormatRangesSupplier.java +++ b/qadevOOo/tests/java/ifc/sheet/_XUniqueCellFormatRangesSupplier.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 @@ -33,15 +33,15 @@ import com.sun.star.container.XIndexAccess; import com.sun.star.sheet.XUniqueCellFormatRangesSupplier; public class _XUniqueCellFormatRangesSupplier extends MultiMethodTest { - + public XUniqueCellFormatRangesSupplier oObj; - + /** * call the method getUniqueCellFormatRanges and returns OK result if * the gained XIndexAccess isn't null and the method checkIndexAccess * returns true. - */ - + */ + public void _getUniqueCellFormatRanges() { boolean res = true; XIndexAccess xIA = oObj.getUniqueCellFormatRanges(); @@ -51,14 +51,14 @@ public class _XUniqueCellFormatRangesSupplier extends MultiMethodTest { log.println("The gained IndexAccess is null"); res = false; } - tRes.tested("getUniqueCellFormatRanges()",res); + tRes.tested("getUniqueCellFormatRanges()",res); } - + /** * calls the method getCount at the IndexAccess, returns true is it is >0 * and getByIndex() doesn't throw an exception for Indexes between 0 and count */ - + protected boolean checkIndexAccess(XIndexAccess xIA) { boolean res = true; int count = xIA.getCount(); @@ -78,6 +78,6 @@ public class _XUniqueCellFormatRangesSupplier extends MultiMethodTest { } return res; } - - + + } diff --git a/qadevOOo/tests/java/ifc/sheet/_XUsedAreaCursor.java b/qadevOOo/tests/java/ifc/sheet/_XUsedAreaCursor.java index 6812704fd80f..e592734fbfe8 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XUsedAreaCursor.java +++ b/qadevOOo/tests/java/ifc/sheet/_XUsedAreaCursor.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 @@ -115,7 +115,7 @@ public class _XUsedAreaCursor extends MultiMethodTest { result &= (sAddr.StartRow == 1); result &= (sAddr.EndColumn == 4); result &= (sAddr.EndRow == 5); - + // now testing with false parameter oObj.gotoStartOfUsedArea(false); sAddr = oAddr.getRangeAddress(); diff --git a/qadevOOo/tests/java/ifc/sheet/_XViewFreezable.java b/qadevOOo/tests/java/ifc/sheet/_XViewFreezable.java index ded696dcd0d1..72e323858fd0 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XViewFreezable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XViewFreezable.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XViewPane.java b/qadevOOo/tests/java/ifc/sheet/_XViewPane.java index 6fa46876022e..5b24f447c4ba 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XViewPane.java +++ b/qadevOOo/tests/java/ifc/sheet/_XViewPane.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 diff --git a/qadevOOo/tests/java/ifc/sheet/_XViewSplitable.java b/qadevOOo/tests/java/ifc/sheet/_XViewSplitable.java index 5fbdce6c7cb8..dccee2bb78db 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XViewSplitable.java +++ b/qadevOOo/tests/java/ifc/sheet/_XViewSplitable.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 diff --git a/qadevOOo/tests/java/ifc/style/_CharacterProperties.java b/qadevOOo/tests/java/ifc/style/_CharacterProperties.java index d6e6977222a4..5235bc2fd676 100644 --- a/qadevOOo/tests/java/ifc/style/_CharacterProperties.java +++ b/qadevOOo/tests/java/ifc/style/_CharacterProperties.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 @@ -35,7 +35,7 @@ import com.sun.star.xml.AttributeData; import java.util.Enumeration; import java.util.Hashtable; import lib.MultiPropertyTest; - + import util.ValueChanger; import util.utils; @@ -160,7 +160,7 @@ public class _CharacterProperties extends MultiPropertyTest { /** * Custom tester for style name properties. If object relations "STYLENAME1" - * and "STYLENAME2" exists, then testing with these strings, else switches + * and "STYLENAME2" exists, then testing with these strings, else switches * between 'Citation' and 'Emphasis' names. */ protected PropertyTester StyleTester = new PropertyTester() { @@ -311,9 +311,9 @@ public class _CharacterProperties extends MultiPropertyTest { "RubyIsAbove",new Boolean(true)); } } - + /** - * This property only takes values between 0..100 + * This property only takes values between 0..100 * so ist must be treated special */ public void _CharEscapementHeight() { @@ -321,7 +321,7 @@ public class _CharacterProperties extends MultiPropertyTest { Byte max = new Byte((byte)100); testProperty("CharEscapementHeight", aByte, max) ; } - + /** * This property can be void, so if old value is <code> null </code> @@ -434,7 +434,7 @@ public class _CharacterProperties extends MultiPropertyTest { tRes.tested(name, false); } }// end of changeProp - + public void _TextUserDefinedAttributes() { XNameContainer uda = null; boolean res = false; @@ -457,7 +457,7 @@ public class _CharacterProperties extends MultiPropertyTest { String[] els = uda.getElementNames(); oObj.setPropertyValue("TextUserDefinedAttributes", uda); uda = (XNameContainer) AnyConverter.toObject( - new Type(XNameContainer.class), + new Type(XNameContainer.class), oObj.getPropertyValue("TextUserDefinedAttributes")); els = uda.getElementNames(); @@ -488,19 +488,19 @@ public class _CharacterProperties extends MultiPropertyTest { tRes.tested("TextUserDefinedAttributes", res); } - + private class OwnUserDefinedAttributes implements XNameContainer{ Hashtable members = null; - - + + public OwnUserDefinedAttributes() { members = new Hashtable(); } - + public Object getByName(String str) throws com.sun.star.container.NoSuchElementException, com.sun.star.lang.WrappedTargetException { return members.get(str); } - + public String[] getElementNames() { Enumeration oEnum = members.keys(); int count = members.size(); @@ -510,34 +510,34 @@ public class _CharacterProperties extends MultiPropertyTest { res[i] = (String)oEnum.nextElement(); return res; } - + public com.sun.star.uno.Type getElementType() { Enumeration oEnum = members.keys(); String key = (String)oEnum.nextElement(); Object o = members.get(key); return new Type(o.getClass()); } - + public boolean hasByName(String str) { return members.get(str) != null; } - + public boolean hasElements() { return members.size() > 0; } - + public void insertByName(String str, Object obj) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.container.ElementExistException, com.sun.star.lang.WrappedTargetException { members.put(str, obj); } - + public void removeByName(String str) throws com.sun.star.container.NoSuchElementException, com.sun.star.lang.WrappedTargetException { members.remove(str); } - + public void replaceByName(String str, Object obj) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.container.NoSuchElementException, com.sun.star.lang.WrappedTargetException { members.put(str, obj); } - + } } //finish class _CharacterProperties diff --git a/qadevOOo/tests/java/ifc/style/_CharacterPropertiesAsian.java b/qadevOOo/tests/java/ifc/style/_CharacterPropertiesAsian.java index a5709503f602..364cc3ac446f 100644 --- a/qadevOOo/tests/java/ifc/style/_CharacterPropertiesAsian.java +++ b/qadevOOo/tests/java/ifc/style/_CharacterPropertiesAsian.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 diff --git a/qadevOOo/tests/java/ifc/style/_CharacterPropertiesComplex.java b/qadevOOo/tests/java/ifc/style/_CharacterPropertiesComplex.java index 0bf69d68e7e9..d7df0fca3b71 100644 --- a/qadevOOo/tests/java/ifc/style/_CharacterPropertiesComplex.java +++ b/qadevOOo/tests/java/ifc/style/_CharacterPropertiesComplex.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 @@ -47,7 +47,7 @@ import lib.MultiPropertyTest; * @see com.sun.star.style.CharacterPropertiesComplex */ public class _CharacterPropertiesComplex extends MultiPropertyTest { - + public void _CharWeightComplex() { testProperty("CharWeightComplex", new Float(com.sun.star.awt.FontWeight.BOLD), new Float(com.sun.star.awt.FontWeight.THIN)) ; @@ -56,14 +56,14 @@ public class _CharacterPropertiesComplex extends MultiPropertyTest { public void _CharPostureComplex() { testProperty("CharPostureComplex", com.sun.star.awt.FontSlant.ITALIC, com.sun.star.awt.FontSlant.NONE) ; - } + } /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); - } + } } //finish class _CharacterPropertiesComplex diff --git a/qadevOOo/tests/java/ifc/style/_CharacterStyle.java b/qadevOOo/tests/java/ifc/style/_CharacterStyle.java index fb6acc14a42e..2efaeedb391b 100755 --- a/qadevOOo/tests/java/ifc/style/_CharacterStyle.java +++ b/qadevOOo/tests/java/ifc/style/_CharacterStyle.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 @@ -28,7 +28,7 @@ package ifc.style; import lib.MultiPropertyTest; - + /** * Testing <code>com.sun.star.style.CharacterStyle</code> diff --git a/qadevOOo/tests/java/ifc/style/_PageProperties.java b/qadevOOo/tests/java/ifc/style/_PageProperties.java index c53f86b4aa41..cca2c9074667 100755 --- a/qadevOOo/tests/java/ifc/style/_PageProperties.java +++ b/qadevOOo/tests/java/ifc/style/_PageProperties.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 @@ -46,7 +46,7 @@ public class _PageProperties extends MultiPropertyTest { /** * Switch on Header and Footer properties * so all props can be tested. - */ + */ protected void before() { try { oObj.setPropertyValue("HeaderIsOn", Boolean.TRUE); @@ -59,9 +59,9 @@ public class _PageProperties extends MultiPropertyTest { log.println("IllegalArgumentException while setting Property 'HeaderIsOn' or 'FooterIsOn'"); } catch (com.sun.star.beans.PropertyVetoException pve) { log.println("PropertyVetoException while setting Property 'HeaderIsOn' or 'FooterIsOn'"); - } + } } - + /** * This property is system dependent and printer dependent. * So only reading it does make sense, since it cannot be determined, if @@ -73,19 +73,19 @@ public class _PageProperties extends MultiPropertyTest { try { setting = (String)oObj.getPropertyValue("PrinterPaperTray"); log.println("Property 'PrinterPaperTray' is set to '" + setting + "'."); - res = setting != null; + res = setting != null; } catch(com.sun.star.beans.UnknownPropertyException e) { log.println("Don't know the Property 'PrinterPaperTray'"); } catch (com.sun.star.lang.WrappedTargetException wte) { log.println("WrappedTargetException while getting Property 'PrinterPaperTray'"); - } + } tRes.tested("PrinterPaperTray", res); } - + /** * Create some valid user defined attributes - */ + */ public void _UserDefinedAttributes() { XNameContainer uda = null; boolean res = false; @@ -97,8 +97,8 @@ public class _PageProperties extends MultiPropertyTest { attr.Namespace = "http://www.sun.com/staroffice/apitest/Cellprop"; attr.Type="CDATA"; attr.Value="true"; - uda.insertByName("Cellprop:has-first-alien-attribute",attr); - String[] els = uda.getElementNames(); + uda.insertByName("Cellprop:has-first-alien-attribute",attr); + String[] els = uda.getElementNames(); oObj.setPropertyValue("UserDefinedAttributes",uda); uda = (XNameContainer) AnyConverter.toObject( new Type(XNameContainer.class), @@ -118,7 +118,7 @@ public class _PageProperties extends MultiPropertyTest { log.println("PropertyVetoException while getting Property 'UserDefinedAttributes'"); } catch (com.sun.star.container.ElementExistException eee) { log.println("ElementExistException while getting Property 'UserDefinedAttributes'"); - } + } tRes.tested("UserDefinedAttributes",res); } diff --git a/qadevOOo/tests/java/ifc/style/_PageStyle.java b/qadevOOo/tests/java/ifc/style/_PageStyle.java index d8a6e5f7d344..0c29e1591f86 100755 --- a/qadevOOo/tests/java/ifc/style/_PageStyle.java +++ b/qadevOOo/tests/java/ifc/style/_PageStyle.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 @@ -31,11 +31,11 @@ import ifc.style._PageProperties; /** * Test page style properties. - * These properties are a subset of the PageProperties. So just use the + * These properties are a subset of the PageProperties. So just use the * PageProperties test */ public class _PageStyle extends _PageProperties { - + /** * This property is system dependent and printer dependent. * Test is used from _PageProperties @@ -44,13 +44,13 @@ public class _PageStyle extends _PageProperties { public void _PrinterPaperTray() { super._PrinterPaperTray(); } - + /** * Create some valid user defined attributes * Test is used from _PageProperties * @see ifc.style._PageProperties - */ + */ public void _UserDefinedAttributes() { super._UserDefinedAttributes(); - } + } } diff --git a/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java b/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java index d412b93531da..64c22912fea1 100644 --- a/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java +++ b/qadevOOo/tests/java/ifc/style/_ParagraphProperties.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 @@ -41,7 +41,7 @@ import java.util.Hashtable; import lib.MultiPropertyTest; import lib.Status; import share.LogWriter; - + import util.utils; @@ -159,7 +159,7 @@ public class _ParagraphProperties extends MultiPropertyTest { */ protected PropertyTester PageDescTester = new PropertyTester() { protected Object getNewValue(String propName, Object oldValue) { - if (!util.utils.isVoid(oldValue) && + if (!util.utils.isVoid(oldValue) && (oldValue.equals("Default"))) { return "HTML"; } else { @@ -175,7 +175,7 @@ public class _ParagraphProperties extends MultiPropertyTest { */ protected PropertyTester ShortTester = new PropertyTester() { protected Object getNewValue(String propName, Object oldValue) { - if ((oldValue != null) && + if ((oldValue != null) && (oldValue.equals(new Short((short) 0)))) { return new Short((short) 2); } else { @@ -191,7 +191,7 @@ public class _ParagraphProperties extends MultiPropertyTest { */ protected PropertyTester BooleanTester = new PropertyTester() { protected Object getNewValue(String propName, Object oldValue) { - if ((oldValue != null) && + if ((oldValue != null) && (oldValue.equals(new Boolean((boolean) false)))) { return new Boolean((boolean) true); } else { @@ -297,7 +297,7 @@ public class _ParagraphProperties extends MultiPropertyTest { log.println("Testing with custom Property tester"); try { - oObj.setPropertyValue("ParaAdjust", + oObj.setPropertyValue("ParaAdjust", com.sun.star.style.ParagraphAdjust.BLOCK); } catch (com.sun.star.lang.WrappedTargetException e) { log.println("Exception occured setting property 'ParagraphAdjust'" + e); @@ -338,7 +338,7 @@ public class _ParagraphProperties extends MultiPropertyTest { * Tested with custom property tester. <p> */ public void _ParaIsConnectBorder() { - + log.println("Testing with custom Property tester"); testProperty("ParaIsConnectBorder", BooleanTester); } @@ -366,7 +366,7 @@ public class _ParagraphProperties extends MultiPropertyTest { */ public void _NumberingRules() { requiredMethod("NumberingStyleName"); - + XIndexReplace NumberingRules = null; PropertyValue[] propertyValues = null; try { @@ -392,12 +392,12 @@ public class _ParagraphProperties extends MultiPropertyTest { Status.failed( "could not get NumberlingLevel-Array from NumberingRuels: "+ ex.toString() ); return; } - + _NumberingLevel numb = new _NumberingLevel((LogWriter)log, tParam, propertyValues); boolean result = numb.testPropertieArray(); - - tRes.tested("NumberingRules", result); + + tRes.tested("NumberingRules", result); } public void _ParaUserDefinedAttributes() { @@ -422,7 +422,7 @@ public class _ParagraphProperties extends MultiPropertyTest { String[] els = uda.getElementNames(); oObj.setPropertyValue("ParaUserDefinedAttributes", uda); uda = (XNameContainer) AnyConverter.toObject( - new Type(XNameContainer.class), + new Type(XNameContainer.class), oObj.getPropertyValue("ParaUserDefinedAttributes")); els = uda.getElementNames(); @@ -453,19 +453,19 @@ public class _ParagraphProperties extends MultiPropertyTest { tRes.tested("ParaUserDefinedAttributes", res); } - + private class OwnUserDefinedAttributes implements XNameContainer{ Hashtable members = null; - - + + public OwnUserDefinedAttributes() { members = new Hashtable(); } - + public Object getByName(String str) throws com.sun.star.container.NoSuchElementException, com.sun.star.lang.WrappedTargetException { return members.get(str); } - + public String[] getElementNames() { Enumeration oEnum = members.keys(); int count = members.size(); @@ -475,33 +475,33 @@ public class _ParagraphProperties extends MultiPropertyTest { res[i] = (String)oEnum.nextElement(); return res; } - + public com.sun.star.uno.Type getElementType() { Enumeration oEnum = members.keys(); String key = (String)oEnum.nextElement(); Object o = members.get(key); return new Type(o.getClass()); } - + public boolean hasByName(String str) { return members.get(str) != null; } - + public boolean hasElements() { return members.size() > 0; } - + public void insertByName(String str, Object obj) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.container.ElementExistException, com.sun.star.lang.WrappedTargetException { members.put(str, obj); } - + public void removeByName(String str) throws com.sun.star.container.NoSuchElementException, com.sun.star.lang.WrappedTargetException { members.remove(str); } - + public void replaceByName(String str, Object obj) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.container.NoSuchElementException, com.sun.star.lang.WrappedTargetException { members.put(str, obj); } - + } } // finish class _ParagraphProperties diff --git a/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesAsian.java b/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesAsian.java index 6c3730d3bb5c..d5aa514f3631 100644 --- a/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesAsian.java +++ b/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesAsian.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 @@ -48,7 +48,7 @@ public class _ParagraphPropertiesAsian extends MultiPropertyTest { */ protected PropertyTester BooleanTester = new PropertyTester() { protected Object getNewValue(String propName, Object oldValue) { - if ((oldValue != null) && + if ((oldValue != null) && (oldValue.equals(new Boolean((boolean) false)))) { return new Boolean((boolean) true); } else { diff --git a/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesComplex.java b/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesComplex.java index 932bec5b3ead..a0c061271684 100644 --- a/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesComplex.java +++ b/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesComplex.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 @@ -37,19 +37,19 @@ import lib.MultiPropertyTest; */ public class _ParagraphPropertiesComplex extends MultiPropertyTest { - + protected PropertyTester WritingModeTester = new PropertyTester() { protected Object getNewValue(String propName, Object oldValue) { if ((oldValue != null) && (oldValue.equals(new Short(com.sun.star.text.WritingMode2.LR_TB)))) return new Short(com.sun.star.text.WritingMode2.PAGE); else return new Short(com.sun.star.text.WritingMode2.LR_TB); } - } ; - + } ; + public void _WritingMode() { log.println("Testing with custom Property tester") ; testProperty("WritingMode", WritingModeTester) ; - } + } } // finish class _ParagraphPropertiesComplex diff --git a/qadevOOo/tests/java/ifc/style/_ParagraphStyle.java b/qadevOOo/tests/java/ifc/style/_ParagraphStyle.java index 8dcdb56dc988..73fac8699bdf 100644 --- a/qadevOOo/tests/java/ifc/style/_ParagraphStyle.java +++ b/qadevOOo/tests/java/ifc/style/_ParagraphStyle.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 @@ -32,5 +32,5 @@ import lib.MultiPropertyTest; /** */ public class _ParagraphStyle extends MultiPropertyTest { - + } diff --git a/qadevOOo/tests/java/ifc/style/_Style.java b/qadevOOo/tests/java/ifc/style/_Style.java index 16dbf570c301..4174ecaeaf1e 100644 --- a/qadevOOo/tests/java/ifc/style/_Style.java +++ b/qadevOOo/tests/java/ifc/style/_Style.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 @@ -48,7 +48,7 @@ public class _Style extends MultiPropertyTest { if (style == null) style = "Heading 1"; testProperty("FollowStyle", style, "Heading 2"); } - + } // finish class _Style diff --git a/qadevOOo/tests/java/ifc/style/_XStyle.java b/qadevOOo/tests/java/ifc/style/_XStyle.java index bf0bb6bea2c8..5f6a5e38b0e4 100644 --- a/qadevOOo/tests/java/ifc/style/_XStyle.java +++ b/qadevOOo/tests/java/ifc/style/_XStyle.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 diff --git a/qadevOOo/tests/java/ifc/style/_XStyleFamiliesSupplier.java b/qadevOOo/tests/java/ifc/style/_XStyleFamiliesSupplier.java index 037f4eab829b..dda7b109da3c 100644 --- a/qadevOOo/tests/java/ifc/style/_XStyleFamiliesSupplier.java +++ b/qadevOOo/tests/java/ifc/style/_XStyleFamiliesSupplier.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 diff --git a/qadevOOo/tests/java/ifc/system/_XProxySettings.java b/qadevOOo/tests/java/ifc/system/_XProxySettings.java index 864349d194cd..7dd8ebb53ca9 100644 --- a/qadevOOo/tests/java/ifc/system/_XProxySettings.java +++ b/qadevOOo/tests/java/ifc/system/_XProxySettings.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 diff --git a/qadevOOo/tests/java/ifc/system/_XSimpleMailClientSupplier.java b/qadevOOo/tests/java/ifc/system/_XSimpleMailClientSupplier.java index edf1061408b3..56a15ec2d963 100644 --- a/qadevOOo/tests/java/ifc/system/_XSimpleMailClientSupplier.java +++ b/qadevOOo/tests/java/ifc/system/_XSimpleMailClientSupplier.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 diff --git a/qadevOOo/tests/java/ifc/system/_XSystemShellExecute.java b/qadevOOo/tests/java/ifc/system/_XSystemShellExecute.java index 3ced5eb9c52f..ace839c0f5d3 100644 --- a/qadevOOo/tests/java/ifc/system/_XSystemShellExecute.java +++ b/qadevOOo/tests/java/ifc/system/_XSystemShellExecute.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 diff --git a/qadevOOo/tests/java/ifc/table/_CellProperties.java b/qadevOOo/tests/java/ifc/table/_CellProperties.java index 99990e5b0339..fb50ba9eaac9 100644 --- a/qadevOOo/tests/java/ifc/table/_CellProperties.java +++ b/qadevOOo/tests/java/ifc/table/_CellProperties.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 @@ -56,7 +56,7 @@ import com.sun.star.xml.AttributeData; * @see com.sun.star.table.CellProperties */ public class _CellProperties extends MultiPropertyTest { - + /** * This property is tested with custom property tester which @@ -69,7 +69,7 @@ public class _CellProperties extends MultiPropertyTest { } }) ; } - + public void _UserDefinedAttributes() { XNameContainer uda = null; boolean res = false; @@ -81,8 +81,8 @@ public class _CellProperties extends MultiPropertyTest { attr.Namespace = "http://www.sun.com/staroffice/apitest/Cellprop"; attr.Type="CDATA"; attr.Value="true"; - uda.insertByName("Cellprop:has-first-alien-attribute",attr); - String[] els = uda.getElementNames(); + uda.insertByName("Cellprop:has-first-alien-attribute",attr); + String[] els = uda.getElementNames(); oObj.setPropertyValue("UserDefinedAttributes",uda); uda = (XNameContainer) AnyConverter.toObject( new Type(XNameContainer.class), @@ -102,7 +102,7 @@ public class _CellProperties extends MultiPropertyTest { log.println("PropertyVetoException while getting Property 'UserDefinedAttributes'"); } catch (com.sun.star.container.ElementExistException eee) { log.println("ElementExistException while getting Property 'UserDefinedAttributes'"); - } + } tRes.tested("UserDefinedAttributes",res); } diff --git a/qadevOOo/tests/java/ifc/table/_TableColumn.java b/qadevOOo/tests/java/ifc/table/_TableColumn.java index edb2606b87a4..417365414a2e 100644 --- a/qadevOOo/tests/java/ifc/table/_TableColumn.java +++ b/qadevOOo/tests/java/ifc/table/_TableColumn.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 diff --git a/qadevOOo/tests/java/ifc/table/_TableRow.java b/qadevOOo/tests/java/ifc/table/_TableRow.java index e5021f22dc55..f06fa6b80bac 100644 --- a/qadevOOo/tests/java/ifc/table/_TableRow.java +++ b/qadevOOo/tests/java/ifc/table/_TableRow.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 diff --git a/qadevOOo/tests/java/ifc/table/_XAutoFormattable.java b/qadevOOo/tests/java/ifc/table/_XAutoFormattable.java index 4843d25f93fc..edb2ccab1ceb 100644 --- a/qadevOOo/tests/java/ifc/table/_XAutoFormattable.java +++ b/qadevOOo/tests/java/ifc/table/_XAutoFormattable.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 @@ -75,12 +75,12 @@ public class _XAutoFormattable extends MultiMethodTest { XCell oCell = cellRange.getCellByPosition(0, 0); XPropertySet PS = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, oCell); - + Integer bkgrnd1; try { bkgrnd1 = (Integer) PS.getPropertyValue("CellBackColor"); } catch (com.sun.star.beans.UnknownPropertyException e) { - bkgrnd1 = (Integer) PS.getPropertyValue("BackColor"); + bkgrnd1 = (Integer) PS.getPropertyValue("BackColor"); } // getting formats names. @@ -112,8 +112,8 @@ public class _XAutoFormattable extends MultiMethodTest { try { bkgrnd2 = (Integer) PS.getPropertyValue("CellBackColor"); } catch (com.sun.star.beans.UnknownPropertyException e) { - bkgrnd2 = (Integer) PS.getPropertyValue("BackColor"); - } + bkgrnd2 = (Integer) PS.getPropertyValue("BackColor"); + } bResult &= !bkgrnd1.equals(bkgrnd2); } catch (com.sun.star.uno.Exception e) { @@ -124,11 +124,11 @@ public class _XAutoFormattable extends MultiMethodTest { tRes.tested("autoFormat()", bResult); } - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); - } + } }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/table/_XCell.java b/qadevOOo/tests/java/ifc/table/_XCell.java index 0e29e2cbc644..2860ac3ac307 100644 --- a/qadevOOo/tests/java/ifc/table/_XCell.java +++ b/qadevOOo/tests/java/ifc/table/_XCell.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 diff --git a/qadevOOo/tests/java/ifc/table/_XCellCursor.java b/qadevOOo/tests/java/ifc/table/_XCellCursor.java index 9f3aea9b4354..aeb52faa6aec 100644 --- a/qadevOOo/tests/java/ifc/table/_XCellCursor.java +++ b/qadevOOo/tests/java/ifc/table/_XCellCursor.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 diff --git a/qadevOOo/tests/java/ifc/table/_XCellRange.java b/qadevOOo/tests/java/ifc/table/_XCellRange.java index cb35b2137e6d..53c0a061741d 100644 --- a/qadevOOo/tests/java/ifc/table/_XCellRange.java +++ b/qadevOOo/tests/java/ifc/table/_XCellRange.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 @@ -139,13 +139,13 @@ public class _XCellRange extends MultiMethodTest { } // end getCellRangeByPosition() - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); - } + } } // finish class _XCellRange diff --git a/qadevOOo/tests/java/ifc/table/_XColumnRowRange.java b/qadevOOo/tests/java/ifc/table/_XColumnRowRange.java index f56899891353..14aa660a5d39 100644 --- a/qadevOOo/tests/java/ifc/table/_XColumnRowRange.java +++ b/qadevOOo/tests/java/ifc/table/_XColumnRowRange.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 diff --git a/qadevOOo/tests/java/ifc/table/_XTableChart.java b/qadevOOo/tests/java/ifc/table/_XTableChart.java index 230c0f5b0949..5bd42039a3d8 100644 --- a/qadevOOo/tests/java/ifc/table/_XTableChart.java +++ b/qadevOOo/tests/java/ifc/table/_XTableChart.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 diff --git a/qadevOOo/tests/java/ifc/table/_XTableCharts.java b/qadevOOo/tests/java/ifc/table/_XTableCharts.java index 737a120f91a8..9df026ddb7d2 100644 --- a/qadevOOo/tests/java/ifc/table/_XTableCharts.java +++ b/qadevOOo/tests/java/ifc/table/_XTableCharts.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 diff --git a/qadevOOo/tests/java/ifc/table/_XTableChartsSupplier.java b/qadevOOo/tests/java/ifc/table/_XTableChartsSupplier.java index ba0308da29f2..19d310da232e 100644 --- a/qadevOOo/tests/java/ifc/table/_XTableChartsSupplier.java +++ b/qadevOOo/tests/java/ifc/table/_XTableChartsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/table/_XTableColumns.java b/qadevOOo/tests/java/ifc/table/_XTableColumns.java index d46ae6dae70e..cf3c36baba8f 100644 --- a/qadevOOo/tests/java/ifc/table/_XTableColumns.java +++ b/qadevOOo/tests/java/ifc/table/_XTableColumns.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 @@ -180,8 +180,8 @@ public class _XTableColumns extends MultiMethodTest { log.println("Inserting column at Index " + cnt + " ... OK"); result &= true; } - - if (tEnv.getTestCase().getObjectName().equals("ScTableColumnsObj")) { + + if (tEnv.getTestCase().getObjectName().equals("ScTableColumnsObj")) { try { oObj.insertByIndex(0,0); @@ -191,7 +191,7 @@ public class _XTableColumns extends MultiMethodTest { log.println("Inserting 0 columns ... OK"); result &= true; } - + } tRes.tested( "insertByIndex()", result ); diff --git a/qadevOOo/tests/java/ifc/table/_XTableRows.java b/qadevOOo/tests/java/ifc/table/_XTableRows.java index 71cd35ab5de9..ce12e3760ada 100644 --- a/qadevOOo/tests/java/ifc/table/_XTableRows.java +++ b/qadevOOo/tests/java/ifc/table/_XTableRows.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 @@ -46,7 +46,7 @@ public class _XTableRows extends MultiMethodTest { public XTableRows oObj = null; public XCellRange range = null; - + public void before() { range = (XCellRange) tEnv.getObjRelation("XTableRows.XCellRange"); if (range==null) { @@ -68,14 +68,14 @@ public class _XTableRows extends MultiMethodTest { public void _insertByIndex() { boolean result = true; - + requiredMethod("removeByIndex()"); int origCnt = oObj.getCount(); log.println("Inserting row before first row"); oObj.insertByIndex(0,1); result &= checkCell(1,15); - if (checkCell(1,15)) log.println("... successful"); + if (checkCell(1,15)) log.println("... successful"); try { oObj.insertByIndex(-1,1); @@ -98,12 +98,12 @@ public class _XTableRows extends MultiMethodTest { */ public void _removeByIndex() { - boolean result = true; + boolean result = true; oObj.removeByIndex(0,1); log.println("Removing first row"); result &= checkCell(0,15); - if (checkCell(0,15)) log.println("... successful"); + if (checkCell(0,15)) log.println("... successful"); try { oObj.removeByIndex(-1,1); @@ -116,15 +116,15 @@ public class _XTableRows extends MultiMethodTest { tRes.tested( "removeByIndex()", result ); } // end removeByIndex() - + public boolean checkCell(int row,double expected) { double getting=0; try { getting = range.getCellByPosition(0,row).getValue(); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { log.println("Couldn't set value for Cell A1"); - } - + } + boolean res = (getting==expected); if (!res) { log.println("Expected for row "+row+" was "+expected); diff --git a/qadevOOo/tests/java/ifc/task/_XInteractionHandler.java b/qadevOOo/tests/java/ifc/task/_XInteractionHandler.java index 3aed88c8994a..b6cd29840d43 100644 --- a/qadevOOo/tests/java/ifc/task/_XInteractionHandler.java +++ b/qadevOOo/tests/java/ifc/task/_XInteractionHandler.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 diff --git a/qadevOOo/tests/java/ifc/task/_XJob.java b/qadevOOo/tests/java/ifc/task/_XJob.java index e4cc567b5b4f..bfeaf5fe0154 100644 --- a/qadevOOo/tests/java/ifc/task/_XJob.java +++ b/qadevOOo/tests/java/ifc/task/_XJob.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 @@ -56,8 +56,8 @@ public class _XJob extends MultiMethodTest { public static XJob oObj = null; /** - * Tries to query the tested component for object relation - * <code>XJobArgs</code> [<code>Object[]</code>] which contains + * Tries to query the tested component for object relation + * <code>XJobArgs</code> [<code>Object[]</code>] which contains * <code>executeArgs</code> [<code>NamedValue[]</code>] * @throw StatusException If relations are not found */ @@ -68,7 +68,7 @@ public class _XJob extends MultiMethodTest { ("'XJobArgs' relation not found ")) ; } - + /** * Gets the number of Job calls before and after triggering event. diff --git a/qadevOOo/tests/java/ifc/task/_XJobExecutor.java b/qadevOOo/tests/java/ifc/task/_XJobExecutor.java index 55aaf43c3c68..03ab82016e20 100644 --- a/qadevOOo/tests/java/ifc/task/_XJobExecutor.java +++ b/qadevOOo/tests/java/ifc/task/_XJobExecutor.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 diff --git a/qadevOOo/tests/java/ifc/task/_XStatusIndicatorFactory.java b/qadevOOo/tests/java/ifc/task/_XStatusIndicatorFactory.java index 3660d5c53acd..6f762f96dbee 100644 --- a/qadevOOo/tests/java/ifc/task/_XStatusIndicatorFactory.java +++ b/qadevOOo/tests/java/ifc/task/_XStatusIndicatorFactory.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 diff --git a/qadevOOo/tests/java/ifc/text/_BaseFrame.java b/qadevOOo/tests/java/ifc/text/_BaseFrame.java index 258a57ef84ca..b676ba7a29e6 100644 --- a/qadevOOo/tests/java/ifc/text/_BaseFrame.java +++ b/qadevOOo/tests/java/ifc/text/_BaseFrame.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 diff --git a/qadevOOo/tests/java/ifc/text/_BaseFrameProperties.java b/qadevOOo/tests/java/ifc/text/_BaseFrameProperties.java index be4c027b014d..749f7f37147c 100644 --- a/qadevOOo/tests/java/ifc/text/_BaseFrameProperties.java +++ b/qadevOOo/tests/java/ifc/text/_BaseFrameProperties.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 diff --git a/qadevOOo/tests/java/ifc/text/_BaseIndex.java b/qadevOOo/tests/java/ifc/text/_BaseIndex.java index fb19f6d97888..8054893585ba 100644 --- a/qadevOOo/tests/java/ifc/text/_BaseIndex.java +++ b/qadevOOo/tests/java/ifc/text/_BaseIndex.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 @@ -106,7 +106,7 @@ public class _BaseIndex extends MultiPropertyTest { public void _LevelFormat() { log.println( "Testing property 'LevelFormat' with custom property tester"); - testProperty("LevelFormat", + testProperty("LevelFormat", new PropertyTester() { PropertyValue[][] newVal = null; PropertyValue[][] oldVal = null; @@ -147,18 +147,18 @@ public class _BaseIndex extends MultiPropertyTest { return indProp; } - protected void checkResult(String propName, Object oldValue, - Object newValue, Object resValue, + protected void checkResult(String propName, Object oldValue, + Object newValue, Object resValue, Exception exception) throws Exception { PropertyValue[][] res = (PropertyValue[][]) ((XIndexAccess) UnoRuntime.queryInterface( - XIndexAccess.class, + XIndexAccess.class, resValue)).getByIndex(0); log.println("Result:"); printLevelFormatProperty(resValue); - boolean result = (res.length != oldVal.length) || + boolean result = (res.length != oldVal.length) || !util.ValueComparer.equalValue(res, oldVal); tRes.tested(propName, result); @@ -176,7 +176,7 @@ public class _BaseIndex extends MultiPropertyTest { PropertyValue[][] val = null; try { - log.println(" \u0421ollection has " + indProp.getCount() + + log.println(" \u0421ollection has " + indProp.getCount() + " elements : "); for (int i = 0; i < indProp.getCount(); i++) { @@ -188,7 +188,7 @@ public class _BaseIndex extends MultiPropertyTest { log.println(" " + j + " level :"); for (int k = 0; k < val[j].length; k++) { - log.println(" " + val[j][k].Name + "=" + + log.println(" " + val[j][k].Name + "=" + val[j][k].Value); } } diff --git a/qadevOOo/tests/java/ifc/text/_BaseIndexMark.java b/qadevOOo/tests/java/ifc/text/_BaseIndexMark.java index 4ac67721b601..fdebf10f5aff 100644 --- a/qadevOOo/tests/java/ifc/text/_BaseIndexMark.java +++ b/qadevOOo/tests/java/ifc/text/_BaseIndexMark.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 diff --git a/qadevOOo/tests/java/ifc/text/_CellProperties.java b/qadevOOo/tests/java/ifc/text/_CellProperties.java index e13a2da7d38e..525173019e3e 100644 --- a/qadevOOo/tests/java/ifc/text/_CellProperties.java +++ b/qadevOOo/tests/java/ifc/text/_CellProperties.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 @@ -132,7 +132,7 @@ public class _CellProperties extends MultiPropertyTest { protected Object getNewValue(String propName, Object oldValue) { XNameContainer NC = null; try { - NC = (XNameContainer) + NC = (XNameContainer) AnyConverter.toObject(new Type(XNameContainer.class),oldValue); NC.insertByName("MyAttribute", new AttributeData("","CDATA","Value")); diff --git a/qadevOOo/tests/java/ifc/text/_CellRange.java b/qadevOOo/tests/java/ifc/text/_CellRange.java index adcb2a5baf0e..a0fa2fc8c6de 100644 --- a/qadevOOo/tests/java/ifc/text/_CellRange.java +++ b/qadevOOo/tests/java/ifc/text/_CellRange.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 diff --git a/qadevOOo/tests/java/ifc/text/_Defaults.java b/qadevOOo/tests/java/ifc/text/_Defaults.java index 9950ad67797e..3e5375b5142a 100644 --- a/qadevOOo/tests/java/ifc/text/_Defaults.java +++ b/qadevOOo/tests/java/ifc/text/_Defaults.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 diff --git a/qadevOOo/tests/java/ifc/text/_DocumentIndex.java b/qadevOOo/tests/java/ifc/text/_DocumentIndex.java index e22f56b11964..985c340ab674 100644 --- a/qadevOOo/tests/java/ifc/text/_DocumentIndex.java +++ b/qadevOOo/tests/java/ifc/text/_DocumentIndex.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 diff --git a/qadevOOo/tests/java/ifc/text/_DocumentIndexMark.java b/qadevOOo/tests/java/ifc/text/_DocumentIndexMark.java index b44ca5bd775c..d0b878d7d84b 100644 --- a/qadevOOo/tests/java/ifc/text/_DocumentIndexMark.java +++ b/qadevOOo/tests/java/ifc/text/_DocumentIndexMark.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 diff --git a/qadevOOo/tests/java/ifc/text/_DocumentSettings.java b/qadevOOo/tests/java/ifc/text/_DocumentSettings.java index 699fe5195672..76c20431dac8 100644 --- a/qadevOOo/tests/java/ifc/text/_DocumentSettings.java +++ b/qadevOOo/tests/java/ifc/text/_DocumentSettings.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 @@ -31,5 +31,5 @@ import lib.MultiPropertyTest; public class _DocumentSettings extends MultiPropertyTest { - + } diff --git a/qadevOOo/tests/java/ifc/text/_Footnote.java b/qadevOOo/tests/java/ifc/text/_Footnote.java index dd93a3d8f40b..de555015bc38 100644 --- a/qadevOOo/tests/java/ifc/text/_Footnote.java +++ b/qadevOOo/tests/java/ifc/text/_Footnote.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 diff --git a/qadevOOo/tests/java/ifc/text/_FootnoteSettings.java b/qadevOOo/tests/java/ifc/text/_FootnoteSettings.java index 5795575b6f9a..9c911d171520 100644 --- a/qadevOOo/tests/java/ifc/text/_FootnoteSettings.java +++ b/qadevOOo/tests/java/ifc/text/_FootnoteSettings.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 diff --git a/qadevOOo/tests/java/ifc/text/_GenericTextDocument.java b/qadevOOo/tests/java/ifc/text/_GenericTextDocument.java index feb148e1b5a5..7a06b7dd3180 100644 --- a/qadevOOo/tests/java/ifc/text/_GenericTextDocument.java +++ b/qadevOOo/tests/java/ifc/text/_GenericTextDocument.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 diff --git a/qadevOOo/tests/java/ifc/text/_LineNumberingProperties.java b/qadevOOo/tests/java/ifc/text/_LineNumberingProperties.java index 1c1c7d79dfef..57b1e21a23d3 100644 --- a/qadevOOo/tests/java/ifc/text/_LineNumberingProperties.java +++ b/qadevOOo/tests/java/ifc/text/_LineNumberingProperties.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 diff --git a/qadevOOo/tests/java/ifc/text/_MailMerge.java b/qadevOOo/tests/java/ifc/text/_MailMerge.java index f16eaefd12db..66b01a04189c 100644 --- a/qadevOOo/tests/java/ifc/text/_MailMerge.java +++ b/qadevOOo/tests/java/ifc/text/_MailMerge.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 @@ -74,7 +74,7 @@ public class _MailMerge extends MultiPropertyTest { log.println("set property to a new value..."); oObj.setPropertyValue(propName, newValue); - + log.println("get the new value..."); XResultSet getValue = (XResultSet) UnoRuntime.queryInterface(XResultSet.class,oObj.getPropertyValue(propName)); @@ -91,7 +91,7 @@ public class _MailMerge extends MultiPropertyTest { log.println("Property '" + propName + "' is optional and not supported"); tRes.tested(propName,true); - + } else { log.println("could not get property '"+ propName +"' from XPropertySet!"); tRes.tested(propName, false); @@ -118,7 +118,7 @@ public class _MailMerge extends MultiPropertyTest { log.println("set property to a new value..."); oObj.setPropertyValue(propName, newValue); - + log.println("get the new value..."); XConnection getValue = (XConnection) UnoRuntime.queryInterface(XConnection.class,oObj.getPropertyValue(propName)); @@ -135,7 +135,7 @@ public class _MailMerge extends MultiPropertyTest { log.println("Property '" + propName + "' is optional and not supported"); tRes.tested(propName,true); - + } else { log.println("could not get property '"+ propName +"' from XPropertySet!"); tRes.tested(propName, false); @@ -145,7 +145,7 @@ public class _MailMerge extends MultiPropertyTest { tRes.tested(propName, false); } } - + /** * Tested with custom property tester. */ diff --git a/qadevOOo/tests/java/ifc/text/_NumberingLevel.java b/qadevOOo/tests/java/ifc/text/_NumberingLevel.java index c4255065dfa1..ff7b6b06b8a5 100644 --- a/qadevOOo/tests/java/ifc/text/_NumberingLevel.java +++ b/qadevOOo/tests/java/ifc/text/_NumberingLevel.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 @@ -37,7 +37,7 @@ import share.LogWriter; /** * Testing <code>com.sun.star.text.NumberingLevel</code><p> -* This service is currently konwn as property value of +* This service is currently konwn as property value of * com.sun.star.text.ParagraphProperties.NumberingRules * This test checks only for completnes of implemented properties. * service properties : @@ -70,13 +70,13 @@ import share.LogWriter; * @see ifc.text._ParagraphProperties */ public class _NumberingLevel { - + private static TestParameters tParam = null; private static Hashtable NumberingLevel = new Hashtable(); private static PropertyValue[] PropertyArray = null; private static LogWriter log = null; - - + + /** * returns an instance of _NumberingLevel * @param log the log writer @@ -84,12 +84,12 @@ public class _NumberingLevel { * @param propertyValues a PropertyValue[] which should contain all properties of com.sun.star.text.NumberingLevel */ public _NumberingLevel(LogWriter log, TestParameters tParam, PropertyValue[] propertyValues){ - + this.tParam = tParam; this.PropertyArray = propertyValues; - + this.log = log; - + //key = PropertyName, value = Ooptional NumberingLevel.put("Adjust", new Boolean(false)); NumberingLevel.put("ParentNumbering", new Boolean(true)); @@ -112,23 +112,23 @@ public class _NumberingLevel { NumberingLevel.put("HeadingStyleName", new Boolean(false)); NumberingLevel.put("BulletColor", new Boolean(true)); NumberingLevel.put("BulletRelSize", new Boolean(true)); - + } - + /** - * This methods checks the PropertyValue for completnes. If one or more properties + * This methods checks the PropertyValue for completnes. If one or more properties * are missing the return value is FALSE, else TRUE * @return returns TRUE if PropertyValue[] is complete, else FALSE */ public boolean testPropertieArray(){ - + boolean status = true; try{ - + // iterate over the given property array and remove it from the must list for (int i = 0; i < PropertyArray.length; i++){ String propertyName=PropertyArray[i].Name; - + if ( NumberingLevel.containsKey(propertyName) ) { NumberingLevel.remove(propertyName); } else { @@ -141,17 +141,17 @@ public class _NumberingLevel { status = false; log.println("-> '" + propertyName + "'"); } - + } - + // get rest of properties and check if they are optional if (! NumberingLevel.isEmpty()){ for (Enumeration e = NumberingLevel.keys() ; e.hasMoreElements() ;) { String property = (String) e.nextElement(); - + // if some elements are not optional -> failed if ( ! ((Boolean)NumberingLevel.get(property)).booleanValue() ){ - + if ( status ) { log.println("FAILED: com.sun.star.text.NumberingLevel -> " + "could not find not optional property:"); @@ -166,9 +166,9 @@ public class _NumberingLevel { }catch( Exception e ){ throw new StatusException("ERROR: could not test all properties of com.sun.star.text.NumberingLevel",e); } - + return status; } - - + + } // finish class _NumberingLevel diff --git a/qadevOOo/tests/java/ifc/text/_NumberingRules.java b/qadevOOo/tests/java/ifc/text/_NumberingRules.java index 7b053921eefc..0ae5832bfcd6 100644 --- a/qadevOOo/tests/java/ifc/text/_NumberingRules.java +++ b/qadevOOo/tests/java/ifc/text/_NumberingRules.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 diff --git a/qadevOOo/tests/java/ifc/text/_PrintPreviewSettings.java b/qadevOOo/tests/java/ifc/text/_PrintPreviewSettings.java index 38d512536d36..2cf890d5756a 100644 --- a/qadevOOo/tests/java/ifc/text/_PrintPreviewSettings.java +++ b/qadevOOo/tests/java/ifc/text/_PrintPreviewSettings.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 @@ -30,6 +30,6 @@ package ifc.text; import lib.MultiPropertyTest; public class _PrintPreviewSettings extends MultiPropertyTest -{ - +{ + } diff --git a/qadevOOo/tests/java/ifc/text/_PrintSettings.java b/qadevOOo/tests/java/ifc/text/_PrintSettings.java index 301d0e5ed179..d87a617ebce0 100644 --- a/qadevOOo/tests/java/ifc/text/_PrintSettings.java +++ b/qadevOOo/tests/java/ifc/text/_PrintSettings.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 diff --git a/qadevOOo/tests/java/ifc/text/_Text.java b/qadevOOo/tests/java/ifc/text/_Text.java index eade97485e4a..0b0c289a2286 100644 --- a/qadevOOo/tests/java/ifc/text/_Text.java +++ b/qadevOOo/tests/java/ifc/text/_Text.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 diff --git a/qadevOOo/tests/java/ifc/text/_TextColumns.java b/qadevOOo/tests/java/ifc/text/_TextColumns.java index 4c0c09df5249..6ccb1a17b1a2 100644 --- a/qadevOOo/tests/java/ifc/text/_TextColumns.java +++ b/qadevOOo/tests/java/ifc/text/_TextColumns.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 diff --git a/qadevOOo/tests/java/ifc/text/_TextContent.java b/qadevOOo/tests/java/ifc/text/_TextContent.java index af4ec84f10b8..93bc22476c38 100644 --- a/qadevOOo/tests/java/ifc/text/_TextContent.java +++ b/qadevOOo/tests/java/ifc/text/_TextContent.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 diff --git a/qadevOOo/tests/java/ifc/text/_TextDocument.java b/qadevOOo/tests/java/ifc/text/_TextDocument.java index 89535fdc4995..ad8b1cdfc213 100644 --- a/qadevOOo/tests/java/ifc/text/_TextDocument.java +++ b/qadevOOo/tests/java/ifc/text/_TextDocument.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 diff --git a/qadevOOo/tests/java/ifc/text/_TextEmbeddedObject.java b/qadevOOo/tests/java/ifc/text/_TextEmbeddedObject.java index 0d1323507c56..fa8d3b9dc9db 100644 --- a/qadevOOo/tests/java/ifc/text/_TextEmbeddedObject.java +++ b/qadevOOo/tests/java/ifc/text/_TextEmbeddedObject.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 @@ -56,10 +56,10 @@ public class _TextEmbeddedObject extends MultiPropertyTest { "According to the idl-description this property can't be set as soon as the Object is inserted in the document, so setting will be skipped"); result=true; } catch (com.sun.star.beans.UnknownPropertyException e) { - log.println("Exception while getting Property 'CLSID' " + + log.println("Exception while getting Property 'CLSID' " + e.getMessage()); } catch (com.sun.star.lang.WrappedTargetException e) { - log.println("Exception while getting Property 'CLSID' " + + log.println("Exception while getting Property 'CLSID' " + e.getMessage()); } diff --git a/qadevOOo/tests/java/ifc/text/_TextFieldMaster.java b/qadevOOo/tests/java/ifc/text/_TextFieldMaster.java index a37359621f6d..23561bf7d2ca 100644 --- a/qadevOOo/tests/java/ifc/text/_TextFieldMaster.java +++ b/qadevOOo/tests/java/ifc/text/_TextFieldMaster.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 diff --git a/qadevOOo/tests/java/ifc/text/_TextFrame.java b/qadevOOo/tests/java/ifc/text/_TextFrame.java index fc8240a98acc..6e4b176fce77 100644 --- a/qadevOOo/tests/java/ifc/text/_TextFrame.java +++ b/qadevOOo/tests/java/ifc/text/_TextFrame.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 diff --git a/qadevOOo/tests/java/ifc/text/_TextGraphicObject.java b/qadevOOo/tests/java/ifc/text/_TextGraphicObject.java index c73fd3c4a643..43f2b2edc2c9 100644 --- a/qadevOOo/tests/java/ifc/text/_TextGraphicObject.java +++ b/qadevOOo/tests/java/ifc/text/_TextGraphicObject.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 @@ -113,7 +113,7 @@ public class _TextGraphicObject extends MultiPropertyTest { try { XIndexContainer imgMap = (XIndexContainer) UnoRuntime.queryInterface( - XIndexContainer.class, + XIndexContainer.class, oObj.getPropertyValue("ImageMap")); int previous = imgMap.getCount(); log.println("Count (previous) " + previous); @@ -122,7 +122,7 @@ public class _TextGraphicObject extends MultiPropertyTest { imgMap.insertByIndex(0, im); oObj.setPropertyValue("ImageMap", imgMap); imgMap = (XIndexContainer) UnoRuntime.queryInterface( - XIndexContainer.class, + XIndexContainer.class, oObj.getPropertyValue("ImageMap")); int after = imgMap.getCount(); diff --git a/qadevOOo/tests/java/ifc/text/_TextPortion.java b/qadevOOo/tests/java/ifc/text/_TextPortion.java index 828609c158a2..d229de57294a 100644 --- a/qadevOOo/tests/java/ifc/text/_TextPortion.java +++ b/qadevOOo/tests/java/ifc/text/_TextPortion.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 diff --git a/qadevOOo/tests/java/ifc/text/_TextSection.java b/qadevOOo/tests/java/ifc/text/_TextSection.java index 10c5aef9ca54..f706e55b823e 100644 --- a/qadevOOo/tests/java/ifc/text/_TextSection.java +++ b/qadevOOo/tests/java/ifc/text/_TextSection.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 diff --git a/qadevOOo/tests/java/ifc/text/_TextTable.java b/qadevOOo/tests/java/ifc/text/_TextTable.java index af99d25c6fbd..675ca24e617f 100644 --- a/qadevOOo/tests/java/ifc/text/_TextTable.java +++ b/qadevOOo/tests/java/ifc/text/_TextTable.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 @@ -106,13 +106,13 @@ public class _TextTable extends MultiPropertyTest { testProperty("RelativeWidth"); } - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); - } + } } // finish class _TextTable diff --git a/qadevOOo/tests/java/ifc/text/_TextTableRow.java b/qadevOOo/tests/java/ifc/text/_TextTableRow.java index 0da5ba823453..79f5ae3f0d63 100644 --- a/qadevOOo/tests/java/ifc/text/_TextTableRow.java +++ b/qadevOOo/tests/java/ifc/text/_TextTableRow.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 diff --git a/qadevOOo/tests/java/ifc/text/_ViewSettings.java b/qadevOOo/tests/java/ifc/text/_ViewSettings.java index dbb721832742..ced902f007da 100644 --- a/qadevOOo/tests/java/ifc/text/_ViewSettings.java +++ b/qadevOOo/tests/java/ifc/text/_ViewSettings.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 diff --git a/qadevOOo/tests/java/ifc/text/_XAutoTextContainer.java b/qadevOOo/tests/java/ifc/text/_XAutoTextContainer.java index 5d1ff15a5c4a..01ea59ba5aa1 100644 --- a/qadevOOo/tests/java/ifc/text/_XAutoTextContainer.java +++ b/qadevOOo/tests/java/ifc/text/_XAutoTextContainer.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 diff --git a/qadevOOo/tests/java/ifc/text/_XAutoTextEntry.java b/qadevOOo/tests/java/ifc/text/_XAutoTextEntry.java index 379c80e507d1..7526fad9fb06 100644 --- a/qadevOOo/tests/java/ifc/text/_XAutoTextEntry.java +++ b/qadevOOo/tests/java/ifc/text/_XAutoTextEntry.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 diff --git a/qadevOOo/tests/java/ifc/text/_XAutoTextGroup.java b/qadevOOo/tests/java/ifc/text/_XAutoTextGroup.java index f5b465012f70..cc260f2092cf 100644 --- a/qadevOOo/tests/java/ifc/text/_XAutoTextGroup.java +++ b/qadevOOo/tests/java/ifc/text/_XAutoTextGroup.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 diff --git a/qadevOOo/tests/java/ifc/text/_XBookmarksSupplier.java b/qadevOOo/tests/java/ifc/text/_XBookmarksSupplier.java index 11e7f7940e6d..4deca55537b5 100644 --- a/qadevOOo/tests/java/ifc/text/_XBookmarksSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XBookmarksSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XChapterNumberingSupplier.java b/qadevOOo/tests/java/ifc/text/_XChapterNumberingSupplier.java index 0c582f849fc6..c2c33ed440d9 100644 --- a/qadevOOo/tests/java/ifc/text/_XChapterNumberingSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XChapterNumberingSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XDefaultNumberingProvider.java b/qadevOOo/tests/java/ifc/text/_XDefaultNumberingProvider.java index f8ffc74e9abc..ae120dd8c889 100644 --- a/qadevOOo/tests/java/ifc/text/_XDefaultNumberingProvider.java +++ b/qadevOOo/tests/java/ifc/text/_XDefaultNumberingProvider.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 diff --git a/qadevOOo/tests/java/ifc/text/_XDocumentIndex.java b/qadevOOo/tests/java/ifc/text/_XDocumentIndex.java index 704750511e56..ffb3a1dd46a1 100644 --- a/qadevOOo/tests/java/ifc/text/_XDocumentIndex.java +++ b/qadevOOo/tests/java/ifc/text/_XDocumentIndex.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 diff --git a/qadevOOo/tests/java/ifc/text/_XDocumentIndexesSupplier.java b/qadevOOo/tests/java/ifc/text/_XDocumentIndexesSupplier.java index d1198c87c3e0..5284613c3faf 100644 --- a/qadevOOo/tests/java/ifc/text/_XDocumentIndexesSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XDocumentIndexesSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XEndnotesSupplier.java b/qadevOOo/tests/java/ifc/text/_XEndnotesSupplier.java index a892a54b2cfb..aa93f31f6c82 100644 --- a/qadevOOo/tests/java/ifc/text/_XEndnotesSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XEndnotesSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XFootnote.java b/qadevOOo/tests/java/ifc/text/_XFootnote.java index 00dca02a62f2..d76dad39529f 100644 --- a/qadevOOo/tests/java/ifc/text/_XFootnote.java +++ b/qadevOOo/tests/java/ifc/text/_XFootnote.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 diff --git a/qadevOOo/tests/java/ifc/text/_XFootnotesSettingsSupplier.java b/qadevOOo/tests/java/ifc/text/_XFootnotesSettingsSupplier.java index 117209de4ded..b0100d541cb9 100644 --- a/qadevOOo/tests/java/ifc/text/_XFootnotesSettingsSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XFootnotesSettingsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XFootnotesSupplier.java b/qadevOOo/tests/java/ifc/text/_XFootnotesSupplier.java index 3263e2b78cfe..68f0b023a581 100644 --- a/qadevOOo/tests/java/ifc/text/_XFootnotesSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XFootnotesSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XLineNumberingProperties.java b/qadevOOo/tests/java/ifc/text/_XLineNumberingProperties.java index 0f743cc44396..bd69345c015d 100644 --- a/qadevOOo/tests/java/ifc/text/_XLineNumberingProperties.java +++ b/qadevOOo/tests/java/ifc/text/_XLineNumberingProperties.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 diff --git a/qadevOOo/tests/java/ifc/text/_XLineNumberingSupplier.java b/qadevOOo/tests/java/ifc/text/_XLineNumberingSupplier.java index 54ed72cb3c15..14dd6f17589f 100644 --- a/qadevOOo/tests/java/ifc/text/_XLineNumberingSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XLineNumberingSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XMailMergeBroadcaster.java b/qadevOOo/tests/java/ifc/text/_XMailMergeBroadcaster.java index 07908c2ed628..6c761217a4cd 100644 --- a/qadevOOo/tests/java/ifc/text/_XMailMergeBroadcaster.java +++ b/qadevOOo/tests/java/ifc/text/_XMailMergeBroadcaster.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 @@ -73,7 +73,7 @@ public class _XMailMergeBroadcaster extends MultiMethodTest { protected XMailMergeListener listener = new MyMailMergeEventListener(); /** - * Tries to query the tested component for object relation + * Tries to query the tested component for object relation * <code>executeArgs</code> [<code>NamedValue</code>] and <code>Job</code> * [<code>XJob</code>] * @throw StatusException If relations are not found @@ -95,12 +95,12 @@ public class _XMailMergeBroadcaster extends MultiMethodTest { */ public void _addMailMergeEventListener() { log.println("Testing addMailMergeEventListener ..."); - + oObj.addMailMergeEventListener( listener ); - + NamedValue[] executeArgs = (NamedValue[]) tEnv.getObjRelation("executeArgs"); XJob Job = (XJob) tEnv.getObjRelation("Job"); - + try { Job.execute(executeArgs); } catch ( com.sun.star.lang.IllegalArgumentException e) { @@ -110,7 +110,7 @@ public class _XMailMergeBroadcaster extends MultiMethodTest { throw new StatusException(Status.failed ("'could not fire event: " + e)) ; } - + shortWait(); tRes.tested("addMailMergeEventListener()", changed); @@ -124,12 +124,12 @@ public class _XMailMergeBroadcaster extends MultiMethodTest { log.println("Testing removeMailMergeEventListener ..."); requiredMethod("addMailMergeEventListener()"); changed = false; - + oObj.removeMailMergeEventListener( listener ); - + NamedValue[] executeArgs = (NamedValue[]) tEnv.getObjRelation("executeArgs"); XJob Job = (XJob) tEnv.getObjRelation("Job"); - + try { Job.execute(executeArgs); } catch ( com.sun.star.lang.IllegalArgumentException e) { diff --git a/qadevOOo/tests/java/ifc/text/_XPageCursor.java b/qadevOOo/tests/java/ifc/text/_XPageCursor.java index ff45e2b2fc45..a2dafb6a8ebd 100644 --- a/qadevOOo/tests/java/ifc/text/_XPageCursor.java +++ b/qadevOOo/tests/java/ifc/text/_XPageCursor.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 diff --git a/qadevOOo/tests/java/ifc/text/_XPagePrintable.java b/qadevOOo/tests/java/ifc/text/_XPagePrintable.java index 32868a4c5db1..fcd2c768f1e3 100644 --- a/qadevOOo/tests/java/ifc/text/_XPagePrintable.java +++ b/qadevOOo/tests/java/ifc/text/_XPagePrintable.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 @@ -122,7 +122,7 @@ public class _XPagePrintable extends MultiMethodTest { try { XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); - + String printFile = utils.getOfficeTemp(xMSF) + "XPagePrintable.prt"; log.println("Printing to : "+ printFile); @@ -133,21 +133,21 @@ public class _XPagePrintable extends MultiMethodTest { firstProp.Value = printFile; firstProp.State = com.sun.star.beans.PropertyState.DEFAULT_VALUE; PrintOptions[0] = firstProp; - + if (! util.utils.deleteFile(xMSF, printFile)){ log.println("ERROR: could not remove '" + printFile + "'"); res = false; } - + oObj.printPages(PrintOptions); - + util.utils.shortWait(tParam.getInt(util.PropertyName.SHORT_WAIT)); - + if (! util.utils.fileExists(xMSF, printFile)){ log.println("ERROR: could not find '" + printFile + "'"); res = false; } - + } catch (com.sun.star.lang.IllegalArgumentException ex) { log.println("Exception while checking 'printPages'"); res = false; diff --git a/qadevOOo/tests/java/ifc/text/_XParagraphCursor.java b/qadevOOo/tests/java/ifc/text/_XParagraphCursor.java index 1ac572fa5097..5ec5a139a59b 100644 --- a/qadevOOo/tests/java/ifc/text/_XParagraphCursor.java +++ b/qadevOOo/tests/java/ifc/text/_XParagraphCursor.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 diff --git a/qadevOOo/tests/java/ifc/text/_XReferenceMarksSupplier.java b/qadevOOo/tests/java/ifc/text/_XReferenceMarksSupplier.java index 9791b127cf1f..3718d8aa7637 100644 --- a/qadevOOo/tests/java/ifc/text/_XReferenceMarksSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XReferenceMarksSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XRelativeTextContentInsert.java b/qadevOOo/tests/java/ifc/text/_XRelativeTextContentInsert.java index 76d94a618a69..5de2391035ff 100644 --- a/qadevOOo/tests/java/ifc/text/_XRelativeTextContentInsert.java +++ b/qadevOOo/tests/java/ifc/text/_XRelativeTextContentInsert.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 diff --git a/qadevOOo/tests/java/ifc/text/_XSentenceCursor.java b/qadevOOo/tests/java/ifc/text/_XSentenceCursor.java index 95e3a852837e..359b13dd0641 100644 --- a/qadevOOo/tests/java/ifc/text/_XSentenceCursor.java +++ b/qadevOOo/tests/java/ifc/text/_XSentenceCursor.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 diff --git a/qadevOOo/tests/java/ifc/text/_XSimpleText.java b/qadevOOo/tests/java/ifc/text/_XSimpleText.java index 553aa7bbff96..ebe61831d474 100644 --- a/qadevOOo/tests/java/ifc/text/_XSimpleText.java +++ b/qadevOOo/tests/java/ifc/text/_XSimpleText.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 diff --git a/qadevOOo/tests/java/ifc/text/_XText.java b/qadevOOo/tests/java/ifc/text/_XText.java index 41d3f6a91db6..e436ce3b2be9 100644 --- a/qadevOOo/tests/java/ifc/text/_XText.java +++ b/qadevOOo/tests/java/ifc/text/_XText.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextColumns.java b/qadevOOo/tests/java/ifc/text/_XTextColumns.java index bc9bc59c814b..64222bb1444d 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextColumns.java +++ b/qadevOOo/tests/java/ifc/text/_XTextColumns.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextContent.java b/qadevOOo/tests/java/ifc/text/_XTextContent.java index 52ca11ab9f8d..d93c95c1fa24 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextContent.java +++ b/qadevOOo/tests/java/ifc/text/_XTextContent.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 @@ -79,14 +79,14 @@ public class _XTextContent extends MultiMethodTest { * @see #_getAnchor() */ public void _attach() { - requiredMethod("getAnchor()"); + requiredMethod("getAnchor()"); try { - XTextContent aContent = (XTextContent) tEnv.getObjRelation("CONTENT"); + XTextContent aContent = (XTextContent) tEnv.getObjRelation("CONTENT"); XTextRange aRange = (XTextRange) tEnv.getObjRelation("RANGE"); - if ( aContent !=null) { + if ( aContent !=null) { aContent.attach(aRange); - } else { + } else { oObj.attach(aRange); } tRes.tested("attach()", true ) ; @@ -100,7 +100,7 @@ public class _XTextContent extends MultiMethodTest { } else { ex.printStackTrace(log); tRes.tested("attach()",false); - } + } } catch (com.sun.star.uno.RuntimeException re) { String noAttach = (String) tEnv.getObjRelation("NoAttach"); if (noAttach != null) { @@ -110,7 +110,7 @@ public class _XTextContent extends MultiMethodTest { } else { re.printStackTrace(log); tRes.tested("attach()",false); - } + } } } } diff --git a/qadevOOo/tests/java/ifc/text/_XTextCursor.java b/qadevOOo/tests/java/ifc/text/_XTextCursor.java index cc91e0d9f8f7..145224d7817c 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextCursor.java +++ b/qadevOOo/tests/java/ifc/text/_XTextCursor.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 @@ -217,7 +217,7 @@ public class _XTextCursor extends MultiMethodTest { * and in the second <code>false</code> */ public void _isCollapsed(){ - boolean bCol = false; + boolean bCol = false; oObj.gotoStart(false); bCol = oObj.isCollapsed(); diff --git a/qadevOOo/tests/java/ifc/text/_XTextDocument.java b/qadevOOo/tests/java/ifc/text/_XTextDocument.java index 5022aba6aecd..b29e786bdc57 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextDocument.java +++ b/qadevOOo/tests/java/ifc/text/_XTextDocument.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextEmbeddedObject.java b/qadevOOo/tests/java/ifc/text/_XTextEmbeddedObject.java index 7918235a20a5..981a916418d2 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextEmbeddedObject.java +++ b/qadevOOo/tests/java/ifc/text/_XTextEmbeddedObject.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextEmbeddedObjectsSupplier.java b/qadevOOo/tests/java/ifc/text/_XTextEmbeddedObjectsSupplier.java index cea9db145382..b54c9f60856c 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextEmbeddedObjectsSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XTextEmbeddedObjectsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextField.java b/qadevOOo/tests/java/ifc/text/_XTextField.java index 8cdfc3ce1fa3..2a45604eea38 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextField.java +++ b/qadevOOo/tests/java/ifc/text/_XTextField.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextFieldsSupplier.java b/qadevOOo/tests/java/ifc/text/_XTextFieldsSupplier.java index eaacd4a5966a..e9a0700780f8 100755 --- a/qadevOOo/tests/java/ifc/text/_XTextFieldsSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XTextFieldsSupplier.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 @@ -58,9 +58,9 @@ public class _XTextFieldsSupplier extends MultiMethodTest { public XTextFieldsSupplier oObj = null; // oObj filled by MultiMethodTest private boolean mDispose = false; private boolean mbCreateFieldMaster = true; - + /** - * Insert some text fields into a cell on the sheet, so this interface test + * Insert some text fields into a cell on the sheet, so this interface test * makes sense. */ protected void before() { @@ -139,10 +139,10 @@ public class _XTextFieldsSupplier extends MultiMethodTest { e.printStackTrace(log); throw new StatusException("Couldn't insert textField.URL", e); } - + } } - + public void _getTextFields() { XEnumerationAccess xEnumAccess = oObj.getTextFields(); XEnumeration xEnum = xEnumAccess.createEnumeration(); @@ -151,15 +151,15 @@ public class _XTextFieldsSupplier extends MultiMethodTest { Object o = xEnum.nextElement(); } catch(com.sun.star.container.NoSuchElementException e) { - setMethodFalse("getTextFields()", e); + setMethodFalse("getTextFields()", e); } catch(com.sun.star.lang.WrappedTargetException e) { - setMethodFalse("getTextFields()", e); + setMethodFalse("getTextFields()", e); } } tRes.tested("getTextFields()", xEnum != null); } - + public void _getTextFieldMasters() { if (mbCreateFieldMaster) { XNameAccess xName = oObj.getTextFieldMasters(); @@ -171,7 +171,7 @@ public class _XTextFieldsSupplier extends MultiMethodTest { tRes.tested("getTextFieldMasters()", true); } } - + /** * Just for convenience: log the exception and set the method false. * @param method The name of the method to set to false. @@ -182,10 +182,10 @@ public class _XTextFieldsSupplier extends MultiMethodTest { e.printStackTrace((PrintWriter)log); tRes.tested(method, false); } - + protected void after() { if (mDispose) disposeEnvironment(); } - + } diff --git a/qadevOOo/tests/java/ifc/text/_XTextFrame.java b/qadevOOo/tests/java/ifc/text/_XTextFrame.java index 99cc4307604a..4a4c916c4a29 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextFrame.java +++ b/qadevOOo/tests/java/ifc/text/_XTextFrame.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextFramesSupplier.java b/qadevOOo/tests/java/ifc/text/_XTextFramesSupplier.java index 342190f9381f..1cb192bf35be 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextFramesSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XTextFramesSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextGraphicObjectsSupplier.java b/qadevOOo/tests/java/ifc/text/_XTextGraphicObjectsSupplier.java index adb93480ff04..1f3c20571951 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextGraphicObjectsSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XTextGraphicObjectsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextRange.java b/qadevOOo/tests/java/ifc/text/_XTextRange.java index 304bc065e7ab..af95c69edd09 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextRange.java +++ b/qadevOOo/tests/java/ifc/text/_XTextRange.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 @@ -91,8 +91,8 @@ public class _XTextRange extends MultiMethodTest { tRes.tested( "getStart()", oStartRange != null && exp.startsWith("Start")); - - + + oStartRange.setString(""); } @@ -128,7 +128,7 @@ public class _XTextRange extends MultiMethodTest { tRes.tested( "getEnd()", oEndRange != null && exp.endsWith("End")); - + oEndRange.setString(""); } diff --git a/qadevOOo/tests/java/ifc/text/_XTextRangeCompare.java b/qadevOOo/tests/java/ifc/text/_XTextRangeCompare.java index da7f7c98c0ba..744d993c831d 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextRangeCompare.java +++ b/qadevOOo/tests/java/ifc/text/_XTextRangeCompare.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 @@ -109,9 +109,9 @@ public class _XTextRangeCompare extends MultiMethodTest { /** * One cursor is created and to its position a paragraph * inserted, then the fist five characters was selected. - * A second cursor was created and the last 7 characteres + * A second cursor was created and the last 7 characteres * was selected.<p> - * + * * Has <b>OK</b> status if the compare returns 1, i.e. * the second cursor end is before the first. */ @@ -124,7 +124,7 @@ public class _XTextRangeCompare extends MultiMethodTest { cursor1 = oText.createTextCursor(); oText.insertString(cursor1, nameStr, false); - cursor1.gotoStart(false); + cursor1.gotoStart(false); cursor1.goRight((short)5, true); cursor2 = oText.createTextCursor(); cursor2.gotoEnd(false); @@ -136,7 +136,7 @@ public class _XTextRangeCompare extends MultiMethodTest { log.println("check: oObj.compareRegionStarts(cursor1, cursor2)"); n = oObj.compareRegionEnds(cursor1, cursor2); - + log.println( "Result (short) : " + n ); }catch(com.sun.star.lang.IllegalArgumentException e){ log.println( "Exception: " + e); @@ -150,9 +150,9 @@ public class _XTextRangeCompare extends MultiMethodTest { /** * One cursor is created and to its position a paragraph * inserted, then the fist five characters was selected. - * A second cursor was created and the last 7 characters + * A second cursor was created and the last 7 characters * was selected.<p> - * + * * Has <b>OK</b> status if the compare returns 1, i.e. * the second cursor start is before the first. */ @@ -164,7 +164,7 @@ public class _XTextRangeCompare extends MultiMethodTest { cursor1 = oText.createTextCursor(); oText.insertString(cursor1, nameStr, false); - cursor1.gotoStart(false); + cursor1.gotoStart(false); cursor1.goRight((short)5, true); cursor2 = oText.createTextCursor(); cursor2.gotoEnd(false); @@ -175,7 +175,7 @@ public class _XTextRangeCompare extends MultiMethodTest { log.println("cursor2: '"+cursor2.getString() + "'"); log.println("check: oObj.compareRegionStarts(cursor1, cursor2)"); n = oObj.compareRegionStarts(cursor1, cursor2); - + log.println( "Result (short) : " + n ); }catch(com.sun.star.lang.IllegalArgumentException e){ log.println( "Exception: " + e); diff --git a/qadevOOo/tests/java/ifc/text/_XTextRangeMover.java b/qadevOOo/tests/java/ifc/text/_XTextRangeMover.java index b6320fb19582..d6bcd9c8e7b3 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextRangeMover.java +++ b/qadevOOo/tests/java/ifc/text/_XTextRangeMover.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextSection.java b/qadevOOo/tests/java/ifc/text/_XTextSection.java index 030764bd2205..fd7e2e15a6e0 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextSection.java +++ b/qadevOOo/tests/java/ifc/text/_XTextSection.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextSectionsSupplier.java b/qadevOOo/tests/java/ifc/text/_XTextSectionsSupplier.java index 0146e3c2d5ac..e4f9584d75c9 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextSectionsSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XTextSectionsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextTable.java b/qadevOOo/tests/java/ifc/text/_XTextTable.java index 4dfa9e10e410..bd3dc73567c7 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextTable.java +++ b/qadevOOo/tests/java/ifc/text/_XTextTable.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextTableCursor.java b/qadevOOo/tests/java/ifc/text/_XTextTableCursor.java index 993406a821f4..8e013f5de13c 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextTableCursor.java +++ b/qadevOOo/tests/java/ifc/text/_XTextTableCursor.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextTablesSupplier.java b/qadevOOo/tests/java/ifc/text/_XTextTablesSupplier.java index 1a0e4a686ae6..101e1cb0b935 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextTablesSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XTextTablesSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XTextViewCursorSupplier.java b/qadevOOo/tests/java/ifc/text/_XTextViewCursorSupplier.java index 05792f041086..53de699ae12c 100644 --- a/qadevOOo/tests/java/ifc/text/_XTextViewCursorSupplier.java +++ b/qadevOOo/tests/java/ifc/text/_XTextViewCursorSupplier.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 diff --git a/qadevOOo/tests/java/ifc/text/_XWordCursor.java b/qadevOOo/tests/java/ifc/text/_XWordCursor.java index 91ed4fadd3d2..72dfc901af5c 100644 --- a/qadevOOo/tests/java/ifc/text/_XWordCursor.java +++ b/qadevOOo/tests/java/ifc/text/_XWordCursor.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XCachedContentResultSetFactory.java b/qadevOOo/tests/java/ifc/ucb/_XCachedContentResultSetFactory.java index 806c3c8c9962..316cd863ea4e 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XCachedContentResultSetFactory.java +++ b/qadevOOo/tests/java/ifc/ucb/_XCachedContentResultSetFactory.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XCachedContentResultSetStubFactory.java b/qadevOOo/tests/java/ifc/ucb/_XCachedContentResultSetStubFactory.java index 86cc310eab02..2ba2274bf756 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XCachedContentResultSetStubFactory.java +++ b/qadevOOo/tests/java/ifc/ucb/_XCachedContentResultSetStubFactory.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XCachedDynamicResultSetFactory.java b/qadevOOo/tests/java/ifc/ucb/_XCachedDynamicResultSetFactory.java index bc3c02d6d69a..0aa4d9675523 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XCachedDynamicResultSetFactory.java +++ b/qadevOOo/tests/java/ifc/ucb/_XCachedDynamicResultSetFactory.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XCachedDynamicResultSetStubFactory.java b/qadevOOo/tests/java/ifc/ucb/_XCachedDynamicResultSetStubFactory.java index a5c927cb620d..4da4491b5b19 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XCachedDynamicResultSetStubFactory.java +++ b/qadevOOo/tests/java/ifc/ucb/_XCachedDynamicResultSetStubFactory.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.java b/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.java index 44bf27e99bea..2217c0c0d6b2 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.java +++ b/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor2.java b/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor2.java index d4e16e052e27..ffa4ff0977aa 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor2.java +++ b/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor2.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XContentIdentifierFactory.java b/qadevOOo/tests/java/ifc/ucb/_XContentIdentifierFactory.java index 071f99ebf640..a6a7c383a670 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XContentIdentifierFactory.java +++ b/qadevOOo/tests/java/ifc/ucb/_XContentIdentifierFactory.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XContentProvider.java b/qadevOOo/tests/java/ifc/ucb/_XContentProvider.java index 62d6832ef965..c9e110143bcd 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XContentProvider.java +++ b/qadevOOo/tests/java/ifc/ucb/_XContentProvider.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XContentProviderFactory.java b/qadevOOo/tests/java/ifc/ucb/_XContentProviderFactory.java index 36586ddf250e..756ea9905688 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XContentProviderFactory.java +++ b/qadevOOo/tests/java/ifc/ucb/_XContentProviderFactory.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java b/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java index 075e157e57ad..bffa1a6c73e0 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.java +++ b/qadevOOo/tests/java/ifc/ucb/_XContentProviderManager.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XDataContainer.java b/qadevOOo/tests/java/ifc/ucb/_XDataContainer.java index 7cfa8462fbda..f89f02b46f43 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XDataContainer.java +++ b/qadevOOo/tests/java/ifc/ucb/_XDataContainer.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XFileIdentifierConverter.java b/qadevOOo/tests/java/ifc/ucb/_XFileIdentifierConverter.java index 70fe7deeb8ac..0b4fd8505cd1 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XFileIdentifierConverter.java +++ b/qadevOOo/tests/java/ifc/ucb/_XFileIdentifierConverter.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XParameterizedContentProvider.java b/qadevOOo/tests/java/ifc/ucb/_XParameterizedContentProvider.java index bd38c1751b6a..618373929ed2 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XParameterizedContentProvider.java +++ b/qadevOOo/tests/java/ifc/ucb/_XParameterizedContentProvider.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XPropertyMatcherFactory.java b/qadevOOo/tests/java/ifc/ucb/_XPropertyMatcherFactory.java index d5d00c1d2229..c886d1d160d1 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XPropertyMatcherFactory.java +++ b/qadevOOo/tests/java/ifc/ucb/_XPropertyMatcherFactory.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XPropertySetRegistryFactory.java b/qadevOOo/tests/java/ifc/ucb/_XPropertySetRegistryFactory.java index 39e9fd49f2cd..5d19ea02c9e7 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XPropertySetRegistryFactory.java +++ b/qadevOOo/tests/java/ifc/ucb/_XPropertySetRegistryFactory.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XRemoteContentProviderAcceptor.java b/qadevOOo/tests/java/ifc/ucb/_XRemoteContentProviderAcceptor.java index 960becd92c89..613b045eb901 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XRemoteContentProviderAcceptor.java +++ b/qadevOOo/tests/java/ifc/ucb/_XRemoteContentProviderAcceptor.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XRemoteContentProviderActivator.java b/qadevOOo/tests/java/ifc/ucb/_XRemoteContentProviderActivator.java index 758d6eba698f..22ae108607cd 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XRemoteContentProviderActivator.java +++ b/qadevOOo/tests/java/ifc/ucb/_XRemoteContentProviderActivator.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess.java b/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess.java index 5eb811570515..377ed99547c2 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess.java +++ b/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess2.java b/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess2.java index 589bf6ef931d..21c7f7827f53 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess2.java +++ b/qadevOOo/tests/java/ifc/ucb/_XSimpleFileAccess2.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 diff --git a/qadevOOo/tests/java/ifc/ucb/_XSortedDynamicResultSetFactory.java b/qadevOOo/tests/java/ifc/ucb/_XSortedDynamicResultSetFactory.java index f14dafba9d0c..90ea861f9f34 100644 --- a/qadevOOo/tests/java/ifc/ucb/_XSortedDynamicResultSetFactory.java +++ b/qadevOOo/tests/java/ifc/ucb/_XSortedDynamicResultSetFactory.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 diff --git a/qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java b/qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java index 3e5361e9f2e0..b86bd1cd9e1a 100644 --- a/qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java +++ b/qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.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 @@ -54,37 +54,37 @@ import util.DesktopTools; import util.utils; public class _XContextMenuInterception extends MultiMethodTest { - + private XModel docModel = null; private XContextMenuInterceptor xCI = null; public XContextMenuInterception oObj = null; private XWindow xWindow = null; private XMultiServiceFactory xMSF = null; private Point point = null; - + public void before() { docModel = (XModel) UnoRuntime.queryInterface( XModel.class,tEnv.getObjRelation("FirstModel")); - + xCI = (XContextMenuInterceptor) UnoRuntime.queryInterface( XContextMenuInterceptor.class, new ContextMenuInterceptor()); - + xMSF = (XMultiServiceFactory)tParam.getMSF(); - + //ensure that the first model is focused log.println("ensure that the first model is focused"); DesktopTools.bringWindowToFront(docModel); - + utils.shortWait(3000); } - + public void after() { if (xCI != null) { oObj.releaseContextMenuInterceptor(xCI); } } - + public void _registerContextMenuInterceptor() { oObj.registerContextMenuInterceptor(xCI); openContextMenu(docModel); @@ -92,7 +92,7 @@ public class _XContextMenuInterception extends MultiMethodTest { releasePopUp(); tRes.tested("registerContextMenuInterceptor()",res); } - + public void _releaseContextMenuInterceptor() { requiredMethod("registerContextMenuInterceptor()"); oObj.releaseContextMenuInterceptor(xCI); @@ -101,11 +101,11 @@ public class _XContextMenuInterception extends MultiMethodTest { releasePopUp(); tRes.tested("releaseContextMenuInterceptor()",!res); } - + private boolean checkHelpEntry(){ XInterface toolkit = null; boolean res = true; - + log.println("get accesibility..."); try{ toolkit = (XInterface) xMSF.createInstance("com.sun.star.awt.Toolkit"); @@ -114,69 +114,69 @@ public class _XContextMenuInterception extends MultiMethodTest { } XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface( XExtendedToolkit.class, toolkit); - + XAccessible xRoot = null; - + AccessibilityTools at = new AccessibilityTools(); - + try { xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, tk.getTopWindow(0)); - + xRoot = at.getAccessibleObject(xWindow); at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { log.println("Couldn't get Window"); } - + XAccessibleContext oPopMenu = at.getAccessibleObjectForRole(xRoot, AccessibleRole.POPUP_MENU,true); - + log.println("ImplementationName: " + util.utils.getImplName(oPopMenu)); - + XAccessible xHelp = null; try{ log.println("Try to get second entry of context menu..."); xHelp = oPopMenu.getAccessibleChild(1); - + } catch (IndexOutOfBoundsException e){ throw new StatusException("Not possible to get second entry of context menu",e); } - + if (xHelp == null) throw new StatusException(new Status("second entry of context menu is NULL", false)); - + XAccessibleContext xHelpCont = xHelp.getAccessibleContext(); - + if ( xHelpCont == null ) throw new StatusException(new Status("No able to retrieve accessible context from first entry of context menu",false)); - + String aAccessibleName = xHelpCont.getAccessibleName(); if ( !aAccessibleName.equals( "Help" )) { log.println("Accessible name found = "+aAccessibleName ); log.println("Second entry of context menu is not from context menu interceptor"); res=false; } - + return res; - + } - + private void openContextMenu(XModel xModel){ - + log.println("try to open contex menu..."); AccessibilityTools at = new AccessibilityTools(); - + xWindow = at.getCurrentWindow(xMSF, xModel); - + XAccessible xRoot = at.getAccessibleObject(xWindow); - + XInterface oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL); - + XAccessibleComponent window = (XAccessibleComponent) UnoRuntime.queryInterface( XAccessibleComponent.class, oObj); - + point = window.getLocationOnScreen(); Rectangle rect = window.getBounds(); - + log.println("klick mouse button..."); try { Robot rob = new Robot(); @@ -191,11 +191,11 @@ public class _XContextMenuInterception extends MultiMethodTest { } catch (java.awt.AWTException e) { log.println("couldn't press mouse button"); } - + utils.shortWait(1000); - + } - + private void releasePopUp() { log.println("release the popup menu"); try { diff --git a/qadevOOo/tests/java/ifc/ui/_XModuleUIConfigurationManager.java b/qadevOOo/tests/java/ifc/ui/_XModuleUIConfigurationManager.java index 024f72d07259..9d5dd4859e94 100755 --- a/qadevOOo/tests/java/ifc/ui/_XModuleUIConfigurationManager.java +++ b/qadevOOo/tests/java/ifc/ui/_XModuleUIConfigurationManager.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 @@ -32,14 +32,14 @@ import com.sun.star.ui.XModuleUIConfigurationManager; import lib.MultiMethodTest; public class _XModuleUIConfigurationManager extends MultiMethodTest { - + public XModuleUIConfigurationManager oObj = null; private String resourceUrl = null; - + public void before() { resourceUrl = (String)tEnv.getObjRelation("XModuleUIConfigurationManager.ResourceURL"); } - + public void _isDefaultSettings() { boolean result; try { @@ -57,10 +57,10 @@ public class _XModuleUIConfigurationManager extends MultiMethodTest { log.println("'" + notPossibleUrl + "' is an illegal resource."); result = false; } - + tRes.tested("isDefaultSettings()", result); } - + public void _getDefaultSettings() { boolean result; try { @@ -77,5 +77,5 @@ public class _XModuleUIConfigurationManager extends MultiMethodTest { } tRes.tested("getDefaultSettings()", result); } - + } diff --git a/qadevOOo/tests/java/ifc/ui/_XModuleUIConfigurationManagerSupplier.java b/qadevOOo/tests/java/ifc/ui/_XModuleUIConfigurationManagerSupplier.java index f2c87692d7bc..7f4015e7dc2f 100755 --- a/qadevOOo/tests/java/ifc/ui/_XModuleUIConfigurationManagerSupplier.java +++ b/qadevOOo/tests/java/ifc/ui/_XModuleUIConfigurationManagerSupplier.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 @@ -33,23 +33,23 @@ import com.sun.star.ui.XModuleUIConfigurationManagerSupplier; import lib.MultiMethodTest; public class _XModuleUIConfigurationManagerSupplier extends MultiMethodTest { - + public XModuleUIConfigurationManagerSupplier oObj; - + public void _getUIConfigurationManager() { String configManagerName = null; String implementationName = null; try { configManagerName = (String)tEnv.getObjRelation("XModuleUIConfigurationManagerSupplier.ConfigurationManager"); implementationName = (String)tEnv.getObjRelation("XModuleUIConfigurationManagerSupplier.ConfigManagerImplementationName"); - + // get a config manager for the StartModule Object o = oObj.getUIConfigurationManager(configManagerName); XServiceInfo xServiceInfo = (XServiceInfo)UnoRuntime.queryInterface(XServiceInfo.class, o); String impName = xServiceInfo.getImplementationName(); boolean result = impName.equals(implementationName); if (!result) { - log.println("Returned implementation was '" + impName + + log.println("Returned implementation was '" + impName + "' but should have been '" + implementationName + "'"); } tRes.tested("getUIConfigurationManager()", result); diff --git a/qadevOOo/tests/java/ifc/ui/_XUIConfiguration.java b/qadevOOo/tests/java/ifc/ui/_XUIConfiguration.java index 9b0fea0096c5..cc3b7f207d4c 100755 --- a/qadevOOo/tests/java/ifc/ui/_XUIConfiguration.java +++ b/qadevOOo/tests/java/ifc/ui/_XUIConfiguration.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 @@ -47,20 +47,20 @@ public class _XUIConfiguration extends MultiMethodTest { public XUIConfiguration oObj; XUIConfigurationListenerImpl xListener = null; - + /** * Interface for the Listener of the object relation * <CODE>XUIConfiguration.XUIConfigurationListenerImpl</CODE> * @see com.sun.star.ui.XUIConfigurationListener */ - public static interface XUIConfigurationListenerImpl + public static interface XUIConfigurationListenerImpl extends XUIConfigurationListener { - public void reset(); - public void fireEvent(); + public void reset(); + public void fireEvent(); public boolean actionWasTriggered(); } - - + + /** * try to get a listener out of the object relation * <CODE>XUIConfiguration.XUIConfigurationListenerImpl</CODE> @@ -70,7 +70,7 @@ public class _XUIConfiguration extends MultiMethodTest { "XUIConfiguration.XUIConfigurationListenerImpl"); XUIConfigurationListener l; } - + /** * adds a listener an fire an event * Has <B>OK</B> status if listener was called @@ -80,7 +80,7 @@ public class _XUIConfiguration extends MultiMethodTest { xListener.fireEvent(); tRes.tested("addConfigurationListener()", xListener.actionWasTriggered()); } - + /** * removes the listener and calls an event. * Has <B>OK</B> status if listener is not called. @@ -92,7 +92,7 @@ public class _XUIConfiguration extends MultiMethodTest { xListener.fireEvent(); tRes.tested("removeConfigurationListener()", !xListener.actionWasTriggered()); } - + /** * Dispose because the UIConfigurationManager has to be recreated */ diff --git a/qadevOOo/tests/java/ifc/ui/_XUIConfigurationListener.java b/qadevOOo/tests/java/ifc/ui/_XUIConfigurationListener.java index cd24140d988e..efc46f8d6063 100755 --- a/qadevOOo/tests/java/ifc/ui/_XUIConfigurationListener.java +++ b/qadevOOo/tests/java/ifc/ui/_XUIConfigurationListener.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 @@ -32,7 +32,7 @@ import com.sun.star.ui.XUIConfigurationListener; import lib.MultiMethodTest; public class _XUIConfigurationListener extends MultiMethodTest { - + public XUIConfigurationListener oObj = null; public void _elementInserted() { diff --git a/qadevOOo/tests/java/ifc/ui/_XUIConfigurationManager.java b/qadevOOo/tests/java/ifc/ui/_XUIConfigurationManager.java index 53ddc59e6ce9..f14e70403f2d 100755 --- a/qadevOOo/tests/java/ifc/ui/_XUIConfigurationManager.java +++ b/qadevOOo/tests/java/ifc/ui/_XUIConfigurationManager.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 @@ -42,7 +42,7 @@ import java.io.PrintWriter; import lib.MultiMethodTest; public class _XUIConfigurationManager extends MultiMethodTest { - + public XUIConfigurationManager oObj; private String msResourceUrl = "private:resource/menubar/menubar"; private String msMyResourceUrl = "private:resource/menubar/mymenubar"; @@ -50,8 +50,8 @@ public class _XUIConfigurationManager extends MultiMethodTest { private XIndexAccess mxMenuBarSettings = null; private XMultiServiceFactory mxMSF = null; private String sShortCutManagerServiceName = null; - - + + /** * Some stuff before the tests: * extract the multi service factory. @@ -61,7 +61,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { sShortCutManagerServiceName = (String)tEnv.getObjRelation("XConfigurationManager.ShortCutManager"); } - + /** * reset all changes: do at the end. */ @@ -70,7 +70,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { oObj.reset(); tRes.tested("reset()", true); } - + public void _getUIElementsInfo() { boolean result = true; try { @@ -85,13 +85,13 @@ public class _XUIConfigurationManager extends MultiMethodTest { } tRes.tested("getUIElementsInfo()", result); } - + public void _createSettings() { mxSettings = oObj.createSettings(); util.dbg.printInterfaces(mxSettings); tRes.tested("createSettings()", mxSettings != null); } - + public void _hasSettings() { boolean result = false; try { @@ -103,7 +103,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { } tRes.tested("hasSettings()", result); } - + public void _getSettings() { requiredMethod("hasSettings()"); boolean result = true; @@ -137,7 +137,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { } tRes.tested("getSettings()", result); } - + public void _replaceSettings() { requiredMethod("getSettings()"); boolean result = true; @@ -149,7 +149,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { createMenuBarItem("Click for Macro", (XIndexContainer)UnoRuntime.queryInterface( XIndexContainer.class, prop[3].Value), log); - + XIndexContainer x = (XIndexContainer)UnoRuntime.queryInterface(XIndexContainer.class, mxMenuBarSettings); try { x.insertByIndex(x.getCount(), prop); @@ -185,7 +185,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { _getSettings(); tRes.tested("replaceSettings()", result); } - + public void _removeSettings() { requiredMethod("insertSettings()"); boolean result = true; @@ -206,7 +206,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { } tRes.tested("removeSettings()", result); } - + public void _insertSettings() { requiredMethod("createSettings()"); requiredMethod("replaceSettings()"); @@ -220,7 +220,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { createMenuBarItem("A new sub entry", (XIndexContainer)UnoRuntime.queryInterface( XIndexContainer.class, prop[3].Value), log); - + XIndexContainer x = (XIndexContainer)UnoRuntime.queryInterface(XIndexContainer.class,mxSettings); try { int count = x.getCount(); @@ -256,10 +256,10 @@ public class _XUIConfigurationManager extends MultiMethodTest { } tRes.tested("insertSettings()", result); } - + /** * Only a short test. - * See complex.imageManager.CheckImageManager for a more extensive test of + * See complex.imageManager.CheckImageManager for a more extensive test of * this implementation. */ public void _getImageManager() { @@ -268,8 +268,8 @@ public class _XUIConfigurationManager extends MultiMethodTest { XImageManager xImageManager = (XImageManager)UnoRuntime.queryInterface(XImageManager.class, o); tRes.tested("getImageManager()", xImageManager != null); } - - + + /** * get a shortcut manager */ @@ -286,12 +286,12 @@ public class _XUIConfigurationManager extends MultiMethodTest { } tRes.tested("getShortCutManager()", bSupportedServiceFound); } - + public void _getEventsManager() { Object o = oObj.getEventsManager(); tRes.tested("getEventsManager()", o == null); } - + /** * Create a menu bar entry for adding to the menu bar of the Office. * @param sLabelName The name of the new entry. @@ -311,7 +311,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { prop[2].Value = new Short((short)0); prop[3] = new PropertyValue(); prop[3].Name = "ItemDescriptorContainer"; - + XSingleComponentFactory xFactory = (XSingleComponentFactory)UnoRuntime.queryInterface( XSingleComponentFactory.class, xMenuBarSettings); try { @@ -327,11 +327,11 @@ public class _XUIConfigurationManager extends MultiMethodTest { } return prop; } - + /** * Create a sub entry to the menu bar. * @param sLabelName The name of the entry in the UI. - * @param xDescriptionContainer The parent entry in the menu bar where + * @param xDescriptionContainer The parent entry in the menu bar where * this entry is added. */ public static void createMenuBarItem(String sLabelName, XIndexContainer xDescriptionContainer, PrintWriter log) { diff --git a/qadevOOo/tests/java/ifc/ui/_XUIConfigurationPersistence.java b/qadevOOo/tests/java/ifc/ui/_XUIConfigurationPersistence.java index 96067661bb26..5d0103524834 100755 --- a/qadevOOo/tests/java/ifc/ui/_XUIConfigurationPersistence.java +++ b/qadevOOo/tests/java/ifc/ui/_XUIConfigurationPersistence.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 @@ -32,14 +32,14 @@ import com.sun.star.ui.XUIConfigurationPersistence; import lib.MultiMethodTest; public class _XUIConfigurationPersistence extends MultiMethodTest { - + public XUIConfigurationPersistence oObj; private XStorage xStore = null; - + public void before() { xStore = (XStorage)tEnv.getObjRelation("XUIConfigurationStorage.Storage"); } - + public void _reload() { try { oObj.reload(); @@ -49,7 +49,7 @@ public class _XUIConfigurationPersistence extends MultiMethodTest { } tRes.tested("reload()", true); } - + public void _store() { try { oObj.store(); @@ -59,7 +59,7 @@ public class _XUIConfigurationPersistence extends MultiMethodTest { } tRes.tested("store()", true); } - + public void _storeToStorage() { boolean result = true; try { @@ -71,13 +71,13 @@ public class _XUIConfigurationPersistence extends MultiMethodTest { } tRes.tested("storeToStorage()", result); } - + public void _isModified() { tRes.tested("isModified()", !oObj.isModified()); } - + public void _isReadOnly() { tRes.tested("isReadOnly()", !oObj.isReadOnly()); } - + } diff --git a/qadevOOo/tests/java/ifc/ui/_XUIConfigurationStorage.java b/qadevOOo/tests/java/ifc/ui/_XUIConfigurationStorage.java index 8acdde914422..7a29c023f1c4 100755 --- a/qadevOOo/tests/java/ifc/ui/_XUIConfigurationStorage.java +++ b/qadevOOo/tests/java/ifc/ui/_XUIConfigurationStorage.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 @@ -42,17 +42,17 @@ import lib.MultiMethodTest; */ public class _XUIConfigurationStorage extends MultiMethodTest { - + public XUIConfigurationStorage oObj; private XStorage xStore = null; - + public void before() { xStore = (XStorage)tEnv.getObjRelation("XUIConfigurationStorage.Storage"); } /** * Set the object relation <code>XUIConfigurationStorage.Storage</code> - * as storage. + * as storage. * Has <b>OK</b> status if no exception is thrown. */ public void _setStorage() { @@ -62,7 +62,7 @@ public class _XUIConfigurationStorage extends MultiMethodTest { log.println("For initializing this object, the setStorage() method was already called at the object."); tRes.tested("setStorage()", true); } - + /** * Queries object for a storage. * Has <b>OK</b> status if <code>hasStorage</code> returns <code>OK</code> @@ -72,5 +72,5 @@ public class _XUIConfigurationStorage extends MultiMethodTest { boolean has = oObj.hasStorage(); tRes.tested("hasStorage()", has); } - + }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/ui/_XUIElementFactory.java b/qadevOOo/tests/java/ifc/ui/_XUIElementFactory.java index 5e590054e1f4..796f08a0a204 100755 --- a/qadevOOo/tests/java/ifc/ui/_XUIElementFactory.java +++ b/qadevOOo/tests/java/ifc/ui/_XUIElementFactory.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 @@ -35,7 +35,7 @@ import lib.MultiMethodTest; public class _XUIElementFactory extends MultiMethodTest { public XUIElementFactory oObj; - + public void _createUIElement() { boolean result = true; PropertyValue[] prop = new PropertyValue[0]; diff --git a/qadevOOo/tests/java/ifc/ui/_XUIElementFactoryRegistration.java b/qadevOOo/tests/java/ifc/ui/_XUIElementFactoryRegistration.java index 089b42aef0c1..48a8b8629b36 100755 --- a/qadevOOo/tests/java/ifc/ui/_XUIElementFactoryRegistration.java +++ b/qadevOOo/tests/java/ifc/ui/_XUIElementFactoryRegistration.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 @@ -47,7 +47,7 @@ public class _XUIElementFactoryRegistration extends MultiMethodTest { } tRes.tested("registerFactory()", result); } - + public void _getRegisteredFactories() { requiredMethod("registerFactory()"); PropertyValue[][]props = oObj.getRegisteredFactories(); @@ -55,18 +55,18 @@ public class _XUIElementFactoryRegistration extends MultiMethodTest { log.println("Null was returned as PropertyValue[][]"); props = new PropertyValue[0][0]; } - for(int i=0; i<props.length; i++) + for(int i=0; i<props.length; i++) for(int j=0; j<props[i].length; j++) log.println("Factory: " + props[i][j].Name + " - " + props[i][j].Value); tRes.tested("getRegisteredFactories()", props.length != 0); } - + public void _getFactory() { requiredMethod("registerFactory()"); XUIElementFactory xFactory = oObj.getFactory("private:resource/menubar/menubar", ""); tRes.tested("getFactory()", xFactory != null); } - + public void _deregisterFactory() { executeMethod("getRegisteredFactory()"); executeMethod("getFactory()"); diff --git a/qadevOOo/tests/java/ifc/ui/dialogs/_FilePicker.java b/qadevOOo/tests/java/ifc/ui/dialogs/_FilePicker.java index a3f681277d41..23f2f463b2b6 100644 --- a/qadevOOo/tests/java/ifc/ui/dialogs/_FilePicker.java +++ b/qadevOOo/tests/java/ifc/ui/dialogs/_FilePicker.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 diff --git a/qadevOOo/tests/java/ifc/ui/dialogs/_XControlAccess.java b/qadevOOo/tests/java/ifc/ui/dialogs/_XControlAccess.java index a1a9197cd4a6..716d35d43715 100644 --- a/qadevOOo/tests/java/ifc/ui/dialogs/_XControlAccess.java +++ b/qadevOOo/tests/java/ifc/ui/dialogs/_XControlAccess.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 @@ -125,7 +125,7 @@ public class _XControlAccess extends MultiMethodTest { } } } - + log.println(error); tRes.tested("setControlProperty()", result) ; diff --git a/qadevOOo/tests/java/ifc/ui/dialogs/_XControlInformation.java b/qadevOOo/tests/java/ifc/ui/dialogs/_XControlInformation.java index ad7c8d782d7d..22bce193c5bf 100644 --- a/qadevOOo/tests/java/ifc/ui/dialogs/_XControlInformation.java +++ b/qadevOOo/tests/java/ifc/ui/dialogs/_XControlInformation.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 diff --git a/qadevOOo/tests/java/ifc/ui/dialogs/_XExecutableDialog.java b/qadevOOo/tests/java/ifc/ui/dialogs/_XExecutableDialog.java index 95e2c27d9895..2d67bedc2d55 100644 --- a/qadevOOo/tests/java/ifc/ui/dialogs/_XExecutableDialog.java +++ b/qadevOOo/tests/java/ifc/ui/dialogs/_XExecutableDialog.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 @@ -49,10 +49,10 @@ import com.sun.star.util.XCancellable; * @see com.sun.star.ui.dialogs.XExecutableDialog */ public class _XExecutableDialog extends MultiMethodTest { - + public XExecutableDialog oObj = null; private ExecThread eThread = null; - + /** * Test calls the method. <p> * Has <b> OK </b> status if the method successfully returns @@ -62,7 +62,7 @@ public class _XExecutableDialog extends MultiMethodTest { oObj.setTitle("The Title"); tRes.tested("setTitle()",true); } - + /** * This method is excluded from automated test since * we can't close the dialog. <p> @@ -94,25 +94,25 @@ public class _XExecutableDialog extends MultiMethodTest { log.println("XCancellable isn't supported and the "+ "environment is killed hard"); } - - + + } tRes.tested("execute()",result); } - + /** * Calls <code>execute()</code> method in a separate thread. * Necessary to check if this method works */ protected class ExecThread extends Thread { - + public short execRes = (short) 17 ; private XExecutableDialog Diag = null ; - + public ExecThread(XExecutableDialog Diag) { this.Diag = Diag ; } - + public void run() { try { execRes = Diag.execute(); @@ -122,7 +122,7 @@ public class _XExecutableDialog extends MultiMethodTest { } } } - + /** * Sleeps for 5 sec. to allow StarOffice to react on <code> * reset</code> call. @@ -134,14 +134,14 @@ public class _XExecutableDialog extends MultiMethodTest { log.println("While waiting :" + e) ; } } - + public void after() { if (eThread.isAlive()) { log.println("Thread didn't die ... cleaning up"); disposeEnvironment(); } } - + private void closeDialog() { XCancellable canc = (XCancellable) UnoRuntime.queryInterface( XCancellable.class, tEnv.getTestObject()); @@ -151,19 +151,19 @@ public class _XExecutableDialog extends MultiMethodTest { } else { this.disposeEnvironment(); } - + long st = System.currentTimeMillis(); boolean toLong = false; - + log.println("waiting for dialog to close"); - + while (eThread.isAlive() && !toLong) { //wait for dialog to close toLong = (System.currentTimeMillis()-st > 10000); } - + log.println("done"); - + try { if (eThread.isAlive()) { log.println("Interrupting Thread"); @@ -173,23 +173,23 @@ public class _XExecutableDialog extends MultiMethodTest { } catch (Exception e) { // who cares ;-) } - + st = System.currentTimeMillis(); toLong = false; - + log.println("waiting for interruption to work"); - + while (eThread.isAlive() && !toLong) { //wait for dialog to close toLong = (System.currentTimeMillis()-st > 10000); } - + log.println("DialogThread alive: "+eThread.isAlive()); - + log.println("done"); - + } - + } diff --git a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePicker.java b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePicker.java index 45ceec2db964..732861a23590 100644 --- a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePicker.java +++ b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePicker.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 diff --git a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePickerControlAccess.java b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePickerControlAccess.java index 07c5c3b93f6d..e09fd399f588 100644 --- a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePickerControlAccess.java +++ b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePickerControlAccess.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 diff --git a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePickerNotifier.java b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePickerNotifier.java index f39ec63ee80d..7018260ca382 100644 --- a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePickerNotifier.java +++ b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePickerNotifier.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 @@ -55,48 +55,48 @@ import com.sun.star.util.XCancellable; * @see com.sun.star.ui.XFilePickerNotifier */ public class _XFilePickerNotifier extends MultiMethodTest { - + public XFilePickerNotifier oObj = null; private XFilePicker fps = null ; private String dir1 = null, dir2 = null ; ExecThread eThread = null; - - + + /** * Listener implementation which sets a flag if some of its * methods was called. */ protected class TestListener implements XFilePickerListener { public boolean called = false ; - + public void dialogSizeChanged() { called = true; } - + public void fileSelectionChanged(FilePickerEvent e) { called = true; } - + public void directoryChanged(FilePickerEvent e) { log.println("***** Directory Changed *****"); called = true; } - + public String helpRequested(FilePickerEvent e) { called = true; return "help"; } - + public void controlStateChanged(FilePickerEvent e) { called = true; } - + public void disposing(EventObject e) {} } - + TestListener listener = new TestListener() ; - + /** * Tries to query object for <code>XFilePicker</code> interface, and * initializes two different URLs for changing file picker directory. <p> @@ -106,21 +106,21 @@ public class _XFilePickerNotifier extends MultiMethodTest { public void before() { fps = (XFilePicker) UnoRuntime.queryInterface (XFilePicker.class, oObj) ; - + if (fps == null) { log.println("The object doesnt implement XFilePicker") ; throw new StatusException(Status.failed ("The object doesnt implement XFilePicker")); } - + XExecutableDialog exD = (XExecutableDialog) UnoRuntime.queryInterface( XExecutableDialog.class, tEnv.getTestObject()); - + dir1 = util.utils.getOfficeTemp((XMultiServiceFactory)tParam.getMSF()); dir2 = util.utils.getFullTestURL(""); eThread = new ExecThread(exD); } - + /** * Adds a listener, then tries to change display directory and * checks if the listener was called. <p> @@ -128,7 +128,7 @@ public class _XFilePickerNotifier extends MultiMethodTest { */ public void _addFilePickerListener() { oObj.addFilePickerListener(listener) ; - + try { log.println("***** Setting DisplayDirectory to " + dir1); fps.setDisplayDirectory(dir1) ; @@ -137,23 +137,23 @@ public class _XFilePickerNotifier extends MultiMethodTest { log.println("***** Setting DisplayDirectory to " + dir2); fps.setDisplayDirectory(dir2) ; log.println("***** Getting: " + fps.getDisplayDirectory()); - + } catch(com.sun.star.lang.IllegalArgumentException e) { log.println("!!! Exception changing dir !!!") ; e.printStackTrace(log) ; } - + shortWait(); - + if (!listener.called) { log.println("Listener wasn't called :-("); } - + closeDialog(); - + tRes.tested("addFilePickerListener()", listener.called) ; } - + /** * Removes the listener and changes display directory. <p> * Has <b>OK</b> status if the listener wasn't called. <p> @@ -164,11 +164,11 @@ public class _XFilePickerNotifier extends MultiMethodTest { */ public void _removeFilePickerListener() { requiredMethod("addFilePickerListener()") ; - + oObj.removeFilePickerListener(listener) ; - + listener.called = false ; - + try { fps.setDisplayDirectory(dir1) ; openDialog(); @@ -177,27 +177,27 @@ public class _XFilePickerNotifier extends MultiMethodTest { log.println("!!! Exception changing dir !!!") ; e.printStackTrace(log) ; } - + shortWait(); - + closeDialog(); - + tRes.tested("removeFilePickerListener()", !listener.called) ; } - + /** * Calls <code>execute()</code> method in a separate thread. * Necessary to check if this method works */ protected class ExecThread extends Thread { - + public short execRes = (short) 17 ; private XExecutableDialog Diag = null ; - + public ExecThread(XExecutableDialog Diag) { this.Diag = Diag ; } - + public void run() { try { execRes = Diag.execute(); @@ -207,7 +207,7 @@ public class _XFilePickerNotifier extends MultiMethodTest { } } } - + /** * Sleeps for 0.5 sec. to allow StarOffice to react on <code> * reset</code> call. @@ -219,7 +219,7 @@ public class _XFilePickerNotifier extends MultiMethodTest { log.println("While waiting :" + e) ; } } - + private void closeDialog() { XCancellable canc = (XCancellable) UnoRuntime.queryInterface( XCancellable.class, tEnv.getTestObject()); @@ -229,19 +229,19 @@ public class _XFilePickerNotifier extends MultiMethodTest { } else { this.disposeEnvironment(); } - + long st = System.currentTimeMillis(); boolean toLong = false; - + log.println("waiting for dialog to close"); - + while (eThread.isAlive() && !toLong) { //wait for dialog to close toLong = (System.currentTimeMillis()-st > 10000); } - + log.println("done"); - + try { if (eThread.isAlive()) { log.println("Interrupting Thread"); @@ -251,38 +251,38 @@ public class _XFilePickerNotifier extends MultiMethodTest { } catch (Exception e) { // who cares ;-) } - + st = System.currentTimeMillis(); toLong = false; - + log.println("waiting for interruption to work"); - + while (eThread.isAlive() && !toLong) { //wait for dialog to close toLong = (System.currentTimeMillis()-st > 10000); } - + log.println("DialogThread alive: "+eThread.isAlive()); - - log.println("done"); - + + log.println("done"); + } - - private void openDialog() { + + private void openDialog() { log.println("Starting Dialog"); if (eThread.isAlive()) { log.println("second interrupt"); eThread.interrupt(); eThread.yield(); } - + XExecutableDialog exD = (XExecutableDialog) UnoRuntime.queryInterface( XExecutableDialog.class, tEnv.getTestObject()); - + dir1 = util.utils.getOfficeTemp((XMultiServiceFactory)tParam.getMSF()); dir2 = util.utils.getFullTestURL(""); - eThread = new ExecThread(exD); - + eThread = new ExecThread(exD); + eThread.start(); } } diff --git a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePreview.java b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePreview.java index 1a6565e38d96..b5701a504322 100644 --- a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePreview.java +++ b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilePreview.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 diff --git a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilterGroupManager.java b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilterGroupManager.java index 3ef3df73aa64..fc199b4089f7 100644 --- a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilterGroupManager.java +++ b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilterGroupManager.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 diff --git a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilterManager.java b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilterManager.java index cc960d2b191b..38541aaed35d 100644 --- a/qadevOOo/tests/java/ifc/ui/dialogs/_XFilterManager.java +++ b/qadevOOo/tests/java/ifc/ui/dialogs/_XFilterManager.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 diff --git a/qadevOOo/tests/java/ifc/ui/dialogs/_XFolderPicker.java b/qadevOOo/tests/java/ifc/ui/dialogs/_XFolderPicker.java index 4b761e6dea65..502d6f2f750d 100644 --- a/qadevOOo/tests/java/ifc/ui/dialogs/_XFolderPicker.java +++ b/qadevOOo/tests/java/ifc/ui/dialogs/_XFolderPicker.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 diff --git a/qadevOOo/tests/java/ifc/uno/_XComponentContext.java b/qadevOOo/tests/java/ifc/uno/_XComponentContext.java index 5942b69fd63f..776a91d47f26 100644 --- a/qadevOOo/tests/java/ifc/uno/_XComponentContext.java +++ b/qadevOOo/tests/java/ifc/uno/_XComponentContext.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 @@ -50,8 +50,8 @@ public class _XComponentContext extends MultiMethodTest { try { if (names[i].equals("com.sun.star.i18n.ConversionDictionary_ko")) continue; if (names[i].equals("com.sun.star.i18n.TextConversion_ko")) continue; - log.println("try to instanciate found servicename " + - names[i]); + log.println("try to instanciate found servicename " + + names[i]); directly.createInstanceWithContext(names[i], oObj); log.println("worked .... ok"); res &= true; @@ -71,7 +71,7 @@ public class _XComponentContext extends MultiMethodTest { "/singletons/com.sun.star.lang.theServiceManager"); byValue = (XMultiComponentFactory) UnoRuntime.queryInterface( XMultiComponentFactory.class, value); - + String[] vNames = byValue.getAvailableServiceNames(); String[] dNames = directly.getAvailableServiceNames(); diff --git a/qadevOOo/tests/java/ifc/uno/_XNamingService.java b/qadevOOo/tests/java/ifc/uno/_XNamingService.java index f60f8a6ce6b5..8020cc6ce0df 100644 --- a/qadevOOo/tests/java/ifc/uno/_XNamingService.java +++ b/qadevOOo/tests/java/ifc/uno/_XNamingService.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 diff --git a/qadevOOo/tests/java/ifc/util/_PathSettings.java b/qadevOOo/tests/java/ifc/util/_PathSettings.java index b9411a2ccfb3..32016d8e2711 100644 --- a/qadevOOo/tests/java/ifc/util/_PathSettings.java +++ b/qadevOOo/tests/java/ifc/util/_PathSettings.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 diff --git a/qadevOOo/tests/java/ifc/util/_SearchDescriptor.java b/qadevOOo/tests/java/ifc/util/_SearchDescriptor.java index e24913e933bd..26215a0f8c54 100644 --- a/qadevOOo/tests/java/ifc/util/_SearchDescriptor.java +++ b/qadevOOo/tests/java/ifc/util/_SearchDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/util/_XCancellable.java b/qadevOOo/tests/java/ifc/util/_XCancellable.java index cd7ffc0840b5..bf8b2df73e27 100644 --- a/qadevOOo/tests/java/ifc/util/_XCancellable.java +++ b/qadevOOo/tests/java/ifc/util/_XCancellable.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 diff --git a/qadevOOo/tests/java/ifc/util/_XChangesBatch.java b/qadevOOo/tests/java/ifc/util/_XChangesBatch.java index 397ac79e3922..f78838bcc687 100644 --- a/qadevOOo/tests/java/ifc/util/_XChangesBatch.java +++ b/qadevOOo/tests/java/ifc/util/_XChangesBatch.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 @@ -37,14 +37,14 @@ import lib.Status; import lib.StatusException; public class _XChangesBatch extends MultiMethodTest { - - public XChangesBatch oObj; + + public XChangesBatch oObj; private Object changeElement = null; private Object originalElement = null; private String elementName = null; private XPropertySet xProp = null; private XNameReplace xNameReplace = null; - + /** * add a change that can be committed */ @@ -72,7 +72,7 @@ public class _XChangesBatch extends MultiMethodTest { catch(com.sun.star.uno.Exception e) { throw new StatusException("Could not get element by name '" + elementName + "'.", e); } - + if (changeElement == null || originalElement == null || elementName == null || (xProp == null && xNameReplace == null)) { log.println( changeElement == null?"Missing property 'XChangesBatch.ChangeElement'\n":"" + @@ -84,7 +84,7 @@ public class _XChangesBatch extends MultiMethodTest { throw new StatusException("Some needed object relations are missing.", new Exception()); } } - + public void _commitChanges() { requiredMethod("getPendingChanges()"); try { @@ -113,7 +113,7 @@ public class _XChangesBatch extends MultiMethodTest { } tRes.tested("commitChanges()", true); } - + public void _getPendingChanges() { requiredMethod("hasPendingChanges()"); ElementChange[]changes = oObj.getPendingChanges(); @@ -126,9 +126,9 @@ public class _XChangesBatch extends MultiMethodTest { log.println("Found not the right number of changes: " + amount); log.println("It should have been 1 change."); for (int i=0; i<amount; i++) { - System.out.println("Detailed Change " + i + " -> new Element: '" + - changes[i].Element.toString() + "' ReplacedElement: '" + - changes[i].ReplacedElement.toString() + "'"); + System.out.println("Detailed Change " + i + " -> new Element: '" + + changes[i].Element.toString() + "' ReplacedElement: '" + + changes[i].ReplacedElement.toString() + "'"); } tRes.tested("getPendingChanges()", false); } @@ -138,7 +138,7 @@ public class _XChangesBatch extends MultiMethodTest { tRes.tested("getPendingChanges()", result); } } - + public void _hasPendingChanges() { try { executeChange(changeElement); @@ -150,7 +150,7 @@ public class _XChangesBatch extends MultiMethodTest { boolean hasPendingChanges = oObj.hasPendingChanges(); tRes.tested("hasPendingChanges()", hasPendingChanges); } - + private void executeChange(Object element) throws StatusException { if (xProp != null) { try { diff --git a/qadevOOo/tests/java/ifc/util/_XChangesNotifier.java b/qadevOOo/tests/java/ifc/util/_XChangesNotifier.java index 6899f13d8ae2..8abe0e5b1442 100644 --- a/qadevOOo/tests/java/ifc/util/_XChangesNotifier.java +++ b/qadevOOo/tests/java/ifc/util/_XChangesNotifier.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 @@ -43,16 +43,16 @@ import lib.MultiMethodTest; * @see com.sun.star.util.XChangesBatch */ public class _XChangesNotifier extends MultiMethodTest { - + public XChangesNotifier oObj = null; - private XChangesBatch xBatch = null; + private XChangesBatch xBatch = null; private Object changeElement = null; private Object originalElement = null; private String elementName = null; private XPropertySet xProp = null; private XNameReplace xNameReplace = null; - private _XChangesNotifier.MyChangesListener xListener = null; - + private _XChangesNotifier.MyChangesListener xListener = null; + /** * Own implementation of the XChangesListener interface * @see com.sun.star.util.XChangesListener @@ -60,28 +60,28 @@ public class _XChangesNotifier extends MultiMethodTest { private static class MyChangesListener implements XChangesListener { /** Just lo a call of the listener **/ boolean bChangesOccured = false; - - /** A change did occur + + /** A change did occur * @param changesEvent The event. **/ public void changesOccurred(com.sun.star.util.ChangesEvent changesEvent) { bChangesOccured = true; } - + /** Disposing of the listener * @param eventObject The event. **/ public void disposing(com.sun.star.lang.EventObject eventObject) { bChangesOccured = true; } - + /** * Reset the listener */ public void reset() { bChangesOccured = false; } - + /** * Has the listener been called? * @return True, if the listener has been called. @@ -100,7 +100,7 @@ public class _XChangesNotifier extends MultiMethodTest { changeElement = tEnv.getObjRelation("XChangesNotifier.ChangeElement"); originalElement = tEnv.getObjRelation("XChangesNotifier.OriginalElement"); elementName = (String)tEnv.getObjRelation("XChangesNotifier.PropertyName"); - + xProp = (XPropertySet)tEnv.getObjRelation("XChangesNotifier.PropertySet"); try { if (originalElement == null && xProp != null) @@ -131,7 +131,7 @@ public class _XChangesNotifier extends MultiMethodTest { ); throw new StatusException("Some needed object relations are missing.", new Exception()); } - + xListener = new _XChangesNotifier.MyChangesListener(); } @@ -140,7 +140,7 @@ public class _XChangesNotifier extends MultiMethodTest { oObj.addChangesListener(xListener); tRes.tested("addChangesListener()", true); } - + /** test removeChangesListener **/ public void _removeChangesListener() { requiredMethod("addChangesListener()"); @@ -155,10 +155,10 @@ public class _XChangesNotifier extends MultiMethodTest { boolean result2 = xListener.didChangesOccur(); if (result2) log.println("Removed listener has been called."); - + tRes.tested("removeChangesListener()", result && !result2); } - + /** * Commit a change, using an implementation of the XChangesBatch interface. * @return true, if changing worked. @@ -192,9 +192,9 @@ public class _XChangesNotifier extends MultiMethodTest { } return true; } - + /** - * Execute the change, use XPropertySet or XNameReplace + * Execute the change, use XPropertySet or XNameReplace * @return False, if changing did throw an exception. */ private boolean executeChange(Object element) throws StatusException { diff --git a/qadevOOo/tests/java/ifc/util/_XCloneable.java b/qadevOOo/tests/java/ifc/util/_XCloneable.java index 4591be5cfc2e..85ffe637237c 100644 --- a/qadevOOo/tests/java/ifc/util/_XCloneable.java +++ b/qadevOOo/tests/java/ifc/util/_XCloneable.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 @@ -48,7 +48,7 @@ public class _XCloneable extends MultiMethodTest { // oObj filled by MultiMethodTest public XCloneable oObj = null ; protected XCloneable clone = null; - + /** * calls the method. <p> * Has <b>OK</b> status if no exception has occured. <p> @@ -59,23 +59,23 @@ public class _XCloneable extends MultiMethodTest { //check if the implementaionname equals result &= checkImplementationName(oObj,clone); - + //check ImplementationID result &= checkImplementationID(oObj, clone); - + tRes.tested("createClone()", result) ; } - + protected byte[] getImplementationID(XInterface ifc) { byte[] res = new byte[0]; - XTypeProvider provider = (XTypeProvider) + XTypeProvider provider = (XTypeProvider) UnoRuntime.queryInterface(XTypeProvider.class, ifc); if (provider != null) { res = provider.getImplementationId(); } return res; - } - + } + protected boolean checkImplementationID(XInterface org, XInterface clone) { boolean res = getImplementationID(org).equals( getImplementationID(clone)); @@ -84,18 +84,18 @@ public class _XCloneable extends MultiMethodTest { log.println("------------------------------------------------------------------------"); } return !res; - } - + } + protected String getImplementationName(XInterface ifc) { String res = ""; - XServiceInfo info = (XServiceInfo) + XServiceInfo info = (XServiceInfo) UnoRuntime.queryInterface(XServiceInfo.class, ifc); if (info != null) { res = info.getImplementationName(); } return res; } - + protected boolean checkImplementationName(XInterface org, XInterface clone) { boolean res = getImplementationName(org).equals( getImplementationName(clone)); diff --git a/qadevOOo/tests/java/ifc/util/_XFlushable.java b/qadevOOo/tests/java/ifc/util/_XFlushable.java index c18d84e5d5f6..0cf4df3ef1c9 100644 --- a/qadevOOo/tests/java/ifc/util/_XFlushable.java +++ b/qadevOOo/tests/java/ifc/util/_XFlushable.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 diff --git a/qadevOOo/tests/java/ifc/util/_XImportable.java b/qadevOOo/tests/java/ifc/util/_XImportable.java index 164f8e4aaa3e..a35d6290bc24 100644 --- a/qadevOOo/tests/java/ifc/util/_XImportable.java +++ b/qadevOOo/tests/java/ifc/util/_XImportable.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 @@ -45,7 +45,7 @@ public class _XImportable extends MultiMethodTest { "DatabaseName", "SourceType", "SourceObject", "IsNative" }; protected Type[] types = new Type[] { - new Type(String.class), new Type(com.sun.star.sheet.DataImportMode.class), + new Type(String.class), new Type(com.sun.star.sheet.DataImportMode.class), new Type(String.class), new Type(Boolean.class) }; @@ -54,7 +54,7 @@ public class _XImportable extends MultiMethodTest { * in com.sun.star.sheet.DatabaseImportDescriptor.<br> * Returns OK state is all propertynames and types are the specified. */ - + public void _createImportDescriptor() { boolean res = true; boolean locResult = false; @@ -99,33 +99,33 @@ public class _XImportable extends MultiMethodTest { public void _doImport() { requiredMethod("createImportDescriptor()"); boolean res = true; - + log.print("Setting the ImportDescriptor (Bibliograpy, Table, biblio) -- "); descriptor[0].Value = "Bibliography"; descriptor[1].Value = com.sun.star.sheet.DataImportMode.TABLE; descriptor[2].Value = "biblio"; log.println("done"); - + log.print("Importing data (Bibliograpy, Table, biblio) -- "); oObj.doImport(descriptor); log.println("done"); - + log.println("Checking data"); res &= checkA1("Identifier"); - + log.print("Setting the ImportDescriptor (Bibliograpy, SQL, select Author from biblio) -- "); descriptor[0].Value = "Bibliography"; descriptor[1].Value = com.sun.star.sheet.DataImportMode.SQL; descriptor[2].Value = "select Author from biblio"; log.println("done"); - + log.print("Importing data (Bibliograpy, SQL, select Author from biblio) -- "); oObj.doImport(descriptor); log.println("done"); - + log.println("Checking data"); - res &= checkA1("Author"); - + res &= checkA1("Author"); + tRes.tested("doImport()",res); } @@ -172,7 +172,7 @@ public class _XImportable extends MultiMethodTest { return res; } - + protected boolean checkA1(String expected) { XCellRange range = (XCellRange) UnoRuntime.queryInterface(XCellRange.class, tEnv.getTestObject()); boolean res = false; @@ -198,5 +198,5 @@ public class _XImportable extends MultiMethodTest { protected void after() { disposeEnvironment(); } - + }
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/util/_XIndent.java b/qadevOOo/tests/java/ifc/util/_XIndent.java index a02897b0e3c1..0900e8c3dfcd 100644 --- a/qadevOOo/tests/java/ifc/util/_XIndent.java +++ b/qadevOOo/tests/java/ifc/util/_XIndent.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 @@ -47,9 +47,9 @@ public class _XIndent extends MultiMethodTest { // oObj filled by MultiMethodTest public XIndent oObj = null ; - + protected XPropertySet PropSet = null; - + /** * Ensures that the ObjRelation PropSet is given. */ @@ -58,7 +58,7 @@ public class _XIndent extends MultiMethodTest { if (PropSet == null) { throw new StatusException(Status.failed("No PropertySet given")); } - } + } /** * Calls the method. <p> @@ -70,7 +70,7 @@ public class _XIndent extends MultiMethodTest { int newValue = getIndent(); tRes.tested("incrementIndent()", oldValue < newValue) ; } - + /** * Calls the method. <p> * Has <b>OK</b> status if the property 'ParaIndent' is decremented afterwards<p> @@ -82,7 +82,7 @@ public class _XIndent extends MultiMethodTest { oObj.decrementIndent(); int newValue = getIndent(); tRes.tested("decrementIndent()", oldValue > newValue) ; - } + } public short getIndent() { short ret = 0; diff --git a/qadevOOo/tests/java/ifc/util/_XMergeable.java b/qadevOOo/tests/java/ifc/util/_XMergeable.java index 860811246727..556fd5dd74f9 100644 --- a/qadevOOo/tests/java/ifc/util/_XMergeable.java +++ b/qadevOOo/tests/java/ifc/util/_XMergeable.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 diff --git a/qadevOOo/tests/java/ifc/util/_XModeSelector.java b/qadevOOo/tests/java/ifc/util/_XModeSelector.java index fddf9850ca02..cc0525e1c281 100644 --- a/qadevOOo/tests/java/ifc/util/_XModeSelector.java +++ b/qadevOOo/tests/java/ifc/util/_XModeSelector.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 diff --git a/qadevOOo/tests/java/ifc/util/_XModifiable.java b/qadevOOo/tests/java/ifc/util/_XModifiable.java index 86f8f8d4b086..0516aa58a50b 100644 --- a/qadevOOo/tests/java/ifc/util/_XModifiable.java +++ b/qadevOOo/tests/java/ifc/util/_XModifiable.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 diff --git a/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java b/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java index 34ca57c63cfe..f9d314e71991 100644 --- a/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java +++ b/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.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 diff --git a/qadevOOo/tests/java/ifc/util/_XNumberFormatsSupplier.java b/qadevOOo/tests/java/ifc/util/_XNumberFormatsSupplier.java index 02595f886b8e..468f7f6b13cf 100644 --- a/qadevOOo/tests/java/ifc/util/_XNumberFormatsSupplier.java +++ b/qadevOOo/tests/java/ifc/util/_XNumberFormatsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/util/_XNumberFormatter.java b/qadevOOo/tests/java/ifc/util/_XNumberFormatter.java index 4dab4f5c5b2b..c1d3380d7352 100644 --- a/qadevOOo/tests/java/ifc/util/_XNumberFormatter.java +++ b/qadevOOo/tests/java/ifc/util/_XNumberFormatter.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 diff --git a/qadevOOo/tests/java/ifc/util/_XProtectable.java b/qadevOOo/tests/java/ifc/util/_XProtectable.java index 1e61ee4fa840..5879d76a0b95 100644 --- a/qadevOOo/tests/java/ifc/util/_XProtectable.java +++ b/qadevOOo/tests/java/ifc/util/_XProtectable.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 @@ -35,7 +35,7 @@ import lib.MultiMethodTest; public class _XProtectable extends MultiMethodTest { public XProtectable oObj = null; String sPassWord = "TopSecret"; - + /** * Check, if the sheet is protected. * Has OK status, if this is the case. @@ -45,7 +45,7 @@ public class _XProtectable extends MultiMethodTest { boolean result = oObj.isProtected(); tRes.tested("isProtected()", result); } - + /** * Protect the sheet */ @@ -53,7 +53,7 @@ public class _XProtectable extends MultiMethodTest { oObj.protect(sPassWord); tRes.tested("protect()", true); } - + /** * Unprotect with wrong password, see if it's still protected. * Unprotect with correct password, see if it's unprotected. @@ -80,5 +80,5 @@ public class _XProtectable extends MultiMethodTest { result &= !oObj.isProtected(); tRes.tested("unprotect()", result); } - + } diff --git a/qadevOOo/tests/java/ifc/util/_XRefreshable.java b/qadevOOo/tests/java/ifc/util/_XRefreshable.java index 7b1eb0ad0db5..73b95bbcb85f 100644 --- a/qadevOOo/tests/java/ifc/util/_XRefreshable.java +++ b/qadevOOo/tests/java/ifc/util/_XRefreshable.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 diff --git a/qadevOOo/tests/java/ifc/util/_XReplaceDescriptor.java b/qadevOOo/tests/java/ifc/util/_XReplaceDescriptor.java index e4a3a5c2ba56..c5a6e00324f4 100644 --- a/qadevOOo/tests/java/ifc/util/_XReplaceDescriptor.java +++ b/qadevOOo/tests/java/ifc/util/_XReplaceDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/util/_XReplaceable.java b/qadevOOo/tests/java/ifc/util/_XReplaceable.java index 9f2a801cfcbf..c58d66b10468 100644 --- a/qadevOOo/tests/java/ifc/util/_XReplaceable.java +++ b/qadevOOo/tests/java/ifc/util/_XReplaceable.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 @@ -57,11 +57,11 @@ public class _XReplaceable extends MultiMethodTest { private String mReplaceString = "** xTextDoc"; private boolean mDispose = false; - /** - * Creates an entry to search for, if the current object does not provide - * one. In this case, the environment is disposed after the test, since + /** + * Creates an entry to search for, if the current object does not provide + * one. In this case, the environment is disposed after the test, since * the inserted object may influence following tests. - * + * */ protected void before() { Object o = tEnv.getObjRelation("SEARCHSTRING"); @@ -80,7 +80,7 @@ public class _XReplaceable extends MultiMethodTest { } else { log.println("Needed object relation 'XSearchable.MAKEENTRYINCELL' is there, but is of type '" - + o.getClass().getName() + "'. Should be 'XCell' or 'XCell[]' instead."); + + o.getClass().getName() + "'. Should be 'XCell' or 'XCell[]' instead."); } for (int i=0; i<cells.length; i++) { cells[i].setFormula(mSearchString); @@ -88,7 +88,7 @@ public class _XReplaceable extends MultiMethodTest { mDispose = true; } } - + /** * Creates the descriptor for replacing string 'xTextDoc' * with string '** xTextDoc'. <p> @@ -130,7 +130,7 @@ public class _XReplaceable extends MultiMethodTest { Rdesc.setReplaceString(mSearchString); oObj.replaceAll(Rdesc); res &= (oObj.findFirst(SDesc) == null); - + tRes.tested("replaceAll()",res); } diff --git a/qadevOOo/tests/java/ifc/util/_XSearchDescriptor.java b/qadevOOo/tests/java/ifc/util/_XSearchDescriptor.java index 4b9b8e14abee..ee17a6de0847 100644 --- a/qadevOOo/tests/java/ifc/util/_XSearchDescriptor.java +++ b/qadevOOo/tests/java/ifc/util/_XSearchDescriptor.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 diff --git a/qadevOOo/tests/java/ifc/util/_XSearchable.java b/qadevOOo/tests/java/ifc/util/_XSearchable.java index 91c3014387df..eefff1b560a9 100644 --- a/qadevOOo/tests/java/ifc/util/_XSearchable.java +++ b/qadevOOo/tests/java/ifc/util/_XSearchable.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 @@ -60,11 +60,11 @@ public class _XSearchable extends MultiMethodTest { private boolean mDispose = false; private boolean mExcludeFindNext = false; - /** - * Creates an entry to search for, if the current object does not provide - * one. In this case, the environment is disposed after the test, since + /** + * Creates an entry to search for, if the current object does not provide + * one. In this case, the environment is disposed after the test, since * the inserted object may influence following tests. - * + * */ protected void before() { Object o = tEnv.getObjRelation("SEARCHSTRING"); @@ -82,7 +82,7 @@ public class _XSearchable extends MultiMethodTest { } else { log.println("Needed object relation 'XSearchable.MAKEENTRYINCELL' is there, but is of type '" - + o.getClass().getName() + "'. Should be 'XCell' or 'XCell[]' instead."); + + o.getClass().getName() + "'. Should be 'XCell' or 'XCell[]' instead."); } for (int i=0; i<cells.length; i++) { cells[i].setFormula(mSearchString); @@ -91,7 +91,7 @@ public class _XSearchable extends MultiMethodTest { } mExcludeFindNext = (tEnv.getObjRelation("EXCLUDEFINDNEXT")==null)?false:true; } - + /** * Creates the search descriptor which searches for * 'xTextDoc' string. <p> @@ -158,7 +158,7 @@ public class _XSearchable extends MultiMethodTest { */ public void _findNext() { if (mExcludeFindNext) { - log.println("Testing findNext() excluded, because only one" + + log.println("Testing findNext() excluded, because only one" + " search result is available."); tRes.tested("findNext()", true); } diff --git a/qadevOOo/tests/java/ifc/util/_XSortable.java b/qadevOOo/tests/java/ifc/util/_XSortable.java index f0d78305420d..f6b951b2f4e9 100644 --- a/qadevOOo/tests/java/ifc/util/_XSortable.java +++ b/qadevOOo/tests/java/ifc/util/_XSortable.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 @@ -85,18 +85,18 @@ public class _XSortable extends MultiMethodTest { bResult = true; for (int k = 0; k < oPV.length; k++) { - log.println("DescriptorProperty " + k + ": Name=" + + log.println("DescriptorProperty " + k + ": Name=" + oPV[k].Name + "; Value=" + oPV[k].Value); if (oPV[k].Name.equals("SortFields")) { TableSortField[] tsf = (TableSortField[]) oPV[k].Value; for (int l = 0; l < tsf.length; l++) { - log.println("\t isAscending: " + + log.println("\t isAscending: " + tsf[l].IsAscending); - log.println("\t IsCaseSensitive: " + + log.println("\t IsCaseSensitive: " + tsf[l].IsCaseSensitive); - log.println("\t CollatorAlgorithm: " + + log.println("\t CollatorAlgorithm: " + tsf[l].CollatorAlgorithm); } } @@ -158,7 +158,7 @@ public class _XSortable extends MultiMethodTest { tRes.tested("sort()", res); } - protected void modifyDescriptor(boolean isSortNumeric, + protected void modifyDescriptor(boolean isSortNumeric, boolean isSortAscending) { for (int i = 0; i < oPV.length; i++) { if (oPV[i].Name.equals("SortFields")) { @@ -197,18 +197,18 @@ public class _XSortable extends MultiMethodTest { if (oPV.length > 0) { for (int k = 0; k < oPV.length; k++) { - log.println("DescriptorProperty " + k + ": Name=" + + log.println("DescriptorProperty " + k + ": Name=" + oPV[k].Name + "; Value=" + oPV[k].Value); if (oPV[k].Name.equals("SortFields")) { TableSortField[] tsf = (TableSortField[]) oPV[k].Value; for (int l = 0; l < tsf.length; l++) { - log.println("\t isAscending: " + + log.println("\t isAscending: " + tsf[l].IsAscending); - log.println("\t IsCaseSensitive: " + + log.println("\t IsCaseSensitive: " + tsf[l].IsCaseSensitive); - log.println("\t CollatorAlgorithm: " + + log.println("\t CollatorAlgorithm: " + tsf[l].CollatorAlgorithm); } } @@ -222,17 +222,17 @@ public class _XSortable extends MultiMethodTest { public static interface XSortChecker { public void prepareToSort(); - public boolean checkSort(boolean isSortNumbering, + public boolean checkSort(boolean isSortNumbering, boolean isSortAscending); public void setPrintWriter(PrintWriter log); } - + /** * Forces environment recreation. */ protected void after() { disposeEnvironment(); - } - + } + } // finish class _XSortable diff --git a/qadevOOo/tests/java/ifc/util/_XStringEscape.java b/qadevOOo/tests/java/ifc/util/_XStringEscape.java index 4673526fc243..22bf326f1cd6 100644 --- a/qadevOOo/tests/java/ifc/util/_XStringEscape.java +++ b/qadevOOo/tests/java/ifc/util/_XStringEscape.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 @@ -32,14 +32,14 @@ import lib.MultiMethodTest; import com.sun.star.util.XStringEscape; public class _XStringEscape extends MultiMethodTest { - + public XStringEscape oObj; - + public void _escapeString() { log.println("The Implementation of this Interface doesn't really do anything"); boolean res = true; try { - String toCheck = ";:<>/*"; + String toCheck = ";:<>/*"; String eString = oObj.escapeString(toCheck); res = toCheck.equals(eString); } catch (com.sun.star.lang.IllegalArgumentException e) { @@ -47,18 +47,18 @@ public class _XStringEscape extends MultiMethodTest { } tRes.tested("escapeString()",res); } - + public void _unescapeString() { log.println("The Implementation of this Interface doesn't really do anything"); boolean res = true; try { - String toCheck = ";:<>/*"; + String toCheck = ";:<>/*"; String ueString = oObj.unescapeString(toCheck); res = toCheck.equals(ueString); } catch (com.sun.star.lang.IllegalArgumentException e) { System.out.println("IllegalArgument"); } - tRes.tested("unescapeString()",res); + tRes.tested("unescapeString()",res); } - + } diff --git a/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java b/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java index aed62619f41e..56d7165c3824 100644 --- a/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java +++ b/qadevOOo/tests/java/ifc/util/_XStringSubstitution.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 @@ -31,14 +31,14 @@ import com.sun.star.util.XStringSubstitution; import lib.MultiMethodTest; public class _XStringSubstitution extends MultiMethodTest { - + public XStringSubstitution oObj; - + public void _getSubstituteVariableValue() { boolean res = true; try { log.println("try to get the valid variable $(user) ..."); - String toCheck = "$(user)"; + String toCheck = "$(user)"; String eString = oObj.getSubstituteVariableValue(toCheck); res = eString.startsWith("file:///"); } catch (com.sun.star.container.NoSuchElementException e) { @@ -47,24 +47,24 @@ public class _XStringSubstitution extends MultiMethodTest { } try { log.println("try to get a invalid variable..."); - String toCheck = "$(ThisVariableShouldNoExist)"; + String toCheck = "$(ThisVariableShouldNoExist)"; String eString = oObj.getSubstituteVariableValue(toCheck); log.println("$(ThisVariableShouldNoExist) should not exist"); tRes.tested("getSubstituteVariableValue()",false); - + } catch (com.sun.star.container.NoSuchElementException e) { log.println("expected exception was thrown."); res &= true; } - + tRes.tested("getSubstituteVariableValue()",res); } - + public void _substituteVariables() { boolean res = true; try { log.println("try to get a valid variable..."); - String toCheck = "$(user)"; + String toCheck = "$(user)"; String eString = oObj.substituteVariables(toCheck, false); log.println(eString); res = eString.startsWith("file:///"); @@ -74,28 +74,28 @@ public class _XStringSubstitution extends MultiMethodTest { } try { log.println("try to get a invalid variable..."); - String toCheck = "$(ThisVariableShouldNoExist)"; + String toCheck = "$(ThisVariableShouldNoExist)"; String eString = oObj.substituteVariables(toCheck,true); log.println("$(ThisVariableShouldNoExist) should not exist"); tRes.tested("substituteVariables()",false); - + } catch (com.sun.star.container.NoSuchElementException e) { log.println("expected exception was thrown."); res &= true; } - + tRes.tested("substituteVariables()",res); } public void _reSubstituteVariables() { boolean res = true; log.println("try to get a valid variable..."); - String toCheck = "file:///"; + String toCheck = "file:///"; String eString = oObj.reSubstituteVariables(toCheck); log.println(eString); res = eString.startsWith("file:///"); - + tRes.tested("reSubstituteVariables()",res); } - + } diff --git a/qadevOOo/tests/java/ifc/util/_XTextSearch.java b/qadevOOo/tests/java/ifc/util/_XTextSearch.java index 4f701c087f71..44be16079846 100644 --- a/qadevOOo/tests/java/ifc/util/_XTextSearch.java +++ b/qadevOOo/tests/java/ifc/util/_XTextSearch.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 diff --git a/qadevOOo/tests/java/ifc/util/_XURLTransformer.java b/qadevOOo/tests/java/ifc/util/_XURLTransformer.java index e847a9d3132c..548f151c26b7 100644 --- a/qadevOOo/tests/java/ifc/util/_XURLTransformer.java +++ b/qadevOOo/tests/java/ifc/util/_XURLTransformer.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 @@ -436,7 +436,7 @@ public class _XURLTransformer extends MultiMethodTest { } asterix = "<" + asterix.substring(1,asterix.length()); asterix = asterix.substring(0,asterix.length()-1) + ">"; - + presentation = oObj.getPresentation(url, false); String expectedPresentation = "ftp://" + user + ":" + asterix + "@" + server + ":" + port + path + "/" + name; diff --git a/qadevOOo/tests/java/ifc/view/_XControlAccess.java b/qadevOOo/tests/java/ifc/view/_XControlAccess.java index 2eea43aa726d..7d8d2b377952 100644 --- a/qadevOOo/tests/java/ifc/view/_XControlAccess.java +++ b/qadevOOo/tests/java/ifc/view/_XControlAccess.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 @@ -88,7 +88,7 @@ public class _XControlAccess extends MultiMethodTest { UnoRuntime.queryInterface(XDrawPagesSupplier.class, oDoc); oDP = (XDrawPage) UnoRuntime.queryInterface(XDrawPage.class, oDPS.getDrawPages().getByIndex(0)); } else { - + XDrawPageSupplier oDPS = (XDrawPageSupplier) UnoRuntime.queryInterface(XDrawPageSupplier.class, oDoc); diff --git a/qadevOOo/tests/java/ifc/view/_XFormLayerAccess.java b/qadevOOo/tests/java/ifc/view/_XFormLayerAccess.java index 60f284ff2ef2..0d91ab49a190 100644 --- a/qadevOOo/tests/java/ifc/view/_XFormLayerAccess.java +++ b/qadevOOo/tests/java/ifc/view/_XFormLayerAccess.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 @@ -49,13 +49,13 @@ import lib.StatusException; * @see com.sun.star.view.XFormLayerAccess */ public class _XFormLayerAccess extends MultiMethodTest { - + // oObj filled by MultiMethodTest - + public XFormLayerAccess oObj = null; - + private XForm xForm = null; - + /** * checks if the object relation <CODE>XFormLayerAccess.XForm</CODE> * is available @@ -66,7 +66,7 @@ public class _XFormLayerAccess extends MultiMethodTest { throw new StatusException(Status.failed("Object raltion 'XFormLayerAccess.XForm' is null")); } } - + /** * Test disables the FormDesignMode and calls the mthod. <p> * Has <b> OK </b> status if the method returns @@ -79,26 +79,26 @@ public class _XFormLayerAccess extends MultiMethodTest { */ public void _getFromController(){ requiredMethod("setFormDesignMode()") ; - + log.println("try to get current DesignMode..."); boolean currentMode = oObj.isFormDesignMode(); log.println("DesignMode is " + currentMode); - + log.println("enable DesignMode"); oObj.setFormDesignMode(false); - + log.println("test for getFromController() "); XFormController xFormCont = oObj.getFormController(xForm); - + if (xFormCont == null) log.println("ERROR: Could not get FromContoller"); - + log.println("set back DesignMode to previouse state"); oObj.setFormDesignMode(currentMode); - + tRes.tested("getFromController()", xFormCont != null ); } - + /** * This test calls the test for <code>setFormDesignMode()</CODE>. * Has <b> OK </b> status if the test for setFormDesignMode() returns @@ -110,49 +110,49 @@ public class _XFormLayerAccess extends MultiMethodTest { */ public void _isFormDesignMode(){ requiredMethod("setFormDesignMode()") ; - + log.println("test for isFormDesignMode() is ok since test for 'setFormDesingMode()' use it"); tRes.tested("isFormDesignMode()", true); } - + /** * This test gets the current FormDesignMode, change it to the opposite and checks if the expected value of * method isFormDesignmode() was given. Then the FormDesignmode was set back to the original value.<P> * Has <B> OK </B> if expected values are returned. * */ - + public void _setFormDesignMode(){ log.println("test for setFormDesignMode() and isFormDesignMode() "); - + log.println("try to get current DesignMode..."); boolean currentMode = oObj.isFormDesignMode(); log.println("DesignMode is " + currentMode); - + log.println("try to change to " + !currentMode + "..."); oObj.setFormDesignMode(!currentMode); log.println("try to get new DesignMode..."); boolean newMode = oObj.isFormDesignMode(); log.println("DesignMode is " + newMode); - + boolean bOK = (newMode != currentMode); - + if ( !bOK) log.println("ERROR: both modes are equal"); - + log.println("set back DesignMode to " + currentMode); oObj.setFormDesignMode(currentMode); - + log.println("try to get DesignMode..."); boolean oldMode = oObj.isFormDesignMode(); - + bOK &= (bOK &(currentMode == oldMode)); - + if (currentMode != oldMode) log.println("ERROR: could not change back"); - + tRes.tested("setFormDesignMode()", bOK ); } - + } // finish class _XFormLayerAccess diff --git a/qadevOOo/tests/java/ifc/view/_XMultiSelectionSupplier.java b/qadevOOo/tests/java/ifc/view/_XMultiSelectionSupplier.java index 387d293c359a..9e3556972081 100644 --- a/qadevOOo/tests/java/ifc/view/_XMultiSelectionSupplier.java +++ b/qadevOOo/tests/java/ifc/view/_XMultiSelectionSupplier.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 @@ -58,43 +58,43 @@ import lib.StatusException; * @see com.sun.star.view.XSelectionSupplier */ public class _XMultiSelectionSupplier extends MultiMethodTest { - + public XMultiSelectionSupplier oObj = null; public boolean selectionChanged = false; Object[] selections = null; Comparator ObjCompare = null; - + protected void before() { selections = (Object[])tEnv.getObjRelation("Selections"); if (selections == null) { throw new StatusException(Status.failed( "Couldn't get relation 'Selections'")); } - + ObjCompare = (Comparator)tEnv.getObjRelation("Comparer"); } - + protected void after() { disposeEnvironment(); } - + /** * Selects an instance from relation 'First'. <p> * Has <b> OK </b> status if no exceptions were thrown. <p> */ public void _addSelection() { - + boolean bOK = true; - + log.println("clear selections"); oObj.clearSelection(); - + int count = oObj.getSelectionCount(); - + bOK &= (count == 0); - + if ( ! bOK) log.println("ERROR: after clear selection I got a selection count of '" + count + "' => FAILED"); - + for(int i = 0; i < selections.length; i++) { try { log.println("select object from object relation 'selections["+i+"]'"); @@ -110,7 +110,7 @@ public class _XMultiSelectionSupplier extends MultiMethodTest { bOK = false; } } - + log.println("try to select object relation 'selections[0]' second time..."); try { count = oObj.getSelectionCount(); @@ -122,35 +122,35 @@ public class _XMultiSelectionSupplier extends MultiMethodTest { log.println("ERROR: the selected count ("+oObj.getSelectionCount() +") is not that before (" + count + ")"); bOK = false; } - + log.println("try to select invalid object..."); try { - + oObj.addSelection(oObj); - + log.println("ERORR: expected exception 'com.sun.star.lang.IllegalArgumentException' was not thrown => FAILED"); bOK = false; } catch (com.sun.star.lang.IllegalArgumentException ex) { log.println("expected exception 'com.sun.star.lang.IllegalArgumentException' => OK"); } - + tRes.tested("addSelection()", bOK); } - + public void _removeSelection() { requiredMethod("addSelection()"); - + boolean bOK = true; - + log.println("clear selections"); oObj.clearSelection(); - + int count = oObj.getSelectionCount(); - + bOK &= (count == 0); - + if ( ! bOK) log.println("ERROR: after clear selection I got a selection count of '" + count + "' => FAILED"); - + log.println("add some selections..."); for(int i = 0; i < selections.length; i++) { try { @@ -167,9 +167,9 @@ public class _XMultiSelectionSupplier extends MultiMethodTest { bOK = false; } } - + log.println("try now to remove selections..."); - + count = oObj.getSelectionCount(); int oldCount = oObj.getSelectionCount(); for(int i = 0; i < selections.length; i++) { @@ -187,7 +187,7 @@ public class _XMultiSelectionSupplier extends MultiMethodTest { bOK = false; } } - + log.println("try to remove a removed selection a second time..."); count = oObj.getSelectionCount(); try { @@ -199,22 +199,22 @@ public class _XMultiSelectionSupplier extends MultiMethodTest { log.println("ERROR: the selected count ("+oObj.getSelectionCount() +") is not that before (" + count + ")"); bOK = false; } - + log.println("try to remove invalid object..."); try { - + oObj.removeSelection(oObj); - + log.println("ERORR: expected exception 'com.sun.star.lang.IllegalArgumentException' was not thrown => FAILED"); bOK = false; } catch (com.sun.star.lang.IllegalArgumentException ex) { log.println("expected exception 'com.sun.star.lang.IllegalArgumentException' => OK"); } - + tRes.tested("removeSelection()", bOK); } - - + + /** * First test changes selection of the object : if nothing is * currently selected or first instance ('First' relation) is @@ -230,20 +230,20 @@ public class _XMultiSelectionSupplier extends MultiMethodTest { requiredMethod("addSelection()"); tRes.tested("getSelectionCount()", true); } - + public void _clearSelection() { requiredMethod("addSelection()"); boolean bOK = true; - + log.println("clear selections"); oObj.clearSelection(); - + int count = oObj.getSelectionCount(); - + bOK &= (count == 0); - + if ( ! bOK) log.println("ERROR: after clear selection I got a selection count of '" + count + "' => FAILED"); - + log.println("add some selections..."); for(int i = 0; i < selections.length; i++) { try { @@ -260,34 +260,34 @@ public class _XMultiSelectionSupplier extends MultiMethodTest { bOK = false; } } - + count = oObj.getSelectionCount(); - + log.println("clear selections..."); oObj.clearSelection(); - + count = oObj.getSelectionCount(); - + bOK &= (count == 0); - + if ( ! bOK) log.println("ERROR: after clear selection I got a selection count of '" + count + "' => FAILED"); - + tRes.tested("clearSelection()", bOK); } - + public void _createSelectionEnumeration() { requiredMethod("addSelection()"); boolean bOK = true; - + log.println("clear selections"); oObj.clearSelection(); - + int count = oObj.getSelectionCount(); - + bOK &= (count == 0); - + if ( ! bOK) log.println("ERROR: after clear selection I got a selection count of '" + count + "' => FAILED"); - + log.println("add some selections..."); for(int i = 0; i < selections.length; i++) { try { @@ -304,13 +304,13 @@ public class _XMultiSelectionSupplier extends MultiMethodTest { bOK = false; } } - + log.println("create enumeration..."); XEnumeration xEnum = oObj.createSelectionEnumeration(); - + boolean compRes = true; //compare result int i = 0; - + while (xEnum.hasMoreElements()){ log.println("try to get first element.."); Object nextElement = null; @@ -325,15 +325,15 @@ public class _XMultiSelectionSupplier extends MultiMethodTest { } Object shouldElement = selections[i]; i++; - + if (ObjCompare != null) { ObjCompare.compare(shouldElement, nextElement); } else { compRes = util.ValueComparer.equalValue(shouldElement, nextElement); } - + log.println("nextElement()-object and expected object 'selections["+i+"]' are equal: "+compRes); - + if (!compRes) { if ((selections[i]) instanceof Object[]){ if (((Object[])selections[i])[0] instanceof Integer) { @@ -344,23 +344,23 @@ public class _XMultiSelectionSupplier extends MultiMethodTest { } bOK &= compRes; } - + tRes.tested("createSelectionEnumeration()", bOK); } - + public void _createReverseSelectionEnumeration() { requiredMethod("addSelection()"); boolean bOK = true; - + log.println("clear selections"); oObj.clearSelection(); - + int count = oObj.getSelectionCount(); - + bOK &= (count == 0); - + if ( ! bOK) log.println("ERROR: after clear selection I got a selection count of '" + count + "' => FAILED"); - + log.println("add some selections..."); for(int i = 0; i < selections.length; i++) { try { @@ -377,13 +377,13 @@ public class _XMultiSelectionSupplier extends MultiMethodTest { bOK = false; } } - + log.println("create enumeration..."); XEnumeration xEnum = oObj.createSelectionEnumeration(); - + boolean compRes = true; //compare result int i = selections.length - 1; - + while (xEnum.hasMoreElements()){ log.println("try to get first element.."); Object nextElement = null; @@ -398,15 +398,15 @@ public class _XMultiSelectionSupplier extends MultiMethodTest { } Object shouldElement = selections[i]; i--; - + if (ObjCompare != null) { ObjCompare.compare(shouldElement, nextElement); } else { compRes = util.ValueComparer.equalValue(shouldElement, nextElement); } - + log.println("nextElement()-object and expected object 'selections["+i+"]' are equal: "+compRes); - + if (!compRes) { if ((selections[i]) instanceof Object[]){ if (((Object[])selections[i])[0] instanceof Integer) { @@ -417,10 +417,10 @@ public class _XMultiSelectionSupplier extends MultiMethodTest { } bOK &= compRes; } - + tRes.tested("createReverseSelectionEnumeration()", bOK); } - + } // finish class _XMultiSelectionSupplier diff --git a/qadevOOo/tests/java/ifc/view/_XPrintJobBroadcaster.java b/qadevOOo/tests/java/ifc/view/_XPrintJobBroadcaster.java index acbfe6526b76..28a0c4587936 100644 --- a/qadevOOo/tests/java/ifc/view/_XPrintJobBroadcaster.java +++ b/qadevOOo/tests/java/ifc/view/_XPrintJobBroadcaster.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 @@ -43,7 +43,7 @@ import lib.StatusException; public class _XPrintJobBroadcaster extends MultiMethodTest { public XPrintJobBroadcaster oObj = null; MyPrintJobListener listenerImpl = null; - + /** * Get an object implementation of the _XPrintJobListener interface from the * test environment. @@ -54,7 +54,7 @@ public class _XPrintJobBroadcaster extends MultiMethodTest { throw new StatusException(Status.failed(" No test possible. The XPrintJobListener interface has to be implemented.")); } } - + /** * add the listener, see if it's called. */ @@ -64,7 +64,7 @@ public class _XPrintJobBroadcaster extends MultiMethodTest { util.utils.shortWait(1000); tRes.tested("addPrintJobListener()", listenerImpl.actionTriggered()); } - + /** * remove the listener, see if it's still caleed. */ @@ -73,7 +73,7 @@ public class _XPrintJobBroadcaster extends MultiMethodTest { oObj.removePrintJobListener(listenerImpl); util.utils.shortWait(5000); - + listenerImpl.reset(); listenerImpl.fireEvent(); tRes.tested("removePrintJobListener()", !listenerImpl.actionTriggered()); @@ -89,7 +89,7 @@ public class _XPrintJobBroadcaster extends MultiMethodTest { XPrintable xPrintable = null; PropertyValue[]printProps = null; String printFileName = null; - + /** * Constructor * @param An object that can be cast to an XPrintable. @@ -114,7 +114,7 @@ public class _XPrintJobBroadcaster extends MultiMethodTest { public boolean actionTriggered() { return eventCalled; } - + /** * Fire the event that calls the printJobEvent */ @@ -125,7 +125,7 @@ public class _XPrintJobBroadcaster extends MultiMethodTest { catch(com.sun.star.lang.IllegalArgumentException e) { } } - + public void reset() { File f = new File(printFileName); if (f.exists()) @@ -146,5 +146,5 @@ public class _XPrintJobBroadcaster extends MultiMethodTest { public void disposing(com.sun.star.lang.EventObject eventObject) { } } - + } diff --git a/qadevOOo/tests/java/ifc/view/_XPrintSettingsSupplier.java b/qadevOOo/tests/java/ifc/view/_XPrintSettingsSupplier.java index 8af56b3e5993..22dc8f08e476 100644 --- a/qadevOOo/tests/java/ifc/view/_XPrintSettingsSupplier.java +++ b/qadevOOo/tests/java/ifc/view/_XPrintSettingsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/view/_XPrintable.java b/qadevOOo/tests/java/ifc/view/_XPrintable.java index d82c30012cb6..91de64107d1b 100644 --- a/qadevOOo/tests/java/ifc/view/_XPrintable.java +++ b/qadevOOo/tests/java/ifc/view/_XPrintable.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 @@ -174,7 +174,7 @@ public class _XPrintable extends MultiMethodTest { try { boolean fileExists = fAcc.exists(fileURL); - + log.println("File "+fileName+" exists = "+fileExists); if (result) { diff --git a/qadevOOo/tests/java/ifc/view/_XScreenCursor.java b/qadevOOo/tests/java/ifc/view/_XScreenCursor.java index bd9e9e21fc07..ef6cfd0180c8 100644 --- a/qadevOOo/tests/java/ifc/view/_XScreenCursor.java +++ b/qadevOOo/tests/java/ifc/view/_XScreenCursor.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 @@ -51,7 +51,7 @@ import com.sun.star.view.XScreenCursor; public class _XScreenCursor extends MultiMethodTest { // oObj filled by MultiMethodTest - + public XScreenCursor oObj = null; /** diff --git a/qadevOOo/tests/java/ifc/view/_XSelectionSupplier.java b/qadevOOo/tests/java/ifc/view/_XSelectionSupplier.java index e304789f3430..d21c21709abf 100644 --- a/qadevOOo/tests/java/ifc/view/_XSelectionSupplier.java +++ b/qadevOOo/tests/java/ifc/view/_XSelectionSupplier.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 @@ -56,26 +56,26 @@ import lib.StatusException; * @see com.sun.star.view.XSelectionSupplier */ public class _XSelectionSupplier extends MultiMethodTest { - + public XSelectionSupplier oObj = null; public boolean selectionChanged = false; Object[] selections = null; Comparator ObjCompare = null; - + protected void before() { selections = (Object[])tEnv.getObjRelation("Selections"); if (selections == null) { throw new StatusException(Status.failed( "Couldn't get relation 'Selections'")); } - - ObjCompare = (Comparator)tEnv.getObjRelation("Comparer"); + + ObjCompare = (Comparator)tEnv.getObjRelation("Comparer"); } - + protected void after() { disposeEnvironment(); } - + /** * Listener implementation which just set flag when listener * method is called. @@ -86,11 +86,11 @@ public class _XSelectionSupplier extends MultiMethodTest { log.println("listener called"); selectionChanged = true; } - + } - + XSelectionChangeListener listener = new MyChangeListener(); - + /** * Test adds listener to the object, then selects first and * then second instances to be sure that selection was changed.<p> @@ -111,7 +111,7 @@ public class _XSelectionSupplier extends MultiMethodTest { } tRes.tested("addSelectionChangeListener()", res); } - + /** * Selects an instance from relation 'First'. <p> * Has <b> OK </b> status if no exceptions were thrown. <p> @@ -127,8 +127,8 @@ public class _XSelectionSupplier extends MultiMethodTest { locRes = oObj.select(selections[i]); log.println("select #" + i + ": " + locRes); Object curSelection = oObj.getSelection(); - if (locRes) { - + if (locRes) { + if (ObjCompare != null) { ObjCompare.compare(selections[i], curSelection); } else { @@ -155,10 +155,10 @@ public class _XSelectionSupplier extends MultiMethodTest { ex.printStackTrace(log); res = false; } - + tRes.tested("select()", res); } - + /** * Test removes listener, then selects first and * then second instances to be sure that selection was changed.<p> @@ -185,7 +185,7 @@ public class _XSelectionSupplier extends MultiMethodTest { } tRes.tested("removeSelectionChangeListener()", res); } - + /** * First test changes selection of the object : if nothing is * currently selected or first instance ('First' relation) is @@ -200,8 +200,8 @@ public class _XSelectionSupplier extends MultiMethodTest { public void _getSelection() { requiredMethod("select()"); tRes.tested("getSelection()", true); - } - + } + } // finish class _XSelectionSupplier diff --git a/qadevOOo/tests/java/ifc/view/_XViewSettingsSupplier.java b/qadevOOo/tests/java/ifc/view/_XViewSettingsSupplier.java index fa5b96499e5c..e35496006a7d 100644 --- a/qadevOOo/tests/java/ifc/view/_XViewSettingsSupplier.java +++ b/qadevOOo/tests/java/ifc/view/_XViewSettingsSupplier.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 diff --git a/qadevOOo/tests/java/ifc/xml/_UserDefinedAttributeSupplier.java b/qadevOOo/tests/java/ifc/xml/_UserDefinedAttributeSupplier.java index 9f41da0f4a28..d0be517bcca2 100644 --- a/qadevOOo/tests/java/ifc/xml/_UserDefinedAttributeSupplier.java +++ b/qadevOOo/tests/java/ifc/xml/_UserDefinedAttributeSupplier.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 @@ -36,7 +36,7 @@ public class _UserDefinedAttributeSupplier extends lib.MultiPropertyTest { public void _UserDefinedAttributes() { XNameContainer uda = null; boolean res = false; - try { + try { uda = (XNameContainer) AnyConverter.toObject( new Type(XNameContainer.class), oObj.getPropertyValue("UserDefinedAttributes")); @@ -44,8 +44,8 @@ public class _UserDefinedAttributeSupplier extends lib.MultiPropertyTest { attr.Namespace = "http://www.sun.com/staroffice/apitest/Chartprop"; attr.Type="CDATA"; attr.Value="true"; - uda.insertByName("Chartprop:has-first-alien-attribute",attr); - String[] els = uda.getElementNames(); + uda.insertByName("Chartprop:has-first-alien-attribute",attr); + String[] els = uda.getElementNames(); oObj.setPropertyValue("UserDefinedAttributes",uda); uda = (XNameContainer) AnyConverter.toObject( new Type(XNameContainer.class), @@ -65,7 +65,7 @@ public class _UserDefinedAttributeSupplier extends lib.MultiPropertyTest { log.println("PropertyVetoException while getting Property 'UserDefinedAttributes'"); } catch (com.sun.star.container.ElementExistException eee) { log.println("ElementExistException while getting Property 'UserDefinedAttributes'"); - } + } tRes.tested("UserDefinedAttributes",res); } diff --git a/qadevOOo/tests/java/ifc/xml/sax/_XDocumentHandler.java b/qadevOOo/tests/java/ifc/xml/sax/_XDocumentHandler.java index 66b70aa5e020..a03d50bdbef6 100644 --- a/qadevOOo/tests/java/ifc/xml/sax/_XDocumentHandler.java +++ b/qadevOOo/tests/java/ifc/xml/sax/_XDocumentHandler.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 diff --git a/qadevOOo/tests/java/mod/_acceptor.uno/Acceptor.java b/qadevOOo/tests/java/mod/_acceptor.uno/Acceptor.java index 64ce14d88417..9351ff0e145b 100644 --- a/qadevOOo/tests/java/mod/_acceptor.uno/Acceptor.java +++ b/qadevOOo/tests/java/mod/_acceptor.uno/Acceptor.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 diff --git a/qadevOOo/tests/java/mod/_acceptor/Acceptor.java b/qadevOOo/tests/java/mod/_acceptor/Acceptor.java index af6812b3304a..4ab9809c9bb4 100644 --- a/qadevOOo/tests/java/mod/_acceptor/Acceptor.java +++ b/qadevOOo/tests/java/mod/_acceptor/Acceptor.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 diff --git a/qadevOOo/tests/java/mod/_adabas/ODriver.java b/qadevOOo/tests/java/mod/_adabas/ODriver.java index da34026594e9..76dce8f9553c 100644 --- a/qadevOOo/tests/java/mod/_adabas/ODriver.java +++ b/qadevOOo/tests/java/mod/_adabas/ODriver.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 diff --git a/qadevOOo/tests/java/mod/_ado/ODriver.java b/qadevOOo/tests/java/mod/_ado/ODriver.java index 9d59cf8e6be8..11a00fb7c8fd 100644 --- a/qadevOOo/tests/java/mod/_ado/ODriver.java +++ b/qadevOOo/tests/java/mod/_ado/ODriver.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 diff --git a/qadevOOo/tests/java/mod/_basctl/AccessibleShape.java b/qadevOOo/tests/java/mod/_basctl/AccessibleShape.java index 1dd3feb3e4ec..c59a731d8838 100644 --- a/qadevOOo/tests/java/mod/_basctl/AccessibleShape.java +++ b/qadevOOo/tests/java/mod/_basctl/AccessibleShape.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 @@ -54,10 +54,10 @@ import util.WriterTools; import util.utils; public class AccessibleShape extends TestCase { - + XTextDocument xTextDoc = null; XInterface oObj = null; - + protected void cleanup(TestParameters Param, PrintWriter log) { log.println("Cleaning up"); DesktopTools.closeDoc(xTextDoc); @@ -70,7 +70,7 @@ public class AccessibleShape extends TestCase { log.println("Couldn't close IDE"); } } - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); log.println( "creating a test environment" ); @@ -79,7 +79,7 @@ public class AccessibleShape extends TestCase { XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XFrame xFrame = xModel.getCurrentController().getFrame(); XDispatchProvider xDPP = (XDispatchProvider) UnoRuntime.queryInterface(XDispatchProvider.class, xFrame); - + log.println( "opening the basic dialog editor" ); try { Object o = xMSF.createInstance("com.sun.star.frame.DispatchHelper"); @@ -101,9 +101,9 @@ public class AccessibleShape extends TestCase { } catch (Exception e) { throw new StatusException("Couldn't open Basic Dialog",e); } - + utils.shortWait(3000); - + try { oObj = (XInterface) ((XMultiServiceFactory)tParam.getMSF()).createInstance ("com.sun.star.awt.Toolkit") ; @@ -114,42 +114,42 @@ public class AccessibleShape extends TestCase { } AccessibilityTools at = new AccessibilityTools(); - + final XWindow basicIDE = xFrame.getContainerWindow(); - + XAccessible xRoot = at.getAccessibleObject(basicIDE); - + at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.SHAPE); - + // create test environment here TestEnvironment tEnv = new TestEnvironment( oObj ); - + log.println("Implementation Name: " + utils.getImplName(oObj)); - + tEnv.addObjRelation("Destroy", Boolean.TRUE); - + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { - public void fireEvent() { + public void fireEvent() { Rectangle oldPosSize = basicIDE.getPosSize(); Rectangle newPosSize = new Rectangle(); newPosSize.Width = oldPosSize.Width/2; newPosSize.Height = oldPosSize.Height/2; newPosSize.X = oldPosSize.X + 20; newPosSize.Y = oldPosSize.Y + 20; - basicIDE.setPosSize(newPosSize.X, newPosSize.Y, newPosSize.Width, - newPosSize.Height, PosSize.POSSIZE); + basicIDE.setPosSize(newPosSize.X, newPosSize.Y, newPosSize.Width, + newPosSize.Height, PosSize.POSSIZE); utils.shortWait(1000); - basicIDE.setPosSize(oldPosSize.X, oldPosSize.Y, oldPosSize.Width, - oldPosSize.Height, PosSize.POSSIZE); + basicIDE.setPosSize(oldPosSize.X, oldPosSize.Y, oldPosSize.Width, + oldPosSize.Height, PosSize.POSSIZE); } }); - + return tEnv; } - - - + + + } diff --git a/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java b/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java index e1672dcef9d7..1a287789a9ea 100644 --- a/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java +++ b/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.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 diff --git a/qadevOOo/tests/java/mod/_bridgefac.uno/BridgeFactory.java b/qadevOOo/tests/java/mod/_bridgefac.uno/BridgeFactory.java index ef012eb4543a..c4203e07cff5 100644 --- a/qadevOOo/tests/java/mod/_bridgefac.uno/BridgeFactory.java +++ b/qadevOOo/tests/java/mod/_bridgefac.uno/BridgeFactory.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 diff --git a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java index 09623ec23b3b..cb83a6c2ff1c 100644 --- a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.java +++ b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetFactory.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 diff --git a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetStubFactory.java b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetStubFactory.java index 60da66c6bdde..ad908857fd75 100644 --- a/qadevOOo/tests/java/mod/_cached/CachedContentResultSetStubFactory.java +++ b/qadevOOo/tests/java/mod/_cached/CachedContentResultSetStubFactory.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 diff --git a/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetFactory.java b/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetFactory.java index 3bfdaf319523..ccd8956994ec 100644 --- a/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetFactory.java +++ b/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetFactory.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 diff --git a/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetStubFactory.java b/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetStubFactory.java index 93b1060d6f3f..6bffda511898 100644 --- a/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetStubFactory.java +++ b/qadevOOo/tests/java/mod/_cached/CachedDynamicResultSetStubFactory.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 diff --git a/qadevOOo/tests/java/mod/_cmdmail/SimpleCommandMail.java b/qadevOOo/tests/java/mod/_cmdmail/SimpleCommandMail.java index 061cd8b02a48..3918dc67341e 100644 --- a/qadevOOo/tests/java/mod/_cmdmail/SimpleCommandMail.java +++ b/qadevOOo/tests/java/mod/_cmdmail/SimpleCommandMail.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 diff --git a/qadevOOo/tests/java/mod/_cnt/ChaosContentProvider.java b/qadevOOo/tests/java/mod/_cnt/ChaosContentProvider.java index 6908f752d591..b22b2a9b3f7b 100644 --- a/qadevOOo/tests/java/mod/_cnt/ChaosContentProvider.java +++ b/qadevOOo/tests/java/mod/_cnt/ChaosContentProvider.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 diff --git a/qadevOOo/tests/java/mod/_cnt/CntUnoDataContainer.java b/qadevOOo/tests/java/mod/_cnt/CntUnoDataContainer.java index 431102a3348f..dbf57e5782ae 100644 --- a/qadevOOo/tests/java/mod/_cnt/CntUnoDataContainer.java +++ b/qadevOOo/tests/java/mod/_cnt/CntUnoDataContainer.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 diff --git a/qadevOOo/tests/java/mod/_cnt/PropertyMatcherFactory.java b/qadevOOo/tests/java/mod/_cnt/PropertyMatcherFactory.java index a64fd1446fe6..56609c37c0ff 100644 --- a/qadevOOo/tests/java/mod/_cnt/PropertyMatcherFactory.java +++ b/qadevOOo/tests/java/mod/_cnt/PropertyMatcherFactory.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 diff --git a/qadevOOo/tests/java/mod/_connector.uno/Connector.java b/qadevOOo/tests/java/mod/_connector.uno/Connector.java index 19436e0cdc68..06fec0390fa5 100644 --- a/qadevOOo/tests/java/mod/_connector.uno/Connector.java +++ b/qadevOOo/tests/java/mod/_connector.uno/Connector.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 diff --git a/qadevOOo/tests/java/mod/_connectr/Connector.java b/qadevOOo/tests/java/mod/_connectr/Connector.java index 5bbaae1d200b..118729c01863 100644 --- a/qadevOOo/tests/java/mod/_connectr/Connector.java +++ b/qadevOOo/tests/java/mod/_connectr/Connector.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 diff --git a/qadevOOo/tests/java/mod/_corefl/CoreReflection.java b/qadevOOo/tests/java/mod/_corefl/CoreReflection.java index e33462780f0c..cada4acf14d4 100644 --- a/qadevOOo/tests/java/mod/_corefl/CoreReflection.java +++ b/qadevOOo/tests/java/mod/_corefl/CoreReflection.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 diff --git a/qadevOOo/tests/java/mod/_corereflection.uno/CoreReflection.java b/qadevOOo/tests/java/mod/_corereflection.uno/CoreReflection.java index 250ddfc1cf71..362311ce7cfc 100644 --- a/qadevOOo/tests/java/mod/_corereflection.uno/CoreReflection.java +++ b/qadevOOo/tests/java/mod/_corereflection.uno/CoreReflection.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 diff --git a/qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.java b/qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.java index ee30bdc2c67a..bc200665e9c5 100644 --- a/qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.java +++ b/qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.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 @@ -93,7 +93,7 @@ public class DLLComponentLoader extends TestCase { // adding object relation for XImplementationLoader ifc test tEnv.addObjRelation("ImplementationLoader", - "com.sun.star.loader.SharedLibrary") ; + "com.sun.star.loader.SharedLibrary") ; String os = (String) Param.get("OS"); if (os == null || os == "") throw new StatusException( diff --git a/qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.java b/qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.java index c515ffaf8c01..c2494f6c0541 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.java +++ b/qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.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 @@ -86,7 +86,7 @@ public class ConnectionLineAccessibility extends TestCase XComponent QueryComponent = null; String user = ""; String password=""; - + /** * Creates a new DataSource and stores it. * Creates a connection and using it @@ -105,13 +105,13 @@ public class ConnectionLineAccessibility extends TestCase PrintWriter log) { XInterface oObj = null; - + Object oDBContext = null; Object oDBSource = null; Object newQuery = null; Object toolkit = null; XStorable store = null; - + try { oDBContext = ((XMultiServiceFactory) Param.getMSF()) @@ -128,24 +128,24 @@ public class ConnectionLineAccessibility extends TestCase e.printStackTrace(log); throw new StatusException(Status.failed("Couldn't create instance")); } - + String mysqlURL = (String) Param.get("mysql.url"); - + if (mysqlURL == null) { throw new StatusException(Status.failed( "Couldn't get 'mysql.url' from ini-file")); } - + user = (String) Param.get("jdbc.user"); password = (String) Param.get("jdbc.password"); - + if ((user == null) || (password == null)) { throw new StatusException(Status.failed( "Couldn't get 'jdbc.user' or 'jdbc.password' from ini-file")); } - + PropertyValue[] info = new PropertyValue[2]; info[0] = new PropertyValue(); info[0].Name = "user"; @@ -153,10 +153,10 @@ public class ConnectionLineAccessibility extends TestCase info[1] = new PropertyValue(); info[1].Name = "password"; info[1].Value = password; - + XPropertySet propSetDBSource = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, oDBSource); - + try { propSetDBSource.setPropertyValue("URL", mysqlURL); @@ -186,7 +186,7 @@ public class ConnectionLineAccessibility extends TestCase throw new StatusException(Status.failed( "Couldn't set property value")); } - + try { log.println("writing database file ..."); @@ -194,7 +194,7 @@ public class ConnectionLineAccessibility extends TestCase UnoRuntime.queryInterface(XDocumentDataSource.class, oDBSource); store = (XStorable) UnoRuntime.queryInterface(XStorable.class, xDDS.getDatabaseDocument()); - + aFile = utils.getOfficeTemp((XMultiServiceFactory) Param.getMSF())+"ConnectionLine.odb"; log.println("... filename will be "+aFile); store.storeAsURL(aFile,new PropertyValue[] @@ -206,19 +206,19 @@ public class ConnectionLineAccessibility extends TestCase e.printStackTrace(log); throw new StatusException(Status.failed("Couldn't register object")); } - + isolConnection = (XIsolatedConnection) UnoRuntime.queryInterface( XIsolatedConnection.class, oDBSource); - + XConnection connection = null; XStatement statement = null; - + final String tbl_name1 = "tst_table1"; final String tbl_name2 = "tst_table2"; final String col_name1 = "id1"; final String col_name2 = "id2"; - + try { connection = isolConnection.getIsolatedConnection(user, password); @@ -251,16 +251,16 @@ public class ConnectionLineAccessibility extends TestCase throw new StatusException(Status.failed("SQLException")); } } - + XQueryDefinitionsSupplier querySuppl = (XQueryDefinitionsSupplier) UnoRuntime.queryInterface( XQueryDefinitionsSupplier.class, oDBSource); - + XNameAccess defContainer = querySuppl.getQueryDefinitions(); - + XPropertySet queryProp = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, newQuery); - + try { final String query = "select * from " + tbl_name1 + ", " + @@ -293,11 +293,11 @@ public class ConnectionLineAccessibility extends TestCase throw new StatusException(Status.failed( "Couldn't set property value")); } - + XNameContainer queryContainer = (XNameContainer) UnoRuntime.queryInterface( XNameContainer.class, defContainer); - + try { queryContainer.insertByName("Query1", newQuery); @@ -329,43 +329,43 @@ public class ConnectionLineAccessibility extends TestCase e.printStackTrace(log); throw new StatusException(Status.failed("Couldn't insert query")); } - + PropertyValue[] loadProps = new PropertyValue[3]; loadProps[0] = new PropertyValue(); loadProps[0].Name = "QueryDesignView"; loadProps[0].Value = Boolean.TRUE; - + loadProps[1] = new PropertyValue(); loadProps[1].Name = "CurrentQuery"; loadProps[1].Value = "Query1"; - + loadProps[2] = new PropertyValue(); loadProps[2].Name = "DataSource"; loadProps[2].Value = oDBSource; - + QueryComponent = DesktopTools.loadDoc((XMultiServiceFactory) Param.getMSF(),".component:DB/QueryDesign",loadProps); - + util.utils.shortWait(1000); - + xWindow = UnoRuntime.queryInterface(XModel.class, QueryComponent). getCurrentController().getFrame().getContainerWindow(); - + XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow); - + AccessibilityTools.printAccessibleTree (log,xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - + oObj = AccessibilityTools.getAccessibleObjectForRoleIgnoreShowing(xRoot, AccessibleRole.UNKNOWN, "", "ConnectionLine"); - + log.println("ImplementationName " + util.utils.getImplName(oObj)); - + log.println("creating TestEnvironment"); - + TestEnvironment tEnv = new TestEnvironment(oObj); - + shortWait(); - + final XWindow queryWin = xWindow; - + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { @@ -375,10 +375,10 @@ public class ConnectionLineAccessibility extends TestCase queryWin.setPosSize(rect.X, rect.Y, rect.Height-5, rect.Width-5, PosSize.POSSIZE); } }); - + return tEnv; } // finish method getTestEnvironment - + /** * Closes the DatasourceAdministration dialog and Query Dialog. */ @@ -386,7 +386,7 @@ public class ConnectionLineAccessibility extends TestCase { try { - + log.println("closing QueryComponent ..."); DesktopTools.closeDoc(QueryComponent); log.println("... done"); @@ -402,7 +402,7 @@ public class ConnectionLineAccessibility extends TestCase e.printStackTrace(); } } - + /** * Sleeps for 1.5 sec. to allow StarOffice to react on <code> * reset</code> call. diff --git a/qadevOOo/tests/java/mod/_dbaccess/DBContentLoader.java b/qadevOOo/tests/java/mod/_dbaccess/DBContentLoader.java index 85ba95cc5ef2..c79c189addac 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/DBContentLoader.java +++ b/qadevOOo/tests/java/mod/_dbaccess/DBContentLoader.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 diff --git a/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java b/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java index 8ec0c0db1bfa..b882e0242558 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java +++ b/qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.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 @@ -85,7 +85,7 @@ public class JoinViewAccessibility extends TestCase { XComponent QueryComponent = null; String user = ""; String password=""; - + /** * Creates a new DataSource and stores it. * Creates a connection and using it @@ -104,13 +104,13 @@ public class JoinViewAccessibility extends TestCase { PrintWriter log) { XInterface oObj = null; - + Object oDBContext = null; Object oDBSource = null; Object newQuery = null; Object toolkit = null; XStorable store = null; - + try { oDBContext = ((XMultiServiceFactory) Param.getMSF ()) @@ -126,24 +126,24 @@ public class JoinViewAccessibility extends TestCase { e.printStackTrace (log); throw new StatusException (Status.failed ("Couldn't create instance")); } - + String mysqlURL = (String) Param.get ("mysql.url"); - + if (mysqlURL == null) { throw new StatusException (Status.failed ( "Couldn't get 'mysql.url' from ini-file")); } - + user = (String) Param.get ("jdbc.user"); password = (String) Param.get ("jdbc.password"); - + if ((user == null) || (password == null)) { throw new StatusException (Status.failed ( "Couldn't get 'jdbc.user' or 'jdbc.password' from ini-file")); } - + PropertyValue[] info = new PropertyValue[2]; info[0] = new PropertyValue (); info[0].Name = "user"; @@ -151,10 +151,10 @@ public class JoinViewAccessibility extends TestCase { info[1] = new PropertyValue (); info[1].Name = "password"; info[1].Value = password; - + XPropertySet propSetDBSource = (XPropertySet) UnoRuntime.queryInterface ( XPropertySet.class, oDBSource); - + try { propSetDBSource.setPropertyValue ("URL", mysqlURL); @@ -180,7 +180,7 @@ public class JoinViewAccessibility extends TestCase { throw new StatusException (Status.failed ( "Couldn't set property value")); } - + try { log.println ("writing database file ..."); @@ -198,19 +198,19 @@ public class JoinViewAccessibility extends TestCase { e.printStackTrace (log); throw new StatusException (Status.failed ("Couldn't register object")); } - + isolConnection = (XIsolatedConnection) UnoRuntime.queryInterface ( XIsolatedConnection.class, oDBSource); - + XConnection connection = null; XStatement statement = null; - + final String tbl_name1 = "tst_table1"; final String tbl_name2 = "tst_table2"; final String col_name1 = "id1"; final String col_name2 = "id2"; - + try { connection = isolConnection.getIsolatedConnection (user, password); @@ -241,16 +241,16 @@ public class JoinViewAccessibility extends TestCase { throw new StatusException (Status.failed ("SQLException")); } } - + XQueryDefinitionsSupplier querySuppl = (XQueryDefinitionsSupplier) UnoRuntime.queryInterface ( XQueryDefinitionsSupplier.class, oDBSource); - + XNameAccess defContainer = querySuppl.getQueryDefinitions (); - + XPropertySet queryProp = (XPropertySet) UnoRuntime.queryInterface ( XPropertySet.class, newQuery); - + try { final String query = "select * from " + tbl_name1 + ", " + @@ -279,11 +279,11 @@ public class JoinViewAccessibility extends TestCase { throw new StatusException (Status.failed ( "Couldn't set property value")); } - + XNameContainer queryContainer = (XNameContainer) UnoRuntime.queryInterface ( XNameContainer.class, defContainer); - + try { queryContainer.insertByName ("Query1", newQuery); @@ -310,27 +310,27 @@ public class JoinViewAccessibility extends TestCase { e.printStackTrace (log); throw new StatusException (Status.failed ("Couldn't insert query")); } - + PropertyValue[] loadProps = new PropertyValue[3]; loadProps[0] = new PropertyValue (); loadProps[0].Name = "QueryDesignView"; loadProps[0].Value = Boolean.TRUE; - + loadProps[1] = new PropertyValue (); loadProps[1].Name = "CurrentQuery"; loadProps[1].Value = "Query1"; - + loadProps[2] = new PropertyValue (); loadProps[2].Name = "DataSource"; loadProps[2].Value = oDBSource; - + QueryComponent = DesktopTools.loadDoc ((XMultiServiceFactory) Param.getMSF (),".component:DB/QueryDesign",loadProps); - + xWindow = UnoRuntime.queryInterface(XModel.class, QueryComponent). getCurrentController().getFrame().getContainerWindow(); - + XAccessible xRoot = AccessibilityTools.getAccessibleObject (xWindow); - + AccessibilityTools.printAccessibleTree (log,xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.VIEW_PORT); @@ -345,7 +345,7 @@ public class JoinViewAccessibility extends TestCase { final XWindow queryWin = xWindow; - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { Rectangle rect = queryWin.getPosSize(); @@ -359,10 +359,10 @@ public class JoinViewAccessibility extends TestCase { /** * Closes the DatasourceAdministration dialog and Query Dialog. */ - protected void cleanup(TestParameters Param, PrintWriter log) { + protected void cleanup(TestParameters Param, PrintWriter log) { try { - + log.println ("closing QueryComponent ..."); DesktopTools.closeDoc (QueryComponent); log.println ("... done"); diff --git a/qadevOOo/tests/java/mod/_dbaccess/OCommandDefinition.java b/qadevOOo/tests/java/mod/_dbaccess/OCommandDefinition.java index 0d06f813396d..82c9a2afd9c0 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/OCommandDefinition.java +++ b/qadevOOo/tests/java/mod/_dbaccess/OCommandDefinition.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 diff --git a/qadevOOo/tests/java/mod/_dbaccess/ODatabaseContext.java b/qadevOOo/tests/java/mod/_dbaccess/ODatabaseContext.java index 0cec0c8b1b28..d7741e30d6d4 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/ODatabaseContext.java +++ b/qadevOOo/tests/java/mod/_dbaccess/ODatabaseContext.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 @@ -120,15 +120,15 @@ public class ODatabaseContext extends TestCase { UnoRuntime.queryInterface(XPropertySet.class, oInterface) ; xDSProps.setPropertyValue("URL", "sdbc:dbase:file:///.") ; - + XDocumentDataSource xDDS = (XDocumentDataSource) UnoRuntime.queryInterface(XDocumentDataSource.class, oInterface); XStorable store = (XStorable) UnoRuntime.queryInterface(XStorable.class, xDDS.getDatabaseDocument ()); String aFile = utils.getOfficeTemp ((XMultiServiceFactory) Param.getMSF ())+"DatabaseContext.odb"; log.println("store to '" + aFile + "'"); - store.storeAsURL(aFile,new PropertyValue[]{}); - + store.storeAsURL(aFile,new PropertyValue[]{}); + tEnv.addObjRelation("XNamingService.RegisterObject", oInterface) ; tEnv.addObjRelation("INSTANCE", oInterface); diff --git a/qadevOOo/tests/java/mod/_dbaccess/ODatabaseSource.java b/qadevOOo/tests/java/mod/_dbaccess/ODatabaseSource.java index 05ddc216df88..616fe4965cb3 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/ODatabaseSource.java +++ b/qadevOOo/tests/java/mod/_dbaccess/ODatabaseSource.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 @@ -98,13 +98,13 @@ public class ODatabaseSource extends TestCase { protected void initialize ( TestParameters Param, PrintWriter log) { uniqueSuffix = uniqueSuffixStat++ ; } - + protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing not longer needed docs... "); DesktopTools.closeDoc(xDBDoc); } - - + + /** * Creating a Testenvironment for the interfaces to be tested. @@ -133,7 +133,7 @@ public class ODatabaseSource extends TestCase { try{ oInterface = xMSF.createInstance( "com.sun.star.sdb.DatabaseContext" ); - if (oInterface == null) + if (oInterface == null) throw new StatusException("Could not get service 'com.sun.star.sdb.DatabaseContext'", new Exception()); }catch( Exception e ) { @@ -153,8 +153,8 @@ public class ODatabaseSource extends TestCase { try{ XInterface oDatabaseDoc = (XInterface) xMSF.createInstance ("com.sun.star.sdb.OfficeDatabaseDocument") ; - - if (oDatabaseDoc == null) + + if (oDatabaseDoc == null) throw new StatusException("Could not get service 'com.sun.star.sdb.OfficeDatabaseDocument'", new Exception()); xDBDoc = (XOfficeDatabaseDocument) UnoRuntime.queryInterface( @@ -169,12 +169,12 @@ public class ODatabaseSource extends TestCase { oObj = (XInterface) xDBDoc.getDataSource(); log.println("ImplementationName: " + utils.getImplName(oObj)); - + // Creating new DBase data source in the TEMP directory XPropertySet xSrcProp = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, oObj); - + try{ xSrcProp.setPropertyValue("URL", tmpDatabaseUrl) ; } catch ( UnknownPropertyException e){ @@ -198,7 +198,7 @@ public class ODatabaseSource extends TestCase { // registering source in DatabaseContext XStorable store = (XStorable) UnoRuntime.queryInterface(XStorable.class, xDBDoc); - String aFile = utils.getOfficeTemp ((XMultiServiceFactory) Param.getMSF ())+"DataSource.odb"; + String aFile = utils.getOfficeTemp ((XMultiServiceFactory) Param.getMSF ())+"DataSource.odb"; try{ store.storeAsURL(aFile,new PropertyValue[]{}); } catch (IOException e){ @@ -210,16 +210,16 @@ public class ODatabaseSource extends TestCase { e.printStackTrace (); throw new StatusException("Could not save ", e) ; } - + try{ - xDBContextNameServ.registerObject(databaseName, oObj) ; + xDBContextNameServ.registerObject(databaseName, oObj) ; } catch (Exception e){ log.println("Could not register data source" ); e.printStackTrace (); throw new StatusException("Could not register ", e) ; } - + log.println( " creating a new environment for object" ); TestEnvironment tEnv = new TestEnvironment( oObj ); diff --git a/qadevOOo/tests/java/mod/_dbaccess/ODatasourceAdministrationDialog.java b/qadevOOo/tests/java/mod/_dbaccess/ODatasourceAdministrationDialog.java index ed64db1081eb..92a5004dcac5 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/ODatasourceAdministrationDialog.java +++ b/qadevOOo/tests/java/mod/_dbaccess/ODatasourceAdministrationDialog.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 diff --git a/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java b/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java index 867888684ee2..c13fc05bacc3 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java +++ b/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.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 @@ -107,7 +107,7 @@ public class ODatasourceBrowser extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, + the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory)Param.getMSF())); System.setProperty("hideMe", "false"); @@ -182,7 +182,7 @@ public class ODatasourceBrowser extends TestCase { * @see com.sun.star.frame.XController * @see com.sun.star.frame.XDispatchProvider */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { log.println("creating a test environment"); @@ -214,7 +214,7 @@ public class ODatasourceBrowser extends TestCase { shortWait(); - XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController secondController = aModel1.getCurrentController(); @@ -273,15 +273,15 @@ public class ODatasourceBrowser extends TestCase { shortWait(); - XControlShape aShape = FormTools.createControlShape(xTextDoc, 3000, - 4500, 15000, 10000, + XControlShape aShape = FormTools.createControlShape(xTextDoc, 3000, + 4500, 15000, 10000, "CommandButton"); WriterTools.getDrawPage(xTextDoc).add((XShape) aShape); XControlModel shapeModel = aShape.getControl(); XControlAccess xCtrlAccess = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, secondController); XControl xCtrl = null; @@ -292,7 +292,7 @@ public class ODatasourceBrowser extends TestCase { e.printStackTrace(log); } - XWindow docWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow docWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, xCtrl); log.println("creating a new environment for ODatasourceBrowser object"); @@ -312,7 +312,7 @@ public class ODatasourceBrowser extends TestCase { // Addig relation for XDispatchProvider - tEnv.addObjRelation("XDispatchProvider.URL", + tEnv.addObjRelation("XDispatchProvider.URL", ".uno:DataSourceBrowser/FormLetter"); return tEnv; diff --git a/qadevOOo/tests/java/mod/_dbaccess/OInteractionHandler.java b/qadevOOo/tests/java/mod/_dbaccess/OInteractionHandler.java index 947fa6b1c9fe..93652025b748 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/OInteractionHandler.java +++ b/qadevOOo/tests/java/mod/_dbaccess/OInteractionHandler.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 diff --git a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java index 73850dbaf64b..6f1e677d7d8b 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java +++ b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.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 @@ -89,12 +89,12 @@ public class OQueryDesign extends TestCase { XMultiServiceFactory xMSF = (XMultiServiceFactory) Param.getMSF(); XNameAccess xNameAccess = null; - + // we use the first datasource - XDataSource xDS = null; + XDataSource xDS = null; try { xNameAccess = (XNameAccess) UnoRuntime.queryInterface( - XNameAccess.class, + XNameAccess.class, xMSF.createInstance("com.sun.star.sdb.DatabaseContext")); } catch (Exception ex) { ex.printStackTrace( log ); @@ -112,13 +112,13 @@ public class OQueryDesign extends TestCase { } try { xNameAccess = (XNameAccess) UnoRuntime.queryInterface( - XNameAccess.class, + XNameAccess.class, xMSF.createInstance("com.sun.star.sdb.DatabaseContext")); } catch (Exception ex) { ex.printStackTrace( log ); throw new StatusException( "Could not get DatabaseConext", ex ); } - + log.println("check XMultiServiceFactory"); try { @@ -149,14 +149,14 @@ public class OQueryDesign extends TestCase { shortWait(); Object oDBC = null; - + try { oDBC = xMSF.createInstance( "com.sun.star.sdb.DatabaseContext" ); } catch( com.sun.star.uno.Exception e ) { throw new StatusException("Could not instantiate DatabaseContext", e) ; } - + Object oDataSource = null; try{ XNameAccess xNA = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, oDBC); @@ -168,11 +168,11 @@ public class OQueryDesign extends TestCase { } XDocumentDataSource xDDS = (XDocumentDataSource) UnoRuntime.queryInterface(XDocumentDataSource.class, oDataSource); // XModel xMod = (XModel) UnoRuntime.queryInterface(XModel.class, xDDS.getDatabaseDocument ()); - + // Frame = xMod.getCurrentController().getFrame(); - + xFrame = DesktopTools.getCurrentFrame(xMSF); - + // get an instance of Frame Object oFrame = null; SOfficeFactory SOF = null; @@ -187,9 +187,9 @@ public class OQueryDesign extends TestCase { } XModel xDocMod = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); - + XFrame xTextFrame = xDocMod.getCurrentController().getFrame(); - + Object[] params = new Object[3]; param1 = new PropertyValue(); param1.Name = "DataSourceName"; @@ -204,9 +204,9 @@ public class OQueryDesign extends TestCase { param3.Value = new Boolean(true); params[2] = param3; - + oObj = xFrame.getController(); - + TestEnvironment tEnv = new TestEnvironment(oObj); //Adding ObjRelations for XInitialization @@ -227,12 +227,12 @@ public class OQueryDesign extends TestCase { PropertyValue ExceptionParam3 = new PropertyValue(); ExceptionParam3.Name = "QueryDesignView"; ExceptionParam3.Value = new Integer(17);//new Boolean(true); - ExceptionParams[2] = ExceptionParam3; + ExceptionParams[2] = ExceptionParam3; tEnv.addObjRelation("XInitialization.ExceptionArgs", ExceptionParams); tEnv.addObjRelation("Frame", xFrame); - + tEnv.addObjRelation("XInitialization.xIni", getUnititializedObj(Param)); log.println("ImplementationName: "+util.utils.getImplName(oObj)); @@ -240,14 +240,14 @@ public class OQueryDesign extends TestCase { return tEnv; } // finish method getTestEnvironment - + private XInitialization getUnititializedObj(TestParameters Param){ // creating an object wihch ist not initialized - + // get a model of a DataSource Object oDBC = null; XMultiServiceFactory xMSF; - + try { xMSF = (XMultiServiceFactory)Param.getMSF(); oDBC = xMSF.createInstance( "com.sun.star.sdb.DatabaseContext" ); @@ -255,7 +255,7 @@ public class OQueryDesign extends TestCase { catch( com.sun.star.uno.Exception e ) { throw new StatusException("Could not instantiate DatabaseContext", e) ; } - + Object oDataSource = null; try{ XNameAccess xNA = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, oDBC); @@ -265,7 +265,7 @@ public class OQueryDesign extends TestCase { } catch ( com.sun.star.lang.WrappedTargetException e){ throw new StatusException("could not get '" + sDataSourceName + "'" , e) ; } - + XDocumentDataSource xDDS = (XDocumentDataSource) UnoRuntime.queryInterface(XDocumentDataSource.class, oDataSource); XModel xMod = (XModel) UnoRuntime.queryInterface(XModel.class, xDDS.getDatabaseDocument ()); @@ -276,9 +276,9 @@ public class OQueryDesign extends TestCase { }catch( com.sun.star.uno.Exception e ) { throw new StatusException("Could not instantiate QueryDesign", e) ; } - + XController xCont = (XController) UnoRuntime.queryInterface(XController.class, oQueryDesign); - + // marry them all xCont.attachModel(xMod); xMod.connectController(xCont); @@ -287,13 +287,13 @@ public class OQueryDesign extends TestCase { } catch (com.sun.star.container.NoSuchElementException e){ throw new StatusException("Could not set controller", e) ; } - + //xCont.attachFrame(xFrame); - + return (XInitialization) UnoRuntime.queryInterface(XInitialization.class, oQueryDesign); - + } - + @Override protected void cleanup(TestParameters tParam, PrintWriter log) { try { @@ -306,7 +306,7 @@ public class OQueryDesign extends TestCase { } catch (com.sun.star.lang.DisposedException e) { log.println("Connection was already closed. It's OK.") ; } - + } /** diff --git a/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java b/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java index c349d5dcdb28..a7a9cac89c50 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java +++ b/qadevOOo/tests/java/mod/_dbaccess/ORowSet.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 @@ -255,7 +255,7 @@ public class ORowSet extends TestCase { XMultiServiceFactory orb = (XMultiServiceFactory)Param.getMSF(); uniqueSuffix++; boolean envCreatedOK = false ; - + //initialize test table if (isMySQLDB) { @@ -296,7 +296,7 @@ public class ORowSet extends TestCase { while ( !utils.tryOverwriteFile( orb, oldF, newF ) ); m_tableFile = newF; } - + try { m_rowSet = orb.createInstance("com.sun.star.sdb.RowSet"); @@ -310,7 +310,7 @@ public class ORowSet extends TestCase { rowSetProps.setPropertyValue("CommandType", new Integer(CommandType.TABLE)); - final XRowSet rowSet = UnoRuntime.queryInterface( XRowSet.class, m_rowSet); + final XRowSet rowSet = UnoRuntime.queryInterface( XRowSet.class, m_rowSet); rowSet.execute(); m_connection = UnoRuntime.queryInterface( XConnection.class, rowSetProps.getPropertyValue("ActiveConnection") ); @@ -578,16 +578,16 @@ public class ORowSet extends TestCase { public class InteractionHandlerImpl implements _XCompletedExecution.CheckInteractionHandler { private boolean handlerWasUsed = false; private PrintWriter log = new PrintWriter(System.out); - + public boolean checkInteractionHandler() { return handlerWasUsed; } - + public void handle(XInteractionRequest xInteractionRequest) { log.println("### _XCompletedExecution.InteractionHandlerImpl: handle called."); ParametersRequest req = null; boolean abort = false; - + Object o = xInteractionRequest.getRequest(); if (o instanceof ParametersRequest) { req = (ParametersRequest)o; @@ -602,7 +602,7 @@ public class ORowSet extends TestCase { log.println("### This is not implemented in ORowSet.InteractionHandlerImpl test -> abort."); abort = true; } - + XInteractionContinuation[]xCont = xInteractionRequest.getContinuations(); XInteractionSupplyParameters xParamCallback = null; for(int i=0; i<xCont.length; i++) { @@ -631,14 +631,14 @@ public class ORowSet extends TestCase { xParamCallback.select(); } else { // we should never reach this: abort has to be true first. - log.println("### _XCompletedExecution.InteractionHandlerImpl: Got no " + + log.println("### _XCompletedExecution.InteractionHandlerImpl: Got no " + "'XInteractionSupplyParameters' and no 'XInteractionAbort'."); } } - + public void setLog(PrintWriter log) { this.log = log; } - + } } diff --git a/qadevOOo/tests/java/mod/_dbaccess/OSQLMessageDialog.java b/qadevOOo/tests/java/mod/_dbaccess/OSQLMessageDialog.java index 0b4ce3886df9..c4efa6a963b6 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/OSQLMessageDialog.java +++ b/qadevOOo/tests/java/mod/_dbaccess/OSQLMessageDialog.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 @@ -112,7 +112,7 @@ public class OSQLMessageDialog extends TestCase { log.println("could not create instacne of 'com.sun.star.awt.Toolkit'" ); throw new StatusException("could not create instacne of 'com.sun.star.awt.Toolkit'", e) ; } - + // Describe the properties of the container window. com.sun.star.awt.WindowDescriptor aDescriptor = new com.sun.star.awt.WindowDescriptor(); @@ -131,7 +131,7 @@ public class OSQLMessageDialog extends TestCase { com.sun.star.awt.XWindowPeer xPeer = null; try{ - + xPeer = xToolkit.createWindow(aDescriptor) ; } catch (com.sun.star.lang.IllegalArgumentException e){ @@ -140,8 +140,8 @@ public class OSQLMessageDialog extends TestCase { } com.sun.star.awt.XWindow xWindow = (com.sun.star.awt.XWindow)UnoRuntime.queryInterface ( - com.sun.star.awt.XWindow .class, xPeer); - + com.sun.star.awt.XWindow .class, xPeer); + log.println( " creating a new environment for object" ); TestEnvironment tEnv = new TestEnvironment( oObj ); diff --git a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java index 3fc9815fc904..d2b05478873c 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java +++ b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.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 @@ -188,15 +188,15 @@ public class OSingleSelectQueryComposer extends TestCase { xMSF = (XMultiServiceFactory)Param.getMSF(); XNameAccess xNameAccess = (XNameAccess)UnoRuntime.queryInterface( - XNameAccess.class, + XNameAccess.class, xMSF.createInstance("com.sun.star.sdb.DatabaseContext")); // we use the first datasource XDataSource xDS = (XDataSource)UnoRuntime.queryInterface( - XDataSource.class, xNameAccess.getByName( "Bibliography" )); - + XDataSource.class, xNameAccess.getByName( "Bibliography" )); + log.println("check XMultiServiceFactory"); XMultiServiceFactory xConn = (XMultiServiceFactory) - UnoRuntime.queryInterface(XMultiServiceFactory.class, + UnoRuntime.queryInterface(XMultiServiceFactory.class, xDS.getConnection(new String(),new String())); log.println("check getAvailableServiceNames"); @@ -205,7 +205,7 @@ public class OSingleSelectQueryComposer extends TestCase { { log.println("Service 'SingleSelectQueryComposer' not supported"); } - + oInterface = (XInterface) xConn.createInstance( sServiceNames[0]); if (oInterface == null) { @@ -229,26 +229,26 @@ public class OSingleSelectQueryComposer extends TestCase { oRowSet) ; xORowSet.execute() ; - + XColumnsSupplier xColSup = (XColumnsSupplier) UnoRuntime.queryInterface(XColumnsSupplier.class, oRowSet); - + XNameAccess xCols = xColSup.getColumns(); - + XPropertySet xCol = (XPropertySet) AnyConverter.toObject( new Type(XPropertySet.class), xCols.getByName(xCols.getElementNames()[0])); - + XSingleSelectQueryAnalyzer xQueryAna = (XSingleSelectQueryAnalyzer) UnoRuntime.queryInterface(XSingleSelectQueryAnalyzer.class, oInterface); - + // XSingleSelectQueryComposer XSingleSelectQueryComposer xComposer = (XSingleSelectQueryComposer) UnoRuntime.queryInterface(XSingleSelectQueryComposer.class, xQueryAna); xQueryAna.setQuery("SELECT * FROM \"biblio\""); - + oObj = (XInterface) oInterface; log.println("ImplementationName: " + utils.getImplName(oObj)); @@ -257,13 +257,13 @@ public class OSingleSelectQueryComposer extends TestCase { // for XSingleSelectQueryAnalyzer tEnv.addObjRelation("xComposer", xComposer); - + // for XSingleSelectQueryComposer tEnv.addObjRelation("xQueryAna", xQueryAna); - + tEnv.addObjRelation("xProp", xCol); tEnv.addObjRelation("colName", xCols.getElementNames()[0]); - + envCreatedOK = true ; return tEnv; diff --git a/qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java b/qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java index 020b58594957..01c1713199f9 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java +++ b/qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.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 @@ -168,12 +168,12 @@ public class SbaXGridControl extends TestCase { Object atw = tk.getActiveTopWindow(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, atw); XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow); - XInterface button = AccessibilityTools.getAccessibleObjectForRole(xRoot, + XInterface button = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON); XAccessibleAction action = (XAccessibleAction) UnoRuntime.queryInterface( @@ -234,7 +234,7 @@ public class SbaXGridControl extends TestCase { * inserted into collection. Is a column instance.</li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -258,7 +258,7 @@ public class SbaXGridControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); try { @@ -321,7 +321,7 @@ public class SbaXGridControl extends TestCase { // creating another window - aShape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000, + aShape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000, 10000, "TextField"); WriterTools.getDrawPage(xTextDoc).add((XShape) aShape); @@ -331,7 +331,7 @@ public class SbaXGridControl extends TestCase { //Try to query XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the TextControl @@ -353,11 +353,11 @@ public class SbaXGridControl extends TestCase { //Relations for XSelectionSupplier - tEnv.addObjRelation("Selections", + tEnv.addObjRelation("Selections", new Object[] { new Object[] { new Integer(0) }, new Object[] { new Integer(1) } }); - tEnv.addObjRelation("Comparer", + tEnv.addObjRelation("Comparer", new Comparator() { public int compare(Object o1, Object o2) { return ((Integer) o1).compareTo((Integer)o2); @@ -407,7 +407,7 @@ public class SbaXGridControl extends TestCase { final XLoadable formLoaderF = formLoader; final XPropertySet ps = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, aControl2); - tEnv.addObjRelation("XUpdateBroadcaster.Checker", + tEnv.addObjRelation("XUpdateBroadcaster.Checker", new ifc.form._XUpdateBroadcaster.UpdateChecker() { private String lastText = ""; @@ -424,7 +424,7 @@ public class SbaXGridControl extends TestCase { XBoundComponent bound = (XBoundComponent) UnoRuntime.queryInterface( XBoundComponent.class, ctrl); XResultSetUpdate update = (XResultSetUpdate) UnoRuntime.queryInterface( - XResultSetUpdate.class, + XResultSetUpdate.class, formLoaderF); bound.commit(); @@ -441,7 +441,7 @@ public class SbaXGridControl extends TestCase { return tEnv; } // finish method getTestEnvironment - public static XControlShape createGrid(XComponent oDoc, int height, + public static XControlShape createGrid(XComponent oDoc, int height, int width, int x, int y) { Size size = new Size(); Point position = new Point(); @@ -450,7 +450,7 @@ public class SbaXGridControl extends TestCase { //get MSF XMultiServiceFactory oDocMSF = (XMultiServiceFactory) UnoRuntime.queryInterface( - XMultiServiceFactory.class, + XMultiServiceFactory.class, oDoc); try { @@ -460,7 +460,7 @@ public class SbaXGridControl extends TestCase { "com.sun.star.form.component.GridControl"); XPropertySet model_props = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, aCon); - model_props.setPropertyValue("DefaultControl", + model_props.setPropertyValue("DefaultControl", "com.sun.star.form.control.InteractionGridControl"); aControl = (XControlModel) UnoRuntime.queryInterface( XControlModel.class, aCon); diff --git a/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java b/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java index 4c39c1590890..7b5827a2475e 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java +++ b/qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.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 @@ -95,14 +95,14 @@ public class TableWindowAccessibility extends TestCase { * Creates a new query and adds it to DefinitionContainer. * Opens the QueryComponent.with loadComponentFromURL * and gets the object with the role PANEL and the implementation - * name that contains TabelViewAccessibility + * name that contains TabelViewAccessibility * @param Param test parameters * @param log writer to log information while testing * @return * @throws StatusException * @see TestEnvironment */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -110,7 +110,7 @@ public class TableWindowAccessibility extends TestCase { Object oDBSource = null; Object newQuery = null; Object toolkit = null; - XStorable store = null; + XStorable store = null; try { oDBContext = ((XMultiServiceFactory) Param.getMSF()) @@ -189,7 +189,7 @@ public class TableWindowAccessibility extends TestCase { } isolConnection = (XIsolatedConnection) UnoRuntime.queryInterface( - XIsolatedConnection.class, + XIsolatedConnection.class, oDBSource); XConnection connection = null; @@ -205,21 +205,21 @@ public class TableWindowAccessibility extends TestCase { statement = connection.createStatement(); statement.executeUpdate("drop table if exists " + tbl_name1); statement.executeUpdate("drop table if exists " + tbl_name2); - statement.executeUpdate("create table " + tbl_name1 + " (" + + statement.executeUpdate("create table " + tbl_name1 + " (" + col_name1 + " int)"); - statement.executeUpdate("create table " + tbl_name2 + " (" + + statement.executeUpdate("create table " + tbl_name2 + " (" + col_name2 + " int)"); } catch (com.sun.star.sdbc.SQLException e) { try { shortWait(); - connection = isolConnection.getIsolatedConnection(user, + connection = isolConnection.getIsolatedConnection(user, password); statement = connection.createStatement(); statement.executeUpdate("drop table if exists " + tbl_name1); statement.executeUpdate("drop table if exists " + tbl_name2); - statement.executeUpdate("create table " + tbl_name1 + " (" + + statement.executeUpdate("create table " + tbl_name1 + " (" + col_name1 + " int)"); - statement.executeUpdate("create table " + tbl_name2 + " (" + + statement.executeUpdate("create table " + tbl_name2 + " (" + col_name2 + " int)"); } catch (com.sun.star.sdbc.SQLException e2) { e2.printStackTrace(log); @@ -228,7 +228,7 @@ public class TableWindowAccessibility extends TestCase { } XQueryDefinitionsSupplier querySuppl = (XQueryDefinitionsSupplier) UnoRuntime.queryInterface( - XQueryDefinitionsSupplier.class, + XQueryDefinitionsSupplier.class, oDBSource); XNameAccess defContainer = querySuppl.getQueryDefinitions(); @@ -237,9 +237,9 @@ public class TableWindowAccessibility extends TestCase { XPropertySet.class, newQuery); try { - final String query = "select * from " + tbl_name1 + ", " + - tbl_name2 + " where " + tbl_name1 + "." + - col_name1 + "=" + tbl_name2 + "." + + final String query = "select * from " + tbl_name1 + ", " + + tbl_name2 + " where " + tbl_name1 + "." + + col_name1 + "=" + tbl_name2 + "." + col_name2; queryProp.setPropertyValue("Command", query); } catch (com.sun.star.lang.WrappedTargetException e) { @@ -261,7 +261,7 @@ public class TableWindowAccessibility extends TestCase { } XNameContainer queryContainer = (XNameContainer) UnoRuntime.queryInterface( - XNameContainer.class, + XNameContainer.class, defContainer); try { @@ -284,34 +284,34 @@ public class TableWindowAccessibility extends TestCase { e.printStackTrace(log); throw new StatusException(Status.failed("Couldn't insert query")); } - + PropertyValue[] loadProps = new PropertyValue[3]; loadProps[0] = new PropertyValue(); loadProps[0].Name = "QueryDesignView"; loadProps[0].Value = Boolean.TRUE; - + loadProps[1] = new PropertyValue(); loadProps[1].Name = "CurrentQuery"; - loadProps[1].Value = "Query1"; - + loadProps[1].Value = "Query1"; + loadProps[2] = new PropertyValue(); loadProps[2].Name = "DataSource"; - loadProps[2].Value = oDBSource; - + loadProps[2].Value = oDBSource; + QueryComponent = DesktopTools.loadDoc((XMultiServiceFactory) Param.getMSF (),".component:DB/QueryDesign",loadProps); - + xWindow = UnoRuntime.queryInterface(XModel.class, QueryComponent). getCurrentController().getFrame().getContainerWindow(); - XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow); - + XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow); + AccessibilityTools.printAccessibleTree (log,xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL, "", - "TableWindowAccessibility"); - + oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL, "", + "TableWindowAccessibility"); + log.println("ImplementationName " + util.utils.getImplName(oObj)); - + log.println("creating TestEnvironment ... done"); TestEnvironment tEnv = new TestEnvironment(oObj); @@ -319,21 +319,21 @@ public class TableWindowAccessibility extends TestCase { shortWait(); XAccessibleComponent accComp = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, oObj); - + final Point point = accComp.getLocationOnScreen(); - - tEnv.addObjRelation("EventProducer", + + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { - try { + try { Robot rob = new Robot(); rob.mouseMove(point.X + 2, point.Y + 7); - rob.mousePress(InputEvent.BUTTON1_MASK); + rob.mousePress(InputEvent.BUTTON1_MASK); rob.mouseMove(point.X + 400, point.Y); - rob.mouseRelease (InputEvent.BUTTON1_MASK); + rob.mouseRelease (InputEvent.BUTTON1_MASK); } catch (java.awt.AWTException e) { System.out.println("desired child doesn't exist"); } @@ -346,10 +346,10 @@ public class TableWindowAccessibility extends TestCase { /** * Closes all open documents. */ - protected void cleanup(TestParameters Param, PrintWriter log) { + protected void cleanup(TestParameters Param, PrintWriter log) { try { - + log.println ("closing QueryComponent ..."); DesktopTools.closeDoc (QueryComponent); log.println ("... done"); @@ -364,7 +364,7 @@ public class TableWindowAccessibility extends TestCase { e.printStackTrace (); } } - + /** * Sleeps for 1.5 sec. to allow StarOffice to react on <code> diff --git a/qadevOOo/tests/java/mod/_dbpool/OConnectionPool.java b/qadevOOo/tests/java/mod/_dbpool/OConnectionPool.java index 1ee00f74753f..eb00a417afd0 100644 --- a/qadevOOo/tests/java/mod/_dbpool/OConnectionPool.java +++ b/qadevOOo/tests/java/mod/_dbpool/OConnectionPool.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 diff --git a/qadevOOo/tests/java/mod/_defreg/NestedRegistry.java b/qadevOOo/tests/java/mod/_defreg/NestedRegistry.java index baa1d5488be0..6f2e850c5ffe 100644 --- a/qadevOOo/tests/java/mod/_defreg/NestedRegistry.java +++ b/qadevOOo/tests/java/mod/_defreg/NestedRegistry.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 @@ -91,7 +91,7 @@ public class NestedRegistry extends TestCase { */ protected void copyFile(String src, String dst, PrintWriter log) throws java.io.IOException { - log.println("Copy File "+src+" to "+dst); + log.println("Copy File "+src+" to "+dst); File srcF = new File(src) ; File dstF = new File(dst) ; diff --git a/qadevOOo/tests/java/mod/_dtrans/generic.java b/qadevOOo/tests/java/mod/_dtrans/generic.java index 6af6f1f1a2e8..cbcba7a9b4b2 100644 --- a/qadevOOo/tests/java/mod/_dtrans/generic.java +++ b/qadevOOo/tests/java/mod/_dtrans/generic.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 diff --git a/qadevOOo/tests/java/mod/_dynamicloader/Dynamic.java b/qadevOOo/tests/java/mod/_dynamicloader/Dynamic.java index f0577f6ba628..b947b237298c 100644 --- a/qadevOOo/tests/java/mod/_dynamicloader/Dynamic.java +++ b/qadevOOo/tests/java/mod/_dynamicloader/Dynamic.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 diff --git a/qadevOOo/tests/java/mod/_file/calc/ODriver.java b/qadevOOo/tests/java/mod/_file/calc/ODriver.java index 0bb05fd82670..8ffd03254d4c 100644 --- a/qadevOOo/tests/java/mod/_file/calc/ODriver.java +++ b/qadevOOo/tests/java/mod/_file/calc/ODriver.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 diff --git a/qadevOOo/tests/java/mod/_file/dbase/ODriver.java b/qadevOOo/tests/java/mod/_file/dbase/ODriver.java index 14884a39b193..572b2b637855 100644 --- a/qadevOOo/tests/java/mod/_file/dbase/ODriver.java +++ b/qadevOOo/tests/java/mod/_file/dbase/ODriver.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 diff --git a/qadevOOo/tests/java/mod/_file/flat/ODriver.java b/qadevOOo/tests/java/mod/_file/flat/ODriver.java index e6d293474a85..fb28efebd2f5 100644 --- a/qadevOOo/tests/java/mod/_file/flat/ODriver.java +++ b/qadevOOo/tests/java/mod/_file/flat/ODriver.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 diff --git a/qadevOOo/tests/java/mod/_fileacc/SimpleFileAccess.java b/qadevOOo/tests/java/mod/_fileacc/SimpleFileAccess.java index 3c4a33d2bbc5..d2a19f1418f9 100644 --- a/qadevOOo/tests/java/mod/_fileacc/SimpleFileAccess.java +++ b/qadevOOo/tests/java/mod/_fileacc/SimpleFileAccess.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 diff --git a/qadevOOo/tests/java/mod/_fop/FolderPicker.java b/qadevOOo/tests/java/mod/_fop/FolderPicker.java index fc400efb1783..8f3ed5536ea8 100644 --- a/qadevOOo/tests/java/mod/_fop/FolderPicker.java +++ b/qadevOOo/tests/java/mod/_fop/FolderPicker.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 diff --git a/qadevOOo/tests/java/mod/_forms/GenericModelTest.java b/qadevOOo/tests/java/mod/_forms/GenericModelTest.java index dce88234885f..8ddbbc293a06 100644 --- a/qadevOOo/tests/java/mod/_forms/GenericModelTest.java +++ b/qadevOOo/tests/java/mod/_forms/GenericModelTest.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 @@ -138,19 +138,19 @@ public class GenericModelTest extends TestCase { private static DBTools.DataSourceInfo m_srcInf = null; /** * This is the name of the Data Base which the test uses: "APITestDatabase" - */ + */ protected final static String m_dbSourceName = "APITestDatabase"; protected final static String m_TestDB = "TestDB"; private DBTools m_dbTools = null; - + private static boolean m_ConnectionColsed = false; - + /** * descibes the kind of the shape which should be created. * Example: m_kindOfshape=DateFiled - */ + */ public static String m_kindOfControl = null; - + /** * If your object needs some special propery values you can specify them with this * <CODE>ArrayList</CODE>. You have to add a <CODE>NamedValue</CODE> to this list. @@ -159,9 +159,9 @@ public class GenericModelTest extends TestCase { * myProp.Name = "Test"; * myProp.Value = "My special Value"; * m_propertiesToSet.add(myProp); - */ + */ public static ArrayList m_propertiesToSet = new ArrayList(); - + /** * This variable contains the name of the property which should be changed while * interface <CODE>com::sun::star::form::XUpdateBroadcaster</CODE> is tested. The @@ -169,7 +169,7 @@ public class GenericModelTest extends TestCase { * "XUpdateBroadcaster.Checker" which is a <CODE>ifc.form._XUpdateBroadcaster.UpdateChecker</CODE>. * @see ifc.form._XUpdateBroadcaster.UpdateChecker * @see ifc.form._XUpdateBroadcaster - */ + */ public static String m_ChangePropertyName = null; /** * This variable contains the value the property should be set while @@ -180,28 +180,28 @@ public class GenericModelTest extends TestCase { * the value of the property. If the current of this property is NULL the * <CODE>ValueChanger</CODE> is unable to change the value. In this case the value * of this variable was used. - */ + */ public static Object m_ChangePropertyValue = null; - + /** * This variable contains the implelemtation name of the object. - */ + */ public static String m_ObjectName = null; - + /** * For local implementaions of <CODE>Checker</CODE> this variable contains the * <CODE>FormLoader</CODE> - */ + */ protected static XLoadable m_XFormLoader = null; /** * For local implementaions of <CODE>Checker</CODE> this variable contains the * <CODE>XPropertySet</CODE> - */ + */ protected static XPropertySet m_XPS = null; /** * For local implementaions of <CODE>Checker</CODE> this variable contains the * <CODE>Control</CODE> - */ + */ protected static XInterface m_XCtrl = null; /** * The insterface test of <CODE>ifc.form._DataWareControlModel</CODE> expects an @@ -211,16 +211,16 @@ public class GenericModelTest extends TestCase { * @see ifc.form._DataAwareControlModel */ protected static String m_LCShape_Type = null; - + protected static String m_XPropertyAccess_propertyToChange = "HelpText"; - + protected static String m_XPropertyContainer_propertyNotRemovable = "HelpText"; /** - * If this variable is true some more debug info was logged. It was setted by the parameter variable + * If this variable is true some more debug info was logged. It was setted by the parameter variable * <code>debug_is_active</code> */ protected static boolean debug = false; - + /** * Creates Writer document where controls are placed. * @param tParam the test paremter @@ -244,19 +244,19 @@ public class GenericModelTest extends TestCase { */ protected void cleanup(TestParameters tParam, PrintWriter log) { log.println("closing connection..."); - + // some interface tests call cleanup to reset the environment. If such // a test is the last one cleanup was called twice. The second call // causes then nasty exceptions... if (m_ConnectionColsed) return; - + try { - XForm myForm = (XForm) AnyConverter.toObject(new Type(XForm.class), + XForm myForm = (XForm) AnyConverter.toObject(new Type(XForm.class), (FormTools.getForms( WriterTools.getDrawPage( m_xTextDoc))) .getByName("Standard")); - + if (debug){ if (myForm == null){ log.println("ERROR: could not get 'Standard' from drawpage!"); @@ -266,18 +266,18 @@ public class GenericModelTest extends TestCase { for (int i = 0; i< elements.length; i++){ log.println("Element[" + i + "] :" + elements[i]); } - + } - + XPropertySet xSetProp = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, myForm); XConnection connection = (XConnection) AnyConverter.toObject( - new Type(XConnection.class), + new Type(XConnection.class), xSetProp.getPropertyValue("ActiveConnection")); if (debug && connection == null){ log.println("ERROR: could not get property 'ActiveConnection' from the XForm"); } - + connection.close(); } catch (Exception e) { log.println("ERROR: Can't close the connection: " + e.toString()); @@ -306,7 +306,7 @@ public class GenericModelTest extends TestCase { } catch (Exception e) { log.println("ERROR: couldn't close data source: " + e.toString()); } - + log.println("disposing data source..."); try { XComponent dataSourceComp = (XComponent)UnoRuntime.queryInterface( @@ -316,7 +316,7 @@ public class GenericModelTest extends TestCase { catch (Exception e) { log.println("couldn't dispose the data source"); } - + log.println("closing document..."); try { @@ -338,7 +338,7 @@ public class GenericModelTest extends TestCase { } catch (com.sun.star.uno.Exception e) { log.println("ERROR: Error while object test cleaning up: " + e.toString()); } - + m_ConnectionColsed = true; } @@ -377,40 +377,40 @@ public class GenericModelTest extends TestCase { * @param log the log writer * @return a test environment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XControlShape aShape = null; XMultiServiceFactory xMSF = (XMultiServiceFactory) Param.getMSF(); - + try{ log.println("adding contol shape '" + m_kindOfControl + "'"); - aShape = FormTools.createControlShape(m_xTextDoc, 3000, - 4500, 15000, 10000, + aShape = FormTools.createControlShape(m_xTextDoc, 3000, + 4500, 15000, 10000, m_kindOfControl); } catch (Exception e){ e.printStackTrace(log); - throw new StatusException("Couldn't create following control shape (m_kindOfControl): '" + + throw new StatusException("Couldn't create following control shape (m_kindOfControl): '" + m_kindOfControl + "': ", e); - + } WriterTools.getDrawPage(m_xTextDoc).add((XShape) aShape); oObj = aShape.getControl(); - + log.println("Implementation name: " + util.utils.getImplName(oObj)); try { String sourceTestDB = utils.getFullURL(utils.getFullTestDocName("TestDB/testDB.dbf")); String destTestDB = utils.getOfficeTemp(xMSF); destTestDB = utils.getFullURL(destTestDB + "testDB.dbf"); - + log.println("copy '"+sourceTestDB + "' -> '" + destTestDB + "'"); utils.copyFile(xMSF, sourceTestDB, destTestDB); - + m_dbTools = new DBTools( xMSF, log ); String tmpDir = utils.getOfficeTemp((xMSF)); - + m_srcInf = m_dbTools.newDataSourceInfo(); m_srcInf.URL = "sdbc:dbase:" + DBTools.dirToUrl(tmpDir); log.println("data source: " + m_srcInf.URL); @@ -418,7 +418,7 @@ public class GenericModelTest extends TestCase { m_dbSrc = m_srcInf.getDataSourceService(); m_dbTools.reRegisterDB(m_dbSourceName, m_dbSrc); - m_XFormLoader = FormTools.bindForm(m_xTextDoc, m_dbSourceName, + m_XFormLoader = FormTools.bindForm(m_xTextDoc, m_dbSourceName, m_TestDB); } catch (com.sun.star.uno.Exception e) { log.println("!!! Can't access TestDB !!!"); @@ -429,25 +429,25 @@ public class GenericModelTest extends TestCase { log.println("creating a new environment for object"); TestEnvironment tEnv = new TestEnvironment(oObj); - + tEnv.addObjRelation("OBJNAME", m_ObjectName); - + log.println("adding shape '" + m_LCShape_Type +"' for DataAwareControlModel test"); - aShape = FormTools.createControlShape(m_xTextDoc, 6000, 4500, 15000, + aShape = FormTools.createControlShape(m_xTextDoc, 6000, 4500, 15000, 10000, m_LCShape_Type); WriterTools.getDrawPage(m_xTextDoc).add((XShape) aShape); m_XPS = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, oObj); - + int i = 0; NamedValue prop = null; try { for (i = 0; i < m_propertiesToSet.size(); i++){ prop = (NamedValue) m_propertiesToSet.get(i); - + log.println("setting property: '"+prop.Name+"' to value '"+prop.Value.toString()+"'"); - + m_XPS.setPropertyValue(prop.Name, prop.Value); } } catch (com.sun.star.lang.WrappedTargetException e) { @@ -475,12 +475,12 @@ public class GenericModelTest extends TestCase { // adding relation for XUpdateBroadcaster m_XCtrl = oObj; - - tEnv.addObjRelation("XUpdateBroadcaster.Checker", + + tEnv.addObjRelation("XUpdateBroadcaster.Checker", new Checker(m_XFormLoader, m_XPS, m_XCtrl, m_ChangePropertyName, m_ChangePropertyValue)); // adding relation for DataAwareControlModel service - tEnv.addObjRelation("DataAwareControlModel.NewFieldName", + tEnv.addObjRelation("DataAwareControlModel.NewFieldName", DBTools.TST_DATE_F); //adding ObjRelation for XPersistObject @@ -490,18 +490,18 @@ public class GenericModelTest extends TestCase { java.util.HashSet exclude = new java.util.HashSet(); exclude.add("FormatKey"); tEnv.addObjRelation("XFastPropertySet.ExcludeProps", exclude); - + PropertyValue propVal = new PropertyValue(); propVal.Name = m_XPropertyAccess_propertyToChange; propVal.Value = "Text since XPropertyAccess"; tEnv.addObjRelation("XPropertyAccess.propertyToChange", propVal); tEnv.addObjRelation("XPropertyContainer.propertyNotRemovable", m_XPropertyContainer_propertyNotRemovable); - + return tEnv; } // finish method getTestEnvironment - - + + static class Checker implements ifc.form._XUpdateBroadcaster.UpdateChecker { private Object lastValue = null; XLoadable formLoaderF = null; @@ -509,7 +509,7 @@ public class GenericModelTest extends TestCase { XInterface ctrl = null; String ChangePropertyName = null; Object ChangePropertyValue = null; - + public Checker(XLoadable xl, XPropertySet ps, XInterface ctrl, String ChangePropertyName, Object ChangePropertyValue) { formLoaderF = xl; this.ps = ps; @@ -517,26 +517,26 @@ public class GenericModelTest extends TestCase { this.ChangePropertyName=ChangePropertyName; this.ChangePropertyValue=ChangePropertyValue; } - + public void update() throws com.sun.star.uno.Exception { if (!formLoaderF.isLoaded()) { formLoaderF.load(); } lastValue = util.ValueChanger.changePValue(ps.getPropertyValue(ChangePropertyName)); - + if (lastValue == null){ if (ChangePropertyValue != null){ - + lastValue = ChangePropertyValue; - + } else { - + String msg = "The initial value of the property '" + ChangePropertyName + "' is NULL\n"; msg += "The member variable 'm_ChangePropertyValue' is NULL\n"; msg += "Could not change Property."; - + throw new StatusException(Status.failed(msg)); } } @@ -547,7 +547,7 @@ public class GenericModelTest extends TestCase { XBoundComponent bound = (XBoundComponent) UnoRuntime.queryInterface( XBoundComponent.class, ctrl); XResultSetUpdate update = (XResultSetUpdate) UnoRuntime.queryInterface( - XResultSetUpdate.class, + XResultSetUpdate.class, formLoaderF); bound.commit(); diff --git a/qadevOOo/tests/java/mod/_forms/OButtonControl.java b/qadevOOo/tests/java/mod/_forms/OButtonControl.java index d6bff70496db..7d21c2deead6 100644 --- a/qadevOOo/tests/java/mod/_forms/OButtonControl.java +++ b/qadevOOo/tests/java/mod/_forms/OButtonControl.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 @@ -119,7 +119,7 @@ public class OButtonControl extends TestCase { } catch (com.sun.star.util.CloseVetoException e) { log.println("couldn't close document"); } catch (com.sun.star.lang.DisposedException e) { - log.println("couldn't close document"); + log.println("couldn't close document"); } } @@ -152,7 +152,7 @@ public class OButtonControl extends TestCase { * component. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -162,16 +162,16 @@ public class OButtonControl 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, "CommandButton"); 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); @@ -180,7 +180,7 @@ public class OButtonControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the OButtonControl @@ -212,7 +212,7 @@ public class OButtonControl extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); diff --git a/qadevOOo/tests/java/mod/_forms/OButtonModel.java b/qadevOOo/tests/java/mod/_forms/OButtonModel.java index 5c5618f5167e..b648236a9533 100644 --- a/qadevOOo/tests/java/mod/_forms/OButtonModel.java +++ b/qadevOOo/tests/java/mod/_forms/OButtonModel.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 @@ -86,7 +86,7 @@ import lib.TestParameters; * @see ifc.lang._XComponent */ public class OButtonModel extends GenericModelTest { - + /** * Set some member variable of the super class <CODE>GenericModelTest</CODE>: * <pre> @@ -98,17 +98,17 @@ public class OButtonModel extends GenericModelTest { * @param tParam the test parameter * @param log the log writer */ - + protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); - + super.m_kindOfControl="CommandButton"; - + super.m_ObjectName = "stardiv.one.form.component.CommandButton"; - + super.m_LCShape_Type = "CommandButton"; - + } /** * calls <CODE>cleanup()</CODE> from it's super class @@ -118,8 +118,8 @@ public class OButtonModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - - + + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class * @param Param the test parameter @@ -130,5 +130,5 @@ public class OButtonModel extends GenericModelTest { PrintWriter log) { return super.createTestEnvironment(Param, log); } - + } // finish class OButtonModelold diff --git a/qadevOOo/tests/java/mod/_forms/OCheckBoxControl.java b/qadevOOo/tests/java/mod/_forms/OCheckBoxControl.java index fc01ddfc9c04..70ee585e3083 100644 --- a/qadevOOo/tests/java/mod/_forms/OCheckBoxControl.java +++ b/qadevOOo/tests/java/mod/_forms/OCheckBoxControl.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 @@ -127,7 +127,7 @@ public class OCheckBoxControl extends TestCase { } catch (com.sun.star.util.CloseVetoException e) { log.println("couldn't close document"); } catch (com.sun.star.lang.DisposedException e) { - log.println("couldn't close document"); + log.println("couldn't close document"); } } diff --git a/qadevOOo/tests/java/mod/_forms/OCheckBoxModel.java b/qadevOOo/tests/java/mod/_forms/OCheckBoxModel.java index 9a569c833470..342e6d6aff48 100644 --- a/qadevOOo/tests/java/mod/_forms/OCheckBoxModel.java +++ b/qadevOOo/tests/java/mod/_forms/OCheckBoxModel.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 @@ -115,13 +115,13 @@ public class OCheckBoxModel extends GenericModelTest { * @param log the log writer */ protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); - + super.m_kindOfControl= "CheckBox"; - + super.m_ObjectName = "stardiv.one.form.component.CheckBox"; - + super.m_LCShape_Type = "FixedText"; } @@ -133,7 +133,7 @@ public class OCheckBoxModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class @@ -141,7 +141,7 @@ public class OCheckBoxModel extends GenericModelTest { * @param log the log writer * @return lib.TestEnvironment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { return super.createTestEnvironment(Param, log); } diff --git a/qadevOOo/tests/java/mod/_forms/OComboBoxControl.java b/qadevOOo/tests/java/mod/_forms/OComboBoxControl.java index bc9c315e9443..5e21356f623b 100644 --- a/qadevOOo/tests/java/mod/_forms/OComboBoxControl.java +++ b/qadevOOo/tests/java/mod/_forms/OComboBoxControl.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 @@ -164,7 +164,7 @@ public class OComboBoxControl extends TestCase { * component. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -174,16 +174,16 @@ public class OComboBoxControl 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, "ComboBox"); 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); @@ -192,7 +192,7 @@ public class OComboBoxControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the OButtonControl @@ -225,14 +225,14 @@ public class OComboBoxControl extends TestCase { tEnv.addObjRelation("MODEL", the_Model); // 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); diff --git a/qadevOOo/tests/java/mod/_forms/OComboBoxModel.java b/qadevOOo/tests/java/mod/_forms/OComboBoxModel.java index 4f3b256fa982..326ccda4554d 100644 --- a/qadevOOo/tests/java/mod/_forms/OComboBoxModel.java +++ b/qadevOOo/tests/java/mod/_forms/OComboBoxModel.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 @@ -123,22 +123,22 @@ public class OComboBoxModel extends GenericModelTest { * @param log the log writer */ protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); super.m_ChangePropertyName = "Text"; - + super.m_kindOfControl="ComboBox"; - + super.m_ObjectName = "stardiv.one.form.component.ComboBox"; - NamedValue DataField = new NamedValue(); - DataField.Name = "DataField"; - DataField.Value = DBTools.TST_STRING_F; + NamedValue DataField = new NamedValue(); + DataField.Name = "DataField"; + DataField.Value = DBTools.TST_STRING_F; super.m_propertiesToSet.add(DataField); - + super.m_LCShape_Type = "FixedText"; - + } /** * calls <CODE>cleanup()</CODE> from it's super class @@ -148,7 +148,7 @@ public class OComboBoxModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class @@ -156,7 +156,7 @@ public class OComboBoxModel extends GenericModelTest { * @param log the log writer * @return lib.TestEnvironment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { return super.createTestEnvironment(Param, log); } 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); diff --git a/qadevOOo/tests/java/mod/_forms/OCurrencyModel.java b/qadevOOo/tests/java/mod/_forms/OCurrencyModel.java index 319e1a90a502..c1c98761239b 100644 --- a/qadevOOo/tests/java/mod/_forms/OCurrencyModel.java +++ b/qadevOOo/tests/java/mod/_forms/OCurrencyModel.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 @@ -118,23 +118,23 @@ public class OCurrencyModel extends GenericModelTest { * @param log the log writer */ protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); super.m_ObjectName = "stardiv.one.form.component.CurrencyField"; super.m_kindOfControl="CurrencyField"; - - NamedValue myProp = new NamedValue(); + + NamedValue myProp = new NamedValue(); myProp.Name = "DataField"; - myProp.Value = "Identifier"; + myProp.Value = "Identifier"; super.m_propertiesToSet.add(myProp); super.m_ChangePropertyName = "Value"; super.m_ChangePropertyValue = new Double(0); - + super.m_LCShape_Type = "FixedText"; - + } /** * calls <CODE>cleanup()</CODE> from it's super class @@ -144,7 +144,7 @@ public class OCurrencyModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class @@ -152,7 +152,7 @@ public class OCurrencyModel extends GenericModelTest { * @param log the log writer * @return lib.TestEnvironment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { return super.createTestEnvironment(Param, log); } diff --git a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java index 4b360e20fd10..a060245ddfde 100644 --- a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java +++ b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.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 @@ -283,7 +283,7 @@ public class ODatabaseForm extends TestCase { } catch (com.sun.star.uno.Exception e) { log.println("Error while object test initialization :"); e.printStackTrace(log); - throw new StatusException("Error while object test" + + throw new StatusException("Error while object test" + " initialization", e); } } else { @@ -291,9 +291,9 @@ public class ODatabaseForm extends TestCase { try { String myDbUrl = "sdbc:dbase:" + DBTools.dirToUrl(tmpDir); srcInf.URL = myDbUrl; - + log.println("try to register '"+myDbUrl+"' as '"+dbSourceName+"'"); - + dbSrc = srcInf.getDataSourceService(); dbTools.reRegisterDB(dbSourceName, dbSrc); } catch (com.sun.star.uno.Exception e) { @@ -309,9 +309,9 @@ public class ODatabaseForm extends TestCase { do { tableName = "ODatabaseForm_tmp" + uniqueSuffix; oldF = utils.getFullURL(origDB); - newF = utils.getOfficeTemp((XMultiServiceFactory) tParam.getMSF()) + tableName + + newF = utils.getOfficeTemp((XMultiServiceFactory) tParam.getMSF()) + tableName + ".dbf"; - } while (!utils.tryOverwriteFile(((XMultiServiceFactory) tParam.getMSF()), oldF, newF) && + } while (!utils.tryOverwriteFile(((XMultiServiceFactory) tParam.getMSF()), oldF, newF) && (uniqueSuffix++ < 50)); } } @@ -319,7 +319,7 @@ public class ODatabaseForm extends TestCase { /** * * creating a Testenvironment for the interfaces to be tested */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { if (xTextDoc != null) { try { @@ -383,10 +383,10 @@ public class ODatabaseForm extends TestCase { XLoadable formLoader = null; try { - formLoader = FormTools.bindForm(xTextDoc, "MyForm", dbSourceName, + formLoader = FormTools.bindForm(xTextDoc, "MyForm", dbSourceName, tableName); } catch (com.sun.star.uno.Exception e) { - log.println("Cann't bind the form to source '" + dbSourceName + + log.println("Cann't bind the form to source '" + dbSourceName + "', table '" + tableName + "' :"); e.printStackTrace(log); throw new StatusException("Cann't bind a form", e); @@ -409,12 +409,12 @@ public class ODatabaseForm extends TestCase { log.println("Elements in the 'MyForm' :"); XIndexAccess formElements1 = (XIndexAccess) UnoRuntime.queryInterface( - XIndexAccess.class, + XIndexAccess.class, forms.getByName("MyForm")); for (int i = 0; i < formElements1.getCount(); i++) { XNamed elemName = (XNamed) UnoRuntime.queryInterface( - XNamed.class, + XNamed.class, formElements1.getByIndex(i)); log.println(" '" + elemName.getName() + "'"); } @@ -424,14 +424,14 @@ public class ODatabaseForm extends TestCase { //put something on the drawpage log.println("inserting some ControlShapes"); oShapes = DrawTools.getShapes(WriterTools.getDrawPage(xTextDoc)); - shape1 = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000, + shape1 = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000, 1000, "CommandButton"); - shape2 = FormTools.createControlShape(xTextDoc, 5000, 3500, 7500, + shape2 = FormTools.createControlShape(xTextDoc, 5000, 3500, 7500, 5000, "TextField"); - XControlShape shape3 = FormTools.createControlShape(xTextDoc, 2000, - 1500, 1000, - 1000, + XControlShape shape3 = FormTools.createControlShape(xTextDoc, 2000, + 1500, 1000, + 1000, "CheckBox"); oShapes.add((XShape) shape1); oShapes.add((XShape) shape2); @@ -451,12 +451,12 @@ public class ODatabaseForm extends TestCase { log.println("Elements in the 'MyForm' :"); XIndexAccess formElements1 = (XIndexAccess) UnoRuntime.queryInterface( - XIndexAccess.class, + XIndexAccess.class, forms.getByName("MyForm")); for (int i = 0; i < formElements1.getCount(); i++) { XNamed elemName = (XNamed) UnoRuntime.queryInterface( - XNamed.class, + XNamed.class, formElements1.getByIndex(i)); log.println(" '" + elemName.getName() + "'"); } @@ -467,7 +467,7 @@ public class ODatabaseForm extends TestCase { formLoader.load(); try { - oObj = (XForm) AnyConverter.toObject(new Type(XForm.class), + oObj = (XForm) AnyConverter.toObject(new Type(XForm.class), (FormTools.getForms( WriterTools.getDrawPage( xTextDoc))) @@ -476,7 +476,7 @@ public class ODatabaseForm extends TestCase { XPropertySet xSetProp = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, oObj); connection = (XConnection) AnyConverter.toObject( - new Type(XConnection.class), + new Type(XConnection.class), xSetProp.getPropertyValue("ActiveConnection")); } catch (com.sun.star.uno.Exception e) { log.println("Couldn't get Form"); @@ -498,7 +498,7 @@ public class ODatabaseForm extends TestCase { // adding relation for XSubmit XControlModel the_Model = shape2.getControl(); XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); XControl cntrl = null; @@ -520,7 +520,7 @@ public class ODatabaseForm extends TestCase { } catch (SQLException e) { log.println("Cann't move cursor to the first row."); e.printStackTrace(); - throw new StatusException("Can't move cursor to the first row.", e); + throw new StatusException("Can't move cursor to the first row.", e); } tEnv.addObjRelation("Model1", shape1.getControl()); @@ -555,9 +555,9 @@ public class ODatabaseForm extends TestCase { } for (int n = 1; n < (2 * (THRCNT + 1)); n++) { - log.println("adding INSTANCE" + n + + log.println("adding INSTANCE" + n + " as obj relation to environment"); - tEnv.addObjRelation("INSTANCE" + n, + tEnv.addObjRelation("INSTANCE" + n, FormTools.createControl(xTextDoc, "CheckBox")); } @@ -577,12 +577,12 @@ public class ODatabaseForm extends TestCase { final XResultSet xResSet = (XResultSet) UnoRuntime.queryInterface( XResultSet.class, oObj); final XResultSetUpdate xResSetUpdate = (XResultSetUpdate) UnoRuntime.queryInterface( - XResultSetUpdate.class, + XResultSetUpdate.class, oObj); final XRowSet xRowSet = (XRowSet) UnoRuntime.queryInterface( XRowSet.class, oObj); final PrintWriter logF = log; - tEnv.addObjRelation("XRowSetApproveBroadcaster.ApproveChecker", + tEnv.addObjRelation("XRowSetApproveBroadcaster.ApproveChecker", new ifc.sdb._XRowSetApproveBroadcaster.RowSetApproveChecker() { public void moveCursor() { try { @@ -657,12 +657,12 @@ public class ODatabaseForm extends TestCase { // Adding relation for XCompletedExecution tEnv.addObjRelation("InteractionHandlerChecker", new InteractionHandlerImpl()); - + // Adding for XWarningSupplier tEnv.addObjRelation("CheckWarningsSupplier", new Boolean(isMySQLDB)); // Adding relation for XDatabaseParameterBroadcaster - tEnv.addObjRelation("ParameterListenerChecker", new ODatabaseForm.ParameterListenerImpl()); + tEnv.addObjRelation("ParameterListenerChecker", new ODatabaseForm.ParameterListenerImpl()); XPropertySet xSetProp = (XPropertySet) UnoRuntime.queryInterface (XPropertySet.class, oObj) ; try { @@ -673,7 +673,7 @@ public class ODatabaseForm extends TestCase { else { xSetProp.setPropertyValue("Command", "SELECT \"_TEXT\" FROM \"ODatabaseForm_tmp0\" WHERE ( ( \"_TEXT\" = :param1 ) )"); } - + xSetProp.setPropertyValue("CommandType", new Integer(CommandType.COMMAND)) ; } @@ -685,7 +685,7 @@ public class ODatabaseForm extends TestCase { XRowUpdate.class, oObj); final XRow xRow = (XRow) UnoRuntime.queryInterface(XRow.class, oObj); - tEnv.addObjRelation("XResultSetUpdate.UpdateTester", + tEnv.addObjRelation("XResultSetUpdate.UpdateTester", new ifc.sdbc._XResultSetUpdate.UpdateTester() { String lastUpdate = null; @@ -731,15 +731,15 @@ public class ODatabaseForm extends TestCase { XRow row = (XRow) UnoRuntime.queryInterface(XRow.class, oObj); tEnv.addObjRelation("XRowUpdate.XRow", row); - + tEnv.addObjRelation("XPropertyContainer.propertyNotRemovable", "Cycle"); PropertyValue propVal = new PropertyValue(); propVal.Name = "Name"; propVal.Value = "Text since XPropertyAccess"; - + tEnv.addObjRelation("XPropertyAccess.propertyToChange", propVal); - + return tEnv; } // finish method getTestEnvironment @@ -768,8 +768,8 @@ public class ODatabaseForm extends TestCase { } catch (com.sun.star.lang.DisposedException e) { log.println("couldn't close data source"); } - - + + log.println("closing document..."); try { @@ -792,7 +792,7 @@ public class ODatabaseForm extends TestCase { throw new StatusException("Error while object test cleaning up", e); } } - + /** * Implementation of interface _XDatabaseParameterBroadcaster.CheckParameterListener * for the XDatabaseParameterBroadcaster test @@ -801,15 +801,15 @@ public class ODatabaseForm extends TestCase { public class ParameterListenerImpl implements _XDatabaseParameterBroadcaster.CheckParameterListener { boolean listenerWasCalled = false; PrintWriter log = new PrintWriter(System.out); - - /** + + /** * Return true, if the listener was called, false otherwise. * @return True, if any other method of the listener was called. */ public boolean checkListener() { return listenerWasCalled; } - + /** * Take the DataBaseParameterEvent and fill it with a meaningful value. * @param e The database parameter that will be filled with a value. @@ -835,7 +835,7 @@ public class ODatabaseForm extends TestCase { } return true; } - + /** * Dummy implemetnation. Do nothing, just log * @param o Ignore. @@ -843,7 +843,7 @@ public class ODatabaseForm extends TestCase { public void disposing(EventObject o) { log.println("### _XDatabaseParameterBroadcaster.ParameterListenerImpl: disposing"); } - + /** * Set a log writer, so messages go to log instead of Standard.out * @param log The log messages get printed to. @@ -851,10 +851,10 @@ public class ODatabaseForm extends TestCase { public void setLog(PrintWriter log) { this.log = log; } - + } - - + + /** * Implementation of interface _XCompletedExecution.CheckInteractionHandler * for the XCompletedExecution test @@ -863,11 +863,11 @@ public class ODatabaseForm extends TestCase { public class InteractionHandlerImpl implements _XCompletedExecution.CheckInteractionHandler { private boolean handlerWasUsed = false; private PrintWriter log = new PrintWriter(System.out); - + public boolean checkInteractionHandler() { return handlerWasUsed; } - + public void handle(XInteractionRequest xInteractionRequest) { log.println("### _XCompletedExecution.InteractionHandlerImpl: handle called."); handlerWasUsed = true; @@ -892,10 +892,10 @@ public class ODatabaseForm extends TestCase { eI.printStackTrace(log); } } - + public void setLog(PrintWriter log) { this.log = log; } - + } } // finish class ODatabaseForm diff --git a/qadevOOo/tests/java/mod/_forms/ODateControl.java b/qadevOOo/tests/java/mod/_forms/ODateControl.java index e143929fa19d..4b37ec21c2cf 100644 --- a/qadevOOo/tests/java/mod/_forms/ODateControl.java +++ b/qadevOOo/tests/java/mod/_forms/ODateControl.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 @@ -163,7 +163,7 @@ public class ODateControl extends TestCase { * component. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; Object anotherCtrl = null; @@ -173,16 +173,16 @@ public class ODateControl extends TestCase { XGraphics aGraphic = 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, "DateField"); 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); @@ -191,7 +191,7 @@ public class ODateControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the ODateControl @@ -224,14 +224,14 @@ public class ODateControl extends TestCase { tEnv.addObjRelation("MODEL", the_Model); // Adding relation for XWindow - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, anotherCtrl); 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); diff --git a/qadevOOo/tests/java/mod/_forms/ODateModel.java b/qadevOOo/tests/java/mod/_forms/ODateModel.java index 297c5088937e..d692bb27d6bf 100644 --- a/qadevOOo/tests/java/mod/_forms/ODateModel.java +++ b/qadevOOo/tests/java/mod/_forms/ODateModel.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 @@ -133,25 +133,25 @@ public class ODateModel extends GenericModelTest { * @param log the log writer */ protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); super.m_ChangePropertyName = "Date"; - + super.m_kindOfControl="DateField"; - + super.m_ObjectName = "stardiv.one.form.component.DateField"; - NamedValue DataField = new NamedValue(); - DataField.Name = "DataField"; - DataField.Value = DBTools.TST_DATE_F; + NamedValue DataField = new NamedValue(); + DataField.Name = "DataField"; + DataField.Value = DBTools.TST_DATE_F; super.m_propertiesToSet.add(DataField); - - NamedValue Date = new NamedValue(); - Date.Name = "Date"; - Date.Value = new Integer(DBTools.TST_DATE); + + NamedValue Date = new NamedValue(); + Date.Name = "Date"; + Date.Value = new Integer(DBTools.TST_DATE); super.m_propertiesToSet.add(Date); - + super.m_LCShape_Type = "FixedText"; } @@ -163,7 +163,7 @@ public class ODateModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class @@ -171,7 +171,7 @@ public class ODateModel extends GenericModelTest { * @param log the log writer * @return lib.TestEnvironment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { return super.createTestEnvironment(Param, log); } diff --git a/qadevOOo/tests/java/mod/_forms/OEditControl.java b/qadevOOo/tests/java/mod/_forms/OEditControl.java index ac56d9f0cf93..4204606d087e 100644 --- a/qadevOOo/tests/java/mod/_forms/OEditControl.java +++ b/qadevOOo/tests/java/mod/_forms/OEditControl.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 @@ -173,7 +173,7 @@ public class OEditControl extends TestCase { * of another component. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XControl aControl = null; @@ -183,16 +183,16 @@ public class OEditControl extends TestCase { XGraphics aGraphic = 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, "TextField"); 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); @@ -201,7 +201,7 @@ public class OEditControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the OEditControl @@ -234,11 +234,11 @@ public class OEditControl extends TestCase { tEnv.addObjRelation("MODEL", the_Model); // relations for XChangeBroadcaster - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); - tEnv.addObjRelation("Win1", - (XWindow) UnoRuntime.queryInterface(XWindow.class, + tEnv.addObjRelation("Win1", + (XWindow) UnoRuntime.queryInterface(XWindow.class, oObj)); tEnv.addObjRelation("Win2", forObjRel); tEnv.addObjRelation("CONTROL", aControl); @@ -249,7 +249,7 @@ public class OEditControl extends TestCase { 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); diff --git a/qadevOOo/tests/java/mod/_forms/OEditModel.java b/qadevOOo/tests/java/mod/_forms/OEditModel.java index 4004b68d13a1..bcecd77550df 100644 --- a/qadevOOo/tests/java/mod/_forms/OEditModel.java +++ b/qadevOOo/tests/java/mod/_forms/OEditModel.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 @@ -129,22 +129,22 @@ public class OEditModel extends GenericModelTest { * @param tParam the test parameter * @param log the log writer */ - + protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); - + super.m_kindOfControl="TextField"; - + super.m_ObjectName = "stardiv.one.form.component.Edit"; - NamedValue myProp = new NamedValue(); - myProp.Name = "DataField"; - myProp.Value = DBTools.TST_STRING_F; + NamedValue myProp = new NamedValue(); + myProp.Name = "DataField"; + myProp.Value = DBTools.TST_STRING_F; super.m_propertiesToSet.add(myProp); - + super.m_LCShape_Type = "FixedText"; - + super.m_ChangePropertyName = "Text"; } /** @@ -155,7 +155,7 @@ public class OEditModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class @@ -163,7 +163,7 @@ public class OEditModel extends GenericModelTest { * @param log the log writer * @return lib.TestEnvironment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { return super.createTestEnvironment(Param, log); } diff --git a/qadevOOo/tests/java/mod/_forms/OFileControlModel.java b/qadevOOo/tests/java/mod/_forms/OFileControlModel.java index 3ece2f3a359e..b83e9ce007ee 100644 --- a/qadevOOo/tests/java/mod/_forms/OFileControlModel.java +++ b/qadevOOo/tests/java/mod/_forms/OFileControlModel.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 @@ -100,13 +100,13 @@ import com.sun.star.util.XCloseable; */ public class OFileControlModel extends TestCase { XComponent xDrawDoc; - + /** * Creates Draw document where controls are placed. */ protected void initialize(TestParameters tParam, PrintWriter log) { SOfficeFactory SOF = SOfficeFactory.getFactory(((XMultiServiceFactory) tParam.getMSF())); - + try { log.println("creating a draw document"); xDrawDoc = SOF.createDrawDoc(null); @@ -116,13 +116,13 @@ public class OFileControlModel extends TestCase { throw new StatusException(Status.failed("Can't create a document")); } } - + /** * Disposes Draw document. */ protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xDrawDoc "); - + try { XCloseable closer = (XCloseable) UnoRuntime.queryInterface( XCloseable.class, xDrawDoc); @@ -133,7 +133,7 @@ public class OFileControlModel extends TestCase { log.println("couldn't close document"); } } - + /** * Creating a Testenvironment for the interfaces to be tested. * Creates FileControl in the Form. <p> @@ -147,26 +147,26 @@ public class OFileControlModel extends TestCase { protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; - - + + // creation of testobject here // first we write what we are intend to do to log file log.println("creating a test environment"); - + //get FileControlModel String objName = "FileControl"; - + XControlShape aShape = null; - + Size size = new Size(); Point position = new Point(); XControlModel aControl = null; - + //get MSF XMultiServiceFactory oDocMSF = (XMultiServiceFactory) UnoRuntime.queryInterface( XMultiServiceFactory.class, xDrawDoc); - + try { Object oInt = oDocMSF.createInstance( "com.sun.star.drawing.ControlShape"); @@ -187,16 +187,16 @@ public class OFileControlModel extends TestCase { log.println("Couldn't create a component " + e); throw new StatusException(Status.failed("Can't create component")); } - + aShape.setControl(aControl); - + DrawTools.getDrawPage(xDrawDoc, 0).add((XShape) aShape); oObj = aShape.getControl(); - + log.println("creating a new environment for drawpage object"); - + TestEnvironment tEnv = new TestEnvironment(oObj); - + tEnv.addObjRelation("OBJNAME", "stardiv.one.form.component." + objName); PropertyValue prop = new PropertyValue(); @@ -204,7 +204,7 @@ public class OFileControlModel extends TestCase { prop.Value = "new Help Text since XPropertyAccess"; tEnv.addObjRelation("XPropertyAccess.propertyToChange", prop); tEnv.addObjRelation("XPropertyContainer.propertyNotRemovable", "HelpText"); - + return tEnv; } // finish method getTestEnvironment } // finish class OFileControlModel diff --git a/qadevOOo/tests/java/mod/_forms/OFixedTextModel.java b/qadevOOo/tests/java/mod/_forms/OFixedTextModel.java index 5753da62d75a..c3a172eb746a 100644 --- a/qadevOOo/tests/java/mod/_forms/OFixedTextModel.java +++ b/qadevOOo/tests/java/mod/_forms/OFixedTextModel.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 @@ -80,7 +80,7 @@ import lib.TestParameters; */ public class OFixedTextModel extends GenericModelTest { - + /** * Set some member variable of the super class <CODE>GenericModelTest</CODE>: * <pre> @@ -92,17 +92,17 @@ public class OFixedTextModel extends GenericModelTest { * @param tParam the test parameter * @param log the log writer */ - + protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); - + super.m_kindOfControl="FixedText"; - + super.m_ObjectName = "stardiv.one.form.component.FixedText"; - + super.m_LCShape_Type = "FixedText"; - + } /** * calls <CODE>cleanup()</CODE> from it's super class @@ -112,8 +112,8 @@ public class OFixedTextModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - - + + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class * @param Param the test parameter @@ -124,5 +124,5 @@ public class OFixedTextModel extends GenericModelTest { PrintWriter log) { return super.createTestEnvironment(Param, log); } - + } // finish class OFixedTextModel diff --git a/qadevOOo/tests/java/mod/_forms/OFormattedControl.java b/qadevOOo/tests/java/mod/_forms/OFormattedControl.java index 4888caba5441..5a1a4c3d6bb1 100644 --- a/qadevOOo/tests/java/mod/_forms/OFormattedControl.java +++ b/qadevOOo/tests/java/mod/_forms/OFormattedControl.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 @@ -160,7 +160,7 @@ public class OFormattedControl extends TestCase { * component. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; Object anotherCtrl = null; @@ -170,16 +170,16 @@ public class OFormattedControl extends TestCase { XGraphics aGraphic = 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, "FormattedField"); 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); @@ -188,7 +188,7 @@ public class OFormattedControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the OFormattedControl @@ -221,14 +221,14 @@ public class OFormattedControl extends TestCase { tEnv.addObjRelation("MODEL", the_Model); // Adding relation for XWindow - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, anotherCtrl); 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); diff --git a/qadevOOo/tests/java/mod/_forms/OFormattedFieldWrapper.java b/qadevOOo/tests/java/mod/_forms/OFormattedFieldWrapper.java index b51b4b575932..73d174eae99f 100644 --- a/qadevOOo/tests/java/mod/_forms/OFormattedFieldWrapper.java +++ b/qadevOOo/tests/java/mod/_forms/OFormattedFieldWrapper.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 @@ -123,20 +123,20 @@ public class OFormattedFieldWrapper extends GenericModelTest { * @param log the log writer */ protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); super.m_ChangePropertyName = "Text"; - + super.m_kindOfControl="DatabaseFormattedField"; - + super.m_ObjectName = "stardiv.one.form.component.Edit"; - NamedValue DataField = new NamedValue(); - DataField.Name = "DataField"; - DataField.Value = DBTools.TST_STRING_F; + NamedValue DataField = new NamedValue(); + DataField.Name = "DataField"; + DataField.Value = DBTools.TST_STRING_F; super.m_propertiesToSet.add(DataField); - + super.m_LCShape_Type = "FixedText"; } /** @@ -147,7 +147,7 @@ public class OFormattedFieldWrapper extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class @@ -155,7 +155,7 @@ public class OFormattedFieldWrapper extends GenericModelTest { * @param log the log writer * @return lib.TestEnvironment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { return super.createTestEnvironment(Param, log); } diff --git a/qadevOOo/tests/java/mod/_forms/OFormsCollection.java b/qadevOOo/tests/java/mod/_forms/OFormsCollection.java index af94a546b004..a04e06bbf1a5 100644 --- a/qadevOOo/tests/java/mod/_forms/OFormsCollection.java +++ b/qadevOOo/tests/java/mod/_forms/OFormsCollection.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 diff --git a/qadevOOo/tests/java/mod/_forms/OGridControlModel.java b/qadevOOo/tests/java/mod/_forms/OGridControlModel.java index 65131dae1c46..92655bf9e2eb 100644 --- a/qadevOOo/tests/java/mod/_forms/OGridControlModel.java +++ b/qadevOOo/tests/java/mod/_forms/OGridControlModel.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 @@ -136,7 +136,7 @@ import com.sun.star.util.XCloseable; */ public class OGridControlModel extends GenericModelTest { - + /** * Set some member variable of the super class <CODE>GenericModelTest</CODE>: * <pre> @@ -148,17 +148,17 @@ public class OGridControlModel extends GenericModelTest { * @param tParam the test parameter * @param log the log writer */ - + protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); - + super.m_kindOfControl="GridControl"; - + super.m_ObjectName = "stardiv.one.form.component.Grid"; - + super.m_LCShape_Type = "GridControl"; - + } /** * calls <CODE>cleanup()</CODE> from it's super class @@ -168,8 +168,8 @@ public class OGridControlModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - - + + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class * @param Param the test parameter @@ -179,7 +179,7 @@ public class OGridControlModel extends GenericModelTest { protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { TestEnvironment tEnv = super.createTestEnvironment(Param, log); - + XInterface oObj = tEnv.getTestObject(); XPropertySet aControl = null; @@ -187,7 +187,7 @@ public class OGridControlModel extends GenericModelTest { XPropertySet aControl3 = null; XPropertySet aControl4 = null; XPropertySet aControl5 = null; - + try { XGridColumnFactory columns = (XGridColumnFactory) UnoRuntime.queryInterface( XGridColumnFactory.class, oObj); @@ -234,8 +234,8 @@ public class OGridControlModel extends GenericModelTest { tEnv.addObjRelation("INSTANCE1", aControl4); tEnv.addObjRelation("INSTANCE2", aControl5); - - tEnv.addObjRelation("Comparer", + + tEnv.addObjRelation("Comparer", new Comparator() { public int compare(Object o1, Object o2) { XNamed named1 = (XNamed) UnoRuntime.queryInterface( @@ -257,14 +257,14 @@ public class OGridControlModel extends GenericModelTest { // HashSet exclude = new HashSet(); -// +// // exclude.add("FormatKey"); // -// tEnv.addObjRelation("XUpdateBroadcaster.Checker", +// tEnv.addObjRelation("XUpdateBroadcaster.Checker", // new Checker(m_XFormLoader, m_XPS, m_XCtrl, m_ChangePropertyName, m_ChangePropertyValue)); return tEnv; } - + } // finish class OButtonModelold @@ -324,7 +324,7 @@ class OGridControlModelold extends TestCase { * {@link ifc.container._XContainer} : a column instance. </li> * </ul> */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XInterface oInstance = null; @@ -342,8 +342,8 @@ class OGridControlModelold extends TestCase { //get GridControlModel String objName = "Grid"; - XControlShape shape = FormTools.insertControlShape(xDrawDoc, 5000, - 7000, 2000, 2000, + XControlShape shape = FormTools.insertControlShape(xDrawDoc, 5000, + 7000, 2000, 2000, "GridControl"); oObj = shape.getControl(); @@ -389,7 +389,7 @@ class OGridControlModelold extends TestCase { tEnv.addObjRelation("Selections", new Object[] { aControl, aControl2 }); // COMPARER - + int THRCNT = 1; String count = (String)Param.get("THRCNT"); if (count != null) @@ -401,7 +401,7 @@ class OGridControlModelold extends TestCase { try { for (int n = 1; n < (3 * THRCNT + 1); n++) { - log.println("adding INSTANCE" + n + + log.println("adding INSTANCE" + n + " as obj relation to environment"); oInstance = columns.createColumn("TextField"); tEnv.addObjRelation("INSTANCE" + n, oInstance); diff --git a/qadevOOo/tests/java/mod/_forms/OGroupBoxControl.java b/qadevOOo/tests/java/mod/_forms/OGroupBoxControl.java index 7b4a6adea8be..c3707748fdf5 100644 --- a/qadevOOo/tests/java/mod/_forms/OGroupBoxControl.java +++ b/qadevOOo/tests/java/mod/_forms/OGroupBoxControl.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 @@ -142,7 +142,7 @@ public class OGroupBoxControl extends TestCase { * component. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; Object anotherCtrl = null; @@ -152,16 +152,16 @@ public class OGroupBoxControl extends TestCase { XGraphics aGraphic = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createControlShape(xTextDoc, 5000, - 7000, 2000, 2000, + XControlShape aShape = FormTools.createControlShape(xTextDoc, 5000, + 7000, 2000, 2000, "GroupBox"); 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); @@ -170,7 +170,7 @@ public class OGroupBoxControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the OGroupBoxControl @@ -205,8 +205,8 @@ public class OGroupBoxControl extends TestCase { // Adding relation for XWindow - tEnv.addObjRelation("XWindow.AnotherWindow", - UnoRuntime.queryInterface(XWindow.class, + tEnv.addObjRelation("XWindow.AnotherWindow", + UnoRuntime.queryInterface(XWindow.class, anotherCtrl)); return tEnv; diff --git a/qadevOOo/tests/java/mod/_forms/OGroupBoxModel.java b/qadevOOo/tests/java/mod/_forms/OGroupBoxModel.java index 8f8f227457c6..feb425c693df 100644 --- a/qadevOOo/tests/java/mod/_forms/OGroupBoxModel.java +++ b/qadevOOo/tests/java/mod/_forms/OGroupBoxModel.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 @@ -79,7 +79,7 @@ import lib.TestParameters; * @see ifc.lang._XComponent */ public class OGroupBoxModel extends GenericModelTest { - + /** * Set some member variable of the super class <CODE>GenericModelTest</CODE>: * <pre> @@ -91,17 +91,17 @@ public class OGroupBoxModel extends GenericModelTest { * @param tParam the test parameter * @param log the log writer */ - + protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); - + super.m_kindOfControl="GroupBox"; - + super.m_ObjectName = "stardiv.one.form.component.GroupBox"; - + super.m_LCShape_Type = "FixedText"; - + super.m_ChangePropertyName = "Text"; } /** @@ -112,8 +112,8 @@ public class OGroupBoxModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - - + + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class * @param Param the test parameter diff --git a/qadevOOo/tests/java/mod/_forms/OHiddenModel.java b/qadevOOo/tests/java/mod/_forms/OHiddenModel.java index de2f93bc494c..f7557ca671d8 100644 --- a/qadevOOo/tests/java/mod/_forms/OHiddenModel.java +++ b/qadevOOo/tests/java/mod/_forms/OHiddenModel.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 @@ -96,13 +96,13 @@ import com.sun.star.util.XCloseable; */ public class OHiddenModel extends TestCase { XComponent xDrawDoc; - + /** * Creates Drawing document. */ protected void initialize(TestParameters tParam, PrintWriter log) { SOfficeFactory SOF = SOfficeFactory.getFactory(((XMultiServiceFactory) tParam.getMSF())); - + try { log.println("creating a draw document"); xDrawDoc = SOF.createDrawDoc(null); @@ -112,13 +112,13 @@ public class OHiddenModel extends TestCase { throw new StatusException("Couldn't create document", e); } } - + /** * Disposes drawing document. */ protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xDrawDoc "); - + try { XCloseable closer = (XCloseable) UnoRuntime.queryInterface( XCloseable.class, xDrawDoc); @@ -129,7 +129,7 @@ public class OHiddenModel extends TestCase { log.println("couldn't close document"); } } - + /** * Creates hidden component, then adds Form into draw page, * and inserts the component into Form components' collection. @@ -143,28 +143,28 @@ public class OHiddenModel extends TestCase { protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; - - + + // creation of testobject here // first we write what we are intend to do to log file log.println("creating a test environment"); - + // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory(((XMultiServiceFactory) Param.getMSF())); String objName = "HiddenControl"; XInterface ctrl = SOF.createControl(xDrawDoc, objName); - + try { XDrawPage oDP = DrawTools.getDrawPage(xDrawDoc, 0); - + XNameContainer nc = FormTools.getForms(oDP); FormTools.insertForm(xDrawDoc, nc, "OHiddenModelForm"); - + Object frm = nc.getByName("OHiddenModelForm"); - + XNameContainer frmNC = (XNameContainer) UnoRuntime.queryInterface( XNameContainer.class, frm); - + frmNC.insertByName("OHiddenModel", ctrl); oObj = (XInterface) AnyConverter.toObject( new Type(XInterface.class), @@ -182,22 +182,22 @@ public class OHiddenModel extends TestCase { e.printStackTrace(log); throw new StatusException("Can't create and add control", e); } - + log.println("creating a new environment for drawpage object"); - + TestEnvironment tEnv = new TestEnvironment(oObj); - + util.dbg.getSuppServices(oObj); - + log.println("adding DrawDocument as obj relation to environment"); tEnv.addObjRelation("OBJNAME", "stardiv.one.form.component.Hidden"); - + PropertyValue prop = new PropertyValue(); prop.Name = "Name"; prop.Value = "new Text since XPropertyAccess"; tEnv.addObjRelation("XPropertyAccess.propertyToChange", prop); tEnv.addObjRelation("XPropertyContainer.propertyNotRemovable", "Name"); - + return tEnv; } // finish method getTestEnvironment } // finish class OHiddenModel diff --git a/qadevOOo/tests/java/mod/_forms/OImageButtonControl.java b/qadevOOo/tests/java/mod/_forms/OImageButtonControl.java index 8d8744ed7377..60f208825863 100644 --- a/qadevOOo/tests/java/mod/_forms/OImageButtonControl.java +++ b/qadevOOo/tests/java/mod/_forms/OImageButtonControl.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 @@ -147,7 +147,7 @@ public class OImageButtonControl extends TestCase { * component. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; Object anotherCtrl = null; @@ -157,16 +157,16 @@ public class OImageButtonControl extends TestCase { XGraphics aGraphic = 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, "ImageButton"); 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); @@ -175,7 +175,7 @@ public class OImageButtonControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the OImageButtonControl @@ -209,7 +209,7 @@ public class OImageButtonControl extends TestCase { tEnv.addObjRelation("MODEL", the_Model); // Adding relation for XWindow - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, anotherCtrl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); diff --git a/qadevOOo/tests/java/mod/_forms/OImageButtonModel.java b/qadevOOo/tests/java/mod/_forms/OImageButtonModel.java index 9920e26feea9..3b5dbcded56f 100644 --- a/qadevOOo/tests/java/mod/_forms/OImageButtonModel.java +++ b/qadevOOo/tests/java/mod/_forms/OImageButtonModel.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 @@ -96,13 +96,13 @@ public class OImageButtonModel extends GenericModelTest { * @param tParam the test parameter * @param log the log writer */ - + protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); - + super.m_kindOfControl="ImageButton"; - + super.m_ObjectName = "stardiv.one.form.component.ImageButton"; super.m_LCShape_Type = "ImageButton"; @@ -116,7 +116,7 @@ public class OImageButtonModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class @@ -124,7 +124,7 @@ public class OImageButtonModel extends GenericModelTest { * @param log the log writer * @return lib.TestEnvironment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { return super.createTestEnvironment(Param, log); } diff --git a/qadevOOo/tests/java/mod/_forms/OImageControlControl.java b/qadevOOo/tests/java/mod/_forms/OImageControlControl.java index f8771e086ec2..4dcec1573015 100644 --- a/qadevOOo/tests/java/mod/_forms/OImageControlControl.java +++ b/qadevOOo/tests/java/mod/_forms/OImageControlControl.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 @@ -148,7 +148,7 @@ public class OImageControlControl extends TestCase { * component. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -159,15 +159,15 @@ public class OImageControlControl extends TestCase { //Insert a ControlShape and get the ControlModel XControlShape aShape = FormTools.createControlShapeWithDefaultControl( - xTextDoc, 3000, 4500, 15000, 10000, + xTextDoc, 3000, 4500, 15000, 10000, "DatabaseImageControl"); 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); @@ -176,7 +176,7 @@ public class OImageControlControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the OImageControlControl @@ -210,7 +210,7 @@ public class OImageControlControl extends TestCase { tEnv.addObjRelation("MODEL", the_Model); // Adding relation for XWindow - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); diff --git a/qadevOOo/tests/java/mod/_forms/OImageControlModel.java b/qadevOOo/tests/java/mod/_forms/OImageControlModel.java index 461b60fa52cd..0525f6ff6778 100644 --- a/qadevOOo/tests/java/mod/_forms/OImageControlModel.java +++ b/qadevOOo/tests/java/mod/_forms/OImageControlModel.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 @@ -124,18 +124,18 @@ public class OImageControlModel extends GenericModelTest { * @param log the log writer */ protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); super.m_kindOfControl= "DatabaseImageControl"; - + super.m_ObjectName = "stardiv.one.form.component.ImageControl"; - NamedValue DataField = new NamedValue(); - DataField.Name = "DataField"; - DataField.Value = DBTools.TST_BINARY_STREAM_F; + NamedValue DataField = new NamedValue(); + DataField.Name = "DataField"; + DataField.Value = DBTools.TST_BINARY_STREAM_F; super.m_propertiesToSet.add(DataField); - + super.m_LCShape_Type = "FixedText"; } /** @@ -146,7 +146,7 @@ public class OImageControlModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class @@ -154,7 +154,7 @@ public class OImageControlModel extends GenericModelTest { * @param log the log writer * @return lib.TestEnvironment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { return super.createTestEnvironment(Param, log); } diff --git a/qadevOOo/tests/java/mod/_forms/OListBoxControl.java b/qadevOOo/tests/java/mod/_forms/OListBoxControl.java index 66dfaa38d777..5d014aa759ee 100644 --- a/qadevOOo/tests/java/mod/_forms/OListBoxControl.java +++ b/qadevOOo/tests/java/mod/_forms/OListBoxControl.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 @@ -80,7 +80,7 @@ public class OListBoxControl extends TestCase { } catch (com.sun.star.util.CloseVetoException e) { log.println("couldn't close document"); } catch (com.sun.star.lang.DisposedException e) { - log.println("couldn't close document"); + log.println("couldn't close document"); } } @@ -146,16 +146,16 @@ public class OListBoxControl extends TestCase { // Adding relation for XWindow XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, anotherCtrl); - + XWindow objWin = (XWindow) UnoRuntime.queryInterface(XWindow.class, oObj); tEnv.addObjRelation("XWindow.AnotherWindow",forObjRel); tEnv.addObjRelation("XWindow.ControlShape",aShape); - + tEnv.addObjRelation("Win1",objWin); tEnv.addObjRelation("Win2",forObjRel); - + tEnv.addObjRelation("CONTROL",anotherCtrl); // adding relation for XChangeBroadcaster diff --git a/qadevOOo/tests/java/mod/_forms/OListBoxModel.java b/qadevOOo/tests/java/mod/_forms/OListBoxModel.java index ebfe3bf5a47f..c5aa052abbc0 100644 --- a/qadevOOo/tests/java/mod/_forms/OListBoxModel.java +++ b/qadevOOo/tests/java/mod/_forms/OListBoxModel.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 @@ -126,10 +126,10 @@ public class OListBoxModel extends GenericModelTest { * DataField.Value = DBTools.TST_DATE_F; * super.m_propertiesToSet.add(DataField); * - * NamedValue ListSource = new NamedValue(); - * ListSource.Name = "ListSource"; + * NamedValue ListSource = new NamedValue(); + * ListSource.Name = "ListSource"; * ListSource.Value = new String[] { - * "OListBoxModel1", "OListBoxModel2", "OListBoxModel3"}; + * "OListBoxModel1", "OListBoxModel2", "OListBoxModel3"}; * super.m_propertiesToSet.add(ListSource); * super.m_LCShape_Type = "FixedText"; * </pre> @@ -138,26 +138,26 @@ public class OListBoxModel extends GenericModelTest { * @param log the log writer */ protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); super.m_ChangePropertyName = "SelectedItems"; - + super.m_kindOfControl="ListBox"; - + super.m_ObjectName = "stardiv.one.form.component.ListBox"; - NamedValue DataField = new NamedValue(); - DataField.Name = "DataField"; - DataField.Value = DBTools.TST_STRING_F; + NamedValue DataField = new NamedValue(); + DataField.Name = "DataField"; + DataField.Value = DBTools.TST_STRING_F; super.m_propertiesToSet.add(DataField); - - NamedValue ListSource = new NamedValue(); - ListSource.Name = "ListSource"; + + NamedValue ListSource = new NamedValue(); + ListSource.Name = "ListSource"; ListSource.Value = new String[] { - "OListBoxModel1", "OListBoxModel2", "OListBoxModel3"}; + "OListBoxModel1", "OListBoxModel2", "OListBoxModel3"}; super.m_propertiesToSet.add(ListSource); - + super.m_LCShape_Type = "FixedText"; } @@ -169,7 +169,7 @@ public class OListBoxModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class @@ -180,15 +180,15 @@ public class OListBoxModel extends GenericModelTest { * @param log the log writer * @return lib.TestEnvironment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { TestEnvironment tEnv = super.createTestEnvironment(Param, log); - tEnv.addObjRelation("XUpdateBroadcaster.Checker", + tEnv.addObjRelation("XUpdateBroadcaster.Checker", new Checker(m_XFormLoader, m_XPS, m_XCtrl, m_ChangePropertyName, m_ChangePropertyValue)); return tEnv; } - + static class Checker implements UpdateChecker { private short lastItem = (short) 0; XLoadable formLoaderF = null; @@ -196,7 +196,7 @@ public class OListBoxModel extends GenericModelTest { XInterface ctrl = null; String ChangePropertyName = null; Object ChangePropertyValue = null; - + public Checker(XLoadable xl, XPropertySet ps, XInterface ctrl, String ChangePropertyName, Object ChangePropertyValue) { formLoaderF = xl; this.ps = ps; @@ -204,7 +204,7 @@ public class OListBoxModel extends GenericModelTest { this.ChangePropertyName=ChangePropertyName; this.ChangePropertyValue=ChangePropertyValue; } - + public void update() throws Exception { if (!formLoaderF.isLoaded()) { formLoaderF.load(); @@ -217,7 +217,7 @@ public class OListBoxModel extends GenericModelTest { XBoundComponent bound = (XBoundComponent) UnoRuntime.queryInterface( XBoundComponent.class, ctrl); XResultSetUpdate update = (XResultSetUpdate) UnoRuntime.queryInterface( - XResultSetUpdate.class, + XResultSetUpdate.class, formLoaderF); bound.commit(); @@ -232,5 +232,5 @@ public class OListBoxModel extends GenericModelTest { return (getS.length > 0) && (lastItem == getS[0]); } } - + } // finish class OListBoxModel diff --git a/qadevOOo/tests/java/mod/_forms/ONavigationBarControl.java b/qadevOOo/tests/java/mod/_forms/ONavigationBarControl.java index f965a9c8af3f..eac8ce39cb4e 100644 --- a/qadevOOo/tests/java/mod/_forms/ONavigationBarControl.java +++ b/qadevOOo/tests/java/mod/_forms/ONavigationBarControl.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 @@ -109,7 +109,7 @@ public class ONavigationBarControl extends TestCase { * component. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -119,16 +119,16 @@ public class ONavigationBarControl 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, "NavigationToolBar"); 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); @@ -137,7 +137,7 @@ public class ONavigationBarControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the OButtonControl @@ -169,7 +169,7 @@ public class ONavigationBarControl extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); diff --git a/qadevOOo/tests/java/mod/_forms/ONavigationBarModel.java b/qadevOOo/tests/java/mod/_forms/ONavigationBarModel.java index ffe624ed8f5d..75b8c2089c45 100644 --- a/qadevOOo/tests/java/mod/_forms/ONavigationBarModel.java +++ b/qadevOOo/tests/java/mod/_forms/ONavigationBarModel.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 @@ -32,7 +32,7 @@ import lib.TestEnvironment; import lib.TestParameters; public class ONavigationBarModel extends GenericModelTest { - + /** * Set some member variable of the super class <CODE>GenericModelTest</CODE>: * <pre> @@ -44,17 +44,17 @@ public class ONavigationBarModel extends GenericModelTest { * @param tParam the test parameter * @param log the log writer */ - + protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); - + super.m_kindOfControl="NavigationToolBar"; - + super.m_ObjectName = "com.sun.star.form.component.NavigationToolBar"; - + super.m_LCShape_Type = "NavigationToolBar"; - + } /** * calls <CODE>cleanup()</CODE> from it's super class @@ -64,8 +64,8 @@ public class ONavigationBarModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - - + + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class * @param Param the test parameter @@ -76,6 +76,6 @@ public class ONavigationBarModel extends GenericModelTest { PrintWriter log) { return super.createTestEnvironment(Param, log); } - + } // finish class ONavigationBarModel diff --git a/qadevOOo/tests/java/mod/_forms/ONumericControl.java b/qadevOOo/tests/java/mod/_forms/ONumericControl.java index ce03616582b0..3a89d4639814 100644 --- a/qadevOOo/tests/java/mod/_forms/ONumericControl.java +++ b/qadevOOo/tests/java/mod/_forms/ONumericControl.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 @@ -163,7 +163,7 @@ public class ONumericControl extends TestCase { * component. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; Object anotherCtrl = null; @@ -173,16 +173,16 @@ public class ONumericControl extends TestCase { XGraphics aGraphic = 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, "NumericField"); 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); @@ -191,7 +191,7 @@ public class ONumericControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the ONumericControl @@ -224,14 +224,14 @@ public class ONumericControl extends TestCase { tEnv.addObjRelation("MODEL", the_Model); // Adding relation for XWindow - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, anotherCtrl); 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); diff --git a/qadevOOo/tests/java/mod/_forms/ONumericModel.java b/qadevOOo/tests/java/mod/_forms/ONumericModel.java index 8a2ba304283f..2e4a32bf9aa0 100644 --- a/qadevOOo/tests/java/mod/_forms/ONumericModel.java +++ b/qadevOOo/tests/java/mod/_forms/ONumericModel.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 @@ -121,20 +121,20 @@ public class ONumericModel extends GenericModelTest { * @param log the log writer */ protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); super.m_ChangePropertyName = "Value"; - + super.m_kindOfControl="NumericField"; - + super.m_ObjectName = "stardiv.one.form.component.NumericField"; - NamedValue DataField = new NamedValue(); - DataField.Name = "DataField"; - DataField.Value = DBTools.TST_DOUBLE_F; + NamedValue DataField = new NamedValue(); + DataField.Name = "DataField"; + DataField.Value = DBTools.TST_DOUBLE_F; super.m_propertiesToSet.add(DataField); - + super.m_LCShape_Type = "FixedText"; } /** @@ -145,7 +145,7 @@ public class ONumericModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class @@ -153,7 +153,7 @@ public class ONumericModel extends GenericModelTest { * @param log the log writer * @return lib.TestEnvironment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { return super.createTestEnvironment(Param, log); } diff --git a/qadevOOo/tests/java/mod/_forms/OPatternControl.java b/qadevOOo/tests/java/mod/_forms/OPatternControl.java index 34d325498c79..31046fab2eb0 100644 --- a/qadevOOo/tests/java/mod/_forms/OPatternControl.java +++ b/qadevOOo/tests/java/mod/_forms/OPatternControl.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 @@ -163,7 +163,7 @@ public class OPatternControl extends TestCase { * component. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; Object anotherCtrl = null; @@ -173,16 +173,16 @@ public class OPatternControl extends TestCase { XGraphics aGraphic = 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, "PatternField"); 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); @@ -191,7 +191,7 @@ public class OPatternControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the OPatternControl @@ -224,14 +224,14 @@ public class OPatternControl extends TestCase { tEnv.addObjRelation("MODEL", the_Model); // Adding relation for XWindow - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, anotherCtrl); 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); diff --git a/qadevOOo/tests/java/mod/_forms/OPatternModel.java b/qadevOOo/tests/java/mod/_forms/OPatternModel.java index cc80327ff20d..070ed5a9e870 100644 --- a/qadevOOo/tests/java/mod/_forms/OPatternModel.java +++ b/qadevOOo/tests/java/mod/_forms/OPatternModel.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 @@ -126,20 +126,20 @@ public class OPatternModel extends GenericModelTest { * @param log the log writer */ protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); super.m_ChangePropertyName = "Text"; - + super.m_kindOfControl="PatternField"; - + super.m_ObjectName = "stardiv.one.form.component.PatternField"; - NamedValue DataField = new NamedValue(); - DataField.Name = "DataField"; - DataField.Value = DBTools.TST_STRING_F; + NamedValue DataField = new NamedValue(); + DataField.Name = "DataField"; + DataField.Value = DBTools.TST_STRING_F; super.m_propertiesToSet.add(DataField); - + super.m_LCShape_Type = "FixedText"; } /** @@ -150,7 +150,7 @@ public class OPatternModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class @@ -158,7 +158,7 @@ public class OPatternModel extends GenericModelTest { * @param log the log writer * @return lib.TestEnvironment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { return super.createTestEnvironment(Param, log); } diff --git a/qadevOOo/tests/java/mod/_forms/ORadioButtonControl.java b/qadevOOo/tests/java/mod/_forms/ORadioButtonControl.java index e013cb29cff8..52ff5ffb189e 100644 --- a/qadevOOo/tests/java/mod/_forms/ORadioButtonControl.java +++ b/qadevOOo/tests/java/mod/_forms/ORadioButtonControl.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 @@ -151,7 +151,7 @@ public class ORadioButtonControl extends TestCase { * component. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -161,16 +161,16 @@ public class ORadioButtonControl 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, "RadioButton"); 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); @@ -179,7 +179,7 @@ public class ORadioButtonControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the ORadioButtonControl @@ -212,7 +212,7 @@ public class ORadioButtonControl extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); diff --git a/qadevOOo/tests/java/mod/_forms/ORadioButtonModel.java b/qadevOOo/tests/java/mod/_forms/ORadioButtonModel.java index 36e3927f46af..f846b3a8132d 100644 --- a/qadevOOo/tests/java/mod/_forms/ORadioButtonModel.java +++ b/qadevOOo/tests/java/mod/_forms/ORadioButtonModel.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 @@ -122,21 +122,21 @@ public class ORadioButtonModel extends GenericModelTest { * @param tParam the test parameter * @param log the log writer */ - + protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); super.m_ChangePropertyName = "State"; - + super.m_kindOfControl="RadioButton"; - + super.m_ObjectName = "stardiv.one.form.component.RadioButton"; - NamedValue myProp = new NamedValue(); + NamedValue myProp = new NamedValue(); myProp.Name = "DataField"; - myProp.Value = DBTools.TST_STRING_F; + myProp.Value = DBTools.TST_STRING_F; super.m_propertiesToSet.add(myProp); - + super.m_LCShape_Type = "GroupBox"; } @@ -148,7 +148,7 @@ public class ORadioButtonModel extends GenericModelTest { protected void cleanup(TestParameters tParam, PrintWriter log) { super.cleanup(tParam, log); } - + /** * calls <CODE>createTestEnvironment()</CODE> from it's super class @@ -156,17 +156,17 @@ public class ORadioButtonModel extends GenericModelTest { * @param log the log writer * @return lib.TestEnvironment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { TestEnvironment tEnv = super.createTestEnvironment(Param, log); - tEnv.addObjRelation("DataAwareControlModel.NewFieldName", + tEnv.addObjRelation("DataAwareControlModel.NewFieldName", DBTools.TST_INT_F); PropertyValue prop = new PropertyValue(); prop.Name = "HelpText"; prop.Value = "new Help Text since XPropertyAccess"; tEnv.addObjRelation("XPropertyAccess.propertyToChange", prop); tEnv.addObjRelation("XPropertyContainer.propertyNotRemovable", "HelpText"); - + return tEnv; } diff --git a/qadevOOo/tests/java/mod/_forms/OScrollBarModel.java b/qadevOOo/tests/java/mod/_forms/OScrollBarModel.java index a847bfff055d..1104c65abd75 100644 --- a/qadevOOo/tests/java/mod/_forms/OScrollBarModel.java +++ b/qadevOOo/tests/java/mod/_forms/OScrollBarModel.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 @@ -43,9 +43,9 @@ import util.FormTools; import util.WriterTools; public class OScrollBarModel extends TestCase { - + XTextDocument xTextDoc; - + /** * Creates Writer document. */ @@ -53,8 +53,8 @@ public class OScrollBarModel extends TestCase { log.println( "creating a textdocument" ); xTextDoc = WriterTools.createTextDoc(((XMultiServiceFactory) tParam.getMSF())); - } - + } + /** * Disposes the Writer document. */ @@ -68,10 +68,10 @@ public class OScrollBarModel extends TestCase { } catch (com.sun.star.util.CloseVetoException e) { log.println("couldn't close document"); } catch (com.sun.star.lang.DisposedException e) { - log.println("couldn't close document"); + log.println("couldn't close document"); } - } - + } + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -83,9 +83,9 @@ public class OScrollBarModel extends TestCase { oObj = aShape.getControl(); log.println( "creating a new environment for OScrollBarModel object" ); TestEnvironment tEnv = new TestEnvironment( oObj ); - + System.out.println("Implementation Name: "+util.utils.getImplName(oObj)); - + String objName = "ScrollBar"; tEnv.addObjRelation("OBJNAME", "com.sun.star.form.component." + objName); PropertyValue prop = new PropertyValue(); @@ -95,5 +95,5 @@ public class OScrollBarModel extends TestCase { tEnv.addObjRelation("XPropertyContainer.propertyNotRemovable", "HelpText"); return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_forms/OSpinButtonModel.java b/qadevOOo/tests/java/mod/_forms/OSpinButtonModel.java index bde3fd640e52..c4a574755192 100644 --- a/qadevOOo/tests/java/mod/_forms/OSpinButtonModel.java +++ b/qadevOOo/tests/java/mod/_forms/OSpinButtonModel.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 @@ -43,24 +43,24 @@ import util.FormTools; import util.WriterTools; public class OSpinButtonModel extends TestCase { - + XTextDocument xTextDoc; - + /** * Creates a Writer document. */ protected void initialize( TestParameters tParam, PrintWriter log ) { - + log.println( "creating a textdocument" ); xTextDoc = WriterTools.createTextDoc(((XMultiServiceFactory) tParam.getMSF())); } - + /** * Disposes the Writer document. */ protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xTextDoc "); - + try { XCloseable closer = (XCloseable) UnoRuntime.queryInterface( XCloseable.class, xTextDoc); @@ -71,19 +71,19 @@ public class OSpinButtonModel extends TestCase { log.println("couldn't close document"); } } - - + + /** * Creating a Testenvironment for the interfaces to be tested. * Adds spin button into text and retrieves it's control model. */ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { - + XInterface oObj = null; - + XControlShape aShape = FormTools.createControlShape( xTextDoc,3000,4500,15000,10000,"SpinButton"); - + WriterTools.getDrawPage(xTextDoc).add((XShape) aShape); oObj = aShape.getControl(); log.println( "creating a new environment for OButtonModel object" ); @@ -94,9 +94,9 @@ public class OSpinButtonModel extends TestCase { prop.Value = "new Help Text since XPropertyAccess"; tEnv.addObjRelation("XPropertyAccess.propertyToChange", prop); tEnv.addObjRelation("XPropertyContainer.propertyNotRemovable", "HelpText"); - + System.out.println("Implementation name: "+util.utils.getImplName(oObj)); return tEnv; } // finish method getTestEnvironment - + } diff --git a/qadevOOo/tests/java/mod/_forms/OTimeControl.java b/qadevOOo/tests/java/mod/_forms/OTimeControl.java index f23d635de7df..30c457630c4c 100644 --- a/qadevOOo/tests/java/mod/_forms/OTimeControl.java +++ b/qadevOOo/tests/java/mod/_forms/OTimeControl.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 @@ -164,7 +164,7 @@ public class OTimeControl extends TestCase { * component. </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -174,16 +174,16 @@ public class OTimeControl 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, "TimeField"); 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); @@ -192,7 +192,7 @@ public class OTimeControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //now get the OTimeControl @@ -224,14 +224,14 @@ public class OTimeControl extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - 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); diff --git a/qadevOOo/tests/java/mod/_forms/OTimeModel.java b/qadevOOo/tests/java/mod/_forms/OTimeModel.java index de1e17332d7f..e77eff500152 100644 --- a/qadevOOo/tests/java/mod/_forms/OTimeModel.java +++ b/qadevOOo/tests/java/mod/_forms/OTimeModel.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 @@ -135,20 +135,20 @@ public class OTimeModel extends GenericModelTest { * @param log the log writer */ protected void initialize(TestParameters tParam, PrintWriter log) { - + super.initialize(tParam, log); super.m_ChangePropertyName = "Time"; - + super.m_kindOfControl="TimeField"; - + super.m_ObjectName = "stardiv.one.form.component.TimeField"; - NamedValue DataField = new NamedValue(); - DataField.Name = "DataField"; - DataField.Value = DBTools.TST_INT_F; + NamedValue DataField = new NamedValue(); + DataField.Name = "DataField"; + DataField.Value = DBTools.TST_INT_F; super.m_propertiesToSet.add(DataField); - + super.m_LCShape_Type = "FixedText"; } /** @@ -169,19 +169,19 @@ public class OTimeModel extends GenericModelTest { * @param log the log writer * @return lib.TestEnvironment */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { TestEnvironment tEnv = super.createTestEnvironment(Param, log); HashSet exclude = new HashSet(); - + exclude.add("FormatKey"); - tEnv.addObjRelation("XUpdateBroadcaster.Checker", + tEnv.addObjRelation("XUpdateBroadcaster.Checker", new Checker(m_XFormLoader, m_XPS, m_XCtrl, m_ChangePropertyName, m_ChangePropertyValue)); return tEnv; } - + static class Checker implements UpdateChecker { private short lastItem = (short) 0; XLoadable formLoaderF = null; @@ -189,7 +189,7 @@ public class OTimeModel extends GenericModelTest { XInterface ctrl = null; String ChangePropertyName = null; Object ChangePropertyValue = null; - + public Checker(XLoadable xl, XPropertySet ps, XInterface ctrl, String ChangePropertyName, Object ChangePropertyValue) { formLoaderF = xl; this.ps = ps; @@ -197,7 +197,7 @@ public class OTimeModel extends GenericModelTest { this.ChangePropertyName=ChangePropertyName; this.ChangePropertyValue=ChangePropertyValue; } - + private int lastTime = 0; public void update() throws com.sun.star.uno.Exception { @@ -218,7 +218,7 @@ public class OTimeModel extends GenericModelTest { XBoundComponent bound = (XBoundComponent) UnoRuntime.queryInterface( XBoundComponent.class, ctrl); XResultSetUpdate update = (XResultSetUpdate) UnoRuntime.queryInterface( - XResultSetUpdate.class, + XResultSetUpdate.class, formLoaderF); bound.commit(); @@ -230,7 +230,7 @@ public class OTimeModel extends GenericModelTest { Integer getT = (Integer) ps.getPropertyValue("Time"); - return (getT != null) && + return (getT != null) && (Math.abs(getT.intValue() - lastTime) < 100); } } diff --git a/qadevOOo/tests/java/mod/_fps/FilePicker.java b/qadevOOo/tests/java/mod/_fps/FilePicker.java index b4e31924062b..810e71c425f4 100644 --- a/qadevOOo/tests/java/mod/_fps/FilePicker.java +++ b/qadevOOo/tests/java/mod/_fps/FilePicker.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 diff --git a/qadevOOo/tests/java/mod/_ftransl/DataFormatTranslator.java b/qadevOOo/tests/java/mod/_ftransl/DataFormatTranslator.java index 0180503fe9f2..7ba8bee180dd 100644 --- a/qadevOOo/tests/java/mod/_ftransl/DataFormatTranslator.java +++ b/qadevOOo/tests/java/mod/_ftransl/DataFormatTranslator.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 diff --git a/qadevOOo/tests/java/mod/_fwk/ControlMenuController.java b/qadevOOo/tests/java/mod/_fwk/ControlMenuController.java index cd469b9ed269..db2a50b0e622 100755 --- a/qadevOOo/tests/java/mod/_fwk/ControlMenuController.java +++ b/qadevOOo/tests/java/mod/_fwk/ControlMenuController.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 @@ -52,7 +52,7 @@ public class ControlMenuController extends TestCase { * protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xTextDoc "); - + try { XCloseable closer = (XCloseable) UnoRuntime.queryInterface( XCloseable.class, xTextDoc); @@ -66,7 +66,7 @@ public class ControlMenuController extends TestCase { /** * Create test environment. - */ + */ protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); @@ -77,7 +77,7 @@ public class ControlMenuController extends TestCase { e.printStackTrace(log); throw new StatusException("Could not create object 'ControlMenuController'", e); } - + /* log.println("Creating instance..."); @@ -93,7 +93,7 @@ public class ControlMenuController extends TestCase { XModel xModel = (XModel)UnoRuntime.queryInterface(XModel.class, xTextDoc); // the supplier is available from the model - XUIConfigurationManagerSupplier xSupplier = + XUIConfigurationManagerSupplier xSupplier = (XUIConfigurationManagerSupplier)UnoRuntime.queryInterface( XUIConfigurationManagerSupplier.class, xModel); @@ -102,9 +102,9 @@ public class ControlMenuController extends TestCase { // just to make sure, it's the right one. log.println("TestObject: " + util.utils.getImplName(xManager)); tEnv = new TestEnvironment(xManager); */ - log.println("TestObject: " + utils.getImplName(oObj)); + log.println("TestObject: " + utils.getImplName(oObj)); tEnv = new TestEnvironment(oObj); return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_fwk/Desktop.java b/qadevOOo/tests/java/mod/_fwk/Desktop.java index f777b58a9e27..c0ce8bd1fe80 100644 --- a/qadevOOo/tests/java/mod/_fwk/Desktop.java +++ b/qadevOOo/tests/java/mod/_fwk/Desktop.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 diff --git a/qadevOOo/tests/java/mod/_fwk/DispatchRecorder.java b/qadevOOo/tests/java/mod/_fwk/DispatchRecorder.java index 46c31dde8850..f552f185cda6 100644 --- a/qadevOOo/tests/java/mod/_fwk/DispatchRecorder.java +++ b/qadevOOo/tests/java/mod/_fwk/DispatchRecorder.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 @@ -90,7 +90,7 @@ public class DispatchRecorder extends TestCase { } catch (InterruptedException ex) { } - + XModel model = (XModel) UnoRuntime.queryInterface(XModel.class, oDoc); xFrame = model.getCurrentController().getFrame(); diff --git a/qadevOOo/tests/java/mod/_fwk/DispatchRecorderSupplier.java b/qadevOOo/tests/java/mod/_fwk/DispatchRecorderSupplier.java index 739c3d5709de..50323a5b055e 100644 --- a/qadevOOo/tests/java/mod/_fwk/DispatchRecorderSupplier.java +++ b/qadevOOo/tests/java/mod/_fwk/DispatchRecorderSupplier.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 diff --git a/qadevOOo/tests/java/mod/_fwk/DocumentProperties.java b/qadevOOo/tests/java/mod/_fwk/DocumentProperties.java index 22e36b48a8ed..59e760bad0b2 100644 --- a/qadevOOo/tests/java/mod/_fwk/DocumentProperties.java +++ b/qadevOOo/tests/java/mod/_fwk/DocumentProperties.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 diff --git a/qadevOOo/tests/java/mod/_fwk/FontMenuController.java b/qadevOOo/tests/java/mod/_fwk/FontMenuController.java index 9231cecfb0cf..da86e8276b18 100755 --- a/qadevOOo/tests/java/mod/_fwk/FontMenuController.java +++ b/qadevOOo/tests/java/mod/_fwk/FontMenuController.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 @@ -40,7 +40,7 @@ import util.utils; */ public class FontMenuController extends TestCase { XInterface oObj = null; - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); @@ -51,10 +51,10 @@ public class FontMenuController extends TestCase { e.printStackTrace(log); throw new StatusException("Could not create object 'FontMenuController'", e); } - + log.println("TestObject: " + utils.getImplName(oObj)); tEnv = new TestEnvironment(oObj); return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_fwk/FontSizeMenuController.java b/qadevOOo/tests/java/mod/_fwk/FontSizeMenuController.java index c0d99302af6c..a27f0d60ec63 100755 --- a/qadevOOo/tests/java/mod/_fwk/FontSizeMenuController.java +++ b/qadevOOo/tests/java/mod/_fwk/FontSizeMenuController.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 @@ -40,7 +40,7 @@ import util.utils; */ public class FontSizeMenuController extends TestCase { XInterface oObj = null; - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); @@ -51,10 +51,10 @@ public class FontSizeMenuController extends TestCase { e.printStackTrace(log); throw new StatusException("Could not create object 'FontSizeMenuController'", e); } - + log.println("TestObject: " + utils.getImplName(oObj)); tEnv = new TestEnvironment(oObj); return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_fwk/FooterMenuController.java b/qadevOOo/tests/java/mod/_fwk/FooterMenuController.java index 1b8184072ca2..c84a6c1f8f4b 100755 --- a/qadevOOo/tests/java/mod/_fwk/FooterMenuController.java +++ b/qadevOOo/tests/java/mod/_fwk/FooterMenuController.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 @@ -40,7 +40,7 @@ import util.utils; */ public class FooterMenuController extends TestCase { XInterface oObj = null; - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); @@ -51,10 +51,10 @@ public class FooterMenuController extends TestCase { e.printStackTrace(log); throw new StatusException("Could not create object 'FooterMenuController'", e); } - + log.println("TestObject: " + utils.getImplName(oObj)); tEnv = new TestEnvironment(oObj); return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_fwk/FormatMenuController.java b/qadevOOo/tests/java/mod/_fwk/FormatMenuController.java index 426d1790fb16..bce5015156e1 100755 --- a/qadevOOo/tests/java/mod/_fwk/FormatMenuController.java +++ b/qadevOOo/tests/java/mod/_fwk/FormatMenuController.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 @@ -40,7 +40,7 @@ import util.utils; */ public class FormatMenuController extends TestCase { XInterface oObj = null; - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); @@ -51,10 +51,10 @@ public class FormatMenuController extends TestCase { e.printStackTrace(log); throw new StatusException("Could not create object 'FormatMenuController'", e); } - + log.println("TestObject: " + utils.getImplName(oObj)); tEnv = new TestEnvironment(oObj); return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_fwk/Frame.java b/qadevOOo/tests/java/mod/_fwk/Frame.java index 1dbcd3adc62c..6e9b3d8ad780 100644 --- a/qadevOOo/tests/java/mod/_fwk/Frame.java +++ b/qadevOOo/tests/java/mod/_fwk/Frame.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 @@ -96,7 +96,7 @@ public class Frame extends TestCase { log.println(util.utils.getImplName(oObj)); TestEnvironment tEnv = new TestEnvironment( oObj ); - + tEnv.addObjRelation("XDispatchProvider.URL", ".uno:SwitchControlDesignMode"); diff --git a/qadevOOo/tests/java/mod/_fwk/HeaderMenuController.java b/qadevOOo/tests/java/mod/_fwk/HeaderMenuController.java index f39f184720c1..d4baffdc4500 100755 --- a/qadevOOo/tests/java/mod/_fwk/HeaderMenuController.java +++ b/qadevOOo/tests/java/mod/_fwk/HeaderMenuController.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 @@ -40,7 +40,7 @@ import util.utils; */ public class HeaderMenuController extends TestCase { XInterface oObj = null; - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); @@ -51,10 +51,10 @@ public class HeaderMenuController extends TestCase { e.printStackTrace(log); throw new StatusException("Could not create object 'HeaderMenuController'", e); } - + log.println("TestObject: " + utils.getImplName(oObj)); tEnv = new TestEnvironment(oObj); return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_fwk/JobExecutor.java b/qadevOOo/tests/java/mod/_fwk/JobExecutor.java index 32ee88d123f4..2f16d9922295 100644 --- a/qadevOOo/tests/java/mod/_fwk/JobExecutor.java +++ b/qadevOOo/tests/java/mod/_fwk/JobExecutor.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 @@ -176,7 +176,7 @@ public class JobExecutor extends TestCase { UnoRuntime.queryInterface(XSingleServiceFactory.class, events); Object oNewEvent = eventsFac.createInstance(); - XNameAccess xNewEventNA = (XNameAccess) + XNameAccess xNewEventNA = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, oNewEvent); Object oJobList = xNewEventNA.getByName("JobList"); XSingleServiceFactory jobListFac = (XSingleServiceFactory) @@ -187,10 +187,10 @@ public class JobExecutor extends TestCase { oJobList); log.println("\tAdding TimeStamps to Events ..."); Object oNewJobTimeStamps = jobListFac.createInstance(); - + jobListNC.insertByName("TestJob", oNewJobTimeStamps); - - + + XNameContainer xEventsNC = (XNameContainer) UnoRuntime.queryInterface(XNameContainer.class, events); xEventsNC.insertByName("TestEvent", oNewEvent); diff --git a/qadevOOo/tests/java/mod/_fwk/JobHandler.java b/qadevOOo/tests/java/mod/_fwk/JobHandler.java index 6a6cacf2c83d..abfaf198f64e 100644 --- a/qadevOOo/tests/java/mod/_fwk/JobHandler.java +++ b/qadevOOo/tests/java/mod/_fwk/JobHandler.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 diff --git a/qadevOOo/tests/java/mod/_fwk/LayoutManager.java b/qadevOOo/tests/java/mod/_fwk/LayoutManager.java index d967ff287a38..6ba1b97fce76 100755 --- a/qadevOOo/tests/java/mod/_fwk/LayoutManager.java +++ b/qadevOOo/tests/java/mod/_fwk/LayoutManager.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 @@ -57,7 +57,7 @@ public class LayoutManager extends TestCase { */ protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xTextDoc "); - + try { XCloseable closer = (XCloseable) UnoRuntime.queryInterface( XCloseable.class, xTextDoc); @@ -111,12 +111,12 @@ public class LayoutManager extends TestCase { } // just to make sure, it's the right one. - log.println("TestObject: " + util.utils.getImplName(xManager)); + log.println("TestObject: " + util.utils.getImplName(xManager)); tEnv = new TestEnvironment(xManager); - + tEnv.addObjRelation("XLayoutManager.TextDoc", xTextDoc); tEnv.addObjRelation("XLayoutManager.Frame",xFrame); - + return tEnv; } } diff --git a/qadevOOo/tests/java/mod/_fwk/MacrosMenuController.java b/qadevOOo/tests/java/mod/_fwk/MacrosMenuController.java index 015db63832e4..22f3fcb269e7 100755 --- a/qadevOOo/tests/java/mod/_fwk/MacrosMenuController.java +++ b/qadevOOo/tests/java/mod/_fwk/MacrosMenuController.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 @@ -40,7 +40,7 @@ import util.utils; */ public class MacrosMenuController extends TestCase{ XInterface oObj = null; - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); @@ -51,10 +51,10 @@ public class MacrosMenuController extends TestCase{ e.printStackTrace(log); throw new StatusException("Could not create object 'MacrosMenuController'", e); } - + log.println("TestObject: " + utils.getImplName(oObj)); tEnv = new TestEnvironment(oObj); return tEnv; - } + } } diff --git a/qadevOOo/tests/java/mod/_fwk/MailToDispatcher.java b/qadevOOo/tests/java/mod/_fwk/MailToDispatcher.java index afaf35486841..fc5e84c0532d 100644 --- a/qadevOOo/tests/java/mod/_fwk/MailToDispatcher.java +++ b/qadevOOo/tests/java/mod/_fwk/MailToDispatcher.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 diff --git a/qadevOOo/tests/java/mod/_fwk/MenuBarFactory.java b/qadevOOo/tests/java/mod/_fwk/MenuBarFactory.java index f7d11d422046..d8ca9a58a85d 100755 --- a/qadevOOo/tests/java/mod/_fwk/MenuBarFactory.java +++ b/qadevOOo/tests/java/mod/_fwk/MenuBarFactory.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 @@ -39,13 +39,13 @@ import lib.TestParameters; */ public class MenuBarFactory extends TestCase { XInterface oObj = null; - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; try { XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); oObj = (XInterface)xMSF.createInstance("com.sun.star.comp.framework.MenuBarFactory"); - + tEnv = new TestEnvironment(oObj); } catch(com.sun.star.uno.Exception e) { diff --git a/qadevOOo/tests/java/mod/_fwk/ModuleManager.java b/qadevOOo/tests/java/mod/_fwk/ModuleManager.java index 790ad94ddcfc..026faf8c1012 100755 --- a/qadevOOo/tests/java/mod/_fwk/ModuleManager.java +++ b/qadevOOo/tests/java/mod/_fwk/ModuleManager.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 @@ -90,17 +90,17 @@ public class ModuleManager extends TestCase { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) Param.getMSF()); - + // get text document interfaces try { log.println("creating a text document"); xTextDoc = SOF.createTextDoc(null); - + } catch (Exception e) { e.printStackTrace(log); throw new StatusException("Couldn't create document ", e); } - XModel xTextMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel xTextMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController xTextController = xTextMode1.getCurrentController(); XFrame xTextFrame = xTextController.getFrame(); @@ -110,12 +110,12 @@ public class ModuleManager extends TestCase { try { log.println("creating a web document"); xWebDoc = SOF.loadDocument("private:factory/swriter/web"); - + } catch (Exception e) { e.printStackTrace(log); throw new StatusException("Couldn't create document ", e); } - XModel xWebMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel xWebMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, xWebDoc); XController xWebController = xWebMode1.getCurrentController(); XFrame xWebFrame = xWebController.getFrame(); @@ -124,12 +124,12 @@ public class ModuleManager extends TestCase { try { log.println("creating a global document"); xGlobalDoc = SOF.loadDocument("private:factory/swriter/GlobalDocument"); - + } catch (Exception e) { e.printStackTrace(log); throw new StatusException("Couldn't create document ", e); } - XModel xGlobalMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel xGlobalMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, xGlobalDoc); XController xGlobalController = xGlobalMode1.getCurrentController(); XFrame xGlobalFrame = xGlobalController.getFrame(); @@ -142,7 +142,7 @@ public class ModuleManager extends TestCase { e.printStackTrace(log); throw new StatusException("Couldn't create document ", e); } - XModel xSheetMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel xSheetMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, xSheetDoc); XController xSheetController = xSheetMode1.getCurrentController(); @@ -155,11 +155,11 @@ public class ModuleManager extends TestCase { e.printStackTrace(log); throw new StatusException("Couldn't create document ", e); } - XModel xDrawMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel xDrawMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, xDrawDoc); XController xDrawController = xDrawMode1.getCurrentController(); XFrame xDrawFrame = xDrawController.getFrame(); - + // get impress interfaces try { log.println("creating a impress document"); @@ -168,11 +168,11 @@ public class ModuleManager extends TestCase { e.printStackTrace(log); throw new StatusException("Couldn't create document ", e); } - XModel xImpressMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel xImpressMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, xImpressDoc); XController xImpressController = xImpressMode1.getCurrentController(); XFrame xImpressFrame = xImpressController.getFrame(); - + // get math interfaces try { log.println("creating a math document"); @@ -181,11 +181,11 @@ public class ModuleManager extends TestCase { e.printStackTrace(log); throw new StatusException("Couldn't create document ", e); } - XModel xMathMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel xMathMode1 = (XModel) UnoRuntime.queryInterface(XModel.class, xMathDoc); XController xMathController = xMathMode1.getCurrentController(); XFrame xMathFrame = xMathController.getFrame(); - + PropertyValue[] xFrameSeq = new PropertyValue[7]; xFrameSeq[0] = new PropertyValue(); xFrameSeq[0].Name = "com.sun.star.text.TextDocument"; @@ -254,10 +254,10 @@ public class ModuleManager extends TestCase { xModelSeq[6] = new PropertyValue(); xModelSeq[6].Name = "com.sun.star.formula.FormulaProperties"; xModelSeq[6].Value = xMathMode1; - + TestEnvironment tEnv = new TestEnvironment( oObj ); - - + + tEnv.addObjRelation("XModuleManager.XFrame", xFrameSeq); tEnv.addObjRelation("XModuleManager.XController", xControllerSeq); tEnv.addObjRelation("XModuleManager.XModel", xModelSeq); diff --git a/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java b/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java index 7b30a94b3293..4f4f950e0ed6 100755 --- a/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java +++ b/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.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 @@ -92,23 +92,23 @@ public class ModuleUIConfigurationManager extends TestCase { */ protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; - + try { xMSF = (XMultiServiceFactory)tParam.getMSF(); - + log.println("Creating instance..."); xTextDoc = WriterTools.createTextDoc(xMSF); - + Object o = (XInterface)xMSF.createInstance("com.sun.star.ui.ModuleUIConfigurationManagerSupplier"); XModuleUIConfigurationManagerSupplier xMUICMS = (XModuleUIConfigurationManagerSupplier) UnoRuntime.queryInterface(XModuleUIConfigurationManagerSupplier.class, o); - + util.dbg.printInterfaces(xMUICMS); oObj = xMUICMS.getUIConfigurationManager("com.sun.star.text.TextDocument"); - log.println("TestObject: " + utils.getImplName(oObj)); + log.println("TestObject: " + utils.getImplName(oObj)); tEnv = new TestEnvironment(oObj); - + XNameAccess xMM = (XNameAccess)UnoRuntime.queryInterface(XNameAccess.class, xMSF.createInstance("com.sun.star.comp.framework.ModuleManager")); String[] names = xMM.getElementNames(); @@ -116,13 +116,13 @@ public class ModuleUIConfigurationManager extends TestCase { XSingleServiceFactory xStorageService = (XSingleServiceFactory) UnoRuntime.queryInterface(XSingleServiceFactory.class, o); Object[]props = new Object[2]; - + String aFile = util.utils.getOfficeTempDir(xMSF) + "dummyFile.dat"; log.println("storage file : '"+ aFile + "'"); - + props[0] = aFile; props[1] = new Integer(ElementModes.READWRITE); - xStore = (XStorage)UnoRuntime.queryInterface(XStorage.class, xStorageService.createInstanceWithArguments(props)); + xStore = (XStorage)UnoRuntime.queryInterface(XStorage.class, xStorageService.createInstanceWithArguments(props)); PropertyValue[] initProps = new PropertyValue[4]; PropertyValue propVal = new PropertyValue(); @@ -131,8 +131,8 @@ public class ModuleUIConfigurationManager extends TestCase { initProps[0] = propVal; propVal = new PropertyValue(); propVal.Name = "UserConfigStorage"; - propVal.Value = xStore; - initProps[1] = propVal; + propVal.Value = xStore; + initProps[1] = propVal; propVal = new PropertyValue(); propVal.Name = "ModuleIdentifier"; propVal.Value = "swriter"; @@ -140,24 +140,24 @@ public class ModuleUIConfigurationManager extends TestCase { propVal = new PropertyValue(); propVal.Name = "UserRootCommit"; propVal.Value = (XTransactedObject)UnoRuntime.queryInterface(XTransactedObject.class, xStore); - initProps[3] = propVal; - - + initProps[3] = propVal; + + tEnv.addObjRelation("XInitialization.args", initProps); - + // the short cut manager service name - // 2do: correct the service name when it's no longer in - tEnv.addObjRelation("XConfigurationManager.ShortCutManager", + // 2do: correct the service name when it's no longer in + tEnv.addObjRelation("XConfigurationManager.ShortCutManager", "com.sun.star.ui.ModuleAcceleratorConfiguration"); - + // the resourceURL tEnv.addObjRelation("XModuleUIConfigurationManager.ResourceURL", "private:resource/menubar/menubar"); - tEnv.addObjRelation("XUIConfiguration.XUIConfigurationListenerImpl", - new ConfigurationListener(log, + tEnv.addObjRelation("XUIConfiguration.XUIConfigurationListenerImpl", + new ConfigurationListener(log, (XUIConfigurationManager)UnoRuntime.queryInterface( XUIConfigurationManager.class, oObj), xMSF)); - tEnv.addObjRelation("XModuleUIConfigurationManagerSupplier.ConfigManagerImplementationName", + tEnv.addObjRelation("XModuleUIConfigurationManagerSupplier.ConfigManagerImplementationName", "com.sun.star.comp.framework.ModuleUIConfigurationManager"); } catch(com.sun.star.uno.Exception e) { @@ -166,7 +166,7 @@ public class ModuleUIConfigurationManager extends TestCase { } return tEnv; } - + /** * An implementation of the _XUIConfiguration.XUIConfigurationListenerImpl * interface to trigger the event for a listener call. @@ -177,7 +177,7 @@ public class ModuleUIConfigurationManager extends TestCase { private PrintWriter log = null; private XUIConfigurationManager xUIManager = null; private XMultiServiceFactory xMSF = null; - + public ConfigurationListener(PrintWriter _log, XUIConfigurationManager xUIManager, XMultiServiceFactory xMSF) { log = _log; this.xUIManager = xUIManager; @@ -193,7 +193,7 @@ public class ModuleUIConfigurationManager extends TestCase { PropertyValue[]prop = _XUIConfigurationManager.createMenuBarEntry( "Trigger Event", xMenuBarSettings, xMSF, log); - _XUIConfigurationManager.createMenuBarItem("Click for Macro", + _XUIConfigurationManager.createMenuBarItem("Click for Macro", (XIndexContainer)UnoRuntime.queryInterface( XIndexContainer.class, prop[3].Value), log); XIndexContainer x = (XIndexContainer)UnoRuntime.queryInterface(XIndexContainer.class, xMenuBarSettings); @@ -241,5 +241,5 @@ public class ModuleUIConfigurationManager extends TestCase { log.println("_XUIConfiguration.XUIConfigurationListenerImpl.elementReplaced."); } } - + } diff --git a/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManagerSupplier.java b/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManagerSupplier.java index 0d3ba82f9115..9da4e7fa8d59 100755 --- a/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManagerSupplier.java +++ b/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManagerSupplier.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 @@ -40,14 +40,14 @@ import lib.TestParameters; */ public class ModuleUIConfigurationManagerSupplier extends TestCase{ XInterface oObj = null; - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; try { XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); oObj = (XInterface)xMSF.createInstance("com.sun.star.ui.ModuleUIConfigurationManagerSupplier"); tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("XModuleUIConfigurationManagerSupplier.ConfigurationManager", + tEnv.addObjRelation("XModuleUIConfigurationManagerSupplier.ConfigurationManager", "com.sun.star.frame.StartModule"); tEnv.addObjRelation("XModuleUIConfigurationManagerSupplier.ConfigManagerImplementationName", "com.sun.star.comp.framework.ModuleUIConfigurationManager"); } @@ -55,6 +55,6 @@ public class ModuleUIConfigurationManagerSupplier extends TestCase{ throw new StatusException("Cannot create test object", e); } return tEnv; - } - + } + } diff --git a/qadevOOo/tests/java/mod/_fwk/ObjectMenuController.java b/qadevOOo/tests/java/mod/_fwk/ObjectMenuController.java index 3fd6a3d8ed0c..2b1da80a87d5 100755 --- a/qadevOOo/tests/java/mod/_fwk/ObjectMenuController.java +++ b/qadevOOo/tests/java/mod/_fwk/ObjectMenuController.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 @@ -53,7 +53,7 @@ public class ObjectMenuController extends TestCase { */ protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xTextDoc "); - + try { XCloseable closer = (XCloseable) UnoRuntime.queryInterface( XCloseable.class, xTextDoc); @@ -88,7 +88,7 @@ public class ObjectMenuController extends TestCase { e.printStackTrace(log); throw new StatusException("Could not create object 'ControlMenuController'", e); } - log.println("TestObject: " + utils.getImplName(oObj)); + log.println("TestObject: " + utils.getImplName(oObj)); tEnv = new TestEnvironment(oObj); return tEnv; } diff --git a/qadevOOo/tests/java/mod/_fwk/PopupMenuControllerFactory.java b/qadevOOo/tests/java/mod/_fwk/PopupMenuControllerFactory.java index e45cd14ad452..91ac2fbd8e70 100755 --- a/qadevOOo/tests/java/mod/_fwk/PopupMenuControllerFactory.java +++ b/qadevOOo/tests/java/mod/_fwk/PopupMenuControllerFactory.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 @@ -55,7 +55,7 @@ public class PopupMenuControllerFactory extends TestCase { */ protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xTextDoc "); - + try { XCloseable closer = (XCloseable) UnoRuntime.queryInterface( XCloseable.class, xTextDoc); @@ -67,7 +67,7 @@ public class PopupMenuControllerFactory extends TestCase { } } - + /** * Create test environment: * @param tParam The test parameters. @@ -83,7 +83,7 @@ public class PopupMenuControllerFactory extends TestCase { xTextDoc = WriterTools.createTextDoc(xMSF); util.dbg.printInterfaces(xTextDoc); - + try { xInst = (XInterface)xMSF.createInstance( "com.sun.star.comp.framework.PopupMenuControllerFactory"); @@ -91,7 +91,7 @@ public class PopupMenuControllerFactory extends TestCase { catch(com.sun.star.uno.Exception e) { throw new StatusException("Couldn't create test object", e); } - + log.println("TestObject: " + util.utils.getImplName(xInst)); tEnv = new TestEnvironment(xInst); XPropertySet xProp = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, xMSF); @@ -108,15 +108,15 @@ public class PopupMenuControllerFactory extends TestCase { log.println("Cannot get the 'DefaultContext' for XMultiComponentFactory test."); e.printStackTrace(log); } - + // register one controller, so it can be instantiated XUIControllerRegistration xReg = (XUIControllerRegistration) UnoRuntime.queryInterface(XUIControllerRegistration.class, xInst); - + xReg.registerController(".uno:MyCommandUrl", "", "com.sun.star.comp.framework.FooterMenuController"); tEnv.addObjRelation("XUIControllerRegistration.RegisteredController", ".uno:MyCommandUrl"); tEnv.addObjRelation("XMultiComponentFactory.ServiceNames", new String[]{".uno:MyCommandUrl"}); - + return tEnv; } } diff --git a/qadevOOo/tests/java/mod/_fwk/ServiceHandler.java b/qadevOOo/tests/java/mod/_fwk/ServiceHandler.java index 391e01f4cb42..9caa75de4d4f 100644 --- a/qadevOOo/tests/java/mod/_fwk/ServiceHandler.java +++ b/qadevOOo/tests/java/mod/_fwk/ServiceHandler.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 diff --git a/qadevOOo/tests/java/mod/_fwk/SoundHandler.java b/qadevOOo/tests/java/mod/_fwk/SoundHandler.java index 3b74f8015a43..d94c3d57a123 100644 --- a/qadevOOo/tests/java/mod/_fwk/SoundHandler.java +++ b/qadevOOo/tests/java/mod/_fwk/SoundHandler.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 @@ -70,9 +70,9 @@ public class SoundHandler extends TestCase { } TestEnvironment tEnv = new TestEnvironment( oObj ); - URL dispURL = utils.parseURL((XMultiServiceFactory)Param.getMSF(), + URL dispURL = utils.parseURL((XMultiServiceFactory)Param.getMSF(), utils.getFullTestURL("ok.wav")); - System.out.println("DISPATCHURL: "+ dispURL.Complete); + System.out.println("DISPATCHURL: "+ dispURL.Complete); tEnv.addObjRelation("XDispatch.URL", dispURL); return tEnv; diff --git a/qadevOOo/tests/java/mod/_fwk/StatusBarControllerFactory.java b/qadevOOo/tests/java/mod/_fwk/StatusBarControllerFactory.java index bc3cfa588aa7..a7d09a818331 100644 --- a/qadevOOo/tests/java/mod/_fwk/StatusBarControllerFactory.java +++ b/qadevOOo/tests/java/mod/_fwk/StatusBarControllerFactory.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 @@ -41,13 +41,13 @@ import lib.TestParameters; */ public class StatusBarControllerFactory extends TestCase { XInterface oObj = null; - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); try { oObj = (XInterface)xMSF.createInstance("com.sun.star.comp.framework.StatusBarControllerFactory"); - + tEnv = new TestEnvironment(oObj); } catch(com.sun.star.uno.Exception e) { diff --git a/qadevOOo/tests/java/mod/_fwk/ToolBarsMenuController.java b/qadevOOo/tests/java/mod/_fwk/ToolBarsMenuController.java index 5472043e4e88..a27761f0389c 100644 --- a/qadevOOo/tests/java/mod/_fwk/ToolBarsMenuController.java +++ b/qadevOOo/tests/java/mod/_fwk/ToolBarsMenuController.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 @@ -40,7 +40,7 @@ import util.utils; */ public class ToolBarsMenuController extends TestCase { XInterface oObj = null; - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); @@ -51,10 +51,10 @@ public class ToolBarsMenuController extends TestCase { e.printStackTrace(log); throw new StatusException("Could not create object 'ToolBarsMenuController'", e); } - + log.println("TestObject: " + utils.getImplName(oObj)); tEnv = new TestEnvironment(oObj); return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_fwk/UICategoryDescription.java b/qadevOOo/tests/java/mod/_fwk/UICategoryDescription.java index 9f7492a497b8..2adf240b8db4 100644 --- a/qadevOOo/tests/java/mod/_fwk/UICategoryDescription.java +++ b/qadevOOo/tests/java/mod/_fwk/UICategoryDescription.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 @@ -40,7 +40,7 @@ import util.utils; */ public class UICategoryDescription extends TestCase { XInterface oObj = null; - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); @@ -51,10 +51,10 @@ public class UICategoryDescription extends TestCase { e.printStackTrace(log); throw new StatusException("Could not create object 'UICategoryDescription'", e); } - + log.println("TestObject: " + utils.getImplName(oObj)); tEnv = new TestEnvironment(oObj); return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_fwk/UICommandDescription.java b/qadevOOo/tests/java/mod/_fwk/UICommandDescription.java index 19277d71621c..7b506972e5f0 100755 --- a/qadevOOo/tests/java/mod/_fwk/UICommandDescription.java +++ b/qadevOOo/tests/java/mod/_fwk/UICommandDescription.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 @@ -41,7 +41,7 @@ import util.utils; */ public class UICommandDescription extends TestCase { XInterface oObj = null; - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); @@ -52,10 +52,10 @@ public class UICommandDescription extends TestCase { e.printStackTrace(log); throw new StatusException("Could not create object 'UICommandDescription'", e); } - + log.println("TestObject: " + utils.getImplName(oObj)); tEnv = new TestEnvironment(oObj); return tEnv; - } + } } diff --git a/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java b/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java index 0ab78ad40bab..235e8a4be8ab 100755 --- a/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java +++ b/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.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 @@ -53,8 +53,8 @@ import util.utils; */ public class UIConfigurationManager extends TestCase { XUIConfigurationManager xManager = null; - - + + /** * Create test environment: * <ul> @@ -70,9 +70,9 @@ public class UIConfigurationManager extends TestCase { protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); - + log.println("Creating instance..."); - + try { xManager = (XUIConfigurationManager)UnoRuntime.queryInterface( XUIConfigurationManager.class, xMSF.createInstance( @@ -83,7 +83,7 @@ public class UIConfigurationManager extends TestCase { // just to make sure, it's the right one. log.println("TestObject: " + utils.getImplName(xManager)); tEnv = new TestEnvironment(xManager); - + // create a configuration storage try { String sourceDeleteCfg = util.utils.getFullTestURL("delete.cfg"); @@ -98,7 +98,7 @@ public class UIConfigurationManager extends TestCase { props[1] = new Integer(ElementModes.READWRITE); XStorage xRootStorage = (XStorage)UnoRuntime.queryInterface(XStorage.class, xSSF.createInstanceWithArguments(props)); xSubStorage = xRootStorage.openStorageElement("Configurations2", ElementModes.READWRITE); - + XUIConfigurationStorage xConfigStorage =(XUIConfigurationStorage)UnoRuntime.queryInterface(XUIConfigurationStorage.class, xManager); xConfigStorage.setStorage(xSubStorage); tEnv.addObjRelation("XUIConfigurationStorage.Storage", xSubStorage); @@ -107,17 +107,17 @@ public class UIConfigurationManager extends TestCase { log.println("Could not create storage: " + e.toString()); } util.dbg.printInterfaces(xManager); - + tEnv.addObjRelation("XUIConfiguration.XUIConfigurationListenerImpl", new ConfigurationListener(log, xManager, xMSF)); // the short cut manager service name - // 2do: correct the service name when it's no longer in - tEnv.addObjRelation("XConfigurationManager.ShortCutManager", + // 2do: correct the service name when it's no longer in + tEnv.addObjRelation("XConfigurationManager.ShortCutManager", "com.sun.star.ui.DocumentAcceleratorConfiguration"); return tEnv; } - + /** * An implementation of the _XUIConfiguration.XUIConfigurationListenerImpl * interface to trigger the event for a listener call. @@ -129,7 +129,7 @@ public class UIConfigurationManager extends TestCase { private XUIConfigurationManager xUIManager = null; private XMultiServiceFactory xMSF = null; private static int iUniqueCounter; - + public ConfigurationListener(PrintWriter _log, XUIConfigurationManager xUIManager, XMultiServiceFactory xMSF) { log = _log; this.xUIManager = xUIManager; @@ -146,7 +146,7 @@ public class UIConfigurationManager extends TestCase { PropertyValue[][]props = xUIManager.getUIElementsInfo(UIElementType.UNKNOWN); XIndexAccess xMenuBarSettings = xUIManager.getSettings( "private:resource/menubar/menubar", true); - + PropertyValue[]prop = _XUIConfigurationManager.createMenuBarEntry( "Trigger Event", xMenuBarSettings, xMSF, log); _XUIConfigurationManager.createMenuBarItem("Click for Macro", @@ -199,7 +199,7 @@ public class UIConfigurationManager extends TestCase { log.println("_XUIConfiguration.XUIConfigurationListenerImpl.elementReplaced."); } } - + } diff --git a/qadevOOo/tests/java/mod/_fwk/UIElementFactoryManager.java b/qadevOOo/tests/java/mod/_fwk/UIElementFactoryManager.java index aef3ad663ae1..7c26c3b18b87 100755 --- a/qadevOOo/tests/java/mod/_fwk/UIElementFactoryManager.java +++ b/qadevOOo/tests/java/mod/_fwk/UIElementFactoryManager.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 @@ -53,7 +53,7 @@ public class UIElementFactoryManager extends TestCase { */ protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xTextDoc "); - + try { XCloseable closer = (XCloseable) UnoRuntime.queryInterface( XCloseable.class, xTextDoc); @@ -90,10 +90,10 @@ public class UIElementFactoryManager extends TestCase { throw new StatusException("Cannot create test object.", e); } log.println("TestObject: " + util.utils.getImplName(oObj)); - + tEnv = new TestEnvironment((XInterface)oObj); - + return tEnv; } } diff --git a/qadevOOo/tests/java/mod/_fwk/URLTransformer.java b/qadevOOo/tests/java/mod/_fwk/URLTransformer.java index 56fee3181ae0..f9984b93308e 100644 --- a/qadevOOo/tests/java/mod/_fwk/URLTransformer.java +++ b/qadevOOo/tests/java/mod/_fwk/URLTransformer.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 diff --git a/qadevOOo/tests/java/mod/_fwl/ContentHandlerFactory.java b/qadevOOo/tests/java/mod/_fwl/ContentHandlerFactory.java index 109611657bab..e50998ab1b26 100644 --- a/qadevOOo/tests/java/mod/_fwl/ContentHandlerFactory.java +++ b/qadevOOo/tests/java/mod/_fwl/ContentHandlerFactory.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 @@ -97,14 +97,14 @@ public class ContentHandlerFactory extends TestCase { (XNameAccess.class, oObj); tEnv.addObjRelation("XMSF.serviceNames", xNA.getElementNames()); String[] dummy = xNA.getElementNames(); - + // com.sun.star.container.XContainerQuery - NamedValue[] querySequenze = new NamedValue[1]; + NamedValue[] querySequenze = new NamedValue[1]; NamedValue query = new NamedValue(); query.Name = "Name"; query.Value = "com.sun.star.comp.framework.SoundHandler"; querySequenze[0] = query; - + tEnv.addObjRelation("XContainerQuery.createSubSetEnumerationByProperties", querySequenze); diff --git a/qadevOOo/tests/java/mod/_fwl/FilterFactory.java b/qadevOOo/tests/java/mod/_fwl/FilterFactory.java index 42c05bd24f41..f274282c45cb 100644 --- a/qadevOOo/tests/java/mod/_fwl/FilterFactory.java +++ b/qadevOOo/tests/java/mod/_fwl/FilterFactory.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 @@ -102,7 +102,7 @@ public class FilterFactory extends TestCase { XNameAccess xNA = (XNameAccess) UnoRuntime.queryInterface (XNameAccess.class, oObj); String[] filterNames = xNA.getElementNames(); - + // XNameContainer; XNameReplace String filterName = filterNames[0]; Object[] instance = null;; @@ -119,14 +119,14 @@ public class FilterFactory extends TestCase { throw new StatusException( Status.failed("Couldn't get elements from object")); } - + log.println("adding INSTANCE 1 as obj relation to environment"); - + log.println("fill property 'TemplateName' with 'INSTANCE1'"); setPropertyValueValue((PropertyValue[])instance, "TemplateName", "INSTANCE1"); tEnv.addObjRelation("INSTANCE" +1, instance); - - + + // XMSF Vector vFTypes = new Vector(); Vector vFArgs = new Vector(); @@ -163,16 +163,16 @@ public class FilterFactory extends TestCase { vFArgs.toArray(new Object[vFArgs.size()][])); // com.sun.star.container.XContainerQuery - NamedValue[] querySequenze = new NamedValue[1]; + NamedValue[] querySequenze = new NamedValue[1]; NamedValue query = new NamedValue(); query.Name = "Name"; query.Value = "Rich Text Format"; querySequenze[0] = query; - + tEnv.addObjRelation("XContainerQuery.createSubSetEnumerationByProperties", querySequenze); - - + + return tEnv; } // finish method getTestEnvironment @@ -182,7 +182,7 @@ public class FilterFactory extends TestCase { i++; } return i < props.length ? props[i].Value : null; - + } protected void setPropertyValueValue(PropertyValue[] props, String pName, Object pValue) { @@ -199,7 +199,7 @@ public class FilterFactory extends TestCase { i++; } return i < props.length ? props[i] : null; - + } } diff --git a/qadevOOo/tests/java/mod/_fwl/FrameLoaderFactory.java b/qadevOOo/tests/java/mod/_fwl/FrameLoaderFactory.java index da819d91fe3c..dc83d96dd928 100644 --- a/qadevOOo/tests/java/mod/_fwl/FrameLoaderFactory.java +++ b/qadevOOo/tests/java/mod/_fwl/FrameLoaderFactory.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 @@ -97,12 +97,12 @@ public class FrameLoaderFactory extends TestCase { tEnv.addObjRelation("XMSF.serviceNames", xNA.getElementNames()); // com.sun.star.container.XContainerQuery - NamedValue[] querySequenze = new NamedValue[1]; + NamedValue[] querySequenze = new NamedValue[1]; NamedValue query = new NamedValue(); query.Name = "Name"; query.Value = "com.sun.star.frame.Bibliography"; querySequenze[0] = query; - + tEnv.addObjRelation("XContainerQuery.createSubSetEnumerationByProperties", querySequenze); diff --git a/qadevOOo/tests/java/mod/_fwl/PathSettings.java b/qadevOOo/tests/java/mod/_fwl/PathSettings.java index dbedc87bd374..7bfe808b43f9 100644 --- a/qadevOOo/tests/java/mod/_fwl/PathSettings.java +++ b/qadevOOo/tests/java/mod/_fwl/PathSettings.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 @@ -74,7 +74,7 @@ public class PathSettings extends TestCase { private static NamedValue[] m_Properties; private static XPropertySet xPS; - + /** * restores the old values of the path settings * @param tParam the test parameter @@ -82,10 +82,10 @@ public class PathSettings extends TestCase { */ protected void cleanup(TestParameters tParam, PrintWriter log) { log.println("restore old values of path settings..."); - + for (int i=0; i < m_Properties.length; i++){ try{ - + xPS.setPropertyValue(m_Properties[i].Name, m_Properties[i].Value); } catch (com.sun.star.beans.UnknownPropertyException e){ @@ -94,7 +94,7 @@ public class PathSettings extends TestCase { } catch (WrappedTargetException e){ } } - } + } /** * Creating a Testenvironment for the interfaces to be tested. * Creates an instance of the service @@ -130,25 +130,25 @@ public class PathSettings extends TestCase { exclProps.add("UIConfig"); tEnv.addObjRelation("XFastPropertySet.ExcludeProps", exclProps); tEnv.addObjRelation("XMultiPropertySet.ExcludeProps", exclProps); - + saveAllPropertyValues(oObj); return tEnv; } // finish method getTestEnvironment - + private void saveAllPropertyValues(XInterface oObj){ - + xPS = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, oObj); - + XPropertySetInfo xPSI = xPS.getPropertySetInfo(); - + Property[] allProperties = xPSI.getProperties(); m_Properties = new NamedValue[allProperties.length]; - + for (int i=0; i < allProperties.length; i++){ try{ - m_Properties[i] = new NamedValue(allProperties[i].Name, + m_Properties[i] = new NamedValue(allProperties[i].Name, xPS.getPropertyValue(allProperties[i].Name)); } catch (com.sun.star.beans.UnknownPropertyException e){ diff --git a/qadevOOo/tests/java/mod/_fwl/SubstituteVariables.java b/qadevOOo/tests/java/mod/_fwl/SubstituteVariables.java index ba69d3d86035..1cda9fdcbf1c 100644 --- a/qadevOOo/tests/java/mod/_fwl/SubstituteVariables.java +++ b/qadevOOo/tests/java/mod/_fwl/SubstituteVariables.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 diff --git a/qadevOOo/tests/java/mod/_fwl/TypeDetection.java b/qadevOOo/tests/java/mod/_fwl/TypeDetection.java index 4a298e8bc637..80d42dcd297f 100644 --- a/qadevOOo/tests/java/mod/_fwl/TypeDetection.java +++ b/qadevOOo/tests/java/mod/_fwl/TypeDetection.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 @@ -78,7 +78,7 @@ import util.SOfficeFactory; * @see ifc.util.XFlushable */ public class TypeDetection extends TestCase { - + /** * Disposes text document. */ @@ -88,7 +88,7 @@ public class TypeDetection extends TestCase { } XTextDocument xTextDoc = null; - + /** * Creating a Testenvironment for the interfaces to be tested. * Creates an instance of the service @@ -133,35 +133,35 @@ public class TypeDetection extends TestCase { throw new StatusException( Status.failed("Couldn't get elements from object")); } - + log.println("adding INSTANCE 1 as obj relation to environment"); - + setPropertyValueValue((PropertyValue[])instance, "Preferred", "INSTANCE1"); tEnv.addObjRelation("INSTANCE" +1, instance); // com.sun.star.container.XContainerQuery - NamedValue[] querySequenze = new NamedValue[1]; + NamedValue[] querySequenze = new NamedValue[1]; NamedValue query = new NamedValue(); query.Name = "Name"; query.Value = "writer_Text"; querySequenze[0] = query; - - + + log.println("create text document with bookmarks"); - SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF() ); + SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF() ); String fileURL = null; try { xTextDoc = SOF.createTextDoc( null ); XInterface xBookMark = SOF.createBookmark( xTextDoc ); SOF.insertTextContent( xTextDoc, (XTextContent) xBookMark ); - + fileURL = utils.getOfficeTemp((XMultiServiceFactory)Param.getMSF() ); fileURL = fileURL + "bookmarks.oot"; XStorable store = (XStorable) UnoRuntime.queryInterface(XStorable.class, xTextDoc); System.out.println(fileURL); store.storeToURL(fileURL, new PropertyValue[0]); - + } catch( com.sun.star.uno.Exception e ) { e.printStackTrace( log ); throw new StatusException( "Couldn't create Bookmark", e ); @@ -174,7 +174,7 @@ public class TypeDetection extends TestCase { return tEnv; } // finish method getTestEnvironment - + protected void setPropertyValueValue(PropertyValue[] props, String pName, Object pValue) { int i = 0; while (i < props.length && !props[i].Name.equals(pName)) { diff --git a/qadevOOo/tests/java/mod/_i18n/BreakIterator.java b/qadevOOo/tests/java/mod/_i18n/BreakIterator.java index caad1aade8d1..6ef935db601c 100644 --- a/qadevOOo/tests/java/mod/_i18n/BreakIterator.java +++ b/qadevOOo/tests/java/mod/_i18n/BreakIterator.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 diff --git a/qadevOOo/tests/java/mod/_i18n/CalendarImpl.java b/qadevOOo/tests/java/mod/_i18n/CalendarImpl.java index 2ebbb1a38281..6ff2b549b76c 100644 --- a/qadevOOo/tests/java/mod/_i18n/CalendarImpl.java +++ b/qadevOOo/tests/java/mod/_i18n/CalendarImpl.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 diff --git a/qadevOOo/tests/java/mod/_i18n/ChapterCollator.java b/qadevOOo/tests/java/mod/_i18n/ChapterCollator.java index 423c8b8cde28..0b22deed7a93 100644 --- a/qadevOOo/tests/java/mod/_i18n/ChapterCollator.java +++ b/qadevOOo/tests/java/mod/_i18n/ChapterCollator.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 diff --git a/qadevOOo/tests/java/mod/_i18n/CharacterClassification.java b/qadevOOo/tests/java/mod/_i18n/CharacterClassification.java index d3267a6117e8..1044442ca56d 100644 --- a/qadevOOo/tests/java/mod/_i18n/CharacterClassification.java +++ b/qadevOOo/tests/java/mod/_i18n/CharacterClassification.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 diff --git a/qadevOOo/tests/java/mod/_i18n/Collator.java b/qadevOOo/tests/java/mod/_i18n/Collator.java index a887a86df3ff..a6d7b81ed063 100644 --- a/qadevOOo/tests/java/mod/_i18n/Collator.java +++ b/qadevOOo/tests/java/mod/_i18n/Collator.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 diff --git a/qadevOOo/tests/java/mod/_i18n/IndexEntrySupplier.java b/qadevOOo/tests/java/mod/_i18n/IndexEntrySupplier.java index 9f2990cc3ba5..c0299087ed8d 100644 --- a/qadevOOo/tests/java/mod/_i18n/IndexEntrySupplier.java +++ b/qadevOOo/tests/java/mod/_i18n/IndexEntrySupplier.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 diff --git a/qadevOOo/tests/java/mod/_i18n/LocaleData.java b/qadevOOo/tests/java/mod/_i18n/LocaleData.java index f71dcbcb8501..935a534fbeb9 100644 --- a/qadevOOo/tests/java/mod/_i18n/LocaleData.java +++ b/qadevOOo/tests/java/mod/_i18n/LocaleData.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 diff --git a/qadevOOo/tests/java/mod/_i18n/NumberFormatCodeMapper.java b/qadevOOo/tests/java/mod/_i18n/NumberFormatCodeMapper.java index 7b46c973f683..86a676380c7e 100644 --- a/qadevOOo/tests/java/mod/_i18n/NumberFormatCodeMapper.java +++ b/qadevOOo/tests/java/mod/_i18n/NumberFormatCodeMapper.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 diff --git a/qadevOOo/tests/java/mod/_i18n/TextSearch.java b/qadevOOo/tests/java/mod/_i18n/TextSearch.java index 835e0a3c1a90..20b678d4b155 100644 --- a/qadevOOo/tests/java/mod/_i18n/TextSearch.java +++ b/qadevOOo/tests/java/mod/_i18n/TextSearch.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 diff --git a/qadevOOo/tests/java/mod/_i18n/Transliteration.java b/qadevOOo/tests/java/mod/_i18n/Transliteration.java index 1f89d930d39f..808311032e4c 100644 --- a/qadevOOo/tests/java/mod/_i18n/Transliteration.java +++ b/qadevOOo/tests/java/mod/_i18n/Transliteration.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 diff --git a/qadevOOo/tests/java/mod/_implreg.uno/ImplementationRegistration.java b/qadevOOo/tests/java/mod/_implreg.uno/ImplementationRegistration.java index 7805a66c3042..0c85c74d1eab 100644 --- a/qadevOOo/tests/java/mod/_implreg.uno/ImplementationRegistration.java +++ b/qadevOOo/tests/java/mod/_implreg.uno/ImplementationRegistration.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 diff --git a/qadevOOo/tests/java/mod/_impreg/ImplementationRegistration.java b/qadevOOo/tests/java/mod/_impreg/ImplementationRegistration.java index 184aaff2db8c..cc48e6e314c7 100644 --- a/qadevOOo/tests/java/mod/_impreg/ImplementationRegistration.java +++ b/qadevOOo/tests/java/mod/_impreg/ImplementationRegistration.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 diff --git a/qadevOOo/tests/java/mod/_insp/Introspection.java b/qadevOOo/tests/java/mod/_insp/Introspection.java index f3b9956dcc3f..891d182df31d 100644 --- a/qadevOOo/tests/java/mod/_insp/Introspection.java +++ b/qadevOOo/tests/java/mod/_insp/Introspection.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 diff --git a/qadevOOo/tests/java/mod/_introspection.uno/Introspection.java b/qadevOOo/tests/java/mod/_introspection.uno/Introspection.java index 2c0ddac78ba8..ba4b9431df42 100644 --- a/qadevOOo/tests/java/mod/_introspection.uno/Introspection.java +++ b/qadevOOo/tests/java/mod/_introspection.uno/Introspection.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 diff --git a/qadevOOo/tests/java/mod/_inv/Invocation.java b/qadevOOo/tests/java/mod/_inv/Invocation.java index 06de72e30c5a..98d5e91b4ea3 100644 --- a/qadevOOo/tests/java/mod/_inv/Invocation.java +++ b/qadevOOo/tests/java/mod/_inv/Invocation.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 diff --git a/qadevOOo/tests/java/mod/_invadp/InvocationAdapterFactory.java b/qadevOOo/tests/java/mod/_invadp/InvocationAdapterFactory.java index 91a91ab3f28a..2b13633d8b2f 100644 --- a/qadevOOo/tests/java/mod/_invadp/InvocationAdapterFactory.java +++ b/qadevOOo/tests/java/mod/_invadp/InvocationAdapterFactory.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 diff --git a/qadevOOo/tests/java/mod/_invocadapt.uno/InvocationAdapterFactory.java b/qadevOOo/tests/java/mod/_invocadapt.uno/InvocationAdapterFactory.java index 46dd600d0cf3..6b1e5e47d7eb 100644 --- a/qadevOOo/tests/java/mod/_invocadapt.uno/InvocationAdapterFactory.java +++ b/qadevOOo/tests/java/mod/_invocadapt.uno/InvocationAdapterFactory.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 diff --git a/qadevOOo/tests/java/mod/_invocation.uno/Invocation.java b/qadevOOo/tests/java/mod/_invocation.uno/Invocation.java index f112fe07ab34..6b376a3618d4 100644 --- a/qadevOOo/tests/java/mod/_invocation.uno/Invocation.java +++ b/qadevOOo/tests/java/mod/_invocation.uno/Invocation.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 diff --git a/qadevOOo/tests/java/mod/_javaloader.uno/JavaComponentLoader.java b/qadevOOo/tests/java/mod/_javaloader.uno/JavaComponentLoader.java index 7e9a5f68f5a7..17ba5818306f 100644 --- a/qadevOOo/tests/java/mod/_javaloader.uno/JavaComponentLoader.java +++ b/qadevOOo/tests/java/mod/_javaloader.uno/JavaComponentLoader.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 diff --git a/qadevOOo/tests/java/mod/_javaloader/JavaComponentLoader.java b/qadevOOo/tests/java/mod/_javaloader/JavaComponentLoader.java index 8d20e4e2ffc7..81ee0485888c 100644 --- a/qadevOOo/tests/java/mod/_javaloader/JavaComponentLoader.java +++ b/qadevOOo/tests/java/mod/_javaloader/JavaComponentLoader.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 @@ -88,7 +88,7 @@ public class JavaComponentLoader extends TestCase { // adding object relation for XImplementationLoader ifc test tEnv.addObjRelation("ImplementationLoader", "com.sun.star.loader.JavaComponentLoader") ; - + String implURL = utils.getFullTestURL("qadevlibs/MyPersistObjectImpl.jar"); tEnv.addObjRelation("ImplementationUrl", implURL) ; log.println("looking for shared lib: " + implURL); diff --git a/qadevOOo/tests/java/mod/_javavm.uno/JavaVirtualMachine.java b/qadevOOo/tests/java/mod/_javavm.uno/JavaVirtualMachine.java index 63e60fa95976..09192967bce0 100644 --- a/qadevOOo/tests/java/mod/_javavm.uno/JavaVirtualMachine.java +++ b/qadevOOo/tests/java/mod/_javavm.uno/JavaVirtualMachine.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 diff --git a/qadevOOo/tests/java/mod/_jdbc/JDBCDriver.java b/qadevOOo/tests/java/mod/_jdbc/JDBCDriver.java index fd056e877f6b..c7fbc712ed91 100644 --- a/qadevOOo/tests/java/mod/_jdbc/JDBCDriver.java +++ b/qadevOOo/tests/java/mod/_jdbc/JDBCDriver.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 diff --git a/qadevOOo/tests/java/mod/_jen/JavaVirtualMachine.java b/qadevOOo/tests/java/mod/_jen/JavaVirtualMachine.java index 136eed306ebe..ba25eb21342e 100644 --- a/qadevOOo/tests/java/mod/_jen/JavaVirtualMachine.java +++ b/qadevOOo/tests/java/mod/_jen/JavaVirtualMachine.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 diff --git a/qadevOOo/tests/java/mod/_lng/DicList.java b/qadevOOo/tests/java/mod/_lng/DicList.java index 13b0998babe3..806b38290c93 100644 --- a/qadevOOo/tests/java/mod/_lng/DicList.java +++ b/qadevOOo/tests/java/mod/_lng/DicList.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 diff --git a/qadevOOo/tests/java/mod/_lng/LinguProps.java b/qadevOOo/tests/java/mod/_lng/LinguProps.java index c209f4b2367b..77e951568f38 100644 --- a/qadevOOo/tests/java/mod/_lng/LinguProps.java +++ b/qadevOOo/tests/java/mod/_lng/LinguProps.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 diff --git a/qadevOOo/tests/java/mod/_lng/LngSvcMgr.java b/qadevOOo/tests/java/mod/_lng/LngSvcMgr.java index 609cfe4101a3..f2433f0cf3a4 100644 --- a/qadevOOo/tests/java/mod/_lng/LngSvcMgr.java +++ b/qadevOOo/tests/java/mod/_lng/LngSvcMgr.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 diff --git a/qadevOOo/tests/java/mod/_lnn/Hyphenator.java b/qadevOOo/tests/java/mod/_lnn/Hyphenator.java index 431cdaafd994..7e313385d07b 100644 --- a/qadevOOo/tests/java/mod/_lnn/Hyphenator.java +++ b/qadevOOo/tests/java/mod/_lnn/Hyphenator.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 diff --git a/qadevOOo/tests/java/mod/_lnn/SpellChecker.java b/qadevOOo/tests/java/mod/_lnn/SpellChecker.java index 293c80a07c1c..55cc7e143099 100644 --- a/qadevOOo/tests/java/mod/_lnn/SpellChecker.java +++ b/qadevOOo/tests/java/mod/_lnn/SpellChecker.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 @@ -98,7 +98,7 @@ public class SpellChecker extends TestCase { String Iname = util.utils.getImplName(oObj); log.println("Implementation Name: "+Iname); TestEnvironment tEnv = new TestEnvironment(oObj); - + XLinguServiceManager xLinguServiceManager = (XLinguServiceManager) UnoRuntime.queryInterface(XLinguServiceManager.class, LinguServiceManager); tEnv.addObjRelation("AlternativeChecker",xLinguServiceManager.getSpellChecker()); diff --git a/qadevOOo/tests/java/mod/_lnn/Thesaurus.java b/qadevOOo/tests/java/mod/_lnn/Thesaurus.java index 566bbbaf4561..65c5939798f1 100644 --- a/qadevOOo/tests/java/mod/_lnn/Thesaurus.java +++ b/qadevOOo/tests/java/mod/_lnn/Thesaurus.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 diff --git a/qadevOOo/tests/java/mod/_mcnttype/MimeContentTypeFactory.java b/qadevOOo/tests/java/mod/_mcnttype/MimeContentTypeFactory.java index 523ed4cd0e2d..42ded566f92d 100644 --- a/qadevOOo/tests/java/mod/_mcnttype/MimeContentTypeFactory.java +++ b/qadevOOo/tests/java/mod/_mcnttype/MimeContentTypeFactory.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 diff --git a/qadevOOo/tests/java/mod/_mozab/MozabDriver.java b/qadevOOo/tests/java/mod/_mozab/MozabDriver.java index 1ff1c8492fb8..a50398eff832 100644 --- a/qadevOOo/tests/java/mod/_mozab/MozabDriver.java +++ b/qadevOOo/tests/java/mod/_mozab/MozabDriver.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 diff --git a/qadevOOo/tests/java/mod/_namingservice.uno/NamingService.java b/qadevOOo/tests/java/mod/_namingservice.uno/NamingService.java index 0c2a3128e0ff..73ff7815b9f7 100644 --- a/qadevOOo/tests/java/mod/_namingservice.uno/NamingService.java +++ b/qadevOOo/tests/java/mod/_namingservice.uno/NamingService.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 diff --git a/qadevOOo/tests/java/mod/_namingservice/NamingService.java b/qadevOOo/tests/java/mod/_namingservice/NamingService.java index b6d02e0a2ac8..d7bffd85e347 100644 --- a/qadevOOo/tests/java/mod/_namingservice/NamingService.java +++ b/qadevOOo/tests/java/mod/_namingservice/NamingService.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 diff --git a/qadevOOo/tests/java/mod/_nestedreg.uno/NestedRegistry.java b/qadevOOo/tests/java/mod/_nestedreg.uno/NestedRegistry.java index 6c5f7dc53997..b1c9c8642254 100644 --- a/qadevOOo/tests/java/mod/_nestedreg.uno/NestedRegistry.java +++ b/qadevOOo/tests/java/mod/_nestedreg.uno/NestedRegistry.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 diff --git a/qadevOOo/tests/java/mod/_odbc/ODBCDriver.java b/qadevOOo/tests/java/mod/_odbc/ODBCDriver.java index 6289f863dce7..0705d424cd57 100644 --- a/qadevOOo/tests/java/mod/_odbc/ODBCDriver.java +++ b/qadevOOo/tests/java/mod/_odbc/ODBCDriver.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 diff --git a/qadevOOo/tests/java/mod/_pcr/ObjectInspector.java b/qadevOOo/tests/java/mod/_pcr/ObjectInspector.java index 52635c813eb9..aabee75977bc 100644 --- a/qadevOOo/tests/java/mod/_pcr/ObjectInspector.java +++ b/qadevOOo/tests/java/mod/_pcr/ObjectInspector.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 @@ -67,13 +67,13 @@ import util.utils; * @see com.sun.star.frame.XController */ public class ObjectInspector extends TestCase { - + /** * module variable which holds the Desktop * @see com.sun.star.frame.Desktop */ protected static Object StarDesktop = null; - + /** * assign to the module variable <CODE>StarDesktop</CODE> the desktop * @param Param the test parameters @@ -89,7 +89,7 @@ public class ObjectInspector extends TestCase { throw new StatusException("Could not get a Desktop: null", null); } } - + /** * Creating a Testenvironment for the interfaces to be tested. * Creates an instance of the service @@ -105,88 +105,88 @@ public class ObjectInspector extends TestCase { * @see helper.PropertyHandlerImpl */ protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { - + this.cleanup(tParam, log); - + XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); - + try { XInterface oInspector = (XInterface) xMSF.createInstance("com.sun.star.inspection.ObjectInspector"); - + XObjectInspector xInspector = (XObjectInspector) UnoRuntime.queryInterface(XObjectInspector.class, oInspector); - + log.println("ImplementationName '" + utils.getImplName(xInspector) + "'"); - + XInterface oInspectorModel = (XInterface) xMSF.createInstance("com.sun.star.inspection.ObjectInspectorModel"); - + XObjectInspectorModel xInspectorModel = (XObjectInspectorModel) UnoRuntime.queryInterface(XObjectInspectorModel.class, oInspectorModel); - + XInterface oInspectorModelToSet = (XInterface) xMSF.createInstance("com.sun.star.inspection.ObjectInspectorModel"); - + XObjectInspectorModel xInspectorModelToSet = (XObjectInspectorModel) UnoRuntime.queryInterface(XObjectInspectorModel.class, oInspectorModelToSet); - - + + log.println("create a floating frame..."); - + XWindow xWindow = null; try{ - + XWindowPeer xWindowPeer = DesktopTools.createFloatingWindow(xMSF); - + xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, xWindowPeer); - + } catch (StatusException e){ throw new StatusException("Coud not create test object", e); } - + XInterface oFrame = (XInterface) xMSF.createInstance("com.sun.star.frame.Frame"); - + XFrame xFrame = (XFrame) UnoRuntime.queryInterface(XFrame.class, oFrame); - + xFrame.setName("ObjectInspector"); xFrame.initialize(xWindow); - + XFramesSupplier xFramesSup = (XFramesSupplier) UnoRuntime.queryInterface(XFramesSupplier.class, StarDesktop); - + XFrames xFrames = xFramesSup.getFrames(); xFrames.append(xFrame); - - + + log.println("attach ObjectInspector to floating frame..."); - + XInitialization xOII = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, xInspectorModel); - + xOII.initialize(new Object[0]); - + xInspector.setInspectorModel(xInspectorModel); - + // for debug purposes the following lines could commented out. But in // this case the com.sun.star.frame.XController would be failed! //xInspector.attachFrame(xFrame); //xWindow.setVisible(true); - + Object[] oInspect = new Object[1]; oInspect[0] = new PropertyHandlerImpl(); - + TestEnvironment tEnv = new TestEnvironment(xInspector); - + // com.sun.star.frame.XController tEnv.addObjRelation("Frame",xFrame); - + tEnv.addObjRelation("XObjectInspector.toInspect", oInspect); - + tEnv.addObjRelation("XObjectInspector.InspectorModelToSet", xInspectorModelToSet); - + return tEnv; } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log); throw new StatusException("Unexpected exception", e); } - + } - + /** * Closes the ObjectOnspector using <CODE>XCloseable</CODE> * @see com.sun.star.util.XCloseable @@ -195,13 +195,13 @@ public class ObjectInspector extends TestCase { */ protected void cleanup(TestParameters Param, PrintWriter log) { log.println(" Closing dialog if one exists ... "); - + XFrame existentInspector = null; - + XFrame xFrame = (XFrame) UnoRuntime.queryInterface(XFrame.class, StarDesktop); - + existentInspector = xFrame.findFrame( "ObjectInspector", 255 ); - + if ( existentInspector != null ){ XCloseable closer = (XCloseable) UnoRuntime.queryInterface( XCloseable.class, existentInspector); diff --git a/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java b/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java index f6044a3926d8..2330de06ee7d 100644 --- a/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java +++ b/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.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 @@ -59,13 +59,13 @@ import util.utils; * @see com.sun.star.inspection.XObjectInspectorModel */ public class ObjectInspectorModel extends TestCase { - + /** * module variable which holds the Desktop * @see com.sun.star.frame.Desktop */ protected static Object StarDesktop = null; - + /** * assign to the module variable <CODE>StarDesktop</CODE> the desktop * @param Param the test parameters @@ -81,7 +81,7 @@ public class ObjectInspectorModel extends TestCase { throw new StatusException("Could not get a Desktop: null", null); } } - + /** * Creating a Testenvironment for the interfaces to be tested. * Creates an instance of the service @@ -95,21 +95,21 @@ public class ObjectInspectorModel extends TestCase { * @see helper.PropertyHandlerImpl */ protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { - + this.cleanup(tParam, log); - + XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); - + XPropertySet xMSFProp = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xMSF); XComponentContext xDefaultContext = null; try{ // Get the default context from the office server. Object oDefaultContext = xMSFProp.getPropertyValue("DefaultContext"); - + // Query for the interface XComponentContext. xDefaultContext = (XComponentContext) UnoRuntime.queryInterface( XComponentContext.class, oDefaultContext); - + } catch (UnknownPropertyException e){ throw new StatusException("could not get DefaultContext from xMSF", e); } catch (WrappedTargetException e){ @@ -117,35 +117,35 @@ public class ObjectInspectorModel extends TestCase { } catch (Exception e){ throw new StatusException("could not get DefaultContext from xMSF", e); } - + try { - + Object[] oHandlerFactories = new Object[1]; oHandlerFactories[0] = new PropertyHandlerFactroy(); - + int minHelpTextLines = 200; int maxHelpTextLines = 400; - + XObjectInspectorModel oInspectorModel = com.sun.star.inspection.ObjectInspectorModel. createWithHandlerFactoriesAndHelpSection(xDefaultContext, oHandlerFactories, minHelpTextLines, maxHelpTextLines); - + log.println("ImplementationName '" + utils.getImplName(oInspectorModel) + "'"); - + TestEnvironment tEnv = new TestEnvironment(oInspectorModel); - + // com.sun.star.inspection.XObjectInspectorModel tEnv.addObjRelation("minHelpTextLines", new Integer(minHelpTextLines)); tEnv.addObjRelation("maxHelpTextLines", new Integer(maxHelpTextLines)); - + return tEnv; } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log); throw new StatusException("Unexpected exception", e); } - + } - + /** * Closes the ObjectOnspector using <CODE>XCloseable</CODE> * @see com.sun.star.util.XCloseable @@ -154,13 +154,13 @@ public class ObjectInspectorModel extends TestCase { */ protected void cleanup(TestParameters Param, PrintWriter log) { log.println(" Closing dialog if one exists ... "); - + XFrame existentInspector = null; - + XFrame xFrame = (XFrame) UnoRuntime.queryInterface(XFrame.class, StarDesktop); - + existentInspector = xFrame.findFrame( "ObjectInspector", 255 ); - + if ( existentInspector != null ){ XCloseable closer = (XCloseable) UnoRuntime.queryInterface( XCloseable.class, existentInspector); diff --git a/qadevOOo/tests/java/mod/_proxyfac.uno/ProxyFactory.java b/qadevOOo/tests/java/mod/_proxyfac.uno/ProxyFactory.java index ccd1286f697e..b3ee9aeb8e53 100644 --- a/qadevOOo/tests/java/mod/_proxyfac.uno/ProxyFactory.java +++ b/qadevOOo/tests/java/mod/_proxyfac.uno/ProxyFactory.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 diff --git a/qadevOOo/tests/java/mod/_proxyfac/ProxyFactory.java b/qadevOOo/tests/java/mod/_proxyfac/ProxyFactory.java index 75857eecc44d..15ce8a8ef4df 100644 --- a/qadevOOo/tests/java/mod/_proxyfac/ProxyFactory.java +++ b/qadevOOo/tests/java/mod/_proxyfac/ProxyFactory.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 diff --git a/qadevOOo/tests/java/mod/_proxyset/SOffice52ProxySettings.java b/qadevOOo/tests/java/mod/_proxyset/SOffice52ProxySettings.java index 8ac66de12de6..41c467479a8e 100644 --- a/qadevOOo/tests/java/mod/_proxyset/SOffice52ProxySettings.java +++ b/qadevOOo/tests/java/mod/_proxyset/SOffice52ProxySettings.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 diff --git a/qadevOOo/tests/java/mod/_proxyset/SystemProxySettings.java b/qadevOOo/tests/java/mod/_proxyset/SystemProxySettings.java index 50ece587ff33..80068cfadf71 100644 --- a/qadevOOo/tests/java/mod/_proxyset/SystemProxySettings.java +++ b/qadevOOo/tests/java/mod/_proxyset/SystemProxySettings.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 diff --git a/qadevOOo/tests/java/mod/_qadevOOo/SelfTest.java b/qadevOOo/tests/java/mod/_qadevOOo/SelfTest.java index adca07f799d6..0bbe59be86df 100755 --- a/qadevOOo/tests/java/mod/_qadevOOo/SelfTest.java +++ b/qadevOOo/tests/java/mod/_qadevOOo/SelfTest.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 diff --git a/qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java b/qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java index 9785b9fd484e..0e6d823d20d5 100644 --- a/qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.java +++ b/qadevOOo/tests/java/mod/_rdbtdp/RegistryTypeDescriptionProvider.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 diff --git a/qadevOOo/tests/java/mod/_regtypeprov.uno/RegistryTypeDescriptionProvider.java b/qadevOOo/tests/java/mod/_regtypeprov.uno/RegistryTypeDescriptionProvider.java index 6030cf18d99a..840e6e5a2df8 100644 --- a/qadevOOo/tests/java/mod/_regtypeprov.uno/RegistryTypeDescriptionProvider.java +++ b/qadevOOo/tests/java/mod/_regtypeprov.uno/RegistryTypeDescriptionProvider.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 diff --git a/qadevOOo/tests/java/mod/_remotebridge.uno/various.java b/qadevOOo/tests/java/mod/_remotebridge.uno/various.java index 0bcaecc361db..8cdd56280b97 100644 --- a/qadevOOo/tests/java/mod/_remotebridge.uno/various.java +++ b/qadevOOo/tests/java/mod/_remotebridge.uno/various.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 diff --git a/qadevOOo/tests/java/mod/_remotebridge/various.java b/qadevOOo/tests/java/mod/_remotebridge/various.java index 88491ab7a186..c2cb26046a03 100644 --- a/qadevOOo/tests/java/mod/_remotebridge/various.java +++ b/qadevOOo/tests/java/mod/_remotebridge/various.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 @@ -166,7 +166,7 @@ public class various extends TestCase { ex = e ; } catch (com.sun.star.connection.AlreadyAcceptingException e) { ex = e ; - } + } } } diff --git a/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_HeaderFooter.java b/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_HeaderFooter.java index b7018b7691f7..4d9f25301219 100644 --- a/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_HeaderFooter.java +++ b/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_HeaderFooter.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 @@ -60,7 +60,7 @@ public class AccessibleEditableTextPara_HeaderFooter extends TestCase { protected static XMultiServiceFactory msf = null; protected static XAccessibleAction action = null; - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XAccessibleContext oObj = null; Object toolkit = null; @@ -85,7 +85,7 @@ public class AccessibleEditableTextPara_HeaderFooter extends TestCase { Object atw = tk.getActiveTopWindow(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, atw); XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow); @@ -93,15 +93,15 @@ public class AccessibleEditableTextPara_HeaderFooter extends TestCase { util.utils.shortWait(Param.getInt("ShortWait")); AccessibilityTools.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - XAccessibleContext ok_button = AccessibilityTools.getAccessibleObjectForRole(xRoot, - AccessibleRole.PUSH_BUTTON, + XAccessibleContext ok_button = AccessibilityTools.getAccessibleObjectForRole(xRoot, + AccessibleRole.PUSH_BUTTON, "Cancel"); oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.PARAGRAPH); log.println("ImplementationName " + utils.getImplName(oObj)); log.println("AccessibleName " + oObj.getAccessibleName()); - log.println("ParentDescription " + + log.println("ParentDescription " + oObj.getAccessibleParent().getAccessibleContext() .getAccessibleDescription()); @@ -114,18 +114,18 @@ public class AccessibleEditableTextPara_HeaderFooter extends TestCase { XAccessibleText.class, oObj); XAccessibleEditableText eText = (XAccessibleEditableText) UnoRuntime.queryInterface( - XAccessibleEditableText.class, + XAccessibleEditableText.class, oObj); eText.setText("LEFT"); tEnv.addObjRelation("XAccessibleText.Text", text.getText()); - - tEnv.addObjRelation("Destroy", "AccessibleEditableTextPara_PreviewCell"); + + tEnv.addObjRelation("Destroy", "AccessibleEditableTextPara_PreviewCell"); final XAccessibleEditableText editText = eText; - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { editText.setText("LEFT_EVENT"); @@ -161,7 +161,7 @@ public class AccessibleEditableTextPara_HeaderFooter extends TestCase { try { SOfficeFactory SOF = SOfficeFactory.getFactory(msf); - xCalcDoc = (XComponent) UnoRuntime.queryInterface(XComponent.class, + xCalcDoc = (XComponent) UnoRuntime.queryInterface(XComponent.class, SOF.createCalcDoc( null)); } catch (com.sun.star.uno.Exception e) { @@ -183,7 +183,7 @@ public class AccessibleEditableTextPara_HeaderFooter extends TestCase { } public void run() { - XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xCalcDoc); XController xController = aModel.getCurrentController(); @@ -192,10 +192,10 @@ public class AccessibleEditableTextPara_HeaderFooter extends TestCase { try { String aSlotID = ".uno:EditHeaderAndFooter"; XDispatchProvider xDispProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, xController); XURLTransformer xParser = (com.sun.star.util.XURLTransformer) UnoRuntime.queryInterface( - XURLTransformer.class, + XURLTransformer.class, msf.createInstance( "com.sun.star.util.URLTransformer")); diff --git a/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.java b/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.java index 4e0276304743..cda222edc858 100644 --- a/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.java +++ b/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.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 @@ -158,20 +158,20 @@ public class AccessibleEditableTextPara_PreviewCell extends TestCase { AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.TABLE_CELL,true); xRoot = AccessibilityTools.SearchedAccessible; - + //AccessibilityTools.printAccessibleTree(log,xRoot); oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot,AccessibleRole.PARAGRAPH); - + log.println("ImplementationName " + utils.getImplName(oObj)); log.println("AccessibleName " + oObj.getAccessibleName()); log.println("Parent " + utils.getImplName(oObj.getAccessibleParent())); TestEnvironment tEnv = new TestEnvironment( oObj ); - + tEnv.addObjRelation("EditOnly", "AccessibleEditableTextPara_PreviewCell"); tEnv.addObjRelation("Destroy", "AccessibleEditableTextPara_PreviewCell"); - + final XCell cell_to_change = xCell; tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer(){ @@ -179,7 +179,7 @@ public class AccessibleEditableTextPara_PreviewCell extends TestCase { cell_to_change.setFormula("NewString"); } }); - + return tEnv; } diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleCell.java index c295e7197eb1..9c648edc8ace 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleCell.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleCell.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 @@ -122,7 +122,7 @@ public class ScAccessibleCell extends TestCase { log.println("ImplementationName " + utils.getImplName(oObj)); - TestEnvironment tEnv = new TestEnvironment(oObj); + TestEnvironment tEnv = new TestEnvironment(oObj); // relation for XAccessibleEventBroadcaster XCell xCell = null; @@ -146,7 +146,7 @@ public class ScAccessibleCell extends TestCase { XIndexAccess oIndexAccess = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, oColumns); XPropertySet column = (XPropertySet) UnoRuntime.queryInterface( - XPropertySet.class,oIndexAccess.getByIndex(1)); + XPropertySet.class,oIndexAccess.getByIndex(1)); column.setPropertyValue("OptimalWidth", new Boolean(true)); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Exception ceating relation :"); @@ -163,9 +163,9 @@ public class ScAccessibleCell extends TestCase { } catch(com.sun.star.lang.IllegalArgumentException e) { log.println("Exception ceating relation :"); e.printStackTrace(log); - } - - tEnv.addObjRelation("EditOnly", + } + + tEnv.addObjRelation("EditOnly", "This method is only supported if the Cell is in edit mode"); final XCell fCell = xCell ; diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.java index 3a18fce51185..b52891687452 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvCell.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.java index 15c81df729af..2a7737d53743 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvGrid.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java index 08b7b85b0fdb..84553b082622 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.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 @@ -67,7 +67,7 @@ public class ScAccessibleCsvRuler extends TestCase { * @see TestEnvironment * @see #getTestEnvironment() */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -86,18 +86,18 @@ public class ScAccessibleCsvRuler extends TestCase { XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface( XExtendedToolkit.class, oObj); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow); - oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, + oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, "Cancel"); accAction = (XAccessibleAction) UnoRuntime.queryInterface( XAccessibleAction.class, oObj); - XAccessibleContext acc = AccessibilityTools.getAccessibleObjectForRole(xRoot, + XAccessibleContext acc = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.RADIO_BUTTON); log.println("Click on: " + acc.getAccessibleName()); @@ -112,15 +112,15 @@ public class ScAccessibleCsvRuler extends TestCase { //util.dbg.printInterfaces(oObj); - AccessibilityTools.printAccessibleTree(log, xRoot); - oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.TEXT, + AccessibilityTools.printAccessibleTree(log, xRoot); + oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.TEXT, "Ruler", true); log.println("ImplementationName " + utils.getImplName(oObj)); TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("EditOnly", + tEnv.addObjRelation("EditOnly", "This method isn't supported in this dialog"); XAccessibleText text = (XAccessibleText) UnoRuntime.queryInterface( @@ -143,7 +143,7 @@ public class ScAccessibleCsvRuler extends TestCase { return tEnv; } - + /** * Called while disposing a <code>TestEnvironment</code>. * Disposes calc document. @@ -175,7 +175,7 @@ public class ScAccessibleCsvRuler extends TestCase { SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF()); log.println("opening dialog"); - + PropertyValue[] args = new PropertyValue[1]; try { args[0] = new PropertyValue(); @@ -184,13 +184,13 @@ public class ScAccessibleCsvRuler extends TestCase { "com.sun.star.comp.uui.UUIInteractionHandler"); } catch(com.sun.star.uno.Exception e) { } - + lThread = new loadThread(SOF, args); lThread.start(); shortWait(); } - + /** * Sleeps for 2 sec. to allow StarOffice to react on <code> * reset</code> call. @@ -201,10 +201,10 @@ public class ScAccessibleCsvRuler extends TestCase { } catch (InterruptedException e) { log.println("While waiting :" + e) ; } - } - + } + public class loadThread extends Thread { - + private SOfficeFactory SOF = null ; private PropertyValue[] args = null; public XComponent xSpreadSheedDoc = null; @@ -215,15 +215,15 @@ public class ScAccessibleCsvRuler extends TestCase { } public void run() { - try { + try { String url= utils.getFullTestURL("10test.csv"); log.println("loading "+url); - SOF.loadDocument(url,args); + SOF.loadDocument(url,args); } catch (com.sun.star.uno.Exception e) { e.printStackTrace(); throw new StatusException( "Couldn't create document ", e ); } - } - } - + } + } + } diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleDocument.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleDocument.java index fd930eedaf01..cbb3917b2e03 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleDocument.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleDocument.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.java index ff6328dc1b92..3835f1a876d4 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.java index 599f8a097ad6..d77ca0f674b1 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.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 @@ -166,14 +166,14 @@ public class ScAccessiblePageHeader extends TestCase { at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); TestEnvironment tEnv = new TestEnvironment(oObj); - + XStyleFamiliesSupplier StyleFam = (XStyleFamiliesSupplier) UnoRuntime.queryInterface( XStyleFamiliesSupplier.class, xSpreadsheetDoc ); XNameAccess StyleFamNames = StyleFam.getStyleFamilies(); XStyle StdStyle = null; - + try{ XNameAccess PageStyles = (XNameAccess) AnyConverter.toObject( new Type(XNameAccess.class), @@ -212,9 +212,9 @@ public class ScAccessiblePageHeader extends TestCase { e.printStackTrace(log); throw new StatusException("Couldn't get HeaderContent", e); } - + final XHeaderFooterContent RPHC2 = RPHC; - + final XText center = RPHC2.getCenterText(); final XText left = RPHC2.getLeftText(); final XText right = RPHC2.getRightText(); @@ -233,7 +233,7 @@ public class ScAccessiblePageHeader extends TestCase { } catch (com.sun.star.lang.WrappedTargetException e) {} } }); - + return tEnv; diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java index 3e387afeb8d3..f0157633ccc4 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.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 @@ -157,7 +157,7 @@ public class ScAccessiblePageHeaderArea extends TestCase { try { oObj = at.getAccessibleObjectForRole (xRoot, AccessibleRole.HEADER, "").getAccessibleChild(0); - XAccessibleContext cont = (XAccessibleContext) + XAccessibleContext cont = (XAccessibleContext) UnoRuntime.queryInterface(XAccessibleContext.class, oObj); XAccessibleStateSet StateSet = cont.getAccessibleStateSet(); if (StateSet.contains((short)27)) { @@ -166,26 +166,26 @@ public class ScAccessiblePageHeaderArea extends TestCase { } catch (com.sun.star.lang.IndexOutOfBoundsException iabe) { throw new StatusException("Couldn't find needed Child",iabe); } - + log.println("ImplementationName " + utils.getImplName(oObj)); at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); TestEnvironment tEnv = new TestEnvironment(oObj); - + XAccessibleContext zoomIn = at.getAccessibleObjectForRole(xRoot,AccessibleRole.PUSH_BUTTON, "Zoom In"); - - final XAccessibleAction pressZoom = (XAccessibleAction) + + final XAccessibleAction pressZoom = (XAccessibleAction) UnoRuntime.queryInterface(XAccessibleAction.class, zoomIn); tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { - public void fireEvent() { + public void fireEvent() { try { pressZoom.doAccessibleAction(0); } catch (com.sun.star.lang.IndexOutOfBoundsException ibe) {} } - }); - + }); + return tEnv; } diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.java index d6f93c401c77..13f8aeeeb52f 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java index d57690852dc9..5662ee0addc9 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.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 @@ -125,7 +125,7 @@ public class ScAccessiblePreviewHeaderCell extends TestCase { * Switchs the document to preview mode and then obtains the * accessible object for the header cell. */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -146,7 +146,7 @@ public class ScAccessiblePreviewHeaderCell extends TestCase { throw new StatusException("Couldn't create document", e); } - XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, xSheetDoc); XController xController = xModel.getCurrentController(); @@ -161,7 +161,7 @@ public class ScAccessiblePreviewHeaderCell extends TestCase { XIndexAccess oIndexSheets = (XIndexAccess) UnoRuntime.queryInterface( XIndexAccess.class, oSheets); XSpreadsheet oSheet = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class), + new Type(XSpreadsheet.class), oIndexSheets.getByIndex(0)); log.println("Getting a cell from sheet"); @@ -184,14 +184,14 @@ public class ScAccessiblePreviewHeaderCell extends TestCase { //setting property 'PrintHeaders' of the style 'Default' XStyleFamiliesSupplier xSFS = (XStyleFamiliesSupplier) UnoRuntime.queryInterface( - XStyleFamiliesSupplier.class, + XStyleFamiliesSupplier.class, xSheetDoc); XNameAccess xNA = xSFS.getStyleFamilies(); XPropertySet xPropSet = null; try { Object oPageStyles = xNA.getByName("PageStyles"); - xNA = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, + xNA = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, oPageStyles); Object oDefStyle = xNA.getByName("Default"); @@ -228,10 +228,10 @@ public class ScAccessiblePreviewHeaderCell extends TestCase { //switching to 'Print Preview' mode try { XDispatchProvider xDispProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, xController); XURLTransformer xParser = (com.sun.star.util.XURLTransformer) UnoRuntime.queryInterface( - XURLTransformer.class, + XURLTransformer.class, ( (XMultiServiceFactory) Param.getMSF()) .createInstance("com.sun.star.util.URLTransformer")); URL[] aParseURL = new URL[1]; @@ -261,8 +261,8 @@ public class ScAccessiblePreviewHeaderCell extends TestCase { if (oObj == null) { log.println("Version with a fixed #103863#"); - oObj = at.getAccessibleObjectForRole(xRoot, - AccessibleRole.TABLE_CELL, + oObj = at.getAccessibleObjectForRole(xRoot, + AccessibleRole.TABLE_CELL, true); } @@ -270,7 +270,7 @@ public class ScAccessiblePreviewHeaderCell extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { } diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.java index 2c7271f50e86..b12c7c55e362 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.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 @@ -182,9 +182,9 @@ public class ScAccessiblePreviewTable extends TestCase { XWindow xWindow = at.getCurrentContainerWindow((XMultiServiceFactory)Param.getMSF(), xModel); XAccessible xRoot = at.getAccessibleObject(xWindow); - + at.printAccessibleTree(log,xRoot, Param.getBool(PropertyName.DEBUG_IS_ACTIVE)); - + at.getAccessibleObjectForRole(xRoot, AccessibleRole.TABLE); oObj = AccessibilityTools.SearchedContext; @@ -195,9 +195,9 @@ public class ScAccessiblePreviewTable extends TestCase { XAccessibleContext zoomIn = at.getAccessibleObjectForRole(xRoot,AccessibleRole.PUSH_BUTTON, "Zoom In"); - + log.println("Getting "+ zoomIn.getAccessibleName()); - + final XAccessibleAction pressZoom = (XAccessibleAction) UnoRuntime.queryInterface(XAccessibleAction.class, zoomIn); tEnv.addObjRelation("EventProducer", diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleSpreadsheet.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleSpreadsheet.java index 0d5fd6c1bb86..3f80a7e5ac24 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleSpreadsheet.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleSpreadsheet.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScAnnotationObj.java b/qadevOOo/tests/java/mod/_sc/ScAnnotationObj.java index aa43190a6a42..d2a1a2ef23ce 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAnnotationObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAnnotationObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScAnnotationShapeObj.java b/qadevOOo/tests/java/mod/_sc/ScAnnotationShapeObj.java index 723163c13989..ab06d2977b96 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAnnotationShapeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAnnotationShapeObj.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 @@ -202,11 +202,11 @@ public class ScAnnotationShapeObj extends TestCase { //adding ObjRelation for XText DefaultDsc tDsc = new DefaultDsc("com.sun.star.text.XTextContent", "com.sun.star.text.TextField.DateTime"); - + log.println( "adding InstCreator object" ); tEnv.addObjRelation( - "XTEXTINFO", new InstCreator( xSheetDoc, tDsc ) ); - + "XTEXTINFO", new InstCreator( xSheetDoc, tDsc ) ); + return tEnv; } } diff --git a/qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java b/qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java index 94dd58a9c7ff..662f509696a7 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java +++ b/qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScAnnotationsObj.java b/qadevOOo/tests/java/mod/_sc/ScAnnotationsObj.java index 0ce18e51d13f..1ff4a3f91d11 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAnnotationsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAnnotationsObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScAreaLinkObj.java b/qadevOOo/tests/java/mod/_sc/ScAreaLinkObj.java index 9ecf4045bfb8..0054823cf1bc 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAreaLinkObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAreaLinkObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScAreaLinksObj.java b/qadevOOo/tests/java/mod/_sc/ScAreaLinksObj.java index 1c3c64e25b98..edb102225e2b 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAreaLinksObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAreaLinksObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScAutoFormatFieldObj.java b/qadevOOo/tests/java/mod/_sc/ScAutoFormatFieldObj.java index 32f1158bf42c..9fd4c73109b5 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAutoFormatFieldObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAutoFormatFieldObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScAutoFormatObj.java b/qadevOOo/tests/java/mod/_sc/ScAutoFormatObj.java index 840f2e600cda..4731dac7e335 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAutoFormatObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAutoFormatObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java b/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java index 21590965fbdf..70f051f8f0d6 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScAutoFormatsObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScCellCursorObj.java b/qadevOOo/tests/java/mod/_sc/ScCellCursorObj.java index 55ed9e3c3b73..1baa4c21d8a0 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellCursorObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellCursorObj.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 @@ -153,7 +153,7 @@ public class ScCellCursorObj extends TestCase { * retieved from collection)</li> * </ul> */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; TestEnvironment tEnv = null; @@ -166,19 +166,19 @@ public class ScCellCursorObj extends TestCase { log.println("Creating a test environment"); XSpreadsheets oSpreadsheets = ((XSpreadsheetDocument) UnoRuntime.queryInterface( - XSpreadsheetDocument.class, + XSpreadsheetDocument.class, xSheetDoc)).getSheets(); try { oSheet = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class), + new Type(XSpreadsheet.class), oSpreadsheets.getByName( oSpreadsheets.getElementNames()[0])); testRange = oSheet.getCellRangeByName("$A$1:$D$4"); XSheetCellRange testSheetRange = (XSheetCellRange) UnoRuntime.queryInterface( - XSheetCellRange.class, + XSheetCellRange.class, testRange); oObj = oSheet.createCursorByRange(testSheetRange); oSheet.getCellByPosition(1, 1).setValue(1); @@ -207,7 +207,7 @@ public class ScCellCursorObj extends TestCase { tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("CRDESC", + tEnv.addObjRelation("CRDESC", "Column and RowDescriptions can't be changed for this Object"); tEnv.addObjRelation("SHEET", oSheet); @@ -221,13 +221,13 @@ public class ScCellCursorObj extends TestCase { expectedResults[_XCellRangesQuery.QUERYROWDIFFERENCES] = "Sheet1.A2;Sheet1.C2"; expectedResults[_XCellRangesQuery.QUERYVISIBLECELLS] = "Sheet1.A2"; tEnv.addObjRelation("XCellRangesQuery.EXPECTEDRESULTS", expectedResults); - - tEnv.addObjRelation("NewData", - new Object[][] + + tEnv.addObjRelation("NewData", + new Object[][] { - { "", "", "", "" }, - { "", "2", "3", "4" }, - { "", "2", "3", "4" }, + { "", "", "", "" }, + { "", "2", "3", "4" }, + { "", "2", "3", "4" }, { "", "2", "3", "4" } }); @@ -238,7 +238,7 @@ public class ScCellCursorObj extends TestCase { //Adding relation for util.XSortable final PrintWriter finalLog = log; final XCellRange oTable = testRange; - tEnv.addObjRelation("SORTCHECKER", + tEnv.addObjRelation("SORTCHECKER", new ifc.util._XSortable.XSortChecker() { PrintWriter out = finalLog; @@ -257,7 +257,7 @@ public class ScCellCursorObj extends TestCase { } } - public boolean checkSort(boolean isSortNumbering, + public boolean checkSort(boolean isSortNumbering, boolean isSortAscending) { out.println("Sort checking..."); @@ -281,16 +281,16 @@ public class ScCellCursorObj extends TestCase { String[] vals = { value[0], value[1], value[2], value[3] }; res = ValueComparer.equalValue(vals, rightVal); out.println("Expected 3, 4, 23, b"); - out.println("getting: " + value[0] + ", " + - value[1] + ", " + value[2] + ", " + + out.println("getting: " + value[0] + ", " + + value[1] + ", " + value[2] + ", " + value[3]); } else { String[] rightVal = { "b", "23", "4", "3" }; String[] vals = { value[0], value[1], value[2], value[3] }; res = ValueComparer.equalValue(vals, rightVal); out.println("Expected b, 23, 4, 3"); - out.println("getting: " + value[0] + ", " + - value[1] + ", " + value[2] + ", " + + out.println("getting: " + value[0] + ", " + + value[1] + ", " + value[2] + ", " + value[3]); } } else { @@ -298,15 +298,15 @@ public class ScCellCursorObj extends TestCase { String[] rightVal = { "3", "4", "23", "b" }; res = ValueComparer.equalValue(value, rightVal); out.println("Expected 3, 4, 23, b"); - out.println("getting: " + value[0] + ", " + - value[1] + ", " + value[2] + ", " + + out.println("getting: " + value[0] + ", " + + value[1] + ", " + value[2] + ", " + value[3]); } else { String[] rightVal = { "b", "23", "4", "3" }; res = ValueComparer.equalValue(value, rightVal); out.println("Expected b, 23, 4, 3"); - out.println("getting: " + value[0] + ", " + - value[1] + ", " + value[2] + ", " + + out.println("getting: " + value[0] + ", " + + value[1] + ", " + value[2] + ", " + value[3]); } } diff --git a/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java b/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java index a2f0d11e3bb5..1b39d32a3c2d 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java b/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java index f91389211354..b410257f7ba9 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java index c78ac67cf64f..a920559dbc7c 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellFormatsEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScCellFormatsObj.java b/qadevOOo/tests/java/mod/_sc/ScCellFormatsObj.java index 68396cbb37de..915891919bc0 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellFormatsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellFormatsObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScCellObj.java b/qadevOOo/tests/java/mod/_sc/ScCellObj.java index 7711676f41a3..bd19c78a3da8 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScCellRangeObj.java b/qadevOOo/tests/java/mod/_sc/ScCellRangeObj.java index 5d4fdcaae4e4..b7b119c3b3b3 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellRangeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellRangeObj.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 @@ -138,7 +138,7 @@ public class ScCellRangeObj extends TestCase { * </ul> * @see com.sun.star.sheet.XSpreadsheet */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XCellRange testRange; @@ -149,7 +149,7 @@ public class ScCellRangeObj extends TestCase { log.println("Creating a test environment"); XSpreadsheets oSpreadsheets = ((XSpreadsheetDocument) UnoRuntime.queryInterface( - XSpreadsheetDocument.class, + XSpreadsheetDocument.class, xSheetDoc)).getSheets(); XNameAccess oNames = (XNameAccess) UnoRuntime.queryInterface( XNameAccess.class, oSpreadsheets); @@ -158,7 +158,7 @@ public class ScCellRangeObj extends TestCase { try { oSheet = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class), + new Type(XSpreadsheet.class), oNames.getByName(oNames.getElementNames()[0])); oObj = oSheet.getCellRangeByPosition(0, 0, 3, 4); @@ -182,7 +182,7 @@ public class ScCellRangeObj extends TestCase { "Error getting cell object from spreadsheet document", e); } - + TestEnvironment tEnv = new TestEnvironment(oObj); tEnv.addObjRelation("SHEET", oSheet); @@ -201,7 +201,7 @@ public class ScCellRangeObj extends TestCase { XPropertySet PropSet = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, oObj); tEnv.addObjRelation("PropSet", PropSet); - + // XSearchable: Add a cell to make a seacrchable entry try { tEnv.addObjRelation("XSearchable.MAKEENTRYINCELL", new XCell[] { @@ -211,7 +211,7 @@ public class ScCellRangeObj extends TestCase { e.printStackTrace((PrintWriter)log); log.println("Cannot make required object relation 'XSearchable.MAKEENTRYINCELL'."); } - + // XCellRangeData /* Object[][] newData = new Object[5][4]; for (int i=0; i<newData.length; i++) { @@ -220,11 +220,11 @@ public class ScCellRangeObj extends TestCase { } } tEnv.addObjRelation("NewData", newData); */ - + //Adding relation for util.XSortable final PrintWriter finalLog = log; final XCellRange oTable = testRange; - tEnv.addObjRelation("SORTCHECKER", + tEnv.addObjRelation("SORTCHECKER", new ifc.util._XSortable.XSortChecker() { PrintWriter out = finalLog; @@ -243,7 +243,7 @@ public class ScCellRangeObj extends TestCase { } } - public boolean checkSort(boolean isSortNumbering, + public boolean checkSort(boolean isSortNumbering, boolean isSortAscending) { out.println("Sort checking..."); @@ -267,16 +267,16 @@ public class ScCellRangeObj extends TestCase { String[] vals = { value[0], value[1], value[2], value[3] }; res = ValueComparer.equalValue(vals, rightVal); out.println("Expected 3, 4, 23, b"); - out.println("getting: " + value[0] + ", " + - value[1] + ", " + value[2] + ", " + + out.println("getting: " + value[0] + ", " + + value[1] + ", " + value[2] + ", " + value[3]); } else { String[] rightVal = { "b", "23", "4", "3" }; String[] vals = { value[0], value[1], value[2], value[3] }; res = ValueComparer.equalValue(vals, rightVal); out.println("Expected b, 23, 4, 3"); - out.println("getting: " + value[0] + ", " + - value[1] + ", " + value[2] + ", " + + out.println("getting: " + value[0] + ", " + + value[1] + ", " + value[2] + ", " + value[3]); } } else { @@ -284,15 +284,15 @@ public class ScCellRangeObj extends TestCase { String[] rightVal = { "3", "4", "23", "b" }; res = ValueComparer.equalValue(value, rightVal); out.println("Expected 3, 4, 23, b"); - out.println("getting: " + value[0] + ", " + - value[1] + ", " + value[2] + ", " + + out.println("getting: " + value[0] + ", " + + value[1] + ", " + value[2] + ", " + value[3]); } else { String[] rightVal = { "b", "23", "4", "3" }; res = ValueComparer.equalValue(value, rightVal); out.println("Expected b, 23, 4, 3"); - out.println("getting: " + value[0] + ", " + - value[1] + ", " + value[2] + ", " + + out.println("getting: " + value[0] + ", " + + value[1] + ", " + value[2] + ", " + value[3]); } } diff --git a/qadevOOo/tests/java/mod/_sc/ScCellRangesObj.java b/qadevOOo/tests/java/mod/_sc/ScCellRangesObj.java index b3c3e4e66e1d..9d4216a0132c 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellRangesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellRangesObj.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 @@ -198,7 +198,7 @@ public class ScCellRangesObj extends TestCase { for (int j = 0; j < 5; j++) { oSheet.getCellByPosition(i, j).setFormula("a"); } - } + } for (int i = 0; i < 10; i++) { for (int j = 5; j < 10; j++) { oSheet.getCellByPosition(i, j).setValue(i + j); @@ -210,7 +210,7 @@ public class ScCellRangesObj extends TestCase { "Exception occurred while filling cells", e); } - + TestEnvironment tEnv = new TestEnvironment( oObj ); // NameReplaceIndex : _XNameReplace @@ -242,7 +242,7 @@ public class ScCellRangesObj extends TestCase { tEnv.addObjRelation("SHEET", oSheet); // add expected results for the XCellRangesQuery interface test String[]expectedResults = new String[7]; - expectedResults[_XCellRangesQuery.QUERYCOLUMNDIFFERENCES] = "Sheet1.I7:J8"; + expectedResults[_XCellRangesQuery.QUERYCOLUMNDIFFERENCES] = "Sheet1.I7:J8"; expectedResults[_XCellRangesQuery.QUERYCONTENTCELLS] = ""; expectedResults[_XCellRangesQuery.QUERYEMPTYCELLS] = ""; expectedResults[_XCellRangesQuery.QUERYFORMULACELLS] = ""; diff --git a/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java b/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java index 5e1f6153eb07..60d9cc9f38b2 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellSearchObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScCellTextCursor.java b/qadevOOo/tests/java/mod/_sc/ScCellTextCursor.java index 05313f90cb00..56a79463d0aa 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellTextCursor.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellTextCursor.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java index 5b41b5bb2928..f394e1dd9dbb 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellsEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScCellsObj.java b/qadevOOo/tests/java/mod/_sc/ScCellsObj.java index 4e83d890427e..dfaf72aa525f 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellsObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScChartObj.java b/qadevOOo/tests/java/mod/_sc/ScChartObj.java index 4c0e38aeaab3..ae94cf3358bb 100644 --- a/qadevOOo/tests/java/mod/_sc/ScChartObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScChartObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScChartsObj.java b/qadevOOo/tests/java/mod/_sc/ScChartsObj.java index ffce67b4f173..4541e30cafa3 100644 --- a/qadevOOo/tests/java/mod/_sc/ScChartsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScChartsObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScConsolidationDescriptor.java b/qadevOOo/tests/java/mod/_sc/ScConsolidationDescriptor.java index 9ca1dfb9c448..d0338dc75653 100644 --- a/qadevOOo/tests/java/mod/_sc/ScConsolidationDescriptor.java +++ b/qadevOOo/tests/java/mod/_sc/ScConsolidationDescriptor.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java b/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java index a1f3dfb433f4..4b080bee0a75 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScDDELinksObj.java b/qadevOOo/tests/java/mod/_sc/ScDDELinksObj.java index fbcb724c27fd..42d8f75dc78e 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDDELinksObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDDELinksObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java index 7ef352c94d2a..c011619a0687 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.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 @@ -61,13 +61,13 @@ import util.SOfficeFactory; public class ScDataPilotFieldGroupItemObj extends TestCase { static XSpreadsheetDocument xSheetDoc = null; - + /** * A field is filled some values. This integer determines the size of the * field in x and y direction. */ private int mMaxFieldIndex = 6; - + /** * Creates Spreadsheet document. */ @@ -75,7 +75,7 @@ public class ScDataPilotFieldGroupItemObj extends TestCase { SOfficeFactory SOF = SOfficeFactory.getFactory ( (XMultiServiceFactory) tParam.getMSF ()); - + try { log.println ("creating a Spreadsheet document"); @@ -88,30 +88,30 @@ public class ScDataPilotFieldGroupItemObj extends TestCase throw new StatusException ("Couldn't create document", e); } } - + /** * Disposes Spreadsheet document. */ protected void cleanup (TestParameters tParam, PrintWriter log) { log.println (" disposing xSheetDoc "); - + XComponent oComp = (XComponent) UnoRuntime.queryInterface ( XComponent.class, xSheetDoc); util.DesktopTools.closeDoc (oComp); } - + protected synchronized TestEnvironment createTestEnvironment (TestParameters Param, PrintWriter log) { XInterface oObj = null; XInterface datapilotfield = null; XInterface groups = null; - + // creation of testobject here // first we write what we are intend to do to log file log.println ("Creating a test environment"); - + // the cell range CellRangeAddress sCellRangeAdress = new CellRangeAddress (); sCellRangeAdress.Sheet = 0; @@ -119,21 +119,21 @@ public class ScDataPilotFieldGroupItemObj extends TestCase sCellRangeAdress.StartRow = 0; sCellRangeAdress.EndColumn = mMaxFieldIndex - 1; sCellRangeAdress.EndRow = mMaxFieldIndex - 1; - + // position of the data pilot table CellAddress sCellAdress = new CellAddress (); sCellAdress.Sheet = 0; sCellAdress.Column = 7; sCellAdress.Row = 8; - + log.println ("Getting a sheet"); - + XSpreadsheets xSpreadsheets = (XSpreadsheets) xSheetDoc.getSheets (); XSpreadsheet oSheet = null; XSpreadsheet oSheet2 = null; XIndexAccess oIndexAccess = (XIndexAccess) UnoRuntime.queryInterface ( XIndexAccess.class, xSpreadsheets); - + try { oSheet = (XSpreadsheet) AnyConverter.toObject ( @@ -158,11 +158,11 @@ public class ScDataPilotFieldGroupItemObj extends TestCase e.printStackTrace (); throw new StatusException ("Couldn't get a spreadsheet", e); } - + try { log.println ("Filling a table"); - + for (int i = 1; i < mMaxFieldIndex; i++) { oSheet.getCellByPosition (i, 0).setFormula ("Col" + i); @@ -170,7 +170,7 @@ public class ScDataPilotFieldGroupItemObj extends TestCase oSheet2.getCellByPosition (i, 0).setFormula ("Col" + i); oSheet2.getCellByPosition (0, i).setFormula ("Row" + i); } - + for (int i = 1; i < mMaxFieldIndex; i++) { for (int j = 1; j < mMaxFieldIndex; j++) @@ -179,35 +179,35 @@ public class ScDataPilotFieldGroupItemObj extends TestCase oSheet2.getCellByPosition (i, j).setValue (i * (j + 2)); } } - + oSheet.getCellByPosition (1, 1).setFormula ("aName"); oSheet.getCellByPosition (1, 2).setFormula ("otherName"); oSheet.getCellByPosition (1, 3).setFormula ("una"); oSheet.getCellByPosition (1, 4).setFormula ("otherName"); oSheet.getCellByPosition (1, 5).setFormula ("somethingelse"); - + } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace (); throw new StatusException ("Couldn't fill some cells", e); } - + // change a value of a cell and check the change in the data pilot // (for the XDataPilotTable.refresh() test) Object oChangeCell = null; Object oCheckCell = null; Integer aChangeValue = null; - + try { // cell of data oChangeCell = oSheet.getCellByPosition (1, 5); - + int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - - + + // cell of the data pilot output oCheckCell = oSheet.getCellByPosition (x, y); aChangeValue = new Integer (27); @@ -217,20 +217,20 @@ public class ScDataPilotFieldGroupItemObj extends TestCase e.printStackTrace (); throw new StatusException ("Couldn't get cells for changeing.", e); } - - + + // create the test objects log.println ("Getting test objects"); - + XDataPilotTablesSupplier DPTS = (XDataPilotTablesSupplier) UnoRuntime.queryInterface ( XDataPilotTablesSupplier.class, oSheet); XDataPilotTables DPT = DPTS.getDataPilotTables (); XDataPilotDescriptor DPDsc = DPT.createDataPilotDescriptor (); DPDsc.setSourceRange (sCellRangeAdress); - - XPropertySet fieldPropSet = null; - + + XPropertySet fieldPropSet = null; + try { Object oDataPilotField = DPDsc.getDataPilotFields ().getByIndex (0); @@ -276,14 +276,14 @@ public class ScDataPilotFieldGroupItemObj extends TestCase e.printStackTrace (); throw new StatusException ("Couldn't create a test environment", e); } - + log.println ("Insert the DataPilotTable"); - + if (DPT.hasByName ("DataPilotTable")) { DPT.removeByName ("DataPilotTable"); } - + DPT.insertNewByName ("DataPilotTable", sCellAdress, DPDsc); XIndexAccess xIA = (XIndexAccess) UnoRuntime.queryInterface (XIndexAccess.class,DPTS.getDataPilotTables ()); XIndexAccess IA = null; @@ -311,7 +311,7 @@ public class ScDataPilotFieldGroupItemObj extends TestCase e.printStackTrace (); throw new StatusException ("Couldn't get data pilot field", e); } - + try { XDataPilotFieldGrouping dpfg = (XDataPilotFieldGrouping) UnoRuntime.queryInterface (XDataPilotFieldGrouping.class, datapilotfield); @@ -333,7 +333,7 @@ public class ScDataPilotFieldGroupItemObj extends TestCase { e.printStackTrace (); throw new StatusException ("Couldn't get data pilot field", e); - } + } for (int i=0;i<IA.getCount ();i++) { datapilotfield = (XInterface) AnyConverter.toObject ( @@ -348,7 +348,7 @@ public class ScDataPilotFieldGroupItemObj extends TestCase } } groups = dpgi.Groups; - XIndexAccess groupAccess = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, groups); + XIndexAccess groupAccess = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, groups); XNameAccess groupNames = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, groupAccess.getByIndex(0)); oObj = (XInterface) UnoRuntime.queryInterface(XInterface.class, groupNames.getByName("aName")); } @@ -356,16 +356,16 @@ public class ScDataPilotFieldGroupItemObj extends TestCase { e.printStackTrace (); } - + log.println ("Creating object - " + ((oObj == null) ? "FAILED" : "OK")); - + TestEnvironment tEnv = new TestEnvironment (oObj); - + log.println ("Implementationname: " + util.utils.getImplName (oObj)); - + // Other parameters required for interface tests return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java index 71a699175c85..fab644979093 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.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 @@ -60,13 +60,13 @@ import util.SOfficeFactory; public class ScDataPilotFieldGroupObj extends TestCase { static XSpreadsheetDocument xSheetDoc = null; - + /** * A field is filled some values. This integer determines the size of the * field in x and y direction. */ private int mMaxFieldIndex = 6; - + /** * Creates Spreadsheet document. */ @@ -74,7 +74,7 @@ public class ScDataPilotFieldGroupObj extends TestCase { SOfficeFactory SOF = SOfficeFactory.getFactory ( (XMultiServiceFactory) tParam.getMSF ()); - + try { log.println ("creating a Spreadsheet document"); @@ -87,30 +87,30 @@ public class ScDataPilotFieldGroupObj extends TestCase throw new StatusException ("Couldn't create document", e); } } - + /** * Disposes Spreadsheet document. */ protected void cleanup (TestParameters tParam, PrintWriter log) { log.println (" disposing xSheetDoc "); - + XComponent oComp = (XComponent) UnoRuntime.queryInterface ( XComponent.class, xSheetDoc); util.DesktopTools.closeDoc (oComp); } - + protected synchronized TestEnvironment createTestEnvironment (TestParameters Param, PrintWriter log) { XInterface oObj = null; XInterface datapilotfield = null; XInterface groups = null; - + // creation of testobject here // first we write what we are intend to do to log file log.println ("Creating a test environment"); - + // the cell range CellRangeAddress sCellRangeAdress = new CellRangeAddress (); sCellRangeAdress.Sheet = 0; @@ -118,21 +118,21 @@ public class ScDataPilotFieldGroupObj extends TestCase sCellRangeAdress.StartRow = 0; sCellRangeAdress.EndColumn = mMaxFieldIndex - 1; sCellRangeAdress.EndRow = mMaxFieldIndex - 1; - + // position of the data pilot table CellAddress sCellAdress = new CellAddress (); sCellAdress.Sheet = 0; sCellAdress.Column = 7; sCellAdress.Row = 8; - + log.println ("Getting a sheet"); - + XSpreadsheets xSpreadsheets = (XSpreadsheets) xSheetDoc.getSheets (); XSpreadsheet oSheet = null; XSpreadsheet oSheet2 = null; XIndexAccess oIndexAccess = (XIndexAccess) UnoRuntime.queryInterface ( XIndexAccess.class, xSpreadsheets); - + try { oSheet = (XSpreadsheet) AnyConverter.toObject ( @@ -157,11 +157,11 @@ public class ScDataPilotFieldGroupObj extends TestCase e.printStackTrace (); throw new StatusException ("Couldn't get a spreadsheet", e); } - + try { log.println ("Filling a table"); - + for (int i = 1; i < mMaxFieldIndex; i++) { oSheet.getCellByPosition (i, 0).setFormula ("Col" + i); @@ -169,7 +169,7 @@ public class ScDataPilotFieldGroupObj extends TestCase oSheet2.getCellByPosition (i, 0).setFormula ("Col" + i); oSheet2.getCellByPosition (0, i).setFormula ("Row" + i); } - + for (int i = 1; i < mMaxFieldIndex; i++) { for (int j = 1; j < mMaxFieldIndex; j++) @@ -178,35 +178,35 @@ public class ScDataPilotFieldGroupObj extends TestCase oSheet2.getCellByPosition (i, j).setValue (i * (j + 2)); } } - + oSheet.getCellByPosition (1, 1).setFormula ("aName"); oSheet.getCellByPosition (1, 2).setFormula ("otherName"); oSheet.getCellByPosition (1, 3).setFormula ("una"); oSheet.getCellByPosition (1, 4).setFormula ("otherName"); oSheet.getCellByPosition (1, 5).setFormula ("somethingelse"); - + } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace (); throw new StatusException ("Couldn't fill some cells", e); } - + // change a value of a cell and check the change in the data pilot // (for the XDataPilotTable.refresh() test) Object oChangeCell = null; Object oCheckCell = null; Integer aChangeValue = null; - + try { // cell of data oChangeCell = oSheet.getCellByPosition (1, 5); - + int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - - + + // cell of the data pilot output oCheckCell = oSheet.getCellByPosition (x, y); aChangeValue = new Integer (27); @@ -216,20 +216,20 @@ public class ScDataPilotFieldGroupObj extends TestCase e.printStackTrace (); throw new StatusException ("Couldn't get cells for changeing.", e); } - - + + // create the test objects log.println ("Getting test objects"); - + XDataPilotTablesSupplier DPTS = (XDataPilotTablesSupplier) UnoRuntime.queryInterface ( XDataPilotTablesSupplier.class, oSheet); XDataPilotTables DPT = DPTS.getDataPilotTables (); XDataPilotDescriptor DPDsc = DPT.createDataPilotDescriptor (); DPDsc.setSourceRange (sCellRangeAdress); - - XPropertySet fieldPropSet = null; - + + XPropertySet fieldPropSet = null; + try { Object oDataPilotField = DPDsc.getDataPilotFields ().getByIndex (0); @@ -275,14 +275,14 @@ public class ScDataPilotFieldGroupObj extends TestCase e.printStackTrace (); throw new StatusException ("Couldn't create a test environment", e); } - + log.println ("Insert the DataPilotTable"); - + if (DPT.hasByName ("DataPilotTable")) { DPT.removeByName ("DataPilotTable"); } - + DPT.insertNewByName ("DataPilotTable", sCellAdress, DPDsc); XIndexAccess xIA = (XIndexAccess) UnoRuntime.queryInterface (XIndexAccess.class,DPTS.getDataPilotTables ()); XIndexAccess IA = null; @@ -310,7 +310,7 @@ public class ScDataPilotFieldGroupObj extends TestCase e.printStackTrace (); throw new StatusException ("Couldn't get data pilot field", e); } - + try { XDataPilotFieldGrouping dpfg = (XDataPilotFieldGrouping) UnoRuntime.queryInterface (XDataPilotFieldGrouping.class, datapilotfield); @@ -332,7 +332,7 @@ public class ScDataPilotFieldGroupObj extends TestCase { e.printStackTrace (); throw new StatusException ("Couldn't get data pilot field", e); - } + } for (int i=0;i<IA.getCount ();i++) { datapilotfield = (XInterface) AnyConverter.toObject ( @@ -354,16 +354,16 @@ public class ScDataPilotFieldGroupObj extends TestCase { e.printStackTrace (); } - + log.println ("Creating object - " + ((oObj == null) ? "FAILED" : "OK")); - + TestEnvironment tEnv = new TestEnvironment (oObj); - + log.println ("Implementationname: " + util.utils.getImplName (oObj)); - + // Other parameters required for interface tests return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java index 152c1d82a09a..5045ed93647a 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.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 @@ -60,13 +60,13 @@ import util.SOfficeFactory; public class ScDataPilotFieldGroupsObj extends TestCase { static XSpreadsheetDocument xSheetDoc = null; - + /** * A field is filled some values. This integer determines the size of the * field in x and y direction. */ private int mMaxFieldIndex = 6; - + /** * Creates Spreadsheet document. */ @@ -74,7 +74,7 @@ public class ScDataPilotFieldGroupsObj extends TestCase { SOfficeFactory SOF = SOfficeFactory.getFactory ( (XMultiServiceFactory) tParam.getMSF ()); - + try { log.println ("creating a Spreadsheet document"); @@ -87,30 +87,30 @@ public class ScDataPilotFieldGroupsObj extends TestCase throw new StatusException ("Couldn't create document", e); } } - + /** * Disposes Spreadsheet document. */ protected void cleanup (TestParameters tParam, PrintWriter log) { log.println (" disposing xSheetDoc "); - + XComponent oComp = (XComponent) UnoRuntime.queryInterface ( XComponent.class, xSheetDoc); util.DesktopTools.closeDoc (oComp); } - + protected synchronized TestEnvironment createTestEnvironment (TestParameters Param, PrintWriter log) { XInterface oObj = null; XInterface datapilotfield = null; - - + + // creation of testobject here // first we write what we are intend to do to log file log.println ("Creating a test environment"); - + // the cell range CellRangeAddress sCellRangeAdress = new CellRangeAddress (); sCellRangeAdress.Sheet = 0; @@ -118,21 +118,21 @@ public class ScDataPilotFieldGroupsObj extends TestCase sCellRangeAdress.StartRow = 0; sCellRangeAdress.EndColumn = mMaxFieldIndex - 1; sCellRangeAdress.EndRow = mMaxFieldIndex - 1; - + // position of the data pilot table CellAddress sCellAdress = new CellAddress (); sCellAdress.Sheet = 0; sCellAdress.Column = 7; sCellAdress.Row = 8; - + log.println ("Getting a sheet"); - + XSpreadsheets xSpreadsheets = (XSpreadsheets) xSheetDoc.getSheets (); XSpreadsheet oSheet = null; XSpreadsheet oSheet2 = null; XIndexAccess oIndexAccess = (XIndexAccess) UnoRuntime.queryInterface ( XIndexAccess.class, xSpreadsheets); - + try { oSheet = (XSpreadsheet) AnyConverter.toObject ( @@ -157,11 +157,11 @@ public class ScDataPilotFieldGroupsObj extends TestCase e.printStackTrace (); throw new StatusException ("Couldn't get a spreadsheet", e); } - + try { log.println ("Filling a table"); - + for (int i = 1; i < mMaxFieldIndex; i++) { oSheet.getCellByPosition (i, 0).setFormula ("Col" + i); @@ -169,7 +169,7 @@ public class ScDataPilotFieldGroupsObj extends TestCase oSheet2.getCellByPosition (i, 0).setFormula ("Col" + i); oSheet2.getCellByPosition (0, i).setFormula ("Row" + i); } - + for (int i = 1; i < mMaxFieldIndex; i++) { for (int j = 1; j < mMaxFieldIndex; j++) @@ -178,35 +178,35 @@ public class ScDataPilotFieldGroupsObj extends TestCase oSheet2.getCellByPosition (i, j).setValue (i * (j + 2)); } } - + oSheet.getCellByPosition (1, 1).setFormula ("aName"); oSheet.getCellByPosition (1, 2).setFormula ("otherName"); oSheet.getCellByPosition (1, 3).setFormula ("una"); oSheet.getCellByPosition (1, 4).setFormula ("otherName"); oSheet.getCellByPosition (1, 5).setFormula ("somethingelse"); - + } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace (); throw new StatusException ("Couldn't fill some cells", e); } - + // change a value of a cell and check the change in the data pilot // (for the XDataPilotTable.refresh() test) Object oChangeCell = null; Object oCheckCell = null; Integer aChangeValue = null; - + try { // cell of data oChangeCell = oSheet.getCellByPosition (1, 5); - + int x = sCellAdress.Column; int y = sCellAdress.Row + 3; - - + + // cell of the data pilot output oCheckCell = oSheet.getCellByPosition (x, y); aChangeValue = new Integer (27); @@ -216,20 +216,20 @@ public class ScDataPilotFieldGroupsObj extends TestCase e.printStackTrace (); throw new StatusException ("Couldn't get cells for changeing.", e); } - - + + // create the test objects log.println ("Getting test objects"); - + XDataPilotTablesSupplier DPTS = (XDataPilotTablesSupplier) UnoRuntime.queryInterface ( XDataPilotTablesSupplier.class, oSheet); XDataPilotTables DPT = DPTS.getDataPilotTables (); XDataPilotDescriptor DPDsc = DPT.createDataPilotDescriptor (); DPDsc.setSourceRange (sCellRangeAdress); - - XPropertySet fieldPropSet = null; - + + XPropertySet fieldPropSet = null; + try { Object oDataPilotField = DPDsc.getDataPilotFields ().getByIndex (0); @@ -275,14 +275,14 @@ public class ScDataPilotFieldGroupsObj extends TestCase e.printStackTrace (); throw new StatusException ("Couldn't create a test environment", e); } - + log.println ("Insert the DataPilotTable"); - + if (DPT.hasByName ("DataPilotTable")) { DPT.removeByName ("DataPilotTable"); } - + DPT.insertNewByName ("DataPilotTable", sCellAdress, DPDsc); XIndexAccess xIA = (XIndexAccess) UnoRuntime.queryInterface (XIndexAccess.class,DPTS.getDataPilotTables ()); XIndexAccess IA = null; @@ -310,7 +310,7 @@ public class ScDataPilotFieldGroupsObj extends TestCase e.printStackTrace (); throw new StatusException ("Couldn't get data pilot field", e); } - + try { XDataPilotFieldGrouping dpfg = (XDataPilotFieldGrouping) UnoRuntime.queryInterface (XDataPilotFieldGrouping.class, datapilotfield); @@ -332,7 +332,7 @@ public class ScDataPilotFieldGroupsObj extends TestCase { e.printStackTrace (); throw new StatusException ("Couldn't get data pilot field", e); - } + } for (int i=0;i<IA.getCount ();i++) { datapilotfield = (XInterface) AnyConverter.toObject ( @@ -352,16 +352,16 @@ public class ScDataPilotFieldGroupsObj extends TestCase { e.printStackTrace (); } - + log.println ("Creating object - " + ((oObj == null) ? "FAILED" : "OK")); - + TestEnvironment tEnv = new TestEnvironment (oObj); - + log.println ("Implementationname: " + util.utils.getImplName (oObj)); - + // Other parameters required for interface tests return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java index c19e8dab3b36..27f2da2a8a6b 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.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 @@ -124,7 +124,7 @@ public class ScDataPilotFieldObj extends TestCase { * @see com.sun.star.sheet.XDataPilotTablesSupplier * @see com.sun.star.sheet.XDataPilotDescriptor */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -157,10 +157,10 @@ public class ScDataPilotFieldObj extends TestCase { try { oSheet = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class), + new Type(XSpreadsheet.class), oIndexAccess.getByIndex(0)); oSheet2 = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class), + new Type(XSpreadsheet.class), oIndexAccess.getByIndex(1)); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(); @@ -220,7 +220,7 @@ public class ScDataPilotFieldObj extends TestCase { log.println("Getting test objects"); XDataPilotTablesSupplier DPTS = (XDataPilotTablesSupplier) UnoRuntime.queryInterface( - XDataPilotTablesSupplier.class, + XDataPilotTablesSupplier.class, oSheet); XDataPilotTables DPT = DPTS.getDataPilotTables(); XDataPilotDescriptor DPDsc = DPT.createDataPilotDescriptor(); @@ -241,9 +241,9 @@ public class ScDataPilotFieldObj extends TestCase { } try { - fieldPropSet.setPropertyValue("Function", + fieldPropSet.setPropertyValue("Function", com.sun.star.sheet.GeneralFunction.SUM); - fieldPropSet.setPropertyValue("Orientation", + fieldPropSet.setPropertyValue("Orientation", com.sun.star.sheet.DataPilotFieldOrientation.DATA); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(); @@ -284,7 +284,7 @@ public class ScDataPilotFieldObj extends TestCase { throw new StatusException("Couldn't get data pilot field", e); } - log.println("Creating object - " + + log.println("Creating object - " + ((oObj == null) ? "FAILED" : "OK")); TestEnvironment tEnv = new TestEnvironment(oObj); @@ -318,7 +318,7 @@ public class ScDataPilotFieldObj extends TestCase { return; } - XNamed named = (XNamed) UnoRuntime.queryInterface(XNamed.class, + XNamed named = (XNamed) UnoRuntime.queryInterface(XNamed.class, field); String name = named.getName(); @@ -333,35 +333,35 @@ public class ScDataPilotFieldObj extends TestCase { try { switch (cnt % 5) { case 0: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.COLUMN); log.println(" Column"); break; case 1: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.ROW); log.println(" Row"); break; case 2: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.DATA); log.println(" Data"); break; case 3: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.HIDDEN); log.println(" Hidden"); break; case 4: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.PAGE); log.println(" Page"); diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.java index a8de7196baba..8ef56fbc041d 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldsObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java index c50a32775416..b2c0b6c4bff9 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.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 @@ -125,7 +125,7 @@ public class ScDataPilotItemObj extends TestCase { * @see com.sun.star.sheet.XDataPilotTablesSupplier * @see com.sun.star.sheet.XDataPilotDescriptor */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -158,10 +158,10 @@ public class ScDataPilotItemObj extends TestCase { try { oSheet = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class), + new Type(XSpreadsheet.class), oIndexAccess.getByIndex(0)); oSheet2 = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class), + new Type(XSpreadsheet.class), oIndexAccess.getByIndex(1)); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(); @@ -221,7 +221,7 @@ public class ScDataPilotItemObj extends TestCase { log.println("Getting test objects"); XDataPilotTablesSupplier DPTS = (XDataPilotTablesSupplier) UnoRuntime.queryInterface( - XDataPilotTablesSupplier.class, + XDataPilotTablesSupplier.class, oSheet); XDataPilotTables DPT = DPTS.getDataPilotTables(); XDataPilotDescriptor DPDsc = DPT.createDataPilotDescriptor(); @@ -242,9 +242,9 @@ public class ScDataPilotItemObj extends TestCase { } try { - fieldPropSet.setPropertyValue("Function", + fieldPropSet.setPropertyValue("Function", com.sun.star.sheet.GeneralFunction.SUM); - fieldPropSet.setPropertyValue("Orientation", + fieldPropSet.setPropertyValue("Orientation", com.sun.star.sheet.DataPilotFieldOrientation.DATA); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(); @@ -285,7 +285,7 @@ public class ScDataPilotItemObj extends TestCase { throw new StatusException("Couldn't get data pilot field", e); } - log.println("Creating object - " + + log.println("Creating object - " + ((oObj == null) ? "FAILED" : "OK")); XDataPilotField xDataPilotField = (XDataPilotField) UnoRuntime.queryInterface( @@ -294,7 +294,7 @@ public class ScDataPilotItemObj extends TestCase { XIndexAccess xIA = xDataPilotField.getItems(); try { - oObj = (XInterface) UnoRuntime.queryInterface(XInterface.class, + oObj = (XInterface) UnoRuntime.queryInterface(XInterface.class, xIA.getByIndex(0)); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { log.println("Couldn't get DataPilotItemObj"); @@ -336,7 +336,7 @@ public class ScDataPilotItemObj extends TestCase { return; } - XNamed named = (XNamed) UnoRuntime.queryInterface(XNamed.class, + XNamed named = (XNamed) UnoRuntime.queryInterface(XNamed.class, field); String name = named.getName(); @@ -351,35 +351,35 @@ public class ScDataPilotItemObj extends TestCase { try { switch (cnt % 5) { case 0: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.COLUMN); log.println(" Column"); break; case 1: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.ROW); log.println(" Row"); break; case 2: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.DATA); log.println(" Data"); break; case 3: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.HIDDEN); log.println(" Hidden"); break; case 4: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.PAGE); log.println(" Page"); diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java index ac9971b3c778..c3d0df45cbe2 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.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 @@ -125,7 +125,7 @@ public class ScDataPilotItemsObj extends TestCase { * @see com.sun.star.sheet.XDataPilotTablesSupplier * @see com.sun.star.sheet.XDataPilotDescriptor */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -158,10 +158,10 @@ public class ScDataPilotItemsObj extends TestCase { try { oSheet = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class), + new Type(XSpreadsheet.class), oIndexAccess.getByIndex(0)); oSheet2 = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class), + new Type(XSpreadsheet.class), oIndexAccess.getByIndex(1)); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(); @@ -221,7 +221,7 @@ public class ScDataPilotItemsObj extends TestCase { log.println("Getting test objects"); XDataPilotTablesSupplier DPTS = (XDataPilotTablesSupplier) UnoRuntime.queryInterface( - XDataPilotTablesSupplier.class, + XDataPilotTablesSupplier.class, oSheet); XDataPilotTables DPT = DPTS.getDataPilotTables(); XDataPilotDescriptor DPDsc = DPT.createDataPilotDescriptor(); @@ -242,9 +242,9 @@ public class ScDataPilotItemsObj extends TestCase { } try { - fieldPropSet.setPropertyValue("Function", + fieldPropSet.setPropertyValue("Function", com.sun.star.sheet.GeneralFunction.SUM); - fieldPropSet.setPropertyValue("Orientation", + fieldPropSet.setPropertyValue("Orientation", com.sun.star.sheet.DataPilotFieldOrientation.DATA); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(); @@ -285,7 +285,7 @@ public class ScDataPilotItemsObj extends TestCase { throw new StatusException("Couldn't get data pilot field", e); } - log.println("Creating object - " + + log.println("Creating object - " + ((oObj == null) ? "FAILED" : "OK")); XDataPilotField xDataPilotField = (XDataPilotField) UnoRuntime.queryInterface( @@ -324,7 +324,7 @@ public class ScDataPilotItemsObj extends TestCase { return; } - XNamed named = (XNamed) UnoRuntime.queryInterface(XNamed.class, + XNamed named = (XNamed) UnoRuntime.queryInterface(XNamed.class, field); String name = named.getName(); @@ -339,35 +339,35 @@ public class ScDataPilotItemsObj extends TestCase { try { switch (cnt % 5) { case 0: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.COLUMN); log.println(" Column"); break; case 1: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.ROW); log.println(" Row"); break; case 2: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.DATA); log.println(" Data"); break; case 3: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.HIDDEN); log.println(" Hidden"); break; case 4: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.PAGE); log.println(" Page"); diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java index 290c2d9c07b2..015b94b7f31f 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.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 @@ -282,13 +282,13 @@ public class ScDataPilotTableObj extends TestCase { return tEnv; } - /** + /** * Create a new DataPilot table output for use with testing XDataPilotTable2 - * interface. - * + * interface. + * * @param oSheet current sheet instance * @param srcRange source range - * @param tEnv test environment instance + * @param tEnv test environment instance */ private void createTable2(XSpreadsheet oSheet, CellRangeAddress srcRange, TestEnvironment tEnv) { @@ -303,7 +303,7 @@ public class ScDataPilotTableObj extends TestCase { int fieldCount = xIA.getCount() - 1; // skip the last field because it's always hidden. try { - for (int i = 0; i < fieldCount; ++i) + for (int i = 0; i < fieldCount; ++i) { Object o = xIA.getByIndex(i); XPropertySet fieldPropSet = (XPropertySet)UnoRuntime.queryInterface( diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java index 27ce48595b7c..73a174902fb9 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java index 0b9a71c860a3..d10a1a792340 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangeObj.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 @@ -128,7 +128,7 @@ public class ScDatabaseRangeObj extends TestCase { * @see com.sun.star.sheet.DatabaseRange * @see com.sun.star.table.CellRangeAddress */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -149,10 +149,10 @@ public class ScDatabaseRangeObj extends TestCase { try { Object sheet = sheets.getByName(names[0]); - xImp = (XImportable) UnoRuntime.queryInterface(XImportable.class, + xImp = (XImportable) UnoRuntime.queryInterface(XImportable.class, sheet); dbRanges = (XDatabaseRanges) AnyConverter.toObject( - new Type(XDatabaseRanges.class), + new Type(XDatabaseRanges.class), docProps.getPropertyValue("DatabaseRanges")); _doImport(xImp); } catch (com.sun.star.lang.WrappedTargetException e) { @@ -184,20 +184,20 @@ public class ScDatabaseRangeObj extends TestCase { try { String[] dbNames = dbrNA.getElementNames(); - xNamed = (XNamed) UnoRuntime.queryInterface(XNamed.class, + xNamed = (XNamed) UnoRuntime.queryInterface(XNamed.class, dbrNA.getByName( dbNames[0])); xNamed.setName("dbRange"); XCellRangeReferrer aReferrer = (XCellRangeReferrer) UnoRuntime.queryInterface( - XCellRangeReferrer.class, + XCellRangeReferrer.class, dbrNA.getByName("dbRange")); XCellRangeAddressable aRangeA = (XCellRangeAddressable) UnoRuntime.queryInterface( - XCellRangeAddressable.class, + XCellRangeAddressable.class, aReferrer.getReferredCells()); aRange = aRangeA.getRangeAddress(); oObj = (XInterface) AnyConverter.toObject( - new Type(XInterface.class), + new Type(XInterface.class), dbrNA.getByName("dbRange")); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(log); @@ -228,12 +228,12 @@ public class ScDatabaseRangeObj extends TestCase { } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(log); throw new StatusException( - "Error getting of first spreadsheet from spreadsheet" + + "Error getting of first spreadsheet from spreadsheet" + " document", e); } catch (com.sun.star.container.NoSuchElementException e) { e.printStackTrace(log); throw new StatusException( - "Error getting of first spreadsheet from spreadsheet" + + "Error getting of first spreadsheet from spreadsheet" + " document", e); } diff --git a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangesObj.java b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangesObj.java index 1125628c357e..06b8d3e17c74 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDatabaseRangesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDatabaseRangesObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration.java b/qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration.java index afcae57deb47..f15d109ce413 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration.java +++ b/qadevOOo/tests/java/mod/_sc/ScDocumentConfiguration.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 @@ -68,10 +68,10 @@ public class ScDocumentConfiguration extends TestCase { DesktopTools.closeDoc(xSheetDoc); } - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { XMultiServiceFactory docMSF = (XMultiServiceFactory) UnoRuntime.queryInterface( - XMultiServiceFactory.class, + XMultiServiceFactory.class, xSheetDoc); Object oObj = null; diff --git a/qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java b/qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java index a01dd8441fc9..4a6e1eaea16c 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDrawPageObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDrawPageObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScDrawPagesObj.java b/qadevOOo/tests/java/mod/_sc/ScDrawPagesObj.java index ce766e056f66..ec1ccf069fc5 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDrawPagesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDrawPagesObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase.java b/qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase.java index 2477eb8230d1..abcdb81ab116 100644 --- a/qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase.java +++ b/qadevOOo/tests/java/mod/_sc/ScFilterDescriptorBase.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScFunctionDescriptionObj.java b/qadevOOo/tests/java/mod/_sc/ScFunctionDescriptionObj.java index 9360a2301205..719a55ded4f7 100644 --- a/qadevOOo/tests/java/mod/_sc/ScFunctionDescriptionObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScFunctionDescriptionObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScFunctionListObj.java b/qadevOOo/tests/java/mod/_sc/ScFunctionListObj.java index 19762e3897e3..3b171bde6432 100644 --- a/qadevOOo/tests/java/mod/_sc/ScFunctionListObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScFunctionListObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScHeaderFieldObj.java b/qadevOOo/tests/java/mod/_sc/ScHeaderFieldObj.java index e8180fa2f255..5f3ce09f8f61 100644 --- a/qadevOOo/tests/java/mod/_sc/ScHeaderFieldObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScHeaderFieldObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj.java b/qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj.java index 25cbc68fa9c4..97fcf84ad8d2 100644 --- a/qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScHeaderFieldsObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java index 2d3719cf8fa4..a71077cd26d6 100644 --- a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterContentObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor.java b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor.java index 521d754da79a..13083444297e 100644 --- a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor.java +++ b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextCursor.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj.java b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj.java index 38495bbc8673..a70cef7b7304 100644 --- a/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScHeaderFooterTextObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java b/qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java index a3bd6160657c..ef70232f14a9 100644 --- a/qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java +++ b/qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java index 33066b04432c..1224cc0cbb8c 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAnnotationsEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java index 787c0e33881d..1f98b8e902c8 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.java index 0406f914622c..9034de739054 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DDELinksEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotFieldsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotFieldsEnumeration.java index 955fb407b22e..3b1d914205f7 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotFieldsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotFieldsEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java index 5755966c0ed2..3474f22f84f4 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.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 @@ -127,7 +127,7 @@ public class ScIndexEnumeration_DataPilotItemsEnumeration * @see com.sun.star.sheet.XDataPilotTablesSupplier * @see com.sun.star.sheet.XDataPilotDescriptor */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -160,10 +160,10 @@ public class ScIndexEnumeration_DataPilotItemsEnumeration try { oSheet = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class), + new Type(XSpreadsheet.class), oIndexAccess.getByIndex(0)); oSheet2 = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class), + new Type(XSpreadsheet.class), oIndexAccess.getByIndex(1)); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(); @@ -223,7 +223,7 @@ public class ScIndexEnumeration_DataPilotItemsEnumeration log.println("Getting test objects"); XDataPilotTablesSupplier DPTS = (XDataPilotTablesSupplier) UnoRuntime.queryInterface( - XDataPilotTablesSupplier.class, + XDataPilotTablesSupplier.class, oSheet); XDataPilotTables DPT = DPTS.getDataPilotTables(); XDataPilotDescriptor DPDsc = DPT.createDataPilotDescriptor(); @@ -244,9 +244,9 @@ public class ScIndexEnumeration_DataPilotItemsEnumeration } try { - fieldPropSet.setPropertyValue("Function", + fieldPropSet.setPropertyValue("Function", com.sun.star.sheet.GeneralFunction.SUM); - fieldPropSet.setPropertyValue("Orientation", + fieldPropSet.setPropertyValue("Orientation", com.sun.star.sheet.DataPilotFieldOrientation.DATA); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(); @@ -287,14 +287,14 @@ public class ScIndexEnumeration_DataPilotItemsEnumeration throw new StatusException("Couldn't get data pilot field", e); } - log.println("Creating object - " + + log.println("Creating object - " + ((oObj == null) ? "FAILED" : "OK")); XDataPilotField xDataPilotField = (XDataPilotField) UnoRuntime.queryInterface( XDataPilotField.class, oObj); XEnumerationAccess xEnumerationAccess = (XEnumerationAccess) UnoRuntime.queryInterface( - XEnumerationAccess.class, + XEnumerationAccess.class, xDataPilotField.getItems()); oObj = xEnumerationAccess.createEnumeration(); @@ -330,7 +330,7 @@ public class ScIndexEnumeration_DataPilotItemsEnumeration return; } - XNamed named = (XNamed) UnoRuntime.queryInterface(XNamed.class, + XNamed named = (XNamed) UnoRuntime.queryInterface(XNamed.class, field); String name = named.getName(); @@ -345,35 +345,35 @@ public class ScIndexEnumeration_DataPilotItemsEnumeration try { switch (cnt % 5) { case 0: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.COLUMN); log.println(" Column"); break; case 1: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.ROW); log.println(" Row"); break; case 2: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.DATA); log.println(" Data"); break; case 3: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.HIDDEN); log.println(" Hidden"); break; case 4: - props.setPropertyValue("Orientation", + props.setPropertyValue("Orientation", DataPilotFieldOrientation.PAGE); log.println(" Page"); diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java index 652623f2ef74..0b7bdabaf6b7 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.java index 314c5884952b..bf1b874d92ca 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DatabaseRangesEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration.java index 017920b57d02..03f890e1b28b 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_FunctionDescriptionEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_LabelRangesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_LabelRangesEnumeration.java index 6a07462a0df9..594868d0e65a 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_LabelRangesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_LabelRangesEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java index 080a454fac51..b66cb993eb97 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_NamedRangesEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_ScenariosEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_ScenariosEnumeration.java index f8ca5d66c8b3..3f17dd472e8b 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_ScenariosEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_ScenariosEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetCellRangesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetCellRangesEnumeration.java index 5001a02da185..9094469f690d 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetCellRangesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetCellRangesEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java index e91b153dcbab..769f031a53cc 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SheetLinksEnumeration.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 @@ -108,7 +108,7 @@ public class ScIndexEnumeration_SheetLinksEnumeration extends TestCase { XSheetLinkable SL = (XSheetLinkable) UnoRuntime.queryInterface(XSheetLinkable.class, oSheet); - // creating link. + // creating link. String aSourceArea = util.utils.getFullTestURL("calcshapes.sxc"); SL.link(aSourceArea, "Sheet1", "", "", com.sun.star.sheet.SheetLinkMode.VALUE); diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java index d369c81ec336..22779ea482f6 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration.java index 325472ed724a..439d22b55cc9 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetsEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration.java index 83c3b22e9f70..6659a68f8965 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SubTotalFieldsEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableAutoFormatEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableAutoFormatEnumeration.java index a399e095fed8..8212b7828f1a 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableAutoFormatEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableAutoFormatEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration.java index f1beaf8ad87b..25097fd9d9f0 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableChartsEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration.java index d6e3267daf0f..a5a018cea24f 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableColumnsEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration.java index 13c5a2939703..9dd0e2f21410 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableConditionalEntryEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableRowsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableRowsEnumeration.java index 52e362fab9aa..0892f58acc16 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableRowsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TableRowsEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java index 6f1c23f614ce..95065d5d72f4 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScLabelRangeObj.java b/qadevOOo/tests/java/mod/_sc/ScLabelRangeObj.java index 59e7850f15fc..bafb8cd3d68f 100644 --- a/qadevOOo/tests/java/mod/_sc/ScLabelRangeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScLabelRangeObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java b/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java index c1e3b57e2b63..6808d2f6401a 100644 --- a/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScLabelRangesObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScModelObj.java b/qadevOOo/tests/java/mod/_sc/ScModelObj.java index 6dd93942ff6b..52223953c94a 100644 --- a/qadevOOo/tests/java/mod/_sc/ScModelObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScModelObj.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 @@ -97,7 +97,7 @@ public class ScModelObj extends TestCase { XComponent.class, xSpreadsheetDoc); util.DesktopTools.closeDoc(oComp); - oComp = (XComponent) UnoRuntime.queryInterface(XComponent.class, + oComp = (XComponent) UnoRuntime.queryInterface(XComponent.class, xSecondsheetDoc); util.DesktopTools.closeDoc(oComp); } @@ -124,7 +124,7 @@ public class ScModelObj extends TestCase { * </ul> * @see */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { // creation of the testobject here // first we write what we are intend to do to log file @@ -155,9 +155,9 @@ public class ScModelObj extends TestCase { throw new StatusException("Couldn't create document ", e); } - XModel model1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel model1 = (XModel) UnoRuntime.queryInterface(XModel.class, xSpreadsheetDoc); - XModel model2 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel model2 = (XModel) UnoRuntime.queryInterface(XModel.class, xSecondsheetDoc); XInterface oObj = model1; @@ -180,7 +180,7 @@ public class ScModelObj extends TestCase { XIndexAccess oIndexSheets = (XIndexAccess) UnoRuntime.queryInterface( XIndexAccess.class, oSheets); XSpreadsheet oSheet = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class), + new Type(XSpreadsheet.class), oIndexSheets.getByIndex(0)); log.println("Getting a cell from sheet"); @@ -190,7 +190,7 @@ public class ScModelObj extends TestCase { oSheet.getCellByPosition(5, 5).setValue(10); oSheet.getCellByPosition(6, 5).setFormula("= E6 * F6"); xCalculatableCells = new XCell[]{ - oSheet.getCellByPosition(4, 5), + oSheet.getCellByPosition(4, 5), oSheet.getCellByPosition(5, 5), oSheet.getCellByPosition(6, 5) }; @@ -225,8 +225,8 @@ public class ScModelObj extends TestCase { } _XPrintJobBroadcaster.MyPrintJobListener listener = new _XPrintJobBroadcaster.MyPrintJobListener(oObj, fileName); tEnv.addObjRelation("XPrintJobBroadcaster.XPrintJobListener", listener); - + return tEnv; } - + } // finish class ScModelObj diff --git a/qadevOOo/tests/java/mod/_sc/ScNamedRangeObj.java b/qadevOOo/tests/java/mod/_sc/ScNamedRangeObj.java index 9be7b474161a..2fcac156fca3 100644 --- a/qadevOOo/tests/java/mod/_sc/ScNamedRangeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScNamedRangeObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScNamedRangesObj.java b/qadevOOo/tests/java/mod/_sc/ScNamedRangesObj.java index b7ed2add02c6..ef9ad060e0dc 100644 --- a/qadevOOo/tests/java/mod/_sc/ScNamedRangesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScNamedRangesObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScRecentFunctionsObj.java b/qadevOOo/tests/java/mod/_sc/ScRecentFunctionsObj.java index 30f9de40250f..aeaa0a4eab65 100644 --- a/qadevOOo/tests/java/mod/_sc/ScRecentFunctionsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScRecentFunctionsObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScScenariosObj.java b/qadevOOo/tests/java/mod/_sc/ScScenariosObj.java index aae4b08ba19e..51f284453e77 100644 --- a/qadevOOo/tests/java/mod/_sc/ScScenariosObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScScenariosObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScShapeObj.java b/qadevOOo/tests/java/mod/_sc/ScShapeObj.java index 1257498a53fd..e8953bb3efdf 100644 --- a/qadevOOo/tests/java/mod/_sc/ScShapeObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScShapeObj.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 @@ -45,7 +45,7 @@ import com.sun.star.uno.XInterface; public class ScShapeObj extends TestCase { static XComponent xSheetDoc; - + protected void initialize( TestParameters tParam, PrintWriter log ) { SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() ); @@ -107,9 +107,9 @@ public class ScShapeObj extends TestCase { // create test environment here TestEnvironment tEnv = new TestEnvironment( oShape ); - + log.println("Implementation name: "+util.utils.getImplName(oObj)); - tEnv.addObjRelation("DOCUMENT",xSheetDoc); + tEnv.addObjRelation("DOCUMENT",xSheetDoc); return tEnv; } // finish method getTestEnvironment diff --git a/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java b/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java index 1a6fa837dbce..8af7acd39fa6 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScSheetLinkObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java b/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java index ada0b9d5cd1c..9f7fb9a2d32f 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScSheetLinksObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScSortDescriptorBase.java b/qadevOOo/tests/java/mod/_sc/ScSortDescriptorBase.java index c193eef05d1c..74ffdf1a8928 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSortDescriptorBase.java +++ b/qadevOOo/tests/java/mod/_sc/ScSortDescriptorBase.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettings.java b/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettings.java index eb5b9760a8ee..98a7d7658353 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettings.java +++ b/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettings.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj.java b/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj.java index 98016c8b5cf9..a38071cb4041 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScSpreadsheetSettingsObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java b/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java index a9601a671554..fd5d58a5039a 100644 --- a/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScStyleFamiliesObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java b/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java index 3c90df65111e..128acaa84d4c 100644 --- a/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScStyleObj.java b/qadevOOo/tests/java/mod/_sc/ScStyleObj.java index 44181500ce9f..7937aebb549f 100644 --- a/qadevOOo/tests/java/mod/_sc/ScStyleObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScStyleObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase.java b/qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase.java index f353d6a2f547..eb821d2fabbe 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase.java +++ b/qadevOOo/tests/java/mod/_sc/ScSubTotalDescriptorBase.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 @@ -140,10 +140,10 @@ public class ScSubTotalDescriptorBase extends TestCase { column.Column = 3; column.Function = GeneralFunction.SUM; columns[0] = column; - + XSubTotalDescriptor desc = xSTC.createSubTotalDescriptor(true); desc.addNew(columns, 1); - + XInterface oObj = desc; TestEnvironment tEnv = new TestEnvironment(oObj); diff --git a/qadevOOo/tests/java/mod/_sc/ScSubTotalFieldObj.java b/qadevOOo/tests/java/mod/_sc/ScSubTotalFieldObj.java index ffe5db10607b..0282e18c11f0 100644 --- a/qadevOOo/tests/java/mod/_sc/ScSubTotalFieldObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScSubTotalFieldObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScTabViewObj.java b/qadevOOo/tests/java/mod/_sc/ScTabViewObj.java index d90f91b43ab0..6431bcaeeb66 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTabViewObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTabViewObj.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 @@ -95,15 +95,15 @@ import com.sun.star.uno.XInterface; public class ScTabViewObj extends TestCase { public static XSpreadsheetDocument xSpreadsheetDoc; public static XSpreadsheetDocument xSpreadsheetDoc2; - + /** * Creates Spreadsheet document. */ public void initialize( TestParameters Param, PrintWriter log ) { // get a soffice factory object - + SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF()); - + try { log.println("creating two spreadsheet documents"); xSpreadsheetDoc = SOF.createCalcDoc(null); @@ -116,7 +116,7 @@ public class ScTabViewObj extends TestCase { throw new StatusException( "Couldn't create document ", e ); } } - + /** * Disposes Spreadsheet document. */ @@ -129,7 +129,7 @@ public class ScTabViewObj extends TestCase { UnoRuntime.queryInterface(XComponent.class, xSpreadsheetDoc2) ; util.DesktopTools.closeDoc(oComp2); } - + /** * Creating a Testenvironment for the interfaces to be tested. * Retieves the current controller of the spreadsheet document using the @@ -147,18 +147,18 @@ public class ScTabViewObj extends TestCase { */ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XDrawPage oDrawPage = null; - + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xSpreadsheetDoc); - + XModel aSecondModel = (XModel) UnoRuntime.queryInterface(XModel.class, xSpreadsheetDoc2); - + XInterface oObj = aModel.getCurrentController(); - + log.println("getting sheets"); XSpreadsheets xSpreadsheets = (XSpreadsheets)xSpreadsheetDoc.getSheets(); - + log.println("getting a sheet"); XSpreadsheet oSheet = null; XIndexAccess oIndexAccess = (XIndexAccess) @@ -176,17 +176,17 @@ public class ScTabViewObj extends TestCase { e.printStackTrace(log); throw new StatusException( "Couldn't get a spreadsheet", e); } - + TestEnvironment tEnv = new TestEnvironment(oObj); - + tEnv.addObjRelation("XDispatchProvider.URL", ".uno:Copy") ; - + log.println("adding 'Sheet' as ObjRelation"); tEnv.addObjRelation("Sheet", oSheet); tEnv.addObjRelation("Frame",aModel.getCurrentController().getFrame()); tEnv.addObjRelation("SecondModel",aSecondModel); tEnv.addObjRelation("FirstModel",aModel); - + //Relation for XControlAccess tEnv.addObjRelation("DOCUMENT", UnoRuntime.queryInterface(XComponent.class,xSpreadsheetDoc)); tEnv.addObjRelation("XControlAccess.isSheet", Boolean.TRUE); @@ -204,10 +204,10 @@ public class ScTabViewObj extends TestCase { e.printStackTrace(log); throw new StatusException("Couldn't get some cell", e); } - + Object[] selections = {oSheet, cellRange, cell_1, cell_2}; tEnv.addObjRelation("Selections", selections); - + tEnv.addObjRelation("Comparer", new Comparator() { public int compare(Object o1, Object o2) { XCellRangeAddressable adr1 = (XCellRangeAddressable) @@ -222,26 +222,26 @@ public class ScTabViewObj extends TestCase { public boolean equals(Object obj) { return compare(this, obj) == 0; } }); - + tEnv.addObjRelation("XUserInputInterception.XModel", aModel); - + // XForm for com.sun.star.view.XFormLayerAccess - + XForm myForm = null; String kindOfControl="CommandButton"; XShape aShape = null; try{ log.println("adding contol shape '" + kindOfControl + "'"); XComponent oComp = (XComponent) UnoRuntime.queryInterface(XComponent.class, xSpreadsheetDoc) ; - + aShape = FormTools.createControlShape(oComp, 3000, 4500, 15000, 10000, kindOfControl); - + } catch (Exception e){ e.printStackTrace(log); throw new StatusException("Couldn't create following control shape : '" + kindOfControl + "': ", e); } - + log.println("adding relation for com.sun.star.view.XFormLayerAccess: XForm"); try { log.println( "getting Drawpages" ); @@ -254,7 +254,7 @@ public class ScTabViewObj extends TestCase { new Type(XDrawPage.class),oDP.getByIndex(0)); if (oDrawPage == null) log.println("ERROR: could not get DrawPage: null"); - + oDrawPage.add(aShape); log.println("getting XForm"); XNameContainer xForm = FormTools.getForms(oDrawPage); @@ -279,5 +279,5 @@ public class ScTabViewObj extends TestCase { } return tEnv; } - + } // finish class ScTabViewObj diff --git a/qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java b/qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java index e3f0f54d0e94..541de2ee0c9c 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableColumnObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScTableColumnsObj.java b/qadevOOo/tests/java/mod/_sc/ScTableColumnsObj.java index 6dca3b67d4bb..c93b5fcf8f51 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableColumnsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableColumnsObj.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 @@ -109,7 +109,7 @@ public class ScTableColumnsObj extends TestCase { * @see com.sun.star.table.TableColumns */ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { - + XInterface oObj = null; // creation of the testobject here diff --git a/qadevOOo/tests/java/mod/_sc/ScTableConditionalEntry.java b/qadevOOo/tests/java/mod/_sc/ScTableConditionalEntry.java index b427536b3dba..ad91ad4b5712 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableConditionalEntry.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableConditionalEntry.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat.java b/qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat.java index c873ba5e4367..9dc73573ef9d 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableConditionalFormat.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScTableRowObj.java b/qadevOOo/tests/java/mod/_sc/ScTableRowObj.java index 077cbf26c4c1..f4db946d2a3a 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableRowObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableRowObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScTableRowsObj.java b/qadevOOo/tests/java/mod/_sc/ScTableRowsObj.java index 17e45dc1fb59..46ac8fddc1ab 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableRowsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableRowsObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java b/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java index f6355fe0de86..d50e80008079 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.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 @@ -190,7 +190,7 @@ public class ScTableSheetObj extends TestCase { * </ul> * @see com.sun.star.sheet.XArrayFormulaRange */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -206,7 +206,7 @@ public class ScTableSheetObj extends TestCase { try { oSheet = (XSpreadsheet) AnyConverter.toObject( - new Type(XSpreadsheet.class), + new Type(XSpreadsheet.class), oIndexAccess.getByIndex(0)); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(log); @@ -241,38 +241,38 @@ public class ScTableSheetObj extends TestCase { log.println("creating a new environment for object"); TestEnvironment tEnv = new TestEnvironment(oObj); - + // do not execute com::sun::star::sheets::XCellSeries::fillAuto() tEnv.addObjRelation("XCELLSERIES_FILLAUTO", new Boolean(false)); // set the adress ranges of the cells (see values set above): for e.g. XSheetOutline test - tEnv.addObjRelation("CellRangeAddress", + tEnv.addObjRelation("CellRangeAddress", new CellRangeAddress((short)0, 6, 6, 8, 8)); - tEnv.addObjRelation("CellRangeSubAddress", + tEnv.addObjRelation("CellRangeSubAddress", new CellRangeAddress((short)0, 6, 6, 7, 8)); // pick a cell with a formula for XSheetAuditing, a dependent cell and a precedent cell tEnv.addObjRelation("XSheetAuditing.CellAddress", new CellAddress((short)0, 8, 6)); tEnv.addObjRelation("XSheetAuditing.PrecedentCellAddress", new CellAddress((short)0, 7, 6)); tEnv.addObjRelation("XSheetAuditing.DependentCellAddress", new CellAddress((short)0, 9, 6)); - + // add an existing sheet for linking tEnv.addObjRelation("XSheetLinkable.LinkSheet", "ScSheetLinksObj.sdc"); - + //adding Scenario and with that a ScenarioSheet-Relation for Scenario and XScenarioEnhanced XScenariosSupplier scene = (XScenariosSupplier) UnoRuntime.queryInterface( - XScenariosSupplier.class, + XScenariosSupplier.class, tEnv.getTestObject()); scene.getScenarios() - .addNewByName("Scenario", + .addNewByName("Scenario", new CellRangeAddress[] { new CellRangeAddress((short) 0, 0, 0, 10, 10) }, "Comment"); XSpreadsheet sSheet = null; - + try { sSheet = (XSpreadsheet) UnoRuntime.queryInterface( - XSpreadsheet.class, + XSpreadsheet.class, xSpreadsheets.getByName("Scenario")); } catch (com.sun.star.container.NoSuchElementException e) { log.println("Couldn't get Scenario"); @@ -282,7 +282,7 @@ public class ScTableSheetObj extends TestCase { tEnv.addObjRelation("ScenarioSheet", sSheet); - log.println("adding ObjRelation 'noArray' to avoid the test" + + log.println("adding ObjRelation 'noArray' to avoid the test" + " 'XArrayFormulaRange'"); tEnv.addObjRelation("noArray", "ScTableSheetObj"); @@ -300,17 +300,17 @@ public class ScTableSheetObj extends TestCase { expectedResults[_XCellRangesQuery.QUERYINTERSECTION] = "Sheet1.D4"; expectedResults[_XCellRangesQuery.QUERYROWDIFFERENCES] = "Sheet1.A5;Sheet1.C1"; expectedResults[_XCellRangesQuery.QUERYVISIBLECELLS] = "Sheet1.A2"; - tEnv.addObjRelation("XCellRangesQuery.EXPECTEDRESULTS", + tEnv.addObjRelation("XCellRangesQuery.EXPECTEDRESULTS", expectedResults); // for XFormulaQuery interface test try { - tEnv.addObjRelation("MAKEENTRYINCELL", + tEnv.addObjRelation("MAKEENTRYINCELL", oSheet.getCellByPosition(15, 15)); tEnv.addObjRelation("RANGEINDICES", new int[] { 0, 0 }); - tEnv.addObjRelation("EXPECTEDDEPENDENTVALUES", + tEnv.addObjRelation("EXPECTEDDEPENDENTVALUES", new int[] { 0, 255, 0, 65535 }); - tEnv.addObjRelation("EXPECTEDPRECEDENTVALUES", + tEnv.addObjRelation("EXPECTEDPRECEDENTVALUES", new int[] { 0, 255, 0, 65535 }); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { log.println( @@ -319,9 +319,9 @@ public class ScTableSheetObj extends TestCase { // XSearchable interface test try { - tEnv.addObjRelation("XSearchable.MAKEENTRYINCELL", + tEnv.addObjRelation("XSearchable.MAKEENTRYINCELL", new XCell[] { - oSheet.getCellByPosition(15, 15), + oSheet.getCellByPosition(15, 15), oSheet.getCellByPosition(15, 16) }); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { @@ -333,7 +333,7 @@ public class ScTableSheetObj extends TestCase { //Adding relation for util.XSortable final PrintWriter finalLog = log; final XCellRange oTable = oSheet; - tEnv.addObjRelation("SORTCHECKER", + tEnv.addObjRelation("SORTCHECKER", new ifc.util._XSortable.XSortChecker() { PrintWriter out = finalLog; @@ -352,7 +352,7 @@ public class ScTableSheetObj extends TestCase { } } - public boolean checkSort(boolean isSortNumbering, + public boolean checkSort(boolean isSortNumbering, boolean isSortAscending) { out.println("Sort checking..."); @@ -376,16 +376,16 @@ public class ScTableSheetObj extends TestCase { String[] vals = { value[0], value[1], value[2], value[3] }; res = ValueComparer.equalValue(vals, rightVal); out.println("Expected 3, 4, 23, b"); - out.println("getting: " + value[0] + ", " + - value[1] + ", " + value[2] + ", " + + out.println("getting: " + value[0] + ", " + + value[1] + ", " + value[2] + ", " + value[3]); } else { String[] rightVal = { "b", "23", "4", "3" }; String[] vals = { value[0], value[1], value[2], value[3] }; res = ValueComparer.equalValue(vals, rightVal); out.println("Expected b, 23, 4, 3"); - out.println("getting: " + value[0] + ", " + - value[1] + ", " + value[2] + ", " + + out.println("getting: " + value[0] + ", " + + value[1] + ", " + value[2] + ", " + value[3]); } } else { @@ -393,15 +393,15 @@ public class ScTableSheetObj extends TestCase { String[] rightVal = { "3", "4", "23", "b" }; res = ValueComparer.equalValue(value, rightVal); out.println("Expected 3, 4, 23, b"); - out.println("getting: " + value[0] + ", " + - value[1] + ", " + value[2] + ", " + + out.println("getting: " + value[0] + ", " + + value[1] + ", " + value[2] + ", " + value[3]); } else { String[] rightVal = { "b", "23", "4", "3" }; res = ValueComparer.equalValue(value, rightVal); out.println("Expected b, 23, 4, 3"); - out.println("getting: " + value[0] + ", " + - value[1] + ", " + value[2] + ", " + + out.println("getting: " + value[0] + ", " + + value[1] + ", " + value[2] + ", " + value[3]); } } diff --git a/qadevOOo/tests/java/mod/_sc/ScTableSheetsObj.java b/qadevOOo/tests/java/mod/_sc/ScTableSheetsObj.java index c31f692b8e51..4559c6fc0765 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableSheetsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableSheetsObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScTableValidationObj.java b/qadevOOo/tests/java/mod/_sc/ScTableValidationObj.java index 972e1e010f55..63b78fc806af 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableValidationObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableValidationObj.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 diff --git a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java index 1068af55b063..1d6e96564b6f 100644 --- a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.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 @@ -75,12 +75,12 @@ public class ScUniqueCellFormatsEnumeration extends TestCase { * Disposes Spreadsheet document. */ protected void cleanup(TestParameters tParam, PrintWriter log) { - //add this lines after synchronisation + //add this lines after synchronisation //log.println(" disposing xSheetDoc "); //DesktopTools.closeDoc(xSheetDoc); } - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("Getting the first sheet"); @@ -107,11 +107,11 @@ public class ScUniqueCellFormatsEnumeration extends TestCase { changeColor("D1:D10", 0, 255, 0); XUniqueCellFormatRangesSupplier xUCRS = (XUniqueCellFormatRangesSupplier) UnoRuntime.queryInterface( - XUniqueCellFormatRangesSupplier.class, + XUniqueCellFormatRangesSupplier.class, oSheet); XEnumerationAccess xEnum = (XEnumerationAccess) UnoRuntime.queryInterface( - XEnumerationAccess.class, + XEnumerationAccess.class, xUCRS.getUniqueCellFormatRanges()); XInterface oObj = xEnum.createEnumeration(); log.println("Implementationname: " + util.utils.getImplName(oObj)); @@ -119,7 +119,7 @@ public class ScUniqueCellFormatsEnumeration extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); tEnv.addObjRelation("ExpectedCount", new Integer(4)); - + return tEnv; } diff --git a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.java b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.java index e85fcb2bb4c5..049f3f672ef2 100644 --- a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.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 @@ -74,12 +74,12 @@ public class ScUniqueCellFormatsObj extends TestCase { * Disposes Spreadsheet document. */ protected void cleanup(TestParameters tParam, PrintWriter log) { - //add this lines after synchronisation + //add this lines after synchronisation //log.println(" disposing xSheetDoc "); //DesktopTools.closeDoc(xSheetDoc); } - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("Getting the first sheet"); @@ -106,7 +106,7 @@ public class ScUniqueCellFormatsObj extends TestCase { changeColor("D1:D10", 0, 255, 0); XUniqueCellFormatRangesSupplier xUCRS = (XUniqueCellFormatRangesSupplier) UnoRuntime.queryInterface( - XUniqueCellFormatRangesSupplier.class, + XUniqueCellFormatRangesSupplier.class, oSheet); XInterface oObj = xUCRS.getUniqueCellFormatRanges(); diff --git a/qadevOOo/tests/java/mod/_sc/ScViewPaneObj.java b/qadevOOo/tests/java/mod/_sc/ScViewPaneObj.java index cf8bbce0843b..88e2a0fd87d2 100644 --- a/qadevOOo/tests/java/mod/_sc/ScViewPaneObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScViewPaneObj.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 @@ -75,14 +75,14 @@ public class ScViewPaneObj extends TestCase { static private XSpreadsheetDocument xSpreadsheetDoc; static private SOfficeFactory SOF; static private XInterface oObj; - + /** * Creates Spreadsheet document. */ public void initialize( TestParameters Param, PrintWriter log ) { // get a soffice factory object SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF()); - + try { log.println("creating a spreadsheetdocument"); xSpreadsheetDoc = SOF.createCalcDoc(null); @@ -91,7 +91,7 @@ public class ScViewPaneObj extends TestCase { throw new StatusException( "Couldn't create document ", e ); } } - + /** * Disposes Spreadsheet document. */ @@ -101,7 +101,7 @@ public class ScViewPaneObj extends TestCase { UnoRuntime.queryInterface(XComponent.class, xSpreadsheetDoc); util.DesktopTools.closeDoc(oComp); } - + /** * Creating a Testenvironment for the interfaces to be tested. * Retieves the current controller of the spreadsheet document using the @@ -119,7 +119,7 @@ public class ScViewPaneObj extends TestCase { */ protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XDrawPage oDrawPage; - + XModel xm = (XModel) UnoRuntime.queryInterface(XModel.class, xSpreadsheetDoc); XController xc = xm.getCurrentController(); @@ -138,36 +138,36 @@ public class ScViewPaneObj extends TestCase { e.printStackTrace(log); throw new StatusException("Couldn't get by index", e); } - + TestEnvironment tEnv = new TestEnvironment(oObj); - + //Relation for XControlAccess tEnv.addObjRelation("DOCUMENT", UnoRuntime.queryInterface(XComponent.class,xSpreadsheetDoc)); tEnv.addObjRelation("XControlAccess.isSheet", Boolean.TRUE); - + XViewPane VP = (XViewPane) UnoRuntime.queryInterface(XViewPane.class, oObj); CellRangeAddress dataArea = VP.getVisibleRange(); tEnv.addObjRelation("DATAAREA", dataArea); - + // XForm for com.sun.star.view.XFormLayerAccess log.println("adding relation for com.sun.star.view.XFormLayerAccess: XForm"); - + XForm myForm = null; String kindOfControl="CommandButton"; XShape aShape = null; try{ log.println("adding contol shape '" + kindOfControl + "'"); XComponent oComp = (XComponent) UnoRuntime.queryInterface(XComponent.class, xSpreadsheetDoc) ; - + aShape = FormTools.createControlShape(oComp, 3000, 4500, 15000, 10000, kindOfControl); - + } catch (Exception e){ e.printStackTrace(log); throw new StatusException("Couldn't create following control shape : '" + kindOfControl + "': ", e); } - + try { log.println( "getting Drawpages" ); XDrawPagesSupplier oDPS = (XDrawPagesSupplier) @@ -179,7 +179,7 @@ public class ScViewPaneObj extends TestCase { new Type(XDrawPage.class),oDP.getByIndex(0)); if (oDrawPage == null) log.println("ERROR: could not get DrawPage: null"); - + oDrawPage.add(aShape); log.println("getting XForm"); XNameContainer xForm = FormTools.getForms(oDrawPage); @@ -202,7 +202,7 @@ public class ScViewPaneObj extends TestCase { } catch (com.sun.star.lang.IllegalArgumentException ex) { log.println("ERROR: could not add ObjectRelation 'XFormLayerAccess.XForm': " + ex.toString()); } - + return tEnv; } } diff --git a/qadevOOo/tests/java/mod/_sc/XMLContentExporter.java b/qadevOOo/tests/java/mod/_sc/XMLContentExporter.java index 56a9ec8e6579..4defeb81b290 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLContentExporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLContentExporter.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 @@ -147,7 +147,7 @@ public class XMLContentExporter extends TestCase { new Type(XSpreadsheet.class),xSheetsIndexArray.getByIndex(0)); XCell xCell = xSheet.getCellByPosition(0, 0); xCell.setFormula(CELL_TEXT); - + log.println("fill sheet 1 with contnet..."); util.CalcTools.fillCalcSheetWithContent(xSheetDoc, 1, 1, 1, 5, 5); diff --git a/qadevOOo/tests/java/mod/_sc/XMLContentImporter.java b/qadevOOo/tests/java/mod/_sc/XMLContentImporter.java index 26c8851c741d..9026c664d90a 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLContentImporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLContentImporter.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 diff --git a/qadevOOo/tests/java/mod/_sc/XMLExporter.java b/qadevOOo/tests/java/mod/_sc/XMLExporter.java index f7a038f5dd88..1e2454c52bb0 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLExporter.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 @@ -145,10 +145,10 @@ public class XMLExporter extends TestCase { XNamed xSheetNamed = (XNamed) UnoRuntime.queryInterface(XNamed.class, xSheet); xSheetNamed.setName(SHEET_NAME); - + log.println("fill sheet with contnet..."); util.CalcTools.fillCalcSheetWithContent(xSheet, 3, 3, 50, 50); - + } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log) ; throw new StatusException("Can't create component.", e) ; diff --git a/qadevOOo/tests/java/mod/_sc/XMLImporter.java b/qadevOOo/tests/java/mod/_sc/XMLImporter.java index 64e9225bed02..3f6c9d69c51e 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLImporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLImporter.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 diff --git a/qadevOOo/tests/java/mod/_sc/XMLMetaExporter.java b/qadevOOo/tests/java/mod/_sc/XMLMetaExporter.java index 02c5cfb566f7..c6ae9c78bd46 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLMetaExporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLMetaExporter.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 @@ -148,10 +148,10 @@ public class XMLMetaExporter extends TestCase { XPropertySet docInfo = (XPropertySet) UnoRuntime.queryInterface (XPropertySet.class, infoSup.getDocumentInfo()) ; docInfo.setPropertyValue("Title", "TestDocument"); - + log.println("fill sheet 1 with contnet..."); util.CalcTools.fillCalcSheetWithContent(xSheetDoc,1, 3, 3, 50, 50); - + } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log) ; throw new StatusException("Can't create environment.", e) ; diff --git a/qadevOOo/tests/java/mod/_sc/XMLMetaImporter.java b/qadevOOo/tests/java/mod/_sc/XMLMetaImporter.java index 29deca17e424..9ddce92e1766 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLMetaImporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLMetaImporter.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 diff --git a/qadevOOo/tests/java/mod/_sc/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_sc/XMLSettingsExporter.java index 04c3cbc76c2a..9126221adf69 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLSettingsExporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLSettingsExporter.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 @@ -141,9 +141,9 @@ public class XMLSettingsExporter extends TestCase { XPropertySet xPropSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xController); xPropSet.setPropertyValue("ShowGrid", "false"); - + util.CalcTools.fillCalcSheetWithContent(xSheetDoc,1, 3, 3, 50, 50); - + } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log) ; throw new StatusException("Can't create component.", e) ; diff --git a/qadevOOo/tests/java/mod/_sc/XMLSettingsImporter.java b/qadevOOo/tests/java/mod/_sc/XMLSettingsImporter.java index 72954a3aa93f..68b2df5b5f0f 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLSettingsImporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLSettingsImporter.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 diff --git a/qadevOOo/tests/java/mod/_sc/XMLStylesExporter.java b/qadevOOo/tests/java/mod/_sc/XMLStylesExporter.java index f0f5f387e0ef..51671d8d279c 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLStylesExporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLStylesExporter.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 @@ -147,7 +147,7 @@ public class XMLStylesExporter extends TestCase { XStyleFamiliesSupplier.class, xSheetDoc); XNameAccess StyleFamilies = styleSup.getStyleFamilies(); String[] styleFamiliesNames = StyleFamilies.getElementNames(); - XNameContainer StyleFamilyName = (XNameContainer) + XNameContainer StyleFamilyName = (XNameContainer) AnyConverter.toObject(new Type(XNameContainer.class), StyleFamilies.getByName(styleFamiliesNames[0])); Object SC = SOF.createInstance( @@ -155,10 +155,10 @@ public class XMLStylesExporter extends TestCase { XStyle StyleCell = (XStyle) UnoRuntime.queryInterface(XStyle.class,SC); StyleFamilyName.insertByName(newName, StyleCell); - + log.println("fill sheet 1 with contnet..."); util.CalcTools.fillCalcSheetWithContent(xSheetDoc, 1, 3, 3, 50, 100); - + } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log); throw new StatusException("Can't create environment.", e); diff --git a/qadevOOo/tests/java/mod/_sc/XMLStylesImporter.java b/qadevOOo/tests/java/mod/_sc/XMLStylesImporter.java index 7454ff849e42..a9bec3a769fc 100644 --- a/qadevOOo/tests/java/mod/_sc/XMLStylesImporter.java +++ b/qadevOOo/tests/java/mod/_sc/XMLStylesImporter.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 diff --git a/qadevOOo/tests/java/mod/_sch/AccArea.java b/qadevOOo/tests/java/mod/_sch/AccArea.java index b371f1950558..3c2a0553b53b 100644 --- a/qadevOOo/tests/java/mod/_sch/AccArea.java +++ b/qadevOOo/tests/java/mod/_sch/AccArea.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 diff --git a/qadevOOo/tests/java/mod/_sch/AccAxis.java b/qadevOOo/tests/java/mod/_sch/AccAxis.java index 2cdecae03aca..f566c2178d7d 100644 --- a/qadevOOo/tests/java/mod/_sch/AccAxis.java +++ b/qadevOOo/tests/java/mod/_sch/AccAxis.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 diff --git a/qadevOOo/tests/java/mod/_sch/AccDataPoint.java b/qadevOOo/tests/java/mod/_sch/AccDataPoint.java index 3e94364a0559..2be986c8dd6e 100644 --- a/qadevOOo/tests/java/mod/_sch/AccDataPoint.java +++ b/qadevOOo/tests/java/mod/_sch/AccDataPoint.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 diff --git a/qadevOOo/tests/java/mod/_sch/AccDataSeries.java b/qadevOOo/tests/java/mod/_sch/AccDataSeries.java index 2d5ec4fde1d5..7d0869150f63 100644 --- a/qadevOOo/tests/java/mod/_sch/AccDataSeries.java +++ b/qadevOOo/tests/java/mod/_sch/AccDataSeries.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 diff --git a/qadevOOo/tests/java/mod/_sch/AccDiagram.java b/qadevOOo/tests/java/mod/_sch/AccDiagram.java index 9b7f90766fdd..cafb821be171 100644 --- a/qadevOOo/tests/java/mod/_sch/AccDiagram.java +++ b/qadevOOo/tests/java/mod/_sch/AccDiagram.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 diff --git a/qadevOOo/tests/java/mod/_sch/AccFloor.java b/qadevOOo/tests/java/mod/_sch/AccFloor.java index 37d56815983d..d41d88a73509 100644 --- a/qadevOOo/tests/java/mod/_sch/AccFloor.java +++ b/qadevOOo/tests/java/mod/_sch/AccFloor.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 diff --git a/qadevOOo/tests/java/mod/_sch/AccGrid.java b/qadevOOo/tests/java/mod/_sch/AccGrid.java index 268f53ec8b3d..0cf1cbb2ed49 100644 --- a/qadevOOo/tests/java/mod/_sch/AccGrid.java +++ b/qadevOOo/tests/java/mod/_sch/AccGrid.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 diff --git a/qadevOOo/tests/java/mod/_sch/AccLegend.java b/qadevOOo/tests/java/mod/_sch/AccLegend.java index aa46cdb8407d..f04b8f8916bb 100644 --- a/qadevOOo/tests/java/mod/_sch/AccLegend.java +++ b/qadevOOo/tests/java/mod/_sch/AccLegend.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 diff --git a/qadevOOo/tests/java/mod/_sch/AccLegendEntry.java b/qadevOOo/tests/java/mod/_sch/AccLegendEntry.java index 61c221df57e0..89f5adf86b99 100644 --- a/qadevOOo/tests/java/mod/_sch/AccLegendEntry.java +++ b/qadevOOo/tests/java/mod/_sch/AccLegendEntry.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 diff --git a/qadevOOo/tests/java/mod/_sch/AccStatisticsObject.java b/qadevOOo/tests/java/mod/_sch/AccStatisticsObject.java index aafe91fdd3d4..79c820d74ebe 100644 --- a/qadevOOo/tests/java/mod/_sch/AccStatisticsObject.java +++ b/qadevOOo/tests/java/mod/_sch/AccStatisticsObject.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 diff --git a/qadevOOo/tests/java/mod/_sch/AccTitle.java b/qadevOOo/tests/java/mod/_sch/AccTitle.java index 0639f19ca4cc..17ad8808d6e8 100644 --- a/qadevOOo/tests/java/mod/_sch/AccTitle.java +++ b/qadevOOo/tests/java/mod/_sch/AccTitle.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 diff --git a/qadevOOo/tests/java/mod/_sch/AccWall.java b/qadevOOo/tests/java/mod/_sch/AccWall.java index 66779421cc0b..96b2aed3ca50 100644 --- a/qadevOOo/tests/java/mod/_sch/AccWall.java +++ b/qadevOOo/tests/java/mod/_sch/AccWall.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 diff --git a/qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.java b/qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.java index 9031680f93f1..d52e5a37ff2e 100644 --- a/qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.java +++ b/qadevOOo/tests/java/mod/_sch/AccessibleDocumentView.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 diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartAxis.java b/qadevOOo/tests/java/mod/_sch/ChXChartAxis.java index f796d5530a9c..786456d27381 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXChartAxis.java +++ b/qadevOOo/tests/java/mod/_sch/ChXChartAxis.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 diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartData.java b/qadevOOo/tests/java/mod/_sch/ChXChartData.java index 3236e345b8e6..861cd2b807c6 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXChartData.java +++ b/qadevOOo/tests/java/mod/_sch/ChXChartData.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 diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartDataArray.java b/qadevOOo/tests/java/mod/_sch/ChXChartDataArray.java index 14caeefff8c1..b9db27d44582 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXChartDataArray.java +++ b/qadevOOo/tests/java/mod/_sch/ChXChartDataArray.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 diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartDocument.java b/qadevOOo/tests/java/mod/_sch/ChXChartDocument.java index deafa9922043..423a9f473457 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXChartDocument.java +++ b/qadevOOo/tests/java/mod/_sch/ChXChartDocument.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 @@ -115,7 +115,7 @@ public class ChXChartDocument extends TestCase { * @see com.sun.star.chart.XChartData * @see com.sun.star.chart.ChartDocument */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters tParam, + protected synchronized TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( @@ -159,7 +159,7 @@ public class ChXChartDocument extends TestCase { tEnv.addObjRelation("CONT2", cont2); log.println("adding another Diagram as mod relation to environment"); - tEnv.addObjRelation("DIAGRAM", + tEnv.addObjRelation("DIAGRAM", SOF.createDiagram(xChartDoc, "PieDiagram")); log.println("adding another ChartData as mod relation to environment"); diff --git a/qadevOOo/tests/java/mod/_sch/ChXChartView.java b/qadevOOo/tests/java/mod/_sch/ChXChartView.java index f5476f2d0643..9a8ada525fa3 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXChartView.java +++ b/qadevOOo/tests/java/mod/_sch/ChXChartView.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 diff --git a/qadevOOo/tests/java/mod/_sch/ChXDataPoint.java b/qadevOOo/tests/java/mod/_sch/ChXDataPoint.java index 0c1647684c75..078571d5df9c 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXDataPoint.java +++ b/qadevOOo/tests/java/mod/_sch/ChXDataPoint.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 diff --git a/qadevOOo/tests/java/mod/_sch/ChXDataRow.java b/qadevOOo/tests/java/mod/_sch/ChXDataRow.java index 69139ea5d902..5bb8d83ac3a8 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXDataRow.java +++ b/qadevOOo/tests/java/mod/_sch/ChXDataRow.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 diff --git a/qadevOOo/tests/java/mod/_sch/ChXDiagram.java b/qadevOOo/tests/java/mod/_sch/ChXDiagram.java index 908b947c4898..901467a89d33 100644 --- a/qadevOOo/tests/java/mod/_sch/ChXDiagram.java +++ b/qadevOOo/tests/java/mod/_sch/ChXDiagram.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 diff --git a/qadevOOo/tests/java/mod/_sch/ChartArea.java b/qadevOOo/tests/java/mod/_sch/ChartArea.java index 614327f94a1e..017a1be8a4f3 100644 --- a/qadevOOo/tests/java/mod/_sch/ChartArea.java +++ b/qadevOOo/tests/java/mod/_sch/ChartArea.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 diff --git a/qadevOOo/tests/java/mod/_sch/ChartGrid.java b/qadevOOo/tests/java/mod/_sch/ChartGrid.java index 73a44b810436..f863d134bceb 100644 --- a/qadevOOo/tests/java/mod/_sch/ChartGrid.java +++ b/qadevOOo/tests/java/mod/_sch/ChartGrid.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 diff --git a/qadevOOo/tests/java/mod/_sch/ChartLegend.java b/qadevOOo/tests/java/mod/_sch/ChartLegend.java index a0dd4fe3ec64..429e30d325ed 100644 --- a/qadevOOo/tests/java/mod/_sch/ChartLegend.java +++ b/qadevOOo/tests/java/mod/_sch/ChartLegend.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 diff --git a/qadevOOo/tests/java/mod/_sch/ChartLine.java b/qadevOOo/tests/java/mod/_sch/ChartLine.java index 950885060f5f..495bda11c4b7 100644 --- a/qadevOOo/tests/java/mod/_sch/ChartLine.java +++ b/qadevOOo/tests/java/mod/_sch/ChartLine.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 @@ -137,7 +137,7 @@ public class ChartLine extends TestCase { e.printStackTrace( log ); throw new StatusException( "Couldn't get Line", e ); } - + log.println( "creating a new environment for chartdocument object" ); TestEnvironment tEnv = new TestEnvironment( oObj ); diff --git a/qadevOOo/tests/java/mod/_sch/ChartTitle.java b/qadevOOo/tests/java/mod/_sch/ChartTitle.java index f88c938693bc..004599065969 100644 --- a/qadevOOo/tests/java/mod/_sch/ChartTitle.java +++ b/qadevOOo/tests/java/mod/_sch/ChartTitle.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 diff --git a/qadevOOo/tests/java/mod/_sd/AccessibleDrawDocumentView.java b/qadevOOo/tests/java/mod/_sd/AccessibleDrawDocumentView.java index b6f6bc4c881d..383e8eadcf16 100644 --- a/qadevOOo/tests/java/mod/_sd/AccessibleDrawDocumentView.java +++ b/qadevOOo/tests/java/mod/_sd/AccessibleDrawDocumentView.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 diff --git a/qadevOOo/tests/java/mod/_sd/AccessibleOutlineView.java b/qadevOOo/tests/java/mod/_sd/AccessibleOutlineView.java index a486bada5987..a5feffd8612a 100644 --- a/qadevOOo/tests/java/mod/_sd/AccessibleOutlineView.java +++ b/qadevOOo/tests/java/mod/_sd/AccessibleOutlineView.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 diff --git a/qadevOOo/tests/java/mod/_sd/AccessibleSlideView.java b/qadevOOo/tests/java/mod/_sd/AccessibleSlideView.java index 31c00288a561..0c78c06c592e 100644 --- a/qadevOOo/tests/java/mod/_sd/AccessibleSlideView.java +++ b/qadevOOo/tests/java/mod/_sd/AccessibleSlideView.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 @@ -78,7 +78,7 @@ public class AccessibleSlideView extends TestCase { XDrawPagesSupplier oDPS = (XDrawPagesSupplier) UnoRuntime.queryInterface(XDrawPagesSupplier.class, aModel); XDrawPages oDPn = oDPS.getDrawPages(); - + oDPn.insertNewByIndex(0); shortWait(); diff --git a/qadevOOo/tests/java/mod/_sd/DrawController_DrawView.java b/qadevOOo/tests/java/mod/_sd/DrawController_DrawView.java index be510ff1f98c..b8aa29b0c0c7 100644 --- a/qadevOOo/tests/java/mod/_sd/DrawController_DrawView.java +++ b/qadevOOo/tests/java/mod/_sd/DrawController_DrawView.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 @@ -262,7 +262,7 @@ public class DrawController_DrawView extends TestCase { tEnv.addObjRelation("FirstModel", aModel); tEnv.addObjRelation("XUserInputInterception.XModel", aModel); - + XFrame the_frame = aController2.getFrame(); tEnv.addObjRelation("Frame", the_frame); @@ -283,7 +283,7 @@ public class DrawController_DrawView extends TestCase { UnoRuntime.queryInterface(XModifiable.class,xDrawDoc); tEnv.addObjRelation("Modifiable",modify); - + tEnv.addObjRelation("XComponent.DisposeThis", xDrawDoc); return tEnv; diff --git a/qadevOOo/tests/java/mod/_sd/DrawController_HandoutView.java b/qadevOOo/tests/java/mod/_sd/DrawController_HandoutView.java index 40244836da1e..486a42d72402 100644 --- a/qadevOOo/tests/java/mod/_sd/DrawController_HandoutView.java +++ b/qadevOOo/tests/java/mod/_sd/DrawController_HandoutView.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 @@ -124,7 +124,7 @@ public class DrawController_HandoutView extends TestCase { * wait to allow frames to be loaded. Retrieves * the collection of the draw pages * from the first document and takes one of them. Inserts some shapes to the - * retrieved draw page. + * retrieved draw page. * Switch to the <b>HandoutMode</b>. * Obtains a current controller from the first document * using the interface <code>XModel</code>. The obtained controller is the @@ -223,7 +223,7 @@ public class DrawController_HandoutView extends TestCase { } utils.shortWait(500); - + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xDrawDoc); @@ -231,7 +231,7 @@ public class DrawController_HandoutView extends TestCase { log.println("bring first document to front..."); DesktopTools.bringWindowToFront(aModel); - + XModel aModel2 = (XModel) UnoRuntime.queryInterface(XModel.class, xSecondDrawDoc); @@ -265,7 +265,7 @@ public class DrawController_HandoutView extends TestCase { xShapes1.add(shape3); xShapes2.add(shape1); shortWait(); - + tEnv.addObjRelation("Selections", new Object[] { oDrawPage, oShapeCol1, oShapeCol2}); tEnv.addObjRelation("Comparer", new Comparator() { @@ -292,7 +292,7 @@ public class DrawController_HandoutView extends TestCase { tEnv.addObjRelation("FirstModel", aModel); tEnv.addObjRelation("XUserInputInterception.XModel", aModel); - + XFrame the_frame = the_Desk.getCurrentFrame(); tEnv.addObjRelation("Frame", the_frame); @@ -316,10 +316,10 @@ public class DrawController_HandoutView extends TestCase { UnoRuntime.queryInterface(XModifiable.class,xDrawDoc); tEnv.addObjRelation("Modifiable",modify); - + tEnv.addObjRelation("XComponent.DisposeThis", xDrawDoc); - + return tEnv; } // finish method getTestEnvironment diff --git a/qadevOOo/tests/java/mod/_sd/DrawController_NotesView.java b/qadevOOo/tests/java/mod/_sd/DrawController_NotesView.java index 73445b3d33c7..4164342158ec 100644 --- a/qadevOOo/tests/java/mod/_sd/DrawController_NotesView.java +++ b/qadevOOo/tests/java/mod/_sd/DrawController_NotesView.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 @@ -124,7 +124,7 @@ public class DrawController_NotesView extends TestCase { * wait to allow frames to be loaded. Retrieves * the collection of the draw pages * from the first document and takes one of them. Inserts some shapes to the - * retrieved draw page. + * retrieved draw page. * Switch to the <b>NotesMode</b>. * Obtains a current controller from the first document * using the interface <code>XModel</code>. The obtained controller is the @@ -220,7 +220,7 @@ public class DrawController_NotesView extends TestCase { } utils.shortWait(500); - + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xDrawDoc); @@ -228,7 +228,7 @@ public class DrawController_NotesView extends TestCase { log.println("bring first document to front..."); DesktopTools.bringWindowToFront(aModel); - + XModel aModel2 = (XModel) UnoRuntime.queryInterface(XModel.class, xSecondDrawDoc); @@ -262,7 +262,7 @@ public class DrawController_NotesView extends TestCase { xShapes1.add(shape3); xShapes2.add(shape1); shortWait(); - + tEnv.addObjRelation("Selections", new Object[] { oDrawPage, oShapeCol1, oShapeCol2}); tEnv.addObjRelation("Comparer", new Comparator() { @@ -289,7 +289,7 @@ public class DrawController_NotesView extends TestCase { tEnv.addObjRelation("FirstModel", aModel); tEnv.addObjRelation("XUserInputInterception.XModel", aModel); - + XFrame the_frame = the_Desk.getCurrentFrame(); tEnv.addObjRelation("Frame", the_frame); @@ -313,10 +313,10 @@ public class DrawController_NotesView extends TestCase { UnoRuntime.queryInterface(XModifiable.class,xDrawDoc); tEnv.addObjRelation("Modifiable",modify); - + tEnv.addObjRelation("XComponent.DisposeThis", xDrawDoc); - + return tEnv; } // finish method getTestEnvironment diff --git a/qadevOOo/tests/java/mod/_sd/DrawController_OutlineView.java b/qadevOOo/tests/java/mod/_sd/DrawController_OutlineView.java index a6398884c7f6..4a39c3049eb5 100644 --- a/qadevOOo/tests/java/mod/_sd/DrawController_OutlineView.java +++ b/qadevOOo/tests/java/mod/_sd/DrawController_OutlineView.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 @@ -124,7 +124,7 @@ public class DrawController_OutlineView extends TestCase { * wait to allow frames to be loaded. Retrieves * the collection of the draw pages * from the first document and takes one of them. Inserts some shapes to the - * retrieved draw page. + * retrieved draw page. * Switch to the <b>OutlineMode</b>. * Obtains a current controller from the first document * using the interface <code>XModel</code>. The obtained controller is the @@ -220,7 +220,7 @@ public class DrawController_OutlineView extends TestCase { } utils.shortWait(500); - + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xDrawDoc); @@ -228,7 +228,7 @@ public class DrawController_OutlineView extends TestCase { log.println("bring first document to front..."); DesktopTools.bringWindowToFront(aModel); - + XModel aModel2 = (XModel) UnoRuntime.queryInterface(XModel.class, xSecondDrawDoc); @@ -262,7 +262,7 @@ public class DrawController_OutlineView extends TestCase { xShapes1.add(shape3); xShapes2.add(shape1); shortWait(); - + tEnv.addObjRelation("Selections", new Object[] { oDrawPage, oShapeCol1, oShapeCol2}); tEnv.addObjRelation("Comparer", new Comparator() { @@ -289,7 +289,7 @@ public class DrawController_OutlineView extends TestCase { tEnv.addObjRelation("FirstModel", aModel); tEnv.addObjRelation("XUserInputInterception.XModel", aModel); - + XFrame the_frame = the_Desk.getCurrentFrame(); tEnv.addObjRelation("Frame", the_frame); @@ -313,10 +313,10 @@ public class DrawController_OutlineView extends TestCase { UnoRuntime.queryInterface(XModifiable.class,xDrawDoc); tEnv.addObjRelation("Modifiable",modify); - + tEnv.addObjRelation("XComponent.DisposeThis", xDrawDoc); - + return tEnv; } // finish method getTestEnvironment diff --git a/qadevOOo/tests/java/mod/_sd/DrawController_PresentationView.java b/qadevOOo/tests/java/mod/_sd/DrawController_PresentationView.java index ad4634cc7324..c86d45878656 100644 --- a/qadevOOo/tests/java/mod/_sd/DrawController_PresentationView.java +++ b/qadevOOo/tests/java/mod/_sd/DrawController_PresentationView.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 @@ -124,7 +124,7 @@ public class DrawController_PresentationView extends TestCase { * wait to allow frames to be loaded. Retrieves * the collection of the draw pages * from the first document and takes one of them. Inserts some shapes to the - * retrieved draw page. + * retrieved draw page. * Switch to the <b>DiaMode</b>. * Obtains a current controller from the first document * using the interface <code>XModel</code>. The obtained controller is the @@ -220,7 +220,7 @@ public class DrawController_PresentationView extends TestCase { } utils.shortWait(500); - + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xDrawDoc); @@ -228,7 +228,7 @@ public class DrawController_PresentationView extends TestCase { log.println("bring first document to front..."); DesktopTools.bringWindowToFront(aModel); - + XModel aModel2 = (XModel) UnoRuntime.queryInterface(XModel.class, xSecondDrawDoc); @@ -262,7 +262,7 @@ public class DrawController_PresentationView extends TestCase { xShapes1.add(shape3); xShapes2.add(shape1); shortWait(); - + tEnv.addObjRelation("Selections", new Object[] { oDrawPage, oShapeCol1, oShapeCol2}); tEnv.addObjRelation("Comparer", new Comparator() { @@ -289,7 +289,7 @@ public class DrawController_PresentationView extends TestCase { tEnv.addObjRelation("FirstModel", aModel); tEnv.addObjRelation("XUserInputInterception.XModel", aModel); - + XFrame the_frame = the_Desk.getCurrentFrame(); tEnv.addObjRelation("Frame", the_frame); @@ -313,10 +313,10 @@ public class DrawController_PresentationView extends TestCase { UnoRuntime.queryInterface(XModifiable.class,xDrawDoc); tEnv.addObjRelation("Modifiable",modify); - + tEnv.addObjRelation("XComponent.DisposeThis", xDrawDoc); - + return tEnv; } // finish method getTestEnvironment diff --git a/qadevOOo/tests/java/mod/_sd/SdDocLinkTargets.java b/qadevOOo/tests/java/mod/_sd/SdDocLinkTargets.java index 2ba3b56430dd..bc24b11b4325 100644 --- a/qadevOOo/tests/java/mod/_sd/SdDocLinkTargets.java +++ b/qadevOOo/tests/java/mod/_sd/SdDocLinkTargets.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 diff --git a/qadevOOo/tests/java/mod/_sd/SdDrawPage.java b/qadevOOo/tests/java/mod/_sd/SdDrawPage.java index 1cd742919727..876615f0b30a 100644 --- a/qadevOOo/tests/java/mod/_sd/SdDrawPage.java +++ b/qadevOOo/tests/java/mod/_sd/SdDrawPage.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 diff --git a/qadevOOo/tests/java/mod/_sd/SdDrawPagesAccess.java b/qadevOOo/tests/java/mod/_sd/SdDrawPagesAccess.java index f994b318b2be..690706c4fc57 100644 --- a/qadevOOo/tests/java/mod/_sd/SdDrawPagesAccess.java +++ b/qadevOOo/tests/java/mod/_sd/SdDrawPagesAccess.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 diff --git a/qadevOOo/tests/java/mod/_sd/SdGenericDrawPage.java b/qadevOOo/tests/java/mod/_sd/SdGenericDrawPage.java index e0a1344435a9..c1950fb9b789 100644 --- a/qadevOOo/tests/java/mod/_sd/SdGenericDrawPage.java +++ b/qadevOOo/tests/java/mod/_sd/SdGenericDrawPage.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 diff --git a/qadevOOo/tests/java/mod/_sd/SdLayer.java b/qadevOOo/tests/java/mod/_sd/SdLayer.java index 7407a20ba17c..a8d8d513d259 100644 --- a/qadevOOo/tests/java/mod/_sd/SdLayer.java +++ b/qadevOOo/tests/java/mod/_sd/SdLayer.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 diff --git a/qadevOOo/tests/java/mod/_sd/SdLayerManager.java b/qadevOOo/tests/java/mod/_sd/SdLayerManager.java index cf8a0644ce8a..7604ae36c922 100644 --- a/qadevOOo/tests/java/mod/_sd/SdLayerManager.java +++ b/qadevOOo/tests/java/mod/_sd/SdLayerManager.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 diff --git a/qadevOOo/tests/java/mod/_sd/SdMasterPage.java b/qadevOOo/tests/java/mod/_sd/SdMasterPage.java index 20cfce2a5da7..3ab99f2ebeca 100644 --- a/qadevOOo/tests/java/mod/_sd/SdMasterPage.java +++ b/qadevOOo/tests/java/mod/_sd/SdMasterPage.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 diff --git a/qadevOOo/tests/java/mod/_sd/SdMasterPagesAccess.java b/qadevOOo/tests/java/mod/_sd/SdMasterPagesAccess.java index a0eb65b9301a..ba314d66dfef 100644 --- a/qadevOOo/tests/java/mod/_sd/SdMasterPagesAccess.java +++ b/qadevOOo/tests/java/mod/_sd/SdMasterPagesAccess.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 diff --git a/qadevOOo/tests/java/mod/_sd/SdPageLinkTargets.java b/qadevOOo/tests/java/mod/_sd/SdPageLinkTargets.java index 1cb240b76de7..7a729cd11121 100644 --- a/qadevOOo/tests/java/mod/_sd/SdPageLinkTargets.java +++ b/qadevOOo/tests/java/mod/_sd/SdPageLinkTargets.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 diff --git a/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java b/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java index 0d01141653af..fc90ba4166f7 100644 --- a/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.java +++ b/qadevOOo/tests/java/mod/_sd/SdUnoDrawView.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 @@ -229,7 +229,7 @@ public class SdUnoDrawView extends TestCase { tEnv.addObjRelation("Selections", new Object[] { - shape1, shape2, shape3}); + shape1, shape2, shape3}); tEnv.addObjRelation("Pages", the_pages); @@ -238,7 +238,7 @@ public class SdUnoDrawView extends TestCase { tEnv.addObjRelation("FirstModel", aModel); tEnv.addObjRelation("XUserInputInterception.XModel", aModel); - + XFrame the_frame = the_Desk.getCurrentFrame(); tEnv.addObjRelation("Frame", the_frame); @@ -262,9 +262,9 @@ public class SdUnoDrawView extends TestCase { UnoRuntime.queryInterface(XModifiable.class,xDrawDoc); tEnv.addObjRelation("Modifiable",modify); - + tEnv.addObjRelation("XComponent.DisposeThis", xDrawDoc); - + tEnv.addObjRelation("Comparer", new Comparator() { public int compare(Object o1, Object o2) { XIndexAccess indAc1 = (XIndexAccess) @@ -292,7 +292,7 @@ public class SdUnoDrawView extends TestCase { } catch (InterruptedException e) { System.out.println("While waiting :" + e) ; } - } + } } // finish class SdUnoDrawView diff --git a/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java b/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java index 73ff1f41799f..ccd05a7f7ac9 100644 --- a/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.java +++ b/qadevOOo/tests/java/mod/_sd/SdUnoOutlineView.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 @@ -151,7 +151,7 @@ public class SdUnoOutlineView extends TestCase { e.printStackTrace( log ); throw new StatusException("Couldn't create document", e); } - + XDrawPagesSupplier oDPS = (XDrawPagesSupplier) UnoRuntime.queryInterface(XDrawPagesSupplier.class, xImpressDoc); XDrawPages the_pages = oDPS.getDrawPages(); @@ -200,7 +200,7 @@ public class SdUnoOutlineView extends TestCase { XWindow.class,aModel2.getCurrentController()); oObj = aModel.getCurrentController(); - + log.println( "creating a new environment for impress view object" ); TestEnvironment tEnv = new TestEnvironment( oObj ); @@ -213,7 +213,7 @@ public class SdUnoOutlineView extends TestCase { tEnv.addObjRelation("FirstModel", aModel); tEnv.addObjRelation("XUserInputInterception.XModel", aModel); - + XFrame the_frame = the_Desk.getCurrentFrame(); tEnv.addObjRelation("Frame", the_frame); diff --git a/qadevOOo/tests/java/mod/_sd/SdUnoPresView.java b/qadevOOo/tests/java/mod/_sd/SdUnoPresView.java index 47a46180ba03..08dd749f4403 100644 --- a/qadevOOo/tests/java/mod/_sd/SdUnoPresView.java +++ b/qadevOOo/tests/java/mod/_sd/SdUnoPresView.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 @@ -185,7 +185,7 @@ public class SdUnoPresView extends TestCase { the_pages.insertNewByIndex(0); the_pages.insertNewByIndex(0); secondDrawPage = (XDrawPage) AnyConverter.toObject( - new Type(XDrawPage.class),oDPi.getByIndex(3)); + new Type(XDrawPage.class),oDPi.getByIndex(3)); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace( log ); throw new StatusException("Couldn't get DrawPage", e); @@ -204,7 +204,7 @@ public class SdUnoPresView extends TestCase { XShape shape1 = SOF.createShape( xImpressDoc, 5000, 3500, 7500, 5000, "Rectangle"); oShapes.add(shape1); - + oShapes = (XShapes) UnoRuntime.queryInterface(XShapes.class, secondDrawPage); shape1 = SOF.createShape( @@ -228,10 +228,10 @@ public class SdUnoPresView extends TestCase { if (anotherWindow != null) { tEnv.addObjRelation("XWindow.AnotherWindow",anotherWindow); } - + tEnv.addObjRelation("Selections", new Object[] { oDrawPage, secondDrawPage}); - + tEnv.addObjRelation("Comparer", new Comparator() { public int compare(Object o1, Object o2) { XIndexAccess indAc1 = (XIndexAccess) @@ -246,7 +246,7 @@ public class SdUnoPresView extends TestCase { } public boolean equals(Object obj) { return compare(this, obj) == 0; - } }); + } }); tEnv.addObjRelation("FirstPage", oDrawPage); tEnv.addObjRelation("SecondPage", secondDrawPage); @@ -260,7 +260,7 @@ public class SdUnoPresView extends TestCase { tEnv.addObjRelation("FirstModel", aModel); tEnv.addObjRelation("XUserInputInterception.XModel", aModel); - + XFrame the_frame = the_Desk.getCurrentFrame(); tEnv.addObjRelation("Frame", the_frame); diff --git a/qadevOOo/tests/java/mod/_sd/SdUnoSlideView.java b/qadevOOo/tests/java/mod/_sd/SdUnoSlideView.java index 03849535157b..74c619841d3a 100644 --- a/qadevOOo/tests/java/mod/_sd/SdUnoSlideView.java +++ b/qadevOOo/tests/java/mod/_sd/SdUnoSlideView.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 @@ -190,19 +190,19 @@ public class SdUnoSlideView extends TestCase { tEnv.addObjRelation("SecondController", secondController); tEnv.addObjRelation("XDispatchProvider.URL", "slot:27069"); - + tEnv.addObjRelation("XUserInputInterception.XModel", aModel); - + //creating obj-relation for the XSelectionSupplier try { - Object[] selections = + Object[] selections = new Object[]{xDP.getByIndex(0),xDP.getByIndex(1),xDP.getByIndex(2)}; tEnv.addObjRelation("Selections", selections); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace(log); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(log); - } + } log.println("Implementation Name: " + utils.getImplName(oObj)); return tEnv; diff --git a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java index b26ae478216c..ffe835f3e543 100644 --- a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.java +++ b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentation.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 diff --git a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java index 9118dbb337d9..c34d0c67c5f2 100644 --- a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java +++ b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.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 diff --git a/qadevOOo/tests/java/mod/_sd/SdXImpressDocument.java b/qadevOOo/tests/java/mod/_sd/SdXImpressDocument.java index 6e7652e13afd..39960d7e63a8 100644 --- a/qadevOOo/tests/java/mod/_sd/SdXImpressDocument.java +++ b/qadevOOo/tests/java/mod/_sd/SdXImpressDocument.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 @@ -96,7 +96,7 @@ import util.utils; public class SdXImpressDocument extends TestCase { XComponent xImpressDoc; XComponent xImpressDoc2; - + /** * Called while disposing a <code>TestEnvironment</code>. * Disposes Impress document. @@ -109,7 +109,7 @@ public class SdXImpressDocument extends TestCase { util.DesktopTools.closeDoc(xImpressDoc);; util.DesktopTools.closeDoc(xImpressDoc2);; } - + /** * Creating a Testenvironment for the interfaces to be tested. * Creates new impress document that is the instance of the service @@ -120,11 +120,11 @@ public class SdXImpressDocument extends TestCase { PrintWriter log) throws StatusException { log.println("creating a test environment"); - + // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) Param.getMSF()); - + try { log.println("creating two impress documents"); xImpressDoc2 = SOF.createImpressDoc(null); @@ -133,27 +133,27 @@ public class SdXImpressDocument extends TestCase { e.printStackTrace(log); throw new StatusException("Couldn't create documents", e); } - + XModel xModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, xImpressDoc); XModel xModel2 = (XModel) UnoRuntime.queryInterface(XModel.class, xImpressDoc2); - + XController cont1 = xModel1.getCurrentController(); XController cont2 = xModel2.getCurrentController(); - + cont1.getFrame().setName("cont1"); cont2.getFrame().setName("cont2"); - + XSelectionSupplier sel = (XSelectionSupplier) UnoRuntime.queryInterface( XSelectionSupplier.class, cont1); - + XShape aShape = SOF.createShape(xImpressDoc, 5000, 3500, 7500, 5000, "Rectangle"); - - + + XPropertySet xShapeProps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, aShape); - + try { xShapeProps.setPropertyValue("FillStyle", com.sun.star.drawing.FillStyle.SOLID); xShapeProps.setPropertyValue("FillTransparence", new Integer(50)); @@ -170,20 +170,20 @@ public class SdXImpressDocument extends TestCase { ex.printStackTrace(log); throw new StatusException("Couldn't make shape transparent", ex); } - + DrawTools.getDrawPage(xImpressDoc, 0).add(aShape); - + log.println("creating a new environment for drawpage object"); - + TestEnvironment tEnv = new TestEnvironment(xImpressDoc); - + log.println("adding Controller as ObjRelation for XModel"); tEnv.addObjRelation("CONT2", cont2); - + log.println("Adding SelectionSupplier and Shape to select for XModel"); tEnv.addObjRelation("SELSUPP", sel); tEnv.addObjRelation("TOSELECT", aShape); - + // create object relation for XPrintJobBroadcaster String fileName = utils.getOfficeTempDirSys((XMultiServiceFactory) Param.getMSF())+"printfile.prt" ; File f = new File(fileName); @@ -192,8 +192,8 @@ public class SdXImpressDocument extends TestCase { } _XPrintJobBroadcaster.MyPrintJobListener listener = new _XPrintJobBroadcaster.MyPrintJobListener(xImpressDoc, fileName); tEnv.addObjRelation("XPrintJobBroadcaster.XPrintJobListener", listener); - + return tEnv; } // finish method getTestEnvironment - + } // finish class SdDrawPage diff --git a/qadevOOo/tests/java/mod/_sd/SdXPresentation.java b/qadevOOo/tests/java/mod/_sd/SdXPresentation.java index ab0f673fb471..b30ad68172be 100644 --- a/qadevOOo/tests/java/mod/_sd/SdXPresentation.java +++ b/qadevOOo/tests/java/mod/_sd/SdXPresentation.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 diff --git a/qadevOOo/tests/java/mod/_sd/SdXShape.java b/qadevOOo/tests/java/mod/_sd/SdXShape.java index 4fc52490c97b..434e7ad6dc07 100644 --- a/qadevOOo/tests/java/mod/_sd/SdXShape.java +++ b/qadevOOo/tests/java/mod/_sd/SdXShape.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 diff --git a/qadevOOo/tests/java/mod/_servicemgr.uno/OServiceManager.java b/qadevOOo/tests/java/mod/_servicemgr.uno/OServiceManager.java index 3f509d121827..18315f892b1f 100644 --- a/qadevOOo/tests/java/mod/_servicemgr.uno/OServiceManager.java +++ b/qadevOOo/tests/java/mod/_servicemgr.uno/OServiceManager.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 diff --git a/qadevOOo/tests/java/mod/_sfx/AppDispatchProvider.java b/qadevOOo/tests/java/mod/_sfx/AppDispatchProvider.java index 1760354e6108..18da8c9431f2 100644 --- a/qadevOOo/tests/java/mod/_sfx/AppDispatchProvider.java +++ b/qadevOOo/tests/java/mod/_sfx/AppDispatchProvider.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 diff --git a/qadevOOo/tests/java/mod/_sfx/DocumentTemplates.java b/qadevOOo/tests/java/mod/_sfx/DocumentTemplates.java index 70a87965dbd6..32b34f507f74 100644 --- a/qadevOOo/tests/java/mod/_sfx/DocumentTemplates.java +++ b/qadevOOo/tests/java/mod/_sfx/DocumentTemplates.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 diff --git a/qadevOOo/tests/java/mod/_sfx/FrameLoader.java b/qadevOOo/tests/java/mod/_sfx/FrameLoader.java index 5be24abdd3f2..217e2509d3a9 100644 --- a/qadevOOo/tests/java/mod/_sfx/FrameLoader.java +++ b/qadevOOo/tests/java/mod/_sfx/FrameLoader.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 diff --git a/qadevOOo/tests/java/mod/_sfx/SfxMacroLoader.java b/qadevOOo/tests/java/mod/_sfx/SfxMacroLoader.java index f54d57ac1ace..7b4725fe98c7 100644 --- a/qadevOOo/tests/java/mod/_sfx/SfxMacroLoader.java +++ b/qadevOOo/tests/java/mod/_sfx/SfxMacroLoader.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 diff --git a/qadevOOo/tests/java/mod/_sfx/StandaloneDocumentInfo.java b/qadevOOo/tests/java/mod/_sfx/StandaloneDocumentInfo.java index 81e0d459c0a3..b015a858a903 100644 --- a/qadevOOo/tests/java/mod/_sfx/StandaloneDocumentInfo.java +++ b/qadevOOo/tests/java/mod/_sfx/StandaloneDocumentInfo.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 diff --git a/qadevOOo/tests/java/mod/_shlibloader.uno/DLLComponentLoader.java b/qadevOOo/tests/java/mod/_shlibloader.uno/DLLComponentLoader.java index 5ede3114c8f3..6992a80d208e 100644 --- a/qadevOOo/tests/java/mod/_shlibloader.uno/DLLComponentLoader.java +++ b/qadevOOo/tests/java/mod/_shlibloader.uno/DLLComponentLoader.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 diff --git a/qadevOOo/tests/java/mod/_simplereg.uno/SimpleRegistry.java b/qadevOOo/tests/java/mod/_simplereg.uno/SimpleRegistry.java index 07d2bd70e6d9..5c8730b7bcca 100644 --- a/qadevOOo/tests/java/mod/_simplereg.uno/SimpleRegistry.java +++ b/qadevOOo/tests/java/mod/_simplereg.uno/SimpleRegistry.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 diff --git a/qadevOOo/tests/java/mod/_simreg/SimpleRegistry.java b/qadevOOo/tests/java/mod/_simreg/SimpleRegistry.java index e593bdcdcda3..a3c5786f45f9 100644 --- a/qadevOOo/tests/java/mod/_simreg/SimpleRegistry.java +++ b/qadevOOo/tests/java/mod/_simreg/SimpleRegistry.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 diff --git a/qadevOOo/tests/java/mod/_sm/SmEditAccessible.java b/qadevOOo/tests/java/mod/_sm/SmEditAccessible.java index 4101e3a57b1a..9ec1040a110c 100644 --- a/qadevOOo/tests/java/mod/_sm/SmEditAccessible.java +++ b/qadevOOo/tests/java/mod/_sm/SmEditAccessible.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 diff --git a/qadevOOo/tests/java/mod/_sm/SmGraphicAccessible.java b/qadevOOo/tests/java/mod/_sm/SmGraphicAccessible.java index 1698f4077d80..90e8f6ad3154 100644 --- a/qadevOOo/tests/java/mod/_sm/SmGraphicAccessible.java +++ b/qadevOOo/tests/java/mod/_sm/SmGraphicAccessible.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 @@ -132,12 +132,12 @@ public class SmGraphicAccessible extends TestCase { final XAccessibleComponent xAC = (XAccessibleComponent) UnoRuntime.queryInterface(XAccessibleComponent.class, oObj); - + TestEnvironment tEnv = new TestEnvironment(oObj); - - tEnv.addObjRelation("EditOnly", + + tEnv.addObjRelation("EditOnly", "This method isn't supported in this dialog"); - + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer(){ diff --git a/qadevOOo/tests/java/mod/_sm/SmModel.java b/qadevOOo/tests/java/mod/_sm/SmModel.java index e739c2e53e34..6e86243a0fde 100644 --- a/qadevOOo/tests/java/mod/_sm/SmModel.java +++ b/qadevOOo/tests/java/mod/_sm/SmModel.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 diff --git a/qadevOOo/tests/java/mod/_sm/XMLExporter.java b/qadevOOo/tests/java/mod/_sm/XMLExporter.java index 3b98986c9290..b6f5bcab66d4 100644 --- a/qadevOOo/tests/java/mod/_sm/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_sm/XMLExporter.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 diff --git a/qadevOOo/tests/java/mod/_sm/XMLImporter.java b/qadevOOo/tests/java/mod/_sm/XMLImporter.java index 635e104ec307..f598f28f093c 100644 --- a/qadevOOo/tests/java/mod/_sm/XMLImporter.java +++ b/qadevOOo/tests/java/mod/_sm/XMLImporter.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 diff --git a/qadevOOo/tests/java/mod/_sm/XMLMetaExporter.java b/qadevOOo/tests/java/mod/_sm/XMLMetaExporter.java index f5308b47d8e0..3c721eda6d2b 100644 --- a/qadevOOo/tests/java/mod/_sm/XMLMetaExporter.java +++ b/qadevOOo/tests/java/mod/_sm/XMLMetaExporter.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 diff --git a/qadevOOo/tests/java/mod/_sm/XMLMetaImporter.java b/qadevOOo/tests/java/mod/_sm/XMLMetaImporter.java index f9c04de22cea..2b9b3e8dd8e5 100644 --- a/qadevOOo/tests/java/mod/_sm/XMLMetaImporter.java +++ b/qadevOOo/tests/java/mod/_sm/XMLMetaImporter.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 diff --git a/qadevOOo/tests/java/mod/_sm/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_sm/XMLSettingsExporter.java index 5e546997cd01..9995169a3d37 100644 --- a/qadevOOo/tests/java/mod/_sm/XMLSettingsExporter.java +++ b/qadevOOo/tests/java/mod/_sm/XMLSettingsExporter.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 diff --git a/qadevOOo/tests/java/mod/_sm/XMLSettingsImporter.java b/qadevOOo/tests/java/mod/_sm/XMLSettingsImporter.java index 06be0540f4ed..7b4731f13e14 100644 --- a/qadevOOo/tests/java/mod/_sm/XMLSettingsImporter.java +++ b/qadevOOo/tests/java/mod/_sm/XMLSettingsImporter.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 diff --git a/qadevOOo/tests/java/mod/_smgr/OServiceManager.java b/qadevOOo/tests/java/mod/_smgr/OServiceManager.java index 09debfcacf45..062d45db0b24 100644 --- a/qadevOOo/tests/java/mod/_smgr/OServiceManager.java +++ b/qadevOOo/tests/java/mod/_smgr/OServiceManager.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 diff --git a/qadevOOo/tests/java/mod/_smplmail/SimpleSystemMail.java b/qadevOOo/tests/java/mod/_smplmail/SimpleSystemMail.java index d592a65ad9e1..dbd42fbdcb4f 100644 --- a/qadevOOo/tests/java/mod/_smplmail/SimpleSystemMail.java +++ b/qadevOOo/tests/java/mod/_smplmail/SimpleSystemMail.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 diff --git a/qadevOOo/tests/java/mod/_srtrs/SortedDynamicResultSetFactory.java b/qadevOOo/tests/java/mod/_srtrs/SortedDynamicResultSetFactory.java index 735382d54af2..e3af6664183a 100644 --- a/qadevOOo/tests/java/mod/_srtrs/SortedDynamicResultSetFactory.java +++ b/qadevOOo/tests/java/mod/_srtrs/SortedDynamicResultSetFactory.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 diff --git a/qadevOOo/tests/java/mod/_stm/DataInputStream.java b/qadevOOo/tests/java/mod/_stm/DataInputStream.java index 0025fa88f842..ce2717d787cc 100644 --- a/qadevOOo/tests/java/mod/_stm/DataInputStream.java +++ b/qadevOOo/tests/java/mod/_stm/DataInputStream.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 diff --git a/qadevOOo/tests/java/mod/_stm/DataOutputStream.java b/qadevOOo/tests/java/mod/_stm/DataOutputStream.java index 2801677d1cc1..4e7269343cc9 100644 --- a/qadevOOo/tests/java/mod/_stm/DataOutputStream.java +++ b/qadevOOo/tests/java/mod/_stm/DataOutputStream.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 diff --git a/qadevOOo/tests/java/mod/_stm/MarkableInputStream.java b/qadevOOo/tests/java/mod/_stm/MarkableInputStream.java index 8ea8769962e6..f8f245d87ca0 100644 --- a/qadevOOo/tests/java/mod/_stm/MarkableInputStream.java +++ b/qadevOOo/tests/java/mod/_stm/MarkableInputStream.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 diff --git a/qadevOOo/tests/java/mod/_stm/MarkableOutputStream.java b/qadevOOo/tests/java/mod/_stm/MarkableOutputStream.java index 6e8185db10cc..6b91678c75a7 100644 --- a/qadevOOo/tests/java/mod/_stm/MarkableOutputStream.java +++ b/qadevOOo/tests/java/mod/_stm/MarkableOutputStream.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 diff --git a/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java b/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java index bd9d950d15bf..59c5e8d5b70e 100644 --- a/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java +++ b/qadevOOo/tests/java/mod/_stm/ObjectInputStream.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 diff --git a/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java b/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java index cffbe744c84a..ddefcd878fb9 100644 --- a/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java +++ b/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.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 diff --git a/qadevOOo/tests/java/mod/_stm/Pipe.java b/qadevOOo/tests/java/mod/_stm/Pipe.java index 988efe50d1fe..3dc832a73f7c 100644 --- a/qadevOOo/tests/java/mod/_stm/Pipe.java +++ b/qadevOOo/tests/java/mod/_stm/Pipe.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 diff --git a/qadevOOo/tests/java/mod/_stm/Pump.java b/qadevOOo/tests/java/mod/_stm/Pump.java index 982223d8dab1..064932acf625 100644 --- a/qadevOOo/tests/java/mod/_stm/Pump.java +++ b/qadevOOo/tests/java/mod/_stm/Pump.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 diff --git a/qadevOOo/tests/java/mod/_streams.uno/DataInputStream.java b/qadevOOo/tests/java/mod/_streams.uno/DataInputStream.java index 145716aabe15..7c69e6a6b461 100644 --- a/qadevOOo/tests/java/mod/_streams.uno/DataInputStream.java +++ b/qadevOOo/tests/java/mod/_streams.uno/DataInputStream.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 diff --git a/qadevOOo/tests/java/mod/_streams.uno/DataOutputStream.java b/qadevOOo/tests/java/mod/_streams.uno/DataOutputStream.java index 2a3f886b3e57..ba2284c587ef 100644 --- a/qadevOOo/tests/java/mod/_streams.uno/DataOutputStream.java +++ b/qadevOOo/tests/java/mod/_streams.uno/DataOutputStream.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 diff --git a/qadevOOo/tests/java/mod/_streams.uno/MarkableInputStream.java b/qadevOOo/tests/java/mod/_streams.uno/MarkableInputStream.java index a7bcb00a2087..8365db8f9810 100644 --- a/qadevOOo/tests/java/mod/_streams.uno/MarkableInputStream.java +++ b/qadevOOo/tests/java/mod/_streams.uno/MarkableInputStream.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 diff --git a/qadevOOo/tests/java/mod/_streams.uno/MarkableOutputStream.java b/qadevOOo/tests/java/mod/_streams.uno/MarkableOutputStream.java index d7bfd8efbb96..dd61867e0316 100644 --- a/qadevOOo/tests/java/mod/_streams.uno/MarkableOutputStream.java +++ b/qadevOOo/tests/java/mod/_streams.uno/MarkableOutputStream.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 diff --git a/qadevOOo/tests/java/mod/_streams.uno/ObjectInputStream.java b/qadevOOo/tests/java/mod/_streams.uno/ObjectInputStream.java index 80f3265fae74..67d251a50b3a 100644 --- a/qadevOOo/tests/java/mod/_streams.uno/ObjectInputStream.java +++ b/qadevOOo/tests/java/mod/_streams.uno/ObjectInputStream.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 diff --git a/qadevOOo/tests/java/mod/_streams.uno/ObjectOutputStream.java b/qadevOOo/tests/java/mod/_streams.uno/ObjectOutputStream.java index d6b8ac642ca2..97ee8193c792 100644 --- a/qadevOOo/tests/java/mod/_streams.uno/ObjectOutputStream.java +++ b/qadevOOo/tests/java/mod/_streams.uno/ObjectOutputStream.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 diff --git a/qadevOOo/tests/java/mod/_streams.uno/Pipe.java b/qadevOOo/tests/java/mod/_streams.uno/Pipe.java index 440550a5b444..482cd7bda3dc 100644 --- a/qadevOOo/tests/java/mod/_streams.uno/Pipe.java +++ b/qadevOOo/tests/java/mod/_streams.uno/Pipe.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 diff --git a/qadevOOo/tests/java/mod/_streams.uno/Pump.java b/qadevOOo/tests/java/mod/_streams.uno/Pump.java index dbccee2ee043..5e262d470d06 100644 --- a/qadevOOo/tests/java/mod/_streams.uno/Pump.java +++ b/qadevOOo/tests/java/mod/_streams.uno/Pump.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 diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBox.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBox.java index 358819ee733d..f21ac75daaca 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBox.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBox.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 diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.java index b953abde994e..e7efa1769be2 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.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 @@ -77,7 +77,7 @@ import com.sun.star.util.URL; public class AccessibleBrowseBoxHeaderBar extends TestCase { static XDesktop the_Desk; static XTextDocument xTextDoc; - + /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ @@ -86,19 +86,19 @@ public class AccessibleBrowseBoxHeaderBar extends TestCase { DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } - + /** * Disposes the document, if exists, created in * <code>createTestEnvironment</code> method. */ protected void cleanup(TestParameters Param, PrintWriter log) { log.println("disposing xTextDoc"); - + if (xTextDoc != null) { xTextDoc.dispose(); } } - + /** * Creates a text document. Opens the DataSource browser. * Creates an instance of the service <code>com.sun.star.awt.Toolkit</code> @@ -122,14 +122,14 @@ public class AccessibleBrowseBoxHeaderBar extends TestCase { protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); - + if (xTextDoc != null) { xTextDoc.dispose(); } - + // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) tParam.getMSF()); - + try { log.println("creating a text document"); xTextDoc = SOF.createTextDoc(null); @@ -138,93 +138,93 @@ public class AccessibleBrowseBoxHeaderBar extends TestCase { e.printStackTrace(log); throw new StatusException("Couldn't create document", e); } - + shortWait(); - + XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); - + XController secondController = aModel1.getCurrentController(); - + XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface( XDispatchProvider.class, secondController); - + XDispatch getting = null; - + log.println("opening DatasourceBrowser"); - + URL the_url = new URL(); the_url.Complete = ".component:DB/DataSourceBrowser"; getting = aProv.queryDispatch(the_url, "_beamer", 12); - + //am controller ein XSelectionSupplier->mit params rufen PropertyValue[] noArgs = new PropertyValue[0]; getting.dispatch(the_url, noArgs); - + PropertyValue[] params = new PropertyValue[3]; PropertyValue param1 = new PropertyValue(); param1.Name = "DataSourceName"; param1.Value = "Bibliography"; params[0] = param1; - + PropertyValue param2 = new PropertyValue(); param2.Name = "CommandType"; param2.Value = new Integer(com.sun.star.sdb.CommandType.TABLE); params[1] = param2; - + PropertyValue param3 = new PropertyValue(); param3.Name = "Command"; param3.Value = "biblio"; params[2] = param3; - + shortWait(); - + XFrame the_frame1 = the_Desk.getCurrentFrame(); - + if (the_frame1 == null) { log.println("Current frame was not found !!!"); } - + XFrame the_frame2 = the_frame1.findFrame("_beamer", 4); - + the_frame2.setName("DatasourceBrowser"); - + XController xCont = the_frame2.getController(); - + XSelectionSupplier xSelect = (XSelectionSupplier) UnoRuntime.queryInterface( XSelectionSupplier.class, xCont); - + try { xSelect.select(params); } catch (com.sun.star.lang.IllegalArgumentException ex) { throw new StatusException("Could not select Biblio-Database", ex); } - + XInterface oObj = null; - + AccessibilityTools at = new AccessibilityTools(); - + XWindow xWindow = secondController.getFrame().getContainerWindow(); - + XAccessible xRoot = at.getAccessibleObject(xWindow); - + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TABLE); - + at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); log.println("ImplementationName: " + util.utils.getImplName(oObj)); - + TestEnvironment tEnv = new TestEnvironment(oObj); - + shortWait(); - + XAccessibleComponent accComp = (XAccessibleComponent) UnoRuntime.queryInterface( XAccessibleComponent.class, oObj); final Point point = accComp.getLocationOnScreen(); - + shortWait(); - + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { @@ -237,10 +237,10 @@ public class AccessibleBrowseBoxHeaderBar extends TestCase { } } }); - + return tEnv; } - + /** * Sleeps for 0.5 sec. to allow StarOffice to react on <code> * reset</code> call. diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java index 2e7cb013e2ee..a59cf21fd863 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.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 @@ -191,10 +191,10 @@ public class AccessibleBrowseBoxHeaderCell extends TestCase { params[2] = param3; XController xCont = the_frame2.getController(); - + XSelectionSupplier xSelect = (XSelectionSupplier) UnoRuntime.queryInterface( XSelectionSupplier.class, xCont); - + try { xSelect.select(params); } catch (com.sun.star.lang.IllegalArgumentException ex) { @@ -208,7 +208,7 @@ public class AccessibleBrowseBoxHeaderCell extends TestCase { XAccessible xRoot = at.getAccessibleObject(xWindow); at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.ROW_HEADER); diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java index 6842fd6da8e2..8ee05967bd5d 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.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 @@ -73,7 +73,7 @@ import com.sun.star.util.URL; public class AccessibleBrowseBoxTable extends TestCase { static XDesktop the_Desk; static XTextDocument xTextDoc; - + /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ @@ -82,19 +82,19 @@ public class AccessibleBrowseBoxTable extends TestCase { DesktopTools.createDesktop( (XMultiServiceFactory)Param.getMSF())); } - + /** * Disposes the document, if exists, created in * <code>createTestEnvironment</code> method. */ protected void cleanup(TestParameters Param, PrintWriter log) { log.println("disposing xTextDoc"); - + if (xTextDoc != null) { xTextDoc.dispose(); } } - + /** * Creates a text document. Opens the DataSource browser. * Creates an instance of the service @@ -121,15 +121,15 @@ public class AccessibleBrowseBoxTable extends TestCase { protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); - + if (xTextDoc != null) { xTextDoc.dispose(); } - + // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF()); - + try { log.println("creating a text document"); xTextDoc = SOF.createTextDoc(null); @@ -138,79 +138,79 @@ public class AccessibleBrowseBoxTable extends TestCase { e.printStackTrace(log); throw new StatusException("Couldn't create document", e); } - + shortWait(); - + XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); - + XController secondController = aModel1.getCurrentController(); - + XDispatchProvider aProv = (XDispatchProvider)UnoRuntime.queryInterface( XDispatchProvider.class, secondController); - + XDispatch getting = null; - + log.println("opening DatasourceBrowser"); - + URL the_url = new URL(); the_url.Complete = ".component:DB/DataSourceBrowser"; getting = aProv.queryDispatch(the_url, "_beamer", 12); - + PropertyValue[] noArgs = new PropertyValue[0]; getting.dispatch(the_url, noArgs); - + shortWait(); - + XFrame the_frame1 = the_Desk.getCurrentFrame(); - + if (the_frame1 == null) { log.println("Current frame was not found !!!"); } - + XFrame the_frame2 = the_frame1.findFrame("_beamer", 4); XController xCont = the_frame2.getController(); - + the_frame2.setName("DatasourceBrowser"); - + final PropertyValue[] params = new PropertyValue[3]; PropertyValue param1 = new PropertyValue(); param1.Name = "DataSourceName"; param1.Value = "Bibliography"; params[0] = param1; - + PropertyValue param2 = new PropertyValue(); param2.Name = "CommandType"; param2.Value = new Integer(com.sun.star.sdb.CommandType.TABLE); params[1] = param2; - + PropertyValue param3 = new PropertyValue(); param3.Name = "Command"; param3.Value = "biblio"; params[2] = param3; - + final XSelectionSupplier xSelect = (XSelectionSupplier) UnoRuntime.queryInterface( XSelectionSupplier.class, xCont); - - + + final Object[] initArgs = params; - + XInterface oObj = null; - + AccessibilityTools at = new AccessibilityTools(); - + XWindow xWindow = secondController.getFrame().getContainerWindow(); - + XAccessible xRoot = at.getAccessibleObject(xWindow); - + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TABLE, "Table"); - + log.println("ImplementationName: " + util.utils.getImplName(oObj)); - + TestEnvironment tEnv = new TestEnvironment(oObj); - + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { @@ -220,10 +220,10 @@ public class AccessibleBrowseBoxTable extends TestCase { } } }); - + return tEnv; } - + /** * Sleeps for 0.5 sec. to allow StarOffice to react on <code> * reset</code> call. diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java index 973f0bf9c324..549ef0a91b9b 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.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 diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java b/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java index 73d3a3bf8aff..09a5824c2a6d 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.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 @@ -89,7 +89,7 @@ public class AccessibleIconChoiceCtrl extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, + the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } @@ -139,7 +139,7 @@ public class AccessibleIconChoiceCtrl extends TestCase { * @see ifc.accessibility._XAccessibleEventBroadcaster * @see com.sun.star.accessibility.XAccessibleEventBroadcaster */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); @@ -161,13 +161,13 @@ public class AccessibleIconChoiceCtrl extends TestCase { shortWait(); - XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController secondController = aModel1.getCurrentController(); XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, secondController); XURLTransformer urlTransf = null; @@ -214,15 +214,15 @@ public class AccessibleIconChoiceCtrl extends TestCase { shortWait(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TREE); - XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot, - AccessibleRole.PUSH_BUTTON, + XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot, + AccessibleRole.PUSH_BUTTON, "Close"); accCloseButton = (XAccessibleAction) UnoRuntime.queryInterface( @@ -231,35 +231,35 @@ public class AccessibleIconChoiceCtrl extends TestCase { log.println("ImplementationName: " + util.utils.getImplName(oObj)); TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("XAccessibleSelection.multiSelection", + tEnv.addObjRelation("XAccessibleSelection.multiSelection", new Boolean(false)); - tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", + tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", new Boolean(true)); String[] expectedStateNames = new String[] { - "com.sun.star.accessibility.AccessibleStateType.ENABLED", - "com.sun.star.accessibility.AccessibleStateType.FOCUSABLE", - "com.sun.star.accessibility.AccessibleStateType.SHOWING", - "com.sun.star.accessibility.AccessibleStateType.VISIBLE", - "com.sun.star.accessibility.AccessibleStateType.MANAGES_DESCENDANTS", + "com.sun.star.accessibility.AccessibleStateType.ENABLED", + "com.sun.star.accessibility.AccessibleStateType.FOCUSABLE", + "com.sun.star.accessibility.AccessibleStateType.SHOWING", + "com.sun.star.accessibility.AccessibleStateType.VISIBLE", + "com.sun.star.accessibility.AccessibleStateType.MANAGES_DESCENDANTS", }; short[] expectedStates = new short[] { - com.sun.star.accessibility.AccessibleStateType.ENABLED, - com.sun.star.accessibility.AccessibleStateType.FOCUSABLE, - com.sun.star.accessibility.AccessibleStateType.SHOWING, - com.sun.star.accessibility.AccessibleStateType.VISIBLE, - com.sun.star.accessibility.AccessibleStateType.MANAGES_DESCENDANTS, + com.sun.star.accessibility.AccessibleStateType.ENABLED, + com.sun.star.accessibility.AccessibleStateType.FOCUSABLE, + com.sun.star.accessibility.AccessibleStateType.SHOWING, + com.sun.star.accessibility.AccessibleStateType.VISIBLE, + com.sun.star.accessibility.AccessibleStateType.MANAGES_DESCENDANTS, }; tEnv.addObjRelation("expectedStateNames", expectedStateNames); tEnv.addObjRelation("expectedStates", expectedStates); final XAccessibleSelection selection = (XAccessibleSelection) (XAccessibleSelection) UnoRuntime.queryInterface( - XAccessibleSelection.class, + XAccessibleSelection.class, oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { try { diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.java b/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.java index 28ccb9859faf..c27c9eb7209f 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.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 diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTabBar.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTabBar.java index c646aa1eaf25..a6a95185967d 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTabBar.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTabBar.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 @@ -80,7 +80,7 @@ public class AccessibleTabBar extends TestCase { * @see ifc.accessibility._XAccessibleEventBroadcaster * @see com.sun.star.accessibility.XAccessibleEventBroadcaster */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); @@ -95,7 +95,7 @@ public class AccessibleTabBar extends TestCase { try { log.println("creating a calc document"); - xDoc = (XComponent) UnoRuntime.queryInterface(XComponent.class, + xDoc = (XComponent) UnoRuntime.queryInterface(XComponent.class, SOF.createCalcDoc( null)); } catch (com.sun.star.uno.Exception e) { @@ -118,14 +118,14 @@ public class AccessibleTabBar extends TestCase { XAccessible xRoot = at.getAccessibleObject(xWindow); at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL); - + log.println("ImplementationName: " + util.utils.getImplName(oObj)); TestEnvironment tEnv = new TestEnvironment(oObj); - + final XWindow aWin = xWindow; - - tEnv.addObjRelation("EventProducer", + + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { aWin.setPosSize(100,100, 500, 500, PosSize.POSSIZE); diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTabBarPage.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTabBarPage.java index 1e1b571881c2..791c27189f2e 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTabBarPage.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTabBarPage.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 @@ -152,11 +152,11 @@ public class AccessibleTabBarPage extends TestCase { UnoRuntime.queryInterface(XWindow.class,tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); - at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); + at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PAGE_TAB, "Sheet1"); XAccessibleContext acc = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PAGE_TAB, "Sheet2"); XAccessibleComponent accComp = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, acc); final Point point = accComp.getLocationOnScreen(); log.println("ImplementationName: " + util.utils.getImplName(oObj)); diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTabBarPageList.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTabBarPageList.java index 1d367d97bc95..6f66b0c9f66a 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTabBarPageList.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTabBarPageList.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 @@ -108,7 +108,7 @@ public class AccessibleTabBarPageList extends TestCase { * @see ifc.accessibility._XAccessibleEventBroadcaster * @see com.sun.star.accessibility.XAccessibleEventBroadcaster */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); @@ -148,31 +148,31 @@ public class AccessibleTabBarPageList extends TestCase { shortWait(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); - oObj = at.getAccessibleObjectForRole(xRoot, + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PAGE_TAB_LIST); log.println("ImplementationName: " + util.utils.getImplName(oObj)); TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("XAccessibleSelection.multiSelection", + tEnv.addObjRelation("XAccessibleSelection.multiSelection", new Boolean(false)); - tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", + tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", new Boolean(true)); XLayerSupplier oLS = (XLayerSupplier) UnoRuntime.queryInterface(XLayerSupplier.class, xDoc); XInterface oLM = oLS.getLayerManager(); final XLayerManager xLM = (XLayerManager) UnoRuntime.queryInterface(XLayerManager.class, oLM); - - - tEnv.addObjRelation("EventProducer", + + + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { xLM.insertNewByIndex(0); diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java index 6134bd1a3aef..e393b2c57a2c 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.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 diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java index c4ee3562d720..47554e907752 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.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 @@ -94,7 +94,7 @@ public class AccessibleTreeListBoxEntry extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, + the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } @@ -143,7 +143,7 @@ public class AccessibleTreeListBoxEntry extends TestCase { * @see com.sun.star.accessibility.XAccessibleSelection * @see com.sun.star.accessibility.XAccessibleText */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); @@ -165,13 +165,13 @@ public class AccessibleTreeListBoxEntry extends TestCase { shortWait(); - XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController secondController = aModel1.getCurrentController(); XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, secondController); XDispatch getting = null; @@ -200,7 +200,7 @@ public class AccessibleTreeListBoxEntry extends TestCase { XInterface oObj = null; XInitialization xInit = (XInitialization) UnoRuntime.queryInterface( - XInitialization.class, + XInitialization.class, the_frame2.getController()); PropertyValue[] params = new PropertyValue[3]; @@ -218,12 +218,12 @@ public class AccessibleTreeListBoxEntry extends TestCase { param3.Name = "Command"; param3.Value = "select * from biblio"; params[2] = param3; - + XController xCont = the_frame2.getController(); - + XSelectionSupplier xSelect = (XSelectionSupplier) UnoRuntime.queryInterface( XSelectionSupplier.class, xCont); - + try { xSelect.select(params); } catch (com.sun.star.lang.IllegalArgumentException ex) { @@ -232,35 +232,35 @@ public class AccessibleTreeListBoxEntry extends TestCase { shortWait(); - AccessibilityTools at = new AccessibilityTools(); + AccessibilityTools at = new AccessibilityTools(); XWindow xWindow = secondController.getFrame().getContainerWindow(); XAccessible xRoot = at.getAccessibleObject(xWindow); - + at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - - oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.LABEL, + + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.LABEL, "Bibliography"); - + log.println("ImplementationName: " + util.utils.getImplName(oObj)); TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("EditOnly", + tEnv.addObjRelation("EditOnly", "This method isn't supported in this component"); - + //adding ObjectRelation for XAccessibleText tEnv.addObjRelation("LimitedBounds", "true"); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { } }); - tEnv.addObjRelation("XAccessibleSelection.multiSelection", + tEnv.addObjRelation("XAccessibleSelection.multiSelection", new Boolean(false)); tEnv.addObjRelation("XAccessibleText.Text", "Bibliography"); diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java b/qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java index c77b82fcd6fa..90878c5a0c03 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleControlShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleControlShape.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 diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java b/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java index 104b10d5c0b1..911d057de8c8 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleEditableTextPara.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 @@ -68,8 +68,8 @@ public class AccessibleEditableTextPara extends TestCase { TestParameters Param, PrintWriter log) { XInterface oObj = null; - - + + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xSpreadsheetDoc); @@ -86,15 +86,15 @@ public class AccessibleEditableTextPara extends TestCase { XAccessibleEditableText et = (XAccessibleEditableText) UnoRuntime.queryInterface(XAccessibleEditableText.class, oObj); et.setText("AccessibleEditablePara"); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { - + } log.println("ImplementationName " + utils.getImplName(oObj)); TestEnvironment tEnv = new TestEnvironment(oObj); - + final XAccessibleEditableText edText = (XAccessibleEditableText) - UnoRuntime.queryInterface(XAccessibleEditableText.class,oObj) ; - + UnoRuntime.queryInterface(XAccessibleEditableText.class,oObj) ; + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { @@ -102,7 +102,7 @@ public class AccessibleEditableTextPara extends TestCase { int l = new String("AccessibleEditablePara").length(); edText.deleteText(0, l); edText.setText("Event"); - edText.setText("AccessibleEditablePara"); + edText.setText("AccessibleEditablePara"); }catch(com.sun.star.lang.IndexOutOfBoundsException e) {} } }); @@ -146,7 +146,7 @@ public class AccessibleEditableTextPara extends TestCase { throw new StatusException( "Couldn't create document ", e ); } } - + /** * Sleeps for 0.5 sec. to allow StarOffice to react on <code> * reset</code> call. @@ -158,5 +158,5 @@ public class AccessibleEditableTextPara extends TestCase { log.println("While waiting :" + e) ; } } - + }
\ No newline at end of file diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java b/qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java index 3a48179223ea..54126337db9c 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleGraphicShape.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 diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java b/qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java index b541353c48b1..bf82b3012b51 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleOLEShape.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 diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePageShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePageShape.java index 9be5cfdac65b..37b4a8dc2599 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePageShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePageShape.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 diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java index fcd9ad664f84..fd742e4f9441 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.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 @@ -89,7 +89,7 @@ public class AccessiblePresentationGraphicShape extends TestCase { // creation of testobject here // first we write what we are intend to do to log file log.println( "creating a test environment" ); - + XMultiServiceFactory docMSF = (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class, xDoc); try { diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java index 1c705a9b3067..3e77577213ef 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.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 diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java index 8979255a6c48..7dd6b8fd703b 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.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 diff --git a/qadevOOo/tests/java/mod/_svx/AccessibleShape.java b/qadevOOo/tests/java/mod/_svx/AccessibleShape.java index 41210cbe9617..c62ba90f1155 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessibleShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessibleShape.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 diff --git a/qadevOOo/tests/java/mod/_svx/GraphicExporter.java b/qadevOOo/tests/java/mod/_svx/GraphicExporter.java index 56ebf07d3729..a2fc8eb611c0 100644 --- a/qadevOOo/tests/java/mod/_svx/GraphicExporter.java +++ b/qadevOOo/tests/java/mod/_svx/GraphicExporter.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 @@ -124,7 +124,7 @@ public class GraphicExporter extends TestCase { * </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { XInterface oObj = null; XShape oShape = null; @@ -146,7 +146,7 @@ public class GraphicExporter extends TestCase { // create testobject here SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) tParam.getMSF()); - oShape = SOF.createShape(xDrawDoc, 5000, 5000, 1500, 1000, + oShape = SOF.createShape(xDrawDoc, 5000, 5000, 1500, 1000, "GraphicObject"); DrawTools.getShapes(DrawTools.getDrawPage(xDrawDoc, 0)).add(oShape); @@ -155,10 +155,10 @@ public class GraphicExporter extends TestCase { XComponent xComp = null; try { - oShapeProps.setPropertyValue("GraphicURL", + oShapeProps.setPropertyValue("GraphicURL", util.utils.getFullTestURL( "space-metal.jpg")); - xComp = (XComponent) UnoRuntime.queryInterface(XComponent.class, + xComp = (XComponent) UnoRuntime.queryInterface(XComponent.class, oShape); XExporter xEx = (XExporter) UnoRuntime.queryInterface( @@ -180,7 +180,7 @@ public class GraphicExporter extends TestCase { final URL aURL = new URL(); aURL.Complete = util.utils.getOfficeTemp( - (XMultiServiceFactory) tParam.getMSF()) + + (XMultiServiceFactory) tParam.getMSF()) + "picture.jpg"; final XSimpleFileAccess fAcc; @@ -204,7 +204,7 @@ public class GraphicExporter extends TestCase { log.println("ImplName " + util.utils.getImplName(oObj)); TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("MediaDescriptor", + tEnv.addObjRelation("MediaDescriptor", XMLTools.createMediaDescriptor( new String[] { "FilterName", "URL", "MediaType" @@ -217,7 +217,7 @@ public class GraphicExporter extends TestCase { tEnv.addObjRelation("NoFilter.cancel()", new Boolean(true)); final String hideMode = (String) tParam.get("soapi.test.hidewindows"); - tEnv.addObjRelation("XFilter.Checker", + tEnv.addObjRelation("XFilter.Checker", new ifc.document._XFilter.FilterChecker() { public boolean checkFilter() { try { diff --git a/qadevOOo/tests/java/mod/_svx/SvxDrawPage.java b/qadevOOo/tests/java/mod/_svx/SvxDrawPage.java index 15aa351c625a..7a227812f4ef 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxDrawPage.java +++ b/qadevOOo/tests/java/mod/_svx/SvxDrawPage.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 @@ -145,7 +145,7 @@ public class SvxDrawPage extends TestCase { * <code>com.sun.star.drawing.Line</code> service </li> * </ul> */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { XInterface oObj = null; XShape oShape = null; @@ -167,17 +167,17 @@ public class SvxDrawPage extends TestCase { oDP = (XDrawPages) oDPS.getDrawPages(); oDP.insertNewByIndex(1); oDP.insertNewByIndex(2); - oObj = (XDrawPage) AnyConverter.toObject(new Type(XDrawPage.class), + oObj = (XDrawPage) AnyConverter.toObject(new Type(XDrawPage.class), oDP.getByIndex(0)); SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) tParam.getMSF()); - oShape = SOF.createShape(xComp, 5000, 3500, 7500, 5000, + oShape = SOF.createShape(xComp, 5000, 3500, 7500, 5000, "Rectangle"); DrawTools.getShapes((XDrawPage) oObj).add(oShape); - XShape oShape1 = SOF.createShape(xComp, 5000, 5500, 5000, 5000, + XShape oShape1 = SOF.createShape(xComp, 5000, 5500, 5000, 5000, "Rectangle"); DrawTools.getShapes((XDrawPage) oObj).add(oShape1); } catch (com.sun.star.lang.WrappedTargetException e) { @@ -200,7 +200,7 @@ public class SvxDrawPage extends TestCase { //adding a controlButton to have a Form FormTools.insertControlShape( - (XComponent) UnoRuntime.queryInterface(XComponent.class, xDoc), + (XComponent) UnoRuntime.queryInterface(XComponent.class, xDoc), 3000, 4500, 15000, 1000, "CommandButton"); // relation for XShapes interface diff --git a/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java b/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java index f6cd2accc6ba..c6c22727e6f7 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.java +++ b/qadevOOo/tests/java/mod/_svx/SvxGraphCtrlAccessibleContext.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxGraphicObject.java b/qadevOOo/tests/java/mod/_svx/SvxGraphicObject.java index 28a5cdcaaff6..a8d7b4feb6c7 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxGraphicObject.java +++ b/qadevOOo/tests/java/mod/_svx/SvxGraphicObject.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxShape.java b/qadevOOo/tests/java/mod/_svx/SvxShape.java index 6c3b3bc8bb8a..008fd1602193 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShape.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShape.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java b/qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java index 0225dbab878f..ac204c5f277f 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeCircle.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeCircle.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeCollection.java b/qadevOOo/tests/java/mod/_svx/SvxShapeCollection.java index b20595ec5f53..2e41e20917f6 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeCollection.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeCollection.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeConnector.java b/qadevOOo/tests/java/mod/_svx/SvxShapeConnector.java index 9c38e394ff98..89f8df2391e1 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeConnector.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeConnector.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeControl.java b/qadevOOo/tests/java/mod/_svx/SvxShapeControl.java index 09b4ecb72226..7a7d6d941977 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeControl.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeControl.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java b/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java index 8a7c1d0300b3..f2d0047eae2b 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeDimensioning.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapeGroup.java b/qadevOOo/tests/java/mod/_svx/SvxShapeGroup.java index 427c26046ff8..aa1bba14b7a7 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapeGroup.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapeGroup.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java index 7e26f764f40e..f643841d1c59 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygon.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java index 7ac67194b299..1e5f98b98604 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.java +++ b/qadevOOo/tests/java/mod/_svx/SvxShapePolyPolygonBezier.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoNumberingRules.java b/qadevOOo/tests/java/mod/_svx/SvxUnoNumberingRules.java index c7d7e8e13a7d..88e72c79d0e4 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoNumberingRules.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoNumberingRules.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 @@ -52,10 +52,10 @@ public class SvxUnoNumberingRules extends TestCase { (XMultiServiceFactory) tParam.getMSF()); } - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { XMultiServiceFactory docMSF = (XMultiServiceFactory) UnoRuntime.queryInterface( - XMultiServiceFactory.class, + XMultiServiceFactory.class, xDrawDoc); XInterface oObj = null; @@ -70,9 +70,9 @@ public class SvxUnoNumberingRules extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); log.println("Implementationname: " + util.utils.getImplName(oObj)); - + Object NewRules=null; - + try{ XIndexAccess xIA = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, oObj); NewRules = xIA.getByIndex(2); diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoText.java b/qadevOOo/tests/java/mod/_svx/SvxUnoText.java index 611b0e203c8a..ce006623e82b 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoText.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoText.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 @@ -123,7 +123,7 @@ public class SvxUnoText extends TestCase { oShape = SOF.createShape (xDrawDoc,5000,3500,7500,5000,"Text"); DrawTools.getShapes(DrawTools.getDrawPage(xDrawDoc,0)).add(oShape); - + XSimpleText text = (XSimpleText) UnoRuntime.queryInterface (XSimpleText.class, oShape) ; @@ -155,14 +155,14 @@ public class SvxUnoText extends TestCase { "com.sun.star.text.TextField.DateTime"); log.println( " adding InstCreator object" ); tEnv.addObjRelation( "XTEXTINFO", new InstCreator( xDrawDoc, tDsc ) ); - + // adding relation for XTextRangeMover tEnv.addObjRelation("RangeForMove", aRange); tEnv.addObjRelation("XTextRange", oObj); - + // adding relation for XTextRangeComapre tEnv.addObjRelation("TEXT", (XText) UnoRuntime.queryInterface(XText.class, oShape)) ; - + return tEnv; } // finish method getTestEnvironment diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextContent.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextContent.java index af72326d32fd..3ff28a8239eb 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextContent.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextContent.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java index 4e27561e01bc..36e5a4958399 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextContentEnum.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextCursor.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextCursor.java index c4521c9aadcf..35bf9287dd28 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextCursor.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextCursor.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java index 30226c575931..605ac61fc209 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextField.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextField.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 @@ -128,7 +128,7 @@ public class SvxUnoTextField extends TestCase { } XTextCursor the_Cursor = null; - + // create testobject here try { diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextRange.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextRange.java index ed6c61579b66..e5d626bc0c13 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextRange.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextRange.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 diff --git a/qadevOOo/tests/java/mod/_svx/SvxUnoTextRangeEnumeration.java b/qadevOOo/tests/java/mod/_svx/SvxUnoTextRangeEnumeration.java index d9ef393e966f..7ea4ebf6ccf6 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxUnoTextRangeEnumeration.java +++ b/qadevOOo/tests/java/mod/_svx/SvxUnoTextRangeEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sw/CharacterStyle.java b/qadevOOo/tests/java/mod/_sw/CharacterStyle.java index 4c91540d52c2..95c70509306f 100755 --- a/qadevOOo/tests/java/mod/_sw/CharacterStyle.java +++ b/qadevOOo/tests/java/mod/_sw/CharacterStyle.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 @@ -78,7 +78,7 @@ public class CharacterStyle extends TestCase { log.println( " disposing xTextDoc " ); DesktopTools.closeDoc(xTextDoc); } - + /** * Creating a Testenvironment for the interfaces to be tested. * At first style families are gotten from a text document using @@ -201,7 +201,7 @@ public class CharacterStyle extends TestCase { short exclude = PropertyAttribute.MAYBEVOID + PropertyAttribute.READONLY; tEnv.addObjRelation("PropertyNames",utils.getFilteredPropertyNames(xStyleProp, (short)0, exclude)); - return tEnv; + return tEnv; } } diff --git a/qadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.java b/qadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.java index 20e667cd4be5..f0903c99e693 100755 --- a/qadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.java +++ b/qadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.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 @@ -55,10 +55,10 @@ import util.utils; * @see com.sun.star.style.ConditionalParagraphStyle */ public class ConditionalParagraphStyle extends TestCase { - + XTextDocument xTextDoc; SOfficeFactory SOF = null; - + /** * Creates text document. */ @@ -146,7 +146,7 @@ public class ConditionalParagraphStyle extends TestCase { XNameContainer oSFNC = (XNameContainer) UnoRuntime.queryInterface(XNameContainer.class, oSFNA); - + try { if ( oSFNC.hasByName("My Style") ) oSFNC.removeByName("My Style"); @@ -195,7 +195,7 @@ public class ConditionalParagraphStyle extends TestCase { String[] names = utils.getFilteredPropertyNames(xStyleProp, (short)0, exclude); tEnv.addObjRelation("PropertyNames", names); - return tEnv; + return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_sw/DocumentSettings.java b/qadevOOo/tests/java/mod/_sw/DocumentSettings.java index 5ece58f1a29c..9d003240d9fe 100644 --- a/qadevOOo/tests/java/mod/_sw/DocumentSettings.java +++ b/qadevOOo/tests/java/mod/_sw/DocumentSettings.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 diff --git a/qadevOOo/tests/java/mod/_sw/PageStyle.java b/qadevOOo/tests/java/mod/_sw/PageStyle.java index 25434add31cb..19a518cf9f67 100755 --- a/qadevOOo/tests/java/mod/_sw/PageStyle.java +++ b/qadevOOo/tests/java/mod/_sw/PageStyle.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 @@ -55,10 +55,10 @@ import util.utils; * @see com.sun.star.style.PageStyle */ public class PageStyle extends TestCase { - + XTextDocument xTextDoc; SOfficeFactory SOF = null; - + /** * Creates text document. */ @@ -115,7 +115,7 @@ public class PageStyle extends TestCase { log.println("Error: exception occured."); e.printStackTrace(log); throw new StatusException( "Couldn't create environment ", e ); - } + } try { log.print("Creating a user-defined style... "); @@ -140,7 +140,7 @@ public class PageStyle extends TestCase { XNameContainer oSFNC = (XNameContainer) UnoRuntime.queryInterface(XNameContainer.class, oSFNA); - + try { if ( oSFNC.hasByName("My Style") ) oSFNC.removeByName("My Style"); @@ -195,7 +195,7 @@ public class PageStyle extends TestCase { String[] names = utils.getFilteredPropertyNames(xStyleProp, (short)0, exclude); tEnv.addObjRelation("PropertyNames", names); - return tEnv; + return tEnv; } - + } diff --git a/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java b/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java index 1c75183170d3..be55107c94f8 100755 --- a/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java +++ b/qadevOOo/tests/java/mod/_sw/ParagraphStyle.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 @@ -55,10 +55,10 @@ import util.utils; * @see com.sun.star.style.ParagraphStyle */ public class ParagraphStyle extends TestCase { - + XTextDocument xTextDoc; SOfficeFactory SOF = null; - + /** * Creates text document. */ @@ -80,7 +80,7 @@ public class ParagraphStyle extends TestCase { log.println( " disposing xTextDoc " ); DesktopTools.closeDoc(xTextDoc); } - + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XNameAccess oSFNA = null; @@ -186,7 +186,7 @@ public class ParagraphStyle extends TestCase { String[] names = utils.getFilteredPropertyNames(xStyleProp, (short)0, exclude); tEnv.addObjRelation("PropertyNames", names); - return tEnv; - } - + return tEnv; + } + } diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.java index 3eb0aa20d8b5..e29891766ff0 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.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 @@ -74,7 +74,7 @@ public class SwAccessibleDocumentPageView extends TestCase { TestParameters Param, PrintWriter log) { XInterface oObj = null; - + XText oText = xTextDoc.getText(); XTextCursor oCursor = oText.createTextCursor(); @@ -98,10 +98,10 @@ public class SwAccessibleDocumentPageView extends TestCase { } catch ( com.sun.star.lang.IllegalArgumentException e ){ e.printStackTrace(log); throw new StatusException( "Couldn't insert lines", e ); - } - - XController xController = xTextDoc.getCurrentController(); - + } + + XController xController = xTextDoc.getCurrentController(); + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); @@ -125,7 +125,7 @@ public class SwAccessibleDocumentPageView extends TestCase { log.println("Couldn't change mode"); throw new StatusException(Status.failed("Couldn't change mode")); } - + shortWait(); AccessibilityTools at = new AccessibilityTools(); @@ -139,25 +139,25 @@ public class SwAccessibleDocumentPageView extends TestCase { log.println("ImplementationName " + utils.getImplName(oObj)); - TestEnvironment tEnv = new TestEnvironment(oObj); + TestEnvironment tEnv = new TestEnvironment(oObj); final XText the_text = oText; tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { - public void fireEvent() { + public void fireEvent() { String oldText = the_text.getString(); the_text.setString("EVENT FIRED"); shortWait(); the_text.setString(oldText); } - }); - + }); + return tEnv; - } - - + } + + /** * Sleeps for 1 sec. to allow StarOffice to react on <code> * reset</code> call. @@ -168,8 +168,8 @@ public class SwAccessibleDocumentPageView extends TestCase { } catch (InterruptedException e) { log.println("While waiting :" + e) ; } - } - + } + /** * Called while disposing a <code>TestEnvironment</code>. diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java index 45d0e9a226d8..07d517003cd8 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java index 51c28e2e68aa..1761aabdf3a2 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java index 33cdc1e2fff8..c355b5d17d92 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java index 3b9604124211..0a8ba7c23b0d 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java index 9fc37c112980..db817c4b260b 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java b/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java index f70fa3e11ae1..d99a6dcfa4f1 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.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 @@ -110,12 +110,12 @@ public class SwAccessiblePageView extends TestCase { e.printStackTrace(log); throw new StatusException( "Couldn't insert lines", e ); } - + // Enumeration XEnumerationAccess oEnumA = (XEnumerationAccess) UnoRuntime.queryInterface(XEnumerationAccess.class, oText ); XEnumeration oEnum = oEnumA.createEnumeration(); - + try { para = (XInterface) AnyConverter.toObject( new Type(XInterface.class),oEnum.nextElement()); @@ -134,7 +134,7 @@ public class SwAccessiblePageView extends TestCase { e.printStackTrace(log); log.println("Error: exception occured..."); } - + try { portP = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, port); diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java index 23e7014e46eb..9e32d3ae5aa0 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.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 @@ -72,7 +72,7 @@ public class SwAccessibleParagraphView extends TestCase { TestParameters Param, PrintWriter log) { XInterface oObj = null; - + XText oText = xTextDoc.getText(); oText.setString("XAccessibleText"); @@ -88,29 +88,29 @@ public class SwAccessibleParagraphView extends TestCase { oObj = at.SearchedContext; - log.println("ImplementationName " + utils.getImplName(oObj)); + log.println("ImplementationName " + utils.getImplName(oObj)); TestEnvironment tEnv = new TestEnvironment(oObj); - + final XText paraText = xTextDoc.getText(); tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { - public void fireEvent() { + public void fireEvent() { String old = paraText.getString(); paraText.setString("Just a line"); paraText.setString(old); } }); + + final String text = "XAccessibleText"; - final String text = "XAccessibleText"; - - tEnv.addObjRelation("XAccessibleText.Text", text); - + tEnv.addObjRelation("XAccessibleText.Text", text); + return tEnv; - } - + } + /** * Called while disposing a <code>TestEnvironment</code>. * Disposes text document. diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java index b067b9a6293d..f9f511398691 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.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 @@ -72,7 +72,7 @@ public class SwAccessibleTableCellView extends TestCase { * @see TestEnvironment * @see #getTestEnvironment() */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XTextTable oTable = null; @@ -83,7 +83,7 @@ public class SwAccessibleTableCellView extends TestCase { oTable = SOF.createTextTable(xTextDoc); } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log); - throw new StatusException("Couldn't create TextTable : " + + throw new StatusException("Couldn't create TextTable : " + e.getMessage(), e); } @@ -91,11 +91,11 @@ public class SwAccessibleTableCellView extends TestCase { SOF.insertTextContent(xTextDoc, oTable); } catch (com.sun.star.lang.IllegalArgumentException e) { e.printStackTrace(log); - throw new StatusException("Couldn't insert text content :" + + throw new StatusException("Couldn't insert text content :" + e.getMessage(), e); } - XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); AccessibilityTools at = new AccessibilityTools(); @@ -113,10 +113,10 @@ public class SwAccessibleTableCellView extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); final XAccessibleSelection accSel = (XAccessibleSelection) UnoRuntime.queryInterface( - XAccessibleSelection.class, + XAccessibleSelection.class, at.SearchedContext.getAccessibleParent()); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { accSel.selectAllAccessibleChildren(); diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java index d08e2cef7d50..e74ceaa7f315 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java index a55f458de64b..8114d24b84f1 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java index 676a475b099b..a6af6f769d00 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java index 2f18e8eefc44..ab5c19e6d9b2 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXAutoTextContainer.java b/qadevOOo/tests/java/mod/_sw/SwXAutoTextContainer.java index 00bad4ad1f62..978ea5b54176 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXAutoTextContainer.java +++ b/qadevOOo/tests/java/mod/_sw/SwXAutoTextContainer.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java b/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java index 9953196cfcbe..55befb374caf 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java +++ b/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.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 @@ -76,7 +76,7 @@ import com.sun.star.uno.XInterface; public class SwXAutoTextEntry extends TestCase { XTextDocument xTextDoc; XAutoTextGroup oGroup; - + /** * Creates text document. */ @@ -91,7 +91,7 @@ public class SwXAutoTextEntry extends TestCase { throw new StatusException( "Couldn't create document", e ); } } - + /** * Removes added element from AutoTextGroup */ @@ -108,8 +108,8 @@ public class SwXAutoTextEntry extends TestCase { log.println( "disposing xTextDoc " ); util.DesktopTools.closeDoc(xTextDoc); } - - + + /** * Creating a Testenvironment for the interfaces to be tested. * Creates an instance of the service @@ -127,13 +127,13 @@ public class SwXAutoTextEntry extends TestCase { */ protected synchronized TestEnvironment createTestEnvironment (TestParameters Param, PrintWriter log) { - + XAutoTextEntry oEntry = null; XAutoTextContainer oContainer; XInterface oObj = null; int n = 0; int nCount = 0; - + log.println( "creating a test environment" ); try { XMultiServiceFactory myMSF = (XMultiServiceFactory)Param.getMSF(); @@ -145,28 +145,28 @@ public class SwXAutoTextEntry extends TestCase { e.printStackTrace(log); throw new StatusException("Couldn't create AutoTextContainer", e); } - + XNameAccess oContNames = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, oContainer); - + String contNames[] = oContNames.getElementNames(); for (int i =0; i < contNames.length; i++){ log.println("ContainerNames[ "+ i + "]: " + contNames[i]); } - + try{ oObj = (XInterface) AnyConverter.toObject(new Type(XInterface.class),oContNames.getByName("mytexts")); } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log); throw new StatusException("Couldn't get AutoTextGroup", e); } - + oGroup = (XAutoTextGroup) UnoRuntime.queryInterface (XAutoTextGroup.class, oObj); String[] oENames = oGroup.getElementNames(); for (int i=0; i<oENames.length; i++) { log.println("AutoTextEntryNames[" + i + "]: " + oENames[i]); } - + XText oText = xTextDoc.getText(); oText.insertString(oText.getStart(), "New AutoText", true); XTextRange oTextRange = (XTextRange) oText; @@ -188,30 +188,30 @@ public class SwXAutoTextEntry extends TestCase { } catch ( com.sun.star.lang.IllegalArgumentException e ) { e.printStackTrace(log); } - + oObj = oEntry; - + log.println("Trying to use XText as TextRange in the method applyTo"); oEntry.applyTo(oTextRange); - + oTextRange = oText.createTextCursor(); log.println("Trying to use XTextCursor as TextRange in the method applyTo"); oEntry.applyTo(oTextRange); - + log.println( "creating a new environment for AutoTextEntry object" ); TestEnvironment tEnv = new TestEnvironment( oObj ); - + // adding relation for XText DefaultDsc tDsc = new DefaultDsc("com.sun.star.text.XTextContent", "com.sun.star.text.TextField.DateTime"); log.println( " adding InstCreator object" ); tEnv.addObjRelation( "XTEXTINFO", new InstCreator( xTextDoc, tDsc ) ); - + log.println( "adding TextDocument as mod relation to environment" ); tEnv.addObjRelation("TEXTDOC", xTextDoc); - + return tEnv; } // finish method getTestEnvironment - - + + } // finish class SwXAutoTextEntry diff --git a/qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java b/qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java index 3e021d7267c9..4095e19e3725 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java +++ b/qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.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 @@ -74,7 +74,7 @@ import util.utils; */ public class SwXAutoTextGroup extends TestCase { XTextDocument xTextDoc; - + /** * Creates text document. */ @@ -88,7 +88,7 @@ public class SwXAutoTextGroup extends TestCase { throw new StatusException( "Couldn't create document", e ); } } - + /** * Disposes text document. */ @@ -96,11 +96,11 @@ public class SwXAutoTextGroup extends TestCase { log.println( " disposing xTextDoc " ); util.DesktopTools.closeDoc(xTextDoc); } - + /** * Creating a Testenvironment for the interfaces to be tested. * Creates an instance of the service - * <code>com.sun.star.text.AutoTextContainer</code>, then creates a new + * <code>com.sun.star.text.AutoTextContainer</code>, then creates a new * group into the container.<p> * Object relations created : * <ul> @@ -109,10 +109,10 @@ public class SwXAutoTextGroup extends TestCase { * </ul> */ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { - + XInterface oObj = null; XAutoTextContainer oContainer; - + log.println( "creating a test environment" ); try { XMultiServiceFactory myMSF = (XMultiServiceFactory)Param.getMSF(); @@ -123,15 +123,15 @@ public class SwXAutoTextGroup extends TestCase { throw new StatusException("Couldn't create AutoTextContainer", e); } String myGroupName="myNewGroup2*1"; - + XAutoTextContainer xATC = (XAutoTextContainer) UnoRuntime.queryInterface(XAutoTextContainer.class, oContainer); - + try { log.println("removing element with name '" + myGroupName + "'"); xATC.removeByName(myGroupName); } catch (com.sun.star.container.NoSuchElementException e) { } - + try { log.println("adding element with name '" + myGroupName + "'"); xATC.insertNewByName(myGroupName); @@ -142,37 +142,37 @@ public class SwXAutoTextGroup extends TestCase { ex.printStackTrace(log); throw new StatusException("could not insert '"+myGroupName+"' into container",ex); } - - + + XNameAccess oContNames = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, oContainer); - + if (Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)){ String contNames[] = oContNames.getElementNames(); for (int i =0; i < contNames.length; i++){ log.println("ContainerNames[ "+ i + "]: " + contNames[i]); } } - + try{ oObj = (XInterface) AnyConverter.toObject(new Type(XInterface.class),oContNames.getByName(myGroupName)); } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log); throw new StatusException("Couldn't get AutoTextGroup '"+myGroupName + "'", e); } - + log.println("ImplementationName " + utils.getImplName(oObj)); - + log.println( "creating a new environment for AutoTextGroup object" ); TestEnvironment tEnv = new TestEnvironment( oObj ); - + XText oText = xTextDoc.getText(); oText.insertString(oText.getStart(), "New AutoText", true); - + log.println( "adding TextRange as mod relation to environment" ); tEnv.addObjRelation("TextRange", oText); - + return tEnv; } // finish method getTestEnvironment - - + + } // finish class SwXAutoTextGroup diff --git a/qadevOOo/tests/java/mod/_sw/SwXBodyText.java b/qadevOOo/tests/java/mod/_sw/SwXBodyText.java index 91c14dd2b0b6..adc5595d58fc 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXBodyText.java +++ b/qadevOOo/tests/java/mod/_sw/SwXBodyText.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXBookmark.java b/qadevOOo/tests/java/mod/_sw/SwXBookmark.java index 12e7fa2403ff..feb3f8dabbb6 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXBookmark.java +++ b/qadevOOo/tests/java/mod/_sw/SwXBookmark.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java b/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java index a28896ef7844..cec8afee207a 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java +++ b/qadevOOo/tests/java/mod/_sw/SwXBookmarks.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXCell.java b/qadevOOo/tests/java/mod/_sw/SwXCell.java index 367b59e02979..f05a79f1eb1d 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXCell.java +++ b/qadevOOo/tests/java/mod/_sw/SwXCell.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXCellRange.java b/qadevOOo/tests/java/mod/_sw/SwXCellRange.java index a9a5dfff9bd4..7610618877e7 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXCellRange.java +++ b/qadevOOo/tests/java/mod/_sw/SwXCellRange.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 @@ -157,9 +157,9 @@ public class SwXCellRange extends TestCase { NewData[4] = new Double[] {new Double(4),new Double(9),new Double(2.5),new Double(5)}; tEnv.addObjRelation("NewData",NewData); - + // com::sun::star::chart::XChartDataArray - tEnv.addObjRelation("CRDESC", + tEnv.addObjRelation("CRDESC", "Column and RowDescriptions can't be changed for this Object"); diff --git a/qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.java b/qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.java index 582d2fbbfc23..544ec015dda2 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.java +++ b/qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.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 @@ -98,8 +98,8 @@ public class SwXChapterNumbering extends TestCase { XChapterNumberingSupplier oCNSupp = (XChapterNumberingSupplier) UnoRuntime.queryInterface(XChapterNumberingSupplier.class,xTextDoc); - oObj = oCNSupp.getChapterNumberingRules(); - + oObj = oCNSupp.getChapterNumberingRules(); + PropertyValue[] instance1 = null; try { instance1 = (PropertyValue[]) oCNSupp.getChapterNumberingRules().getByIndex(1); @@ -108,13 +108,13 @@ public class SwXChapterNumbering extends TestCase { } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(); } - + //instance1[0].Value = new Short((short)5); - + TestEnvironment tEnv = new TestEnvironment( oObj ); - + tEnv.addObjRelation("INSTANCE1", instance1); - + return tEnv; } // finish method getTestEnvironment diff --git a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java index ab776da4c6e1..ec42193e731e 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java +++ b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java index b8e0448d2d12..0fb1f22e78d5 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java +++ b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java index 3fd780373e08..fbe2156932e5 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java +++ b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXDrawPage.java b/qadevOOo/tests/java/mod/_sw/SwXDrawPage.java index 6a6d7f6480c0..306d8956737e 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXDrawPage.java +++ b/qadevOOo/tests/java/mod/_sw/SwXDrawPage.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXEndnoteProperties.java b/qadevOOo/tests/java/mod/_sw/SwXEndnoteProperties.java index 7518b94309fc..603a01d53677 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXEndnoteProperties.java +++ b/qadevOOo/tests/java/mod/_sw/SwXEndnoteProperties.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXFieldEnumeration.java b/qadevOOo/tests/java/mod/_sw/SwXFieldEnumeration.java index 81a7e4b70447..83cef6f8fc4d 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFieldEnumeration.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFieldEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXFieldMaster.java b/qadevOOo/tests/java/mod/_sw/SwXFieldMaster.java index e2e7bac89b6c..8d4a14b2759b 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFieldMaster.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFieldMaster.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXFootnote.java b/qadevOOo/tests/java/mod/_sw/SwXFootnote.java index 39ab7c74a009..1a21ad5cc25f 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFootnote.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFootnote.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java b/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java index df6e541fd553..95c73e4d1249 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java b/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java index 661f3c9c055a..a9c7ee4908d1 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXFootnotes.java b/qadevOOo/tests/java/mod/_sw/SwXFootnotes.java index 0c50c4c28014..ecb9b6494550 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFootnotes.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFootnotes.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXFrames.java b/qadevOOo/tests/java/mod/_sw/SwXFrames.java index ad4dd2eaa1c0..320ca60cd2cd 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFrames.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFrames.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java b/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java index dcf62875f97d..371e125780c3 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java +++ b/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.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 @@ -189,7 +189,7 @@ public class SwXHeadFootText extends TestCase { log.println( "adding InstCreator object" ); tEnv.addObjRelation( "XTEXTINFO", new InstCreator( xTextDoc, tDsc ) ); - + tEnv.addObjRelation( "TEXT", oObj); return tEnv; diff --git a/qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.java b/qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.java index aa339c2679b5..1fac0d2747d0 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.java +++ b/qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java b/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java index 64327817ec02..b97baff7ec72 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java +++ b/qadevOOo/tests/java/mod/_sw/SwXMailMerge.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 @@ -85,7 +85,7 @@ public class SwXMailMerge extends TestCase { XInterface oRowSet = null; Object oConnection = null; XJob Job = null; - + log.println(" instantiate MailMerge service"); try { oObj = (XInterface) ( (XMultiServiceFactory) Param.getMSF()).createInstance @@ -93,7 +93,7 @@ public class SwXMailMerge extends TestCase { } catch (Exception e) { throw new StatusException("Can't create object environment", e) ; } - + // <set some variables> String cTestDoc = utils.getFullTestURL("MailMerge.sxw"); //cMailMerge_DocumentURL = cTestDoc @@ -105,7 +105,7 @@ public class SwXMailMerge extends TestCase { sel[1] = new int[5]; Object[] myBookMarks = new Object[2]; // </set some variables> - + // <create XResultSet> log.println("create a XResultSet"); try { @@ -114,9 +114,9 @@ public class SwXMailMerge extends TestCase { } catch (Exception e) { throw new StatusException("Can't create com.sun.star.sdb.RowSet", e); } - XPropertySet oRowSetProps = (XPropertySet) + XPropertySet oRowSetProps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, oRowSet); - XRowSet xRowSet = (XRowSet) + XRowSet xRowSet = (XRowSet) UnoRuntime.queryInterface(XRowSet.class, oRowSet); try { oRowSetProps.setPropertyValue("DataSourceName",cDataSourceName); @@ -136,13 +136,13 @@ public class SwXMailMerge extends TestCase { } catch (SQLException e) { throw new StatusException("Can't execute oRowSet", e); } - - XResultSet oResultSet = (XResultSet) + + XResultSet oResultSet = (XResultSet) UnoRuntime.queryInterface(XResultSet.class, oRowSet); - - - + + + // <create Bookmarks> log.println("create bookmarks"); try { @@ -156,22 +156,22 @@ public class SwXMailMerge extends TestCase { throw new StatusException("Cant get Bookmarks", e); } // </create Bookmarks> - + // <fill object with values> - + log.println("fill MailMerge with default connection"); - - XPropertySet oObjProps = (XPropertySet) + + XPropertySet oObjProps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, oObj); try { - oObjProps.setPropertyValue("ActiveConnection", getLocalXConnection(Param)); - oObjProps.setPropertyValue("DataSourceName", cDataSourceName); + oObjProps.setPropertyValue("ActiveConnection", getLocalXConnection(Param)); + oObjProps.setPropertyValue("DataSourceName", cDataSourceName); oObjProps.setPropertyValue("Command", cDataCommand); oObjProps.setPropertyValue("CommandType", new Integer(CommandType.TABLE)); oObjProps.setPropertyValue("OutputType", new Short(MailMergeType.FILE)); oObjProps.setPropertyValue("DocumentURL", cTestDoc); oObjProps.setPropertyValue("OutputURL", cOutputURL); - oObjProps.setPropertyValue("FileNamePrefix", "Author"); + oObjProps.setPropertyValue("FileNamePrefix", "Author"); oObjProps.setPropertyValue("FileNameFromColumn", new Boolean(false)); oObjProps.setPropertyValue("Selection", new Object[0]); @@ -185,15 +185,15 @@ public class SwXMailMerge extends TestCase { throw new StatusException("Can't set properties on oObj", e); } // </fill object with values> - - + + // <create object relations> Object[] vXJobArgs = new Object[4]; NamedValue[] vXJobArg0 = new NamedValue[8]; NamedValue[] vXJobArg1 = new NamedValue[7]; NamedValue[] vXJobArg2 = new NamedValue[10]; NamedValue[] vXJobArg3 = new NamedValue[0]; - + // first Arguments vXJobArg0[0] = new NamedValue("DataSourceName", cDataSourceName); vXJobArg0[1] = new NamedValue("Command", cDataCommand); @@ -226,13 +226,13 @@ public class SwXMailMerge extends TestCase { vXJobArg2[7] = new NamedValue("FileNamePrefix", "Identifier"); vXJobArg2[8] = new NamedValue("FileNameFromColumn", new Boolean(true)); vXJobArg2[9] = new NamedValue("Selection", myBookMarks); - + vXJobArgs[0] = vXJobArg0; vXJobArgs[1] = vXJobArg1; vXJobArgs[2] = vXJobArg2; vXJobArgs[3] = vXJobArg3; - - + + Job = (XJob) UnoRuntime.queryInterface(XJob.class, oObj); try{ Job.execute(vXJobArg2); @@ -241,11 +241,11 @@ public class SwXMailMerge extends TestCase { } catch ( Exception e){ System.out.println(e.toString()); } - + // <create XResultSet> log.println("create XResultSet"); - + try { oRowSet = (XInterface) ( (XMultiServiceFactory) Param.getMSF()).createInstance ("com.sun.star.sdb.RowSet"); @@ -253,9 +253,9 @@ public class SwXMailMerge extends TestCase { throw new StatusException("Can't create com.sun.star.sdb.RowSet", e); } oRowSetProps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, oRowSet); - + xRowSet = (XRowSet) UnoRuntime.queryInterface(XRowSet.class, oRowSet); - + try { oRowSetProps.setPropertyValue("DataSourceName",cDataSourceName); oRowSetProps.setPropertyValue("Command",cDataCommand); @@ -274,57 +274,57 @@ public class SwXMailMerge extends TestCase { } catch (SQLException e) { throw new StatusException("Can't execute oRowSet", e); } - - oResultSet = (XResultSet) + + oResultSet = (XResultSet) UnoRuntime.queryInterface(XResultSet.class, oRowSet); - + XResultSet oMMXResultSet = null; try { - oMMXResultSet = (XResultSet) - UnoRuntime.queryInterface(XResultSet.class, - ( (XInterface) - ( (XMultiServiceFactory) + oMMXResultSet = (XResultSet) + UnoRuntime.queryInterface(XResultSet.class, + ( (XInterface) + ( (XMultiServiceFactory) Param.getMSF()).createInstance("com.sun.star.sdb.RowSet"))); - + } catch (Exception e) { throw new StatusException("Can't create com.sun.star.sdb.RowSet", e); } // </create object relations> - + TestEnvironment tEnv = new TestEnvironment(oObj) ; - + // <adding object relations> - + // com.sun.star.sdb.DataAccessDescriptor tEnv.addObjRelation("DataAccessDescriptor.XResultSet", oResultSet); tEnv.addObjRelation("DataAccessDescriptor.XConnection", getRemoteXConnection(Param)); - + // com.sun.star.text.MailMaerge tEnv.addObjRelation("MailMerge.XConnection", getRemoteXConnection(Param)); tEnv.addObjRelation("MailMerge.XResultSet", oMMXResultSet); - + // com.sun.star.text.XMailMergeBroadcaster tEnv.addObjRelation( "executeArgs", vXJobArg0); tEnv.addObjRelation( "Job", Job); - + // com.sun.star.task.XJob tEnv.addObjRelation("XJobArgs", vXJobArgs); - + // </adding object relations> - + return tEnv ; } - + private XConnection getRemoteXConnection(TestParameters Param){ - + log.println("create remote connection"); - + String databaseName = null ; XDataSource oXDataSource = null; Object oInterface = null; XMultiServiceFactory xMSF = null ; int uniqueSuffix = Param.getInt("uniqueSuffix"); - + try { xMSF = (XMultiServiceFactory)Param.getMSF(); oInterface = xMSF.createInstance( "com.sun.star.sdb.DatabaseContext" ); @@ -333,7 +333,7 @@ public class SwXMailMerge extends TestCase { String tmpDatabaseUrl = utils.getOfficeTempDir((XMultiServiceFactory)Param.getMSF()); databaseName = "NewDatabaseSource" + uniqueSuffix ; - + String tmpDatabaseFile = tmpDatabaseUrl + databaseName + ".odb"; System.out.println("try to delete '"+tmpDatabaseFile+"'"); utils.deleteFile(((XMultiServiceFactory) Param.getMSF()), tmpDatabaseFile); @@ -349,15 +349,15 @@ public class SwXMailMerge extends TestCase { UnoRuntime.queryInterface(XPropertySet.class, newSource); xSrcProp.setPropertyValue("URL", tmpDatabaseUrl) ; - + DBTools dbt = new DBTools( (XMultiServiceFactory)Param.getMSF(), log ); // registering source in DatabaseContext log.println("register database '"+tmpDatabaseUrl+"' as '"+databaseName+"'" ); dbt.reRegisterDB(databaseName, newSource) ; - + uniqueSuffix++; Param.put("uniqueSuffix", new Integer(uniqueSuffix)); - + return dbt.connectToSource(newSource); } catch( Exception e ) { @@ -368,11 +368,11 @@ public class SwXMailMerge extends TestCase { throw new StatusException("could not register new database", e) ; } } - + private XConnection getLocalXConnection(TestParameters Param){ - + log.println("create local connection"); - + XInterface oDataCont = null; try { oDataCont = (XInterface)( (XMultiServiceFactory) Param.getMSF()).createInstance @@ -382,22 +382,22 @@ public class SwXMailMerge extends TestCase { } XNameAccess xNADataCont = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, oDataCont); - + String[] dataNames = xNADataCont.getElementNames(); - + String dataName=""; for (int i = 0; i < dataNames.length; i++){ if (dataNames[i].startsWith("Biblio")) dataName=dataNames[i]; } - + try{ - + Object oDataBase = xNADataCont.getByName(dataName); XDataSource xDataSource = (XDataSource) UnoRuntime.queryInterface(XDataSource.class, oDataBase); - + return xDataSource.getConnection("",""); - + } catch ( NoSuchElementException e){ throw new StatusException("Couldn't get registered data base", e); } catch ( WrappedTargetException e){ @@ -405,34 +405,34 @@ public class SwXMailMerge extends TestCase { } catch ( SQLException e){ throw new StatusException("Couldn't get XConnection from registered data base", e); } - + } - + protected void cleanup(TestParameters Param, PrintWriter log) { log.println("closing connections..."); XMultiServiceFactory xMsf = (XMultiServiceFactory) Param.getMSF(); DBTools dbt = new DBTools( xMsf, log ); - + if (Param.containsKey("uniqueSuffix")){ int uniqueSuffix = Param.getInt("uniqueSuffix"); uniqueSuffix--; String databaseName = ""; while (uniqueSuffix >= 0){ - + databaseName = "NewDatabaseSource" + uniqueSuffix ; - + log.println("revoke '"+databaseName+"'"); - + try{ dbt.revokeDB(databaseName); } catch (com.sun.star.uno.Exception e){ } - + uniqueSuffix--; } } - - } + + } } diff --git a/qadevOOo/tests/java/mod/_sw/SwXModule.java b/qadevOOo/tests/java/mod/_sw/SwXModule.java index dea1cc05998f..c8398b9d7b9d 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXModule.java +++ b/qadevOOo/tests/java/mod/_sw/SwXModule.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXNumberingRules.java b/qadevOOo/tests/java/mod/_sw/SwXNumberingRules.java index 72c7f759d9ff..30dbe80c7810 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXNumberingRules.java +++ b/qadevOOo/tests/java/mod/_sw/SwXNumberingRules.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 @@ -143,7 +143,7 @@ public class SwXNumberingRules extends TestCase { log.println("Error, exception occured..."); e.printStackTrace(log); } - + Object instance1 = null; try { @@ -167,10 +167,10 @@ public class SwXNumberingRules extends TestCase { } catch ( com.sun.star.lang.IllegalArgumentException e ) { log.println("Error, exception occured..."); e.printStackTrace(log); - } - + } + TestEnvironment tEnv = new TestEnvironment( oObj ); - + tEnv.addObjRelation("INSTANCE1", instance1); return tEnv; } diff --git a/qadevOOo/tests/java/mod/_sw/SwXParagraph.java b/qadevOOo/tests/java/mod/_sw/SwXParagraph.java index 5e31bc5f75ff..6bb88deb14b3 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXParagraph.java +++ b/qadevOOo/tests/java/mod/_sw/SwXParagraph.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 @@ -94,17 +94,17 @@ import com.sun.star.util.XCloseable; */ public class SwXParagraph extends TestCase { XTextDocument xTextDoc; - + /** * Creates text document. */ protected void initialize( TestParameters tParam, PrintWriter log ) { - + } - + protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xTextDoc "); - + try { XCloseable closer = (XCloseable) UnoRuntime.queryInterface( XCloseable.class, xTextDoc); @@ -115,8 +115,8 @@ public class SwXParagraph extends TestCase { log.println("couldn't close document"); } } - - + + /** * Creating a Testenvironment for the interfaces to be tested. To obtain * test component, at first several paragraphs are inserted to a major text @@ -140,10 +140,10 @@ public class SwXParagraph extends TestCase { */ protected synchronized TestEnvironment createTestEnvironment (TestParameters tParam, PrintWriter log) { - + if (xTextDoc != null) { log.println(" disposing xTextDoc "); - + try { XCloseable closer = (XCloseable) UnoRuntime.queryInterface( XCloseable.class, xTextDoc); @@ -162,20 +162,20 @@ public class SwXParagraph extends TestCase { e.printStackTrace( log ); throw new StatusException( "Couldn't create document", e ); } - + XInterface oObj = null; XPropertySet paraP = null; XPropertySet portP = null; Object nRules = null; XInterface port = null; XInterface para = null; - + log.println( "creating a test environment" ); - - + + XText oText = xTextDoc.getText(); XTextCursor oCursor = oText.createTextCursor(); - + log.println( "inserting some lines" ); try { for (int i=0; i<5; i++){ @@ -197,12 +197,12 @@ public class SwXParagraph extends TestCase { e.printStackTrace(log); throw new StatusException( "Couldn't insert lines", e ); } - + // Enumeration XEnumerationAccess oEnumA = (XEnumerationAccess) UnoRuntime.queryInterface(XEnumerationAccess.class, oText ); XEnumeration oEnum = oEnumA.createEnumeration(); - + try { para = (XInterface) AnyConverter.toObject( new Type(XInterface.class),oEnum.nextElement()); @@ -221,7 +221,7 @@ public class SwXParagraph extends TestCase { e.printStackTrace(log); log.println("Error: exception occured..."); } - + try { portP = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, port); @@ -246,8 +246,8 @@ public class SwXParagraph extends TestCase { e.printStackTrace(log); throw new StatusException( "Couldn't get Paragraph", e ); } - - + + try { oObj = (XInterface) AnyConverter.toObject( new Type(XInterface.class),oEnum.nextElement()); @@ -256,24 +256,24 @@ public class SwXParagraph extends TestCase { e.printStackTrace(log); throw new StatusException( "Couldn't get Paragraph", e ); } - - + + log.println( "creating a new environment for Paragraph object" ); TestEnvironment tEnv = new TestEnvironment( oObj ); - + log.println("adding ObjectRelation 'PARA' for CharacterProperties"); tEnv.addObjRelation("PARA", paraP); - + log.println("adding ObjectRelation 'PORTION' for CharacterProperties"); tEnv.addObjRelation("PORTION", portP); - + log.println("adding ObjectRelation 'NRULES' for ParagraphProperties"); tEnv.addObjRelation("NRULES", nRules); - + tEnv.addObjRelation("NoAttach","SwXParagraph"); - + return tEnv; } // finish method getTestEnvironment - + } // finish class SwXParagraph diff --git a/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java b/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java index 9be419637935..144b76dcb151 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java +++ b/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXPrintSettings.java b/qadevOOo/tests/java/mod/_sw/SwXPrintSettings.java index 0a9345ccc401..b95661e2308f 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXPrintSettings.java +++ b/qadevOOo/tests/java/mod/_sw/SwXPrintSettings.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXPropertySet.java b/qadevOOo/tests/java/mod/_sw/SwXPropertySet.java index 56d2cca07516..ca2fb30118c2 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXPropertySet.java +++ b/qadevOOo/tests/java/mod/_sw/SwXPropertySet.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXPropertySetInfo.java b/qadevOOo/tests/java/mod/_sw/SwXPropertySetInfo.java index 1ab4f7b370ce..a07d6993cadc 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXPropertySetInfo.java +++ b/qadevOOo/tests/java/mod/_sw/SwXPropertySetInfo.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java b/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java index f3761738fd7b..bc5ff71ca784 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java +++ b/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java b/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java index bf53b234bd97..13afc17e67ba 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java +++ b/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXShape.java b/qadevOOo/tests/java/mod/_sw/SwXShape.java index bd516d22f46f..6ea0f8041574 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXShape.java +++ b/qadevOOo/tests/java/mod/_sw/SwXShape.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXStyle.java b/qadevOOo/tests/java/mod/_sw/SwXStyle.java index 8fc9bb8fa9aa..417080e22780 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXStyle.java +++ b/qadevOOo/tests/java/mod/_sw/SwXStyle.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java b/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java index d8a5b840ecb3..b9cce4d65048 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java +++ b/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java b/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java index 75180338e316..436427b1fc27 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java +++ b/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.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 @@ -124,7 +124,7 @@ public class SwXStyleFamily extends TestCase { * </ul> */ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { - + XNameAccess oSFNA = null; log.println( "Creating Test Environment..." ); diff --git a/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java b/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java index 2ceaf704254b..eed656ee997a 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTableCellText.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java b/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java index ace59c91cc02..c4a970d4c1d2 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTableColumns.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 @@ -128,7 +128,7 @@ public class SwXTableColumns extends TestCase { UnoRuntime.queryInterface(XCellRange.class, oTable)); tEnv.addObjRelation("XIndexAccess.getByIndex.mustBeNull", new Boolean(true)); - + return tEnv; } // finish method getTestEnvironment diff --git a/qadevOOo/tests/java/mod/_sw/SwXTableRows.java b/qadevOOo/tests/java/mod/_sw/SwXTableRows.java index 8d11e3607f44..69b06940d419 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTableRows.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTableRows.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextColumns.java b/qadevOOo/tests/java/mod/_sw/SwXTextColumns.java index cdb1b5d67830..f5ec370614db 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextColumns.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextColumns.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextCursor.java b/qadevOOo/tests/java/mod/_sw/SwXTextCursor.java index a7313943ce50..8d4cfd6a81f8 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextCursor.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextCursor.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 @@ -136,7 +136,7 @@ public class SwXTextCursor extends TestCase { * {@link ifc.text._XTextRange} : major text of text document</li> * </ul> */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -157,19 +157,19 @@ public class SwXTextCursor extends TestCase { aText.insertString(textCursor, "" + (3 - i), false); for (int j = 0; j < 5; j++) { - aText.insertString(textCursor, "XTextCursor,XTextCursor", + aText.insertString(textCursor, "XTextCursor,XTextCursor", false); - aText.insertString(textCursor, "The quick brown fox ", + aText.insertString(textCursor, "The quick brown fox ", false); - aText.insertString(textCursor, "jumps over the lazy dog ", + aText.insertString(textCursor, "jumps over the lazy dog ", false); } - aText.insertControlCharacter(textCursor, - ControlCharacter.PARAGRAPH_BREAK, + aText.insertControlCharacter(textCursor, + ControlCharacter.PARAGRAPH_BREAK, false); - aText.insertControlCharacter(textCursor, - ControlCharacter.LINE_BREAK, + aText.insertControlCharacter(textCursor, + ControlCharacter.LINE_BREAK, false); } } catch (com.sun.star.lang.IllegalArgumentException e) { @@ -189,11 +189,11 @@ public class SwXTextCursor extends TestCase { //Adding relation for util.XSortable final XParagraphCursor paragrCursor = (XParagraphCursor) UnoRuntime.queryInterface( - XParagraphCursor.class, + XParagraphCursor.class, oObj); final PrintWriter finalLog = log; - tEnv.addObjRelation("SORTCHECKER", + tEnv.addObjRelation("SORTCHECKER", new ifc.util._XSortable.XSortChecker() { PrintWriter out = finalLog; @@ -205,32 +205,32 @@ public class SwXTextCursor extends TestCase { textCursor.gotoEnd(false); try { - aText.insertControlCharacter(textCursor, - ControlCharacter.PARAGRAPH_BREAK, + aText.insertControlCharacter(textCursor, + ControlCharacter.PARAGRAPH_BREAK, false); aText.insertString(textCursor, "4", false); - aText.insertControlCharacter(textCursor, - ControlCharacter.PARAGRAPH_BREAK, + aText.insertControlCharacter(textCursor, + ControlCharacter.PARAGRAPH_BREAK, false); aText.insertString(textCursor, "b", false); - aText.insertControlCharacter(textCursor, - ControlCharacter.PARAGRAPH_BREAK, + aText.insertControlCharacter(textCursor, + ControlCharacter.PARAGRAPH_BREAK, false); aText.insertString(textCursor, "3", false); - aText.insertControlCharacter(textCursor, - ControlCharacter.PARAGRAPH_BREAK, + aText.insertControlCharacter(textCursor, + ControlCharacter.PARAGRAPH_BREAK, false); aText.insertString(textCursor, "a", false); - aText.insertControlCharacter(textCursor, - ControlCharacter.PARAGRAPH_BREAK, + aText.insertControlCharacter(textCursor, + ControlCharacter.PARAGRAPH_BREAK, false); aText.insertString(textCursor, "23", false); - aText.insertControlCharacter(textCursor, - ControlCharacter.PARAGRAPH_BREAK, + aText.insertControlCharacter(textCursor, + ControlCharacter.PARAGRAPH_BREAK, false); aText.insertString(textCursor, "ab", false); - aText.insertControlCharacter(textCursor, - ControlCharacter.PARAGRAPH_BREAK, + aText.insertControlCharacter(textCursor, + ControlCharacter.PARAGRAPH_BREAK, false); } catch (com.sun.star.lang.IllegalArgumentException e) { out.println("Unexpected exception:" + e); @@ -247,10 +247,10 @@ public class SwXTextCursor extends TestCase { out.println(textCursor.getString()); } - public boolean checkSort(boolean isSortNumbering, + public boolean checkSort(boolean isSortNumbering, boolean isSortAscending) { out.println("Sort checking..."); - + String ls = System.getProperty("line.separator"); String text = paragrCursor.getString(); diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextDefaults.java b/qadevOOo/tests/java/mod/_sw/SwXTextDefaults.java index db5c223f4f29..2630b5b2da88 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextDefaults.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextDefaults.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextDocument.java b/qadevOOo/tests/java/mod/_sw/SwXTextDocument.java index da2f53168863..f8e5a5d4881b 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextDocument.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextDocument.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 @@ -68,13 +68,13 @@ public class SwXTextDocument extends TestCase { protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xTextDoc "); DesktopTools.closeDoc(xSecondTextDoc); - DesktopTools.closeDoc(xTextDoc); + DesktopTools.closeDoc(xTextDoc); } /** * creating a Testenvironment for the interfaces to be tested */ - public synchronized TestEnvironment createTestEnvironment(TestParameters Param, + public synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) throws StatusException { TestEnvironment tEnv = null; @@ -92,43 +92,43 @@ public class SwXTextDocument extends TestCase { try { for (int i = 0; i < 5; i++) { - oText.insertString(oCursor, "Paragraph Number: " + i, + oText.insertString(oCursor, "Paragraph Number: " + i, false); - oText.insertString(oCursor, - " The quick brown fox jumps over the lazy Dog: SwXParagraph", + oText.insertString(oCursor, + " The quick brown fox jumps over the lazy Dog: SwXParagraph", false); - oText.insertControlCharacter(oCursor, - ControlCharacter.PARAGRAPH_BREAK, + oText.insertControlCharacter(oCursor, + ControlCharacter.PARAGRAPH_BREAK, false); - oText.insertString(oCursor, - "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG: SwXParagraph", + oText.insertString(oCursor, + "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG: SwXParagraph", false); - oText.insertControlCharacter(oCursor, - ControlCharacter.PARAGRAPH_BREAK, + oText.insertControlCharacter(oCursor, + ControlCharacter.PARAGRAPH_BREAK, false); - oText.insertControlCharacter(oCursor, - ControlCharacter.LINE_BREAK, + oText.insertControlCharacter(oCursor, + ControlCharacter.LINE_BREAK, false); } for (int i = 0; i < 11; i++) { oText.insertString(oCursor, "xTextDoc ", false); - + } } catch (com.sun.star.lang.IllegalArgumentException e) { e.printStackTrace(log); throw new StatusException("Couldn't insert lines", e); } - //insert two sections parent and child + //insert two sections parent and child XMultiServiceFactory oDocMSF = (XMultiServiceFactory) UnoRuntime.queryInterface( - XMultiServiceFactory.class, + XMultiServiceFactory.class, xTextDoc); XInterface oTS; XTextSection xTS; XTextSectionsSupplier oTSSupp = (XTextSectionsSupplier) UnoRuntime.queryInterface( - XTextSectionsSupplier.class, + XTextSectionsSupplier.class, xTextDoc); XNameAccess oTSSuppName = oTSSupp.getTextSections(); @@ -148,29 +148,29 @@ public class SwXTextDocument extends TestCase { XInterface oTS2 = (XInterface) oDocMSF.createInstance( "com.sun.star.text.TextSection"); - oTSC = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, + oTSC = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, oTS2); oText.insertTextContent(oCursor, oTSC, false); XIndexAccess oTSSuppIndex = (XIndexAccess) UnoRuntime.queryInterface( - XIndexAccess.class, + XIndexAccess.class, oTSSuppName); log.println( "getting a TextSection with the XTextSectionSupplier()"); - xTS = (XTextSection) UnoRuntime.queryInterface(XTextSection.class, + xTS = (XTextSection) UnoRuntime.queryInterface(XTextSection.class, oTSSuppIndex.getByIndex(0)); - XNamed xTSName = (XNamed) UnoRuntime.queryInterface(XNamed.class, + XNamed xTSName = (XNamed) UnoRuntime.queryInterface(XNamed.class, xTS); xTSName.setName("SwXTextSection"); log.println(" adding TextTable"); the_table = SOfficeFactory.createTextTable(xTextDoc, 6, 4); - XNamed the_name = (XNamed) UnoRuntime.queryInterface(XNamed.class, + XNamed the_name = (XNamed) UnoRuntime.queryInterface(XNamed.class, the_table); the_name.setName("SwXTextDocument"); - SOfficeFactory.insertTextContent(xTextDoc, + SOfficeFactory.insertTextContent(xTextDoc, (XTextContent) the_table); log.println(" adding ReferenceMark"); @@ -185,33 +185,33 @@ public class SwXTextDocument extends TestCase { SOfficeFactory.insertTextContent(xTextDoc, (XTextContent) oTC); log.println(" adding TextGraphic"); - WriterTools.insertTextGraphic(xTextDoc, oDocMSF, 5200, 4200, 4400, - 4000, "space-metal.jpg", + WriterTools.insertTextGraphic(xTextDoc, oDocMSF, 5200, 4200, 4400, + 4000, "space-metal.jpg", "SwXTextDocument"); log.println(" adding EndNote"); XInterface aEndNote = (XInterface) oDocMSF.createInstance( "com.sun.star.text.Endnote"); - oTC = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, + oTC = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, aEndNote); SOfficeFactory.insertTextContent(xTextDoc, (XTextContent) oTC); log.println(" adding Bookmark"); - SOfficeFactory.insertTextContent(xTextDoc, + SOfficeFactory.insertTextContent(xTextDoc, (XTextContent) SOfficeFactory.createBookmark( xTextDoc)); log.println(" adding DocumentIndex"); - oTC = SOfficeFactory.createIndex(xTextDoc, + oTC = SOfficeFactory.createIndex(xTextDoc, "com.sun.star.text.DocumentIndex"); SOfficeFactory.insertTextContent(xTextDoc, (XTextContent) oTC); log.println(" adding TextFrame"); - XTextFrame frame = SOfficeFactory.createTextFrame(xTextDoc, 500, + XTextFrame frame = SOfficeFactory.createTextFrame(xTextDoc, 500, 500); - oTC = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, + oTC = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, frame); SOfficeFactory.insertTextContent(xTextDoc, (XTextContent) oTC); @@ -241,9 +241,9 @@ public class SwXTextDocument extends TestCase { return tEnv; } - XModel model1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel model1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); - XModel model2 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel model2 = (XModel) UnoRuntime.queryInterface(XModel.class, xSecondTextDoc); XController cont1 = model1.getCurrentController(); diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java b/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java index 50e218b0d319..9df3327e13a4 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.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 @@ -101,7 +101,7 @@ public class SwXTextEmbeddedObject extends TestCase { * @see TestParameters * @see PrintWriter */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { XInterface oObj = null; @@ -132,7 +132,7 @@ public class SwXTextEmbeddedObject extends TestCase { } XTextEmbeddedObjectsSupplier oTEOS = (XTextEmbeddedObjectsSupplier) UnoRuntime.queryInterface( - XTextEmbeddedObjectsSupplier.class, + XTextEmbeddedObjectsSupplier.class, xTextDoc); XNameAccess oEmObj = oTEOS.getEmbeddedObjects(); diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java b/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java index 51a3e8a45a12..342390180a54 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextField.java b/qadevOOo/tests/java/mod/_sw/SwXTextField.java index aabab6efe480..0b280929eedc 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextField.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextField.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java b/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java index d0ba5c70af3c..009f50e570f5 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java b/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java index 1b730500f37c..3c10f9b3cabf 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java b/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java index 64874119ca14..425faf20ef50 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextFrame.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 @@ -76,7 +76,7 @@ public class SwXTextFrame extends TestCase { /** * creating a Testenvironment for the interfaces to be tested */ - public synchronized TestEnvironment createTestEnvironment(TestParameters Param, + public synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XTextFrame oFrame1 = null; @@ -109,7 +109,7 @@ public class SwXTextFrame extends TestCase { // AnchorTypes: 0 = paragraph, 1 = as char, 2 = page, // 3 = frame/paragraph 4= at char - oPropSet.setPropertyValue("AnchorType", + oPropSet.setPropertyValue("AnchorType", TextContentAnchorType.AS_CHARACTER); oText = xTextDoc.getText(); oCursor = oText.createTextCursor(); @@ -126,10 +126,10 @@ public class SwXTextFrame extends TestCase { oText.insertTextContent(oCursor, the_content, true); XText oFrameText = oFrame1.getText(); - oFrameText.insertString(oFrameText.getStart(), "The FrameText", + oFrameText.insertString(oFrameText.getStart(), "The FrameText", true); - instance = SOF.createInstance(xTextDoc, + instance = SOF.createInstance(xTextDoc, "com.sun.star.text.TextFrame"); } catch (Exception Ex) { Ex.printStackTrace(log); @@ -142,12 +142,12 @@ public class SwXTextFrame extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("CONTENT", + tEnv.addObjRelation("CONTENT", (XTextContent) UnoRuntime.queryInterface( XTextContent.class, instance)); tEnv.addObjRelation("RANGE", xTextDoc.getText().createTextCursor()); - log.println("adding ObjRelation for XShape " + + log.println("adding ObjRelation for XShape " + "(get/setPosition won't work there)"); tEnv.addObjRelation("NoPos", "SwXTextFrame"); tEnv.addObjRelation("NoSetSize", "SwXTextFrame"); diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java b/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java index ef304a631f9f..b79b4448e580 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java index 9e45193586e2..b95cd8ba4eb9 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.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 @@ -140,7 +140,7 @@ public class SwXTextGraphicObject extends TestCase { e.printStackTrace(); throw new StatusException("Couldn't insert text frame", e ); } - + log.println( "inserting graphic" ); try { @@ -195,7 +195,7 @@ public class SwXTextGraphicObject extends TestCase { tEnv.addObjRelation("CONTENT", (XTextContent) UnoRuntime.queryInterface(XTextContent.class,instance)); tEnv.addObjRelation("RANGE", xTextDoc.getText().createTextCursor()); - + //object relation for text.BaseFrameProperties tEnv.addObjRelation("TextFrame", xTextFrame); diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java index 8b233ea5ceb5..76ab82f140e3 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java b/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java index 3b581644cbe3..490f6531e618 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextPortion.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java b/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java index b591a6b45be8..da32557d1852 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextRange.java b/qadevOOo/tests/java/mod/_sw/SwXTextRange.java index 8b09a01dac9d..058e5f2f08da 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextRange.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextRange.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextRanges.java b/qadevOOo/tests/java/mod/_sw/SwXTextRanges.java index 5310ab00546a..cc49a1f4dcd7 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextRanges.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextRanges.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextSearch.java b/qadevOOo/tests/java/mod/_sw/SwXTextSearch.java index d637bb23a252..ad72aeffee87 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextSearch.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextSearch.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextSection.java b/qadevOOo/tests/java/mod/_sw/SwXTextSection.java index c74f3a527323..48b1d9407584 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextSection.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextSection.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextSections.java b/qadevOOo/tests/java/mod/_sw/SwXTextSections.java index 0a672de3bdc8..3abdf4380855 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextSections.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextSections.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTable.java b/qadevOOo/tests/java/mod/_sw/SwXTextTable.java index c3bc78208b27..ca7d048181c7 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextTable.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextTable.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 @@ -81,13 +81,13 @@ public class SwXTextTable extends TestCase { @param tParam TestParameters class which contains additional test parameters @param log PrintWriter class to log the test state and result - + @return TestEnvironment class - + @see TestParameters @see PrintWriter */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters tParam, + protected synchronized TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { // creation of testobject here XTextTable oObj = null; @@ -99,7 +99,7 @@ public class SwXTextTable extends TestCase { instance = SOF.createTextTable(xTextDoc); } catch (com.sun.star.uno.Exception uE) { uE.printStackTrace(log); - throw new StatusException("Couldn't create testobj : " + + throw new StatusException("Couldn't create testobj : " + uE.getMessage(), uE); } @@ -115,7 +115,7 @@ public class SwXTextTable extends TestCase { SOF.insertTextContent(xTextDoc, oObj); } catch (com.sun.star.uno.Exception uE) { uE.printStackTrace(log); - throw new StatusException("Couldn't create TextTable : " + + throw new StatusException("Couldn't create TextTable : " + uE.getMessage(), uE); } } @@ -151,7 +151,7 @@ public class SwXTextTable extends TestCase { //Adding relation for util.XSortable final PrintWriter finalLog = log; final XTextTable oTable = oObj; - tEnv.addObjRelation("SORTCHECKER", + tEnv.addObjRelation("SORTCHECKER", new ifc.util._XSortable.XSortChecker() { PrintWriter out = finalLog; @@ -163,23 +163,23 @@ public class SwXTextTable extends TestCase { oTable.getCellByName("A1").setValue(4); XTextRange textRange = (XTextRange) UnoRuntime.queryInterface( - XTextRange.class, + XTextRange.class, oTable.getCellByName("A2")); textRange.setString("b"); oTable.getCellByName("A3").setValue(3); textRange = (XTextRange) UnoRuntime.queryInterface( - XTextRange.class, + XTextRange.class, oTable.getCellByName("A4")); textRange.setString("a"); oTable.getCellByName("A5").setValue(23); textRange = (XTextRange) UnoRuntime.queryInterface( - XTextRange.class, + XTextRange.class, oTable.getCellByName("A6")); textRange.setString("ab"); } - public boolean checkSort(boolean isSortNumbering, + public boolean checkSort(boolean isSortNumbering, boolean isSortAscending) { out.println("Sort checking..."); @@ -201,7 +201,7 @@ public class SwXTextTable extends TestCase { if (!res) { out.println("Expected: 3, 4, 23"); - out.println("Getting: " + value[3] + ", " + + out.println("Getting: " + value[3] + ", " + value[4] + ", " + value[5]); } } else { @@ -211,7 +211,7 @@ public class SwXTextTable extends TestCase { if (!res) { out.println("Expected: 23, 4, 3"); - out.println("Getting: " + value[1] + ", " + + out.println("Getting: " + value[1] + ", " + value[2] + ", " + value[3]); } } @@ -222,9 +222,9 @@ public class SwXTextTable extends TestCase { if (!res) { out.println("Expected: 23, 3, 4, a, ab, b"); - out.println("Getting: " + value[0] + ", " + - value[1] + ", " + value[2] + - ", " + value[3] + ", " + + out.println("Getting: " + value[0] + ", " + + value[1] + ", " + value[2] + + ", " + value[3] + ", " + value[4] + ", " + value[5]); } } else { @@ -233,9 +233,9 @@ public class SwXTextTable extends TestCase { if (!res) { out.println("Expected: b, ab, a, 4, 3, 23"); - out.println("Getting: " + value[0] + ", " + - value[1] + ", " + value[2] + - ", " + value[3] + ", " + + out.println("Getting: " + value[0] + ", " + + value[1] + ", " + value[2] + + ", " + value[3] + ", " + value[4] + ", " + value[5]); } } @@ -251,7 +251,7 @@ public class SwXTextTable extends TestCase { } }); - tEnv.addObjRelation("CONTENT", + tEnv.addObjRelation("CONTENT", (XTextContent) UnoRuntime.queryInterface( XTextContent.class, instance)); tEnv.addObjRelation("RANGE", xTextDoc.getText().createTextCursor()); diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java b/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java index 765dd4d6cea3..386e297eaa52 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.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 @@ -113,7 +113,7 @@ public class SwXTextTableCursor extends TestCase { log.println( "adding TextDocument as mod relation to environment" ); tEnv.addObjRelation("TEXTDOC", xTextDoc); - + tEnv.addObjRelation("STYLENAME1", "Table"); tEnv.addObjRelation("STYLENAME2", "Text"); diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java b/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java index 11df9282c49f..a2ada4632548 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTables.java b/qadevOOo/tests/java/mod/_sw/SwXTextTables.java index daa8768d83c5..377bd14be2ae 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextTables.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextTables.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextView.java b/qadevOOo/tests/java/mod/_sw/SwXTextView.java index 891a953cb72e..281ef9e2dfd2 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextView.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextView.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 @@ -72,7 +72,7 @@ import util.WriterTools; public class SwXTextView extends TestCase { XTextDocument xTextDoc; - + boolean debug = false; /** @@ -238,37 +238,37 @@ public class SwXTextView extends TestCase { XShape aShape = null; try{ log.println("adding contol shape '" + kindOfControl + "'"); - aShape = FormTools.createControlShape(xTextDoc, 3000, - 4500, 15000, 10000, + aShape = FormTools.createControlShape(xTextDoc, 3000, + 4500, 15000, 10000, kindOfControl); } catch (Exception e){ e.printStackTrace(log); - throw new StatusException("Couldn't create following control shape : '" + + throw new StatusException("Couldn't create following control shape : '" + kindOfControl + "': ", e); - + } - - + + log.println("adding relation for com.sun.star.view.XFormLayerAccess: XForm"); WriterTools.getDrawPage(xTextDoc).add((XShape) aShape); - + try { - + XDrawPage xDP = WriterTools.getDrawPage(xTextDoc); if (xDP == null) log.println("ERROR: could not get DrawPage"); - + XNameContainer xForms = FormTools.getForms(xDP); if (xForms == null) log.println("ERROR: could not get Forms"); - + log.println("the draw page contains folowing elemtens:"); String[] elements = FormTools.getForms(WriterTools.getDrawPage(xTextDoc)).getElementNames(); for (int i = 0; i< elements.length; i++){ log.println("Element[" + i + "] :" + elements[i]); } - + myForm = (XForm) AnyConverter.toObject(new Type(XForm.class), xForms.getByName("Standard")); if (myForm == null){ log.println("ERROR: could not get 'Standard' from drawpage!"); @@ -289,7 +289,7 @@ public class SwXTextView extends TestCase { } catch (NoSuchElementException ex) { log.println("ERROR: could not add ObjectRelation 'XFormLayerAccess.XForm': " + ex.toString()); } - + return tEnv; diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.java b/qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.java index a95e06573ea0..26aed37d1702 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.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 diff --git a/qadevOOo/tests/java/mod/_sw/SwXViewSettings.java b/qadevOOo/tests/java/mod/_sw/SwXViewSettings.java index 85cb5c3e642a..aaca842c3aab 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXViewSettings.java +++ b/qadevOOo/tests/java/mod/_sw/SwXViewSettings.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 diff --git a/qadevOOo/tests/java/mod/_sw/XMLContentExporter.java b/qadevOOo/tests/java/mod/_sw/XMLContentExporter.java index 898f3a441e98..f59512b9234f 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLContentExporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLContentExporter.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 diff --git a/qadevOOo/tests/java/mod/_sw/XMLContentImporter.java b/qadevOOo/tests/java/mod/_sw/XMLContentImporter.java index 565ecce877fe..f42de3699f0e 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLContentImporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLContentImporter.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 diff --git a/qadevOOo/tests/java/mod/_sw/XMLExporter.java b/qadevOOo/tests/java/mod/_sw/XMLExporter.java index b24c71bb66bd..66c55706f517 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLExporter.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 diff --git a/qadevOOo/tests/java/mod/_sw/XMLImporter.java b/qadevOOo/tests/java/mod/_sw/XMLImporter.java index 7fee85b07844..7ffd6710bf96 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLImporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLImporter.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 diff --git a/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java b/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java index 37f9594841d1..ed1661d27b11 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.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 diff --git a/qadevOOo/tests/java/mod/_sw/XMLMetaImporter.java b/qadevOOo/tests/java/mod/_sw/XMLMetaImporter.java index aeab9166d41d..6deab9672dc9 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLMetaImporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLMetaImporter.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 diff --git a/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java index aa99852595df..fbea9eb7b3fe 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.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 diff --git a/qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.java b/qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.java index 4e9b47aaffd8..8529b08338bf 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.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 diff --git a/qadevOOo/tests/java/mod/_sw/XMLStylesExporter.java b/qadevOOo/tests/java/mod/_sw/XMLStylesExporter.java index 9b30cffb1b3b..0d7772a82f13 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLStylesExporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLStylesExporter.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 diff --git a/qadevOOo/tests/java/mod/_sw/XMLStylesImporter.java b/qadevOOo/tests/java/mod/_sw/XMLStylesImporter.java index f59fad454154..c8bde32a1564 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLStylesImporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLStylesImporter.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 diff --git a/qadevOOo/tests/java/mod/_sysdtrans/SystemClipboard.java b/qadevOOo/tests/java/mod/_sysdtrans/SystemClipboard.java index 9f3e35e9bac8..5b7f2fde1521 100644 --- a/qadevOOo/tests/java/mod/_sysdtrans/SystemClipboard.java +++ b/qadevOOo/tests/java/mod/_sysdtrans/SystemClipboard.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 diff --git a/qadevOOo/tests/java/mod/_syssh/SystemShellExecute.java b/qadevOOo/tests/java/mod/_syssh/SystemShellExecute.java index dad98c0d7e24..5feb03fc795e 100644 --- a/qadevOOo/tests/java/mod/_syssh/SystemShellExecute.java +++ b/qadevOOo/tests/java/mod/_syssh/SystemShellExecute.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 diff --git a/qadevOOo/tests/java/mod/_tcv/TypeConverter.java b/qadevOOo/tests/java/mod/_tcv/TypeConverter.java index 084834ff4d1c..917203287636 100644 --- a/qadevOOo/tests/java/mod/_tcv/TypeConverter.java +++ b/qadevOOo/tests/java/mod/_tcv/TypeConverter.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 diff --git a/qadevOOo/tests/java/mod/_tdmgr/TypeDescriptionManager.java b/qadevOOo/tests/java/mod/_tdmgr/TypeDescriptionManager.java index 3c3845b40462..a55fe9a2d064 100644 --- a/qadevOOo/tests/java/mod/_tdmgr/TypeDescriptionManager.java +++ b/qadevOOo/tests/java/mod/_tdmgr/TypeDescriptionManager.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 diff --git a/qadevOOo/tests/java/mod/_text/DefaultNumberingProvider.java b/qadevOOo/tests/java/mod/_text/DefaultNumberingProvider.java index ecea0b852e7a..824068f05b36 100644 --- a/qadevOOo/tests/java/mod/_text/DefaultNumberingProvider.java +++ b/qadevOOo/tests/java/mod/_text/DefaultNumberingProvider.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 diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java index 1e9c0cbb69b0..ae39ac3ddb2d 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.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 @@ -92,7 +92,7 @@ public class AccessibleButton extends lib.TestCase { * window) and finds accessible button 'OK' walking through the * accessible component tree. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XMultiServiceFactory msf = (XMultiServiceFactory) Param.getMSF(); @@ -121,14 +121,14 @@ public class AccessibleButton extends lib.TestCase { Object atw = tk.getActiveTopWindow(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, atw); XAccessible xRoot = at.getAccessibleObject(xWindow); at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, "Cancel"); log.println("ImplementationName " + utils.getImplName(oObj)); @@ -139,10 +139,10 @@ public class AccessibleButton extends lib.TestCase { XAccessibleAction.class, oObj); final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { System.out.println("Grabbing focus ... "); @@ -155,7 +155,7 @@ public class AccessibleButton extends lib.TestCase { tEnv.addObjRelation("XAccessibleText.Text", text.getText()); - tEnv.addObjRelation("EditOnly", + tEnv.addObjRelation("EditOnly", "This method isn't supported in this component"); tEnv.addObjRelation("LimitedBounds", "yes"); @@ -209,7 +209,7 @@ public class AccessibleButton extends lib.TestCase { } public void run() { - XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController xController = aModel.getCurrentController(); @@ -218,10 +218,10 @@ public class AccessibleButton extends lib.TestCase { try { String aSlotID = ".uno:Zoom"; XDispatchProvider xDispProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, xController); XURLTransformer xParser = (com.sun.star.util.XURLTransformer) UnoRuntime.queryInterface( - XURLTransformer.class, + XURLTransformer.class, msf.createInstance( "com.sun.star.util.URLTransformer")); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java index 2ae69a72c246..f6f04297bdbf 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.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 @@ -97,7 +97,7 @@ public class AccessibleCheckBox extends TestCase { * window) and finds first accessible check box walking through the * accessible component tree. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XMultiServiceFactory msf = (XMultiServiceFactory) Param.getMSF(); log.println("Creating text document"); @@ -136,21 +136,21 @@ public class AccessibleCheckBox extends TestCase { psDiag.start(); util.utils.shortWait(Param.getInt("ShortWait")); - + AccessibilityTools at = new AccessibilityTools(); util.utils.shortWait(Param.getInt("ShortWait")); log.println("Getting the active TopWindow"); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, "Cancel"); action = (XAccessibleAction) UnoRuntime.queryInterface( @@ -163,10 +163,10 @@ public class AccessibleCheckBox extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { System.out.println("Grabbing focus ... "); @@ -179,7 +179,7 @@ public class AccessibleCheckBox extends TestCase { tEnv.addObjRelation("XAccessibleText.Text", text.getText()); - tEnv.addObjRelation("EditOnly", + tEnv.addObjRelation("EditOnly", "This method isn't supported in this component"); tEnv.addObjRelation("LimitedBounds", "yes"); @@ -225,7 +225,7 @@ public class AccessibleCheckBox extends TestCase { } public void run() { - XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController xController = aModel.getCurrentController(); @@ -234,10 +234,10 @@ public class AccessibleCheckBox extends TestCase { try { String aSlotID = ".uno:InsertTable"; XDispatchProvider xDispProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, xController); XURLTransformer xParser = (com.sun.star.util.XURLTransformer) UnoRuntime.queryInterface( - XURLTransformer.class, + XURLTransformer.class, msf.createInstance( "com.sun.star.util.URLTransformer")); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.java index 97879627d25d..755a5ce05007 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.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 @@ -86,7 +86,7 @@ public class AccessibleComboBox extends TestCase { * finds AccessibleComboBox walking through the * accessible component tree. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -102,7 +102,7 @@ public class AccessibleComboBox extends TestCase { XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface( XExtendedToolkit.class, oObj); - DiagThread psDiag = new DiagThread(xTextDoc, + DiagThread psDiag = new DiagThread(xTextDoc, (XMultiServiceFactory) Param.getMSF()); psDiag.start(); @@ -114,21 +114,21 @@ public class AccessibleComboBox extends TestCase { Object atw = tk.getActiveTopWindow(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, atw); XAccessible xRoot = at.getAccessibleObject(xWindow); - oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, "Cancel"); action = (XAccessibleAction) UnoRuntime.queryInterface( XAccessibleAction.class, oObj); - oObj = at.getAccessibleObjectForRole(xRoot, + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PAGE_TAB_LIST); XAccessibleSelection xAccSel = (XAccessibleSelection) UnoRuntime.queryInterface( - XAccessibleSelection.class, + XAccessibleSelection.class, oObj); try { @@ -139,7 +139,7 @@ public class AccessibleComboBox extends TestCase { util.utils.shortWait(Param.getInt("ShortWait")); at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL, "", + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL, "", "AccessibleComboBox"); log.println("ImplementationName " + utils.getImplName(oObj)); @@ -147,13 +147,13 @@ public class AccessibleComboBox extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, oObj); final XAccessibleComponent acomp1 = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, action); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { acomp1.grabFocus(); @@ -210,7 +210,7 @@ public class AccessibleComboBox extends TestCase { } public void run() { - XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController xController = aModel.getCurrentController(); @@ -219,10 +219,10 @@ public class AccessibleComboBox extends TestCase { try { String aSlotID = ".uno:FontDialog"; XDispatchProvider xDispProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, xController); XURLTransformer xParser = (com.sun.star.util.XURLTransformer) UnoRuntime.queryInterface( - XURLTransformer.class, + XURLTransformer.class, msf.createInstance( "com.sun.star.util.URLTransformer")); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.java index fee8473550e9..df78b827624e 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.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 @@ -79,19 +79,19 @@ public class AccessibleDropDownComboBox extends TestCase { * Finds AccessibleDropDownComboBox walking through the * accessible component tree of a writer document. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; AccessibilityTools at = new AccessibilityTools(); XWindow xWindow = at.getCurrentContainerWindow( - (XMultiServiceFactory) Param.getMSF(), + (XMultiServiceFactory) Param.getMSF(), xTextDoc); XAccessible xRoot = at.getAccessibleObject(xWindow); - oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.COMBO_BOX, + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.COMBO_BOX, "", "AccessibleDropDownComboBox"); log.println("ImplementationName " + utils.getImplName(oObj)); @@ -99,10 +99,10 @@ public class AccessibleDropDownComboBox extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); final XAccessibleAction editAction = (XAccessibleAction) UnoRuntime.queryInterface( - XAccessibleAction.class, + XAccessibleAction.class, oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { try { diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java index a42922a2f8f1..fd61a5c67396 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.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 @@ -80,7 +80,7 @@ public class AccessibleDropDownListBox extends TestCase { * Finds AccessibleDropDownListBox walking through the * accessible component tree of a writer document. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -89,14 +89,14 @@ public class AccessibleDropDownListBox extends TestCase { AccessibilityTools at = new AccessibilityTools(); XWindow xWindow = at.getCurrentWindow( - (XMultiServiceFactory) Param.getMSF(), + (XMultiServiceFactory) Param.getMSF(), xTextDoc); XAccessible xRoot = at.getAccessibleObject(xWindow); at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - - oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.COMBO_BOX, + + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.COMBO_BOX, "", "AccessibleDropDownListBox"); log.println("ImplementationName " + utils.getImplName(oObj)); @@ -105,7 +105,7 @@ public class AccessibleDropDownListBox extends TestCase { final XAccessibleAction acomp = (XAccessibleAction) UnoRuntime.queryInterface( XAccessibleAction.class, oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { try { diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.java index e26481176e1e..d9f5282b2612 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.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 @@ -95,7 +95,7 @@ public class AccessibleEdit extends TestCase { * button 'Close' (for closing this dialog when disposing) * walking through the accessible component tree. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -111,13 +111,13 @@ public class AccessibleEdit extends TestCase { XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface( XExtendedToolkit.class, oObj); - XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController secondController = aModel1.getCurrentController(); XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, secondController); XURLTransformer urlTransf = null; @@ -148,12 +148,12 @@ public class AccessibleEdit extends TestCase { AccessibilityTools at = new AccessibilityTools(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); - oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, "Close"); action = (XAccessibleAction) UnoRuntime.queryInterface( XAccessibleAction.class, oObj); @@ -165,11 +165,11 @@ public class AccessibleEdit extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); final XAccessibleEditableText edText = (XAccessibleEditableText) UnoRuntime.queryInterface( - XAccessibleEditableText.class, + XAccessibleEditableText.class, oObj); edText.setText("AccessibleEdit"); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { // buttonAccComp.grabFocus(); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java index 3bc7e81885c3..5fafb21fbe53 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.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 @@ -86,7 +86,7 @@ public class AccessibleFixedText extends TestCase { * displays it. Then the text's accessible component is * obtained. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XMultiServiceFactory xMSF = (XMultiServiceFactory) Param.getMSF(); @@ -97,23 +97,23 @@ public class AccessibleFixedText extends TestCase { try { dlgModel = (XControlModel) UnoRuntime.queryInterface( - XControlModel.class, + XControlModel.class, xMSF.createInstance( "com.sun.star.awt.UnoControlDialogModel")); XControl dlgControl = (XControl) UnoRuntime.queryInterface( - XControl.class, + XControl.class, xMSF.createInstance( "com.sun.star.awt.UnoControlDialog")); dlgControl.setModel(dlgModel); txtModel = (XControlModel) UnoRuntime.queryInterface( - XControlModel.class, + XControlModel.class, xMSF.createInstance( "com.sun.star.awt.UnoControlFixedTextModel")); - txtControl = (XControl) UnoRuntime.queryInterface(XControl.class, + txtControl = (XControl) UnoRuntime.queryInterface(XControl.class, xMSF.createInstance( "com.sun.star.awt.UnoControlFixedText")); @@ -124,12 +124,12 @@ public class AccessibleFixedText extends TestCase { xFT.setText("FxedText"); XControlContainer ctrlCont = (XControlContainer) UnoRuntime.queryInterface( - XControlContainer.class, + XControlContainer.class, dlgControl); ctrlCont.addControl("Text", txtControl); - xWinDlg = (XWindow) UnoRuntime.queryInterface(XWindow.class, + xWinDlg = (XWindow) UnoRuntime.queryInterface(XWindow.class, dlgControl); xWinDlg.setVisible(true); @@ -163,10 +163,10 @@ public class AccessibleFixedText extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - final XWindow xWin = (XWindow) UnoRuntime.queryInterface(XWindow.class, + final XWindow xWin = (XWindow) UnoRuntime.queryInterface(XWindow.class, txtControl); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { xWin.setEnable(false); @@ -179,7 +179,7 @@ public class AccessibleFixedText extends TestCase { tEnv.addObjRelation("XAccessibleText.Text", text.getText()); - tEnv.addObjRelation("EditOnly", + tEnv.addObjRelation("EditOnly", "This method isn't supported in this component"); tEnv.addObjRelation("LimitedBounds", "yes"); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java index 6fe2129995cc..cc8e718f965a 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleList.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 @@ -71,7 +71,7 @@ public class AccessibleList extends TestCase { * Then the TREE component is found and the 'New Document' tab is * selected to make list box visible. After that list box is obtained. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -88,13 +88,13 @@ public class AccessibleList extends TestCase { shortWait(); - XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController secondController = aModel1.getCurrentController(); XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, secondController); XURLTransformer urlTransf = null; @@ -125,7 +125,7 @@ public class AccessibleList extends TestCase { AccessibilityTools at = new AccessibilityTools(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); @@ -133,7 +133,7 @@ public class AccessibleList extends TestCase { at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); // obtaining 'Close' button - oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, "Close"); action = (XAccessibleAction) UnoRuntime.queryInterface( XAccessibleAction.class, oObj); @@ -143,7 +143,7 @@ public class AccessibleList extends TestCase { oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TREE); XAccessibleSelection xAccSel = (XAccessibleSelection) UnoRuntime.queryInterface( - XAccessibleSelection.class, + XAccessibleSelection.class, oObj); xAccSel.selectAccessibleChild(3); shortWait(); @@ -153,9 +153,9 @@ public class AccessibleList extends TestCase { log.println("# Getting the ListBox"); - XAccessibleContext parent = at.getAccessibleObjectForRole(xRoot, - AccessibleRole.PANEL, - "", + XAccessibleContext parent = at.getAccessibleObjectForRole(xRoot, + AccessibleRole.PANEL, + "", "com.sun.star.comp.toolkit.AccessibleListBox"); log.println("# Getting the first child"); @@ -169,17 +169,17 @@ public class AccessibleList extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("XAccessibleSelection.multiSelection", + tEnv.addObjRelation("XAccessibleSelection.multiSelection", new Boolean(false)); final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, oObj); final XAccessibleComponent acomp1 = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, action); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { System.out.println("Grabbing focus ... "); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.java index 7b65e74152b1..8be8462e9064 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.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 @@ -94,7 +94,7 @@ public class AccessibleListBox extends TestCase { * Then the TREE component is found and the 'New Document' tab is * selected to make list box visible. After that list box is obtained. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -112,13 +112,13 @@ public class AccessibleListBox extends TestCase { shortWait(); - XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController secondController = aModel1.getCurrentController(); XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, secondController); XURLTransformer urlTransf = null; @@ -149,7 +149,7 @@ public class AccessibleListBox extends TestCase { AccessibilityTools at = new AccessibilityTools(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); @@ -158,7 +158,7 @@ public class AccessibleListBox extends TestCase { // obtaining 'Close' button - oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, "Close"); action = (XAccessibleAction) UnoRuntime.queryInterface( XAccessibleAction.class, oObj); @@ -168,7 +168,7 @@ public class AccessibleListBox extends TestCase { oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TREE); XAccessibleSelection xAccSel = (XAccessibleSelection) UnoRuntime.queryInterface( - XAccessibleSelection.class, + XAccessibleSelection.class, oObj); xAccSel.selectAccessibleChild(3); shortWait(); @@ -176,10 +176,10 @@ public class AccessibleListBox extends TestCase { throw new StatusException("Can't switch to required tab", e); } - oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL, "", + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL, "", "com.sun.star.comp.toolkit.AccessibleListBox"); - Object list = at.getAccessibleObjectForRole(at.SearchedAccessible, + Object list = at.getAccessibleObjectForRole(at.SearchedAccessible, AccessibleRole.LIST); log.println("ImplementationName " + utils.getImplName(oObj)); @@ -187,13 +187,13 @@ public class AccessibleListBox extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, list); final XAccessibleComponent acomp1 = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, action); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { System.out.println("Grabbing focus ... "); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.java index ecbf43679ef8..97b2ce338ffb 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.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 @@ -91,7 +91,7 @@ public class AccessibleListItem extends TestCase { * Then the TREE component is found and the 'New Document' tab is * selected to make list box visible. After that listbox item is obtained. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XMultiServiceFactory msf = (XMultiServiceFactory) Param.getMSF(); @@ -109,13 +109,13 @@ public class AccessibleListItem extends TestCase { shortWait(); - XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController secondController = aModel1.getCurrentController(); XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, secondController); XURLTransformer urlTransf = null; @@ -146,7 +146,7 @@ public class AccessibleListItem extends TestCase { AccessibilityTools at = new AccessibilityTools(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); @@ -154,7 +154,7 @@ public class AccessibleListItem extends TestCase { at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); // obtaining 'Close' button - oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, "Close"); action = (XAccessibleAction) UnoRuntime.queryInterface( XAccessibleAction.class, oObj); @@ -164,7 +164,7 @@ public class AccessibleListItem extends TestCase { oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TREE); XAccessibleSelection xAccSel = (XAccessibleSelection) UnoRuntime.queryInterface( - XAccessibleSelection.class, + XAccessibleSelection.class, oObj); xAccSel.selectAccessibleChild(3); shortWait(); @@ -172,21 +172,21 @@ public class AccessibleListItem extends TestCase { throw new StatusException("Can't switch to required tab", e); } - oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.LIST_ITEM,"Spr"); + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.LIST_ITEM,"Spr"); log.println("ImplementationName " + utils.getImplName(oObj)); TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("EditOnly", + tEnv.addObjRelation("EditOnly", "This method isn't supported in this component"); tEnv.addObjRelation("LimitedBounds", "yes"); final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { acomp.grabFocus(); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java index 4eaec80dcd81..d9da588e290a 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.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 @@ -91,7 +91,7 @@ public class AccessibleMenu extends TestCase { * Finds accessible component with role <code>MENU</code> * walking through the accessible component tree of a document. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XMultiServiceFactory msf = (XMultiServiceFactory) Param.getMSF(); @@ -112,7 +112,7 @@ public class AccessibleMenu extends TestCase { XAccessible xRoot = at.getAccessibleObject(xWindow); at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - XAccessibleContext menubar = at.getAccessibleObjectForRole(xRoot, + XAccessibleContext menubar = at.getAccessibleObjectForRole(xRoot, AccessibleRole.MENU_BAR); XInterface oObj = null; Object menu2 = null; @@ -132,7 +132,7 @@ public class AccessibleMenu extends TestCase { final XAccessibleAction act2 = (XAccessibleAction) UnoRuntime.queryInterface( XAccessibleAction.class, menu2); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { try { @@ -158,10 +158,10 @@ public class AccessibleMenu extends TestCase { tEnv.addObjRelation("LimitedBounds", "yes"); - tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", + tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", new Boolean(false)); - tEnv.addObjRelation("XAccessibleSelection.multiSelection", + tEnv.addObjRelation("XAccessibleSelection.multiSelection", new Boolean(false)); return tEnv; diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java index 2441bdaa7075..b0fcb29cfa32 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.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 @@ -81,7 +81,7 @@ public class AccessibleMenuBar extends TestCase { * Finds accessible component with role <code>MENUBAR</code> * walking through the accessible component tree of a document. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { shortWait(); @@ -101,10 +101,10 @@ public class AccessibleMenuBar extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { System.out.println("Grabbing focus ... "); @@ -112,10 +112,10 @@ public class AccessibleMenuBar extends TestCase { } }); - tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", + tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", new Boolean(false)); - tEnv.addObjRelation("XAccessibleSelection.multiSelection", + tEnv.addObjRelation("XAccessibleSelection.multiSelection", new Boolean(false)); return tEnv; diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java index a41abe45e520..af41ba44b645 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.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 @@ -89,7 +89,7 @@ public class AccessibleMenuItem extends TestCase { * Finds first accessible component with role <code>MENUITEM</code> * walking through the accessible component tree of a document. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -110,13 +110,13 @@ public class AccessibleMenuItem extends TestCase { Object atw = tk.getActiveTopWindow(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, atw); XAccessible xRoot = at.getAccessibleObject(xWindow); at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - XAccessibleContext MenuBar = at.getAccessibleObjectForRole(xRoot, + XAccessibleContext MenuBar = at.getAccessibleObjectForRole(xRoot, AccessibleRole.MENU_BAR); try { @@ -142,7 +142,7 @@ public class AccessibleMenuItem extends TestCase { final XAccessibleAction action = (XAccessibleAction) UnoRuntime.queryInterface( XAccessibleAction.class, oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { try { @@ -157,7 +157,7 @@ public class AccessibleMenuItem extends TestCase { tEnv.addObjRelation("XAccessibleText.Text", text.getText()); - tEnv.addObjRelation("EditOnly", + tEnv.addObjRelation("EditOnly", "Can't change or select Text in MenuBarItem"); tEnv.addObjRelation("Destroy", new Boolean(true)); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java index f05bcb025803..77d5cf198b7a 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.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 @@ -81,7 +81,7 @@ public class AccessibleMenuSeparator extends TestCase { * and implementation name <code>AccessibleMenuSeparator</code> * walking through the accessible component tree of a document. */ - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { shortWait(); @@ -93,7 +93,7 @@ public class AccessibleMenuSeparator extends TestCase { XAccessible xRoot = at.getAccessibleObject(xWindow); at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - XAccessibleContext MenuBar = at.getAccessibleObjectForRole(xRoot, + XAccessibleContext MenuBar = at.getAccessibleObjectForRole(xRoot, AccessibleRole.MENU_BAR); XAccessibleAction act = null; XInterface oObj = null; @@ -120,7 +120,7 @@ public class AccessibleMenuSeparator extends TestCase { final XAccessibleAction aAct = act; - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { try { diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java b/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java index f4b292c84b23..bc6b4d057dca 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.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 @@ -65,7 +65,7 @@ public class AccessiblePopupMenu extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, + the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } @@ -75,7 +75,7 @@ public class AccessiblePopupMenu extends TestCase { * <code>createTestEnvironment</code> method. */ protected void cleanup(TestParameters Param, PrintWriter log) { - + log.println("release the popup menu"); try { Robot rob = new Robot(); @@ -87,7 +87,7 @@ public class AccessiblePopupMenu extends TestCase { } catch (java.awt.AWTException e) { log.println("couldn't press mouse button"); } - + log.println("disposing xTextDoc"); if (xTextDoc != null) { @@ -118,7 +118,7 @@ public class AccessiblePopupMenu extends TestCase { * @see com.sun.star.accessibility.XAccessibleEventBroadcaster * @see com.sun.star.accessibility.XAccessibleText */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); @@ -145,7 +145,7 @@ public class AccessiblePopupMenu extends TestCase { shortWait(tParam); - XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XInterface oObj = null; @@ -153,7 +153,7 @@ public class AccessiblePopupMenu extends TestCase { AccessibilityTools at = new AccessibilityTools(); XWindow xWindow = at.getCurrentWindow( - (XMultiServiceFactory) tParam.getMSF(), + (XMultiServiceFactory) tParam.getMSF(), aModel); XAccessible xRoot = at.getAccessibleObject(xWindow); @@ -176,14 +176,14 @@ public class AccessiblePopupMenu extends TestCase { } catch (java.awt.AWTException e) { log.println("couldn't press mouse button"); } - + shortWait(tParam); XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface( XExtendedToolkit.class, toolkit); try { - xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, tk.getTopWindow(0)); xRoot = at.getAccessibleObject(xWindow); @@ -199,14 +199,14 @@ public class AccessiblePopupMenu extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("XAccessibleSelection.multiSelection", + tEnv.addObjRelation("XAccessibleSelection.multiSelection", new Boolean(false)); final XAccessibleSelection sel = (XAccessibleSelection) UnoRuntime.queryInterface( - XAccessibleSelection.class, + XAccessibleSelection.class, oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { try { diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java index 53f60643f955..20812b1db4cb 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.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 @@ -95,17 +95,17 @@ import util.SOfficeFactory; public class AccessibleRadioButton extends TestCase { private static XDesktop the_Desk; private static XTextDocument xTextDoc; - private static XAccessibleAction accCloseButton; - + private static XAccessibleAction accCloseButton; + /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, + the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); - } + } /** * Closes a Hyperlink dialog, disposes the document, if exists, created in @@ -159,7 +159,7 @@ public class AccessibleRadioButton extends TestCase { * @see com.sun.star.accessibility.XAccessibleEventBroadcaster * @see com.sun.star.accessibility.XAccessibleText */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); @@ -178,13 +178,13 @@ public class AccessibleRadioButton extends TestCase { util.utils.shortWait(2000); - XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController secondController = aModel1.getCurrentController(); XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, secondController); XURLTransformer urlTransf = null; @@ -231,17 +231,17 @@ public class AccessibleRadioButton extends TestCase { util.utils.shortWait(2000); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); XAccessibleContext iconChoiceCtrl = at.getAccessibleObjectForRole( - xRoot, AccessibleRole.TREE, + xRoot, AccessibleRole.TREE, "IconChoiceControl"); XAccessibleSelection sel = (XAccessibleSelection) UnoRuntime.queryInterface( - XAccessibleSelection.class, + XAccessibleSelection.class, iconChoiceCtrl); try { @@ -252,37 +252,37 @@ public class AccessibleRadioButton extends TestCase { } at.printAccessibleTree(log,xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - - oObj = at.getAccessibleObjectForRole(xRoot, - AccessibleRole.RADIO_BUTTON, + + oObj = at.getAccessibleObjectForRole(xRoot, + AccessibleRole.RADIO_BUTTON, "Web"); - XAccessibleContext anotherButton = at.getAccessibleObjectForRole(xRoot, - AccessibleRole.RADIO_BUTTON, + XAccessibleContext anotherButton = at.getAccessibleObjectForRole(xRoot, + AccessibleRole.RADIO_BUTTON, "FTP"); - XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot, - AccessibleRole.PUSH_BUTTON, + XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot, + AccessibleRole.PUSH_BUTTON, "Close"); - + accCloseButton = (XAccessibleAction) UnoRuntime.queryInterface( - XAccessibleAction.class, closeButton); + XAccessibleAction.class, closeButton); log.println("ImplementationName: " + util.utils.getImplName(oObj)); TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("EditOnly", + tEnv.addObjRelation("EditOnly", "This method isn't supported in this component"); tEnv.addObjRelation("LimitedBounds", "yes"); final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { acomp.grabFocus(); @@ -291,14 +291,14 @@ public class AccessibleRadioButton extends TestCase { tEnv.addObjRelation("XAccessibleText.Text", "Web"); - tEnv.addObjRelation("EditOnly", + tEnv.addObjRelation("EditOnly", "Can't change or select Text in AccessibleRadioButton"); XAccessibleValue anotherButtonValue = (XAccessibleValue) UnoRuntime.queryInterface( - XAccessibleValue.class, + XAccessibleValue.class, anotherButton); - tEnv.addObjRelation("XAccessibleValue.anotherFromGroup", + tEnv.addObjRelation("XAccessibleValue.anotherFromGroup", anotherButtonValue); return tEnv; diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java index a52a9fef5483..009fdefd2aaa 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.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 @@ -89,7 +89,7 @@ public class AccessibleScrollBar extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, + the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } @@ -125,7 +125,7 @@ public class AccessibleScrollBar extends TestCase { * @see ifc.accessibility._XAccessibleEventBroadcaster * @see com.sun.star.accessibility.XAccessibleEventBroadcaster */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); @@ -153,7 +153,7 @@ public class AccessibleScrollBar extends TestCase { AccessibilityTools at = new AccessibilityTools(); XWindow xWindow = at.getCurrentWindow( - (XMultiServiceFactory) tParam.getMSF(), + (XMultiServiceFactory) tParam.getMSF(), aModel); XAccessible xRoot = at.getAccessibleObject(xWindow); @@ -167,7 +167,7 @@ public class AccessibleScrollBar extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { try { diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java index 32dd630370a3..0f6cca0ed753 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.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 @@ -117,7 +117,7 @@ public class AccessibleStatusBar extends TestCase { * @see ifc.accessibility._XAccessibleEventBroadcaster * @see com.sun.star.accessibility.XAccessibleEventBroadcaster */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); @@ -163,7 +163,7 @@ public class AccessibleStatusBar extends TestCase { final XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface( XExtendedToolkit.class, toolkit); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { Rectangle newPosSize = xWindow.getPosSize(); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java index 446d0deb4f42..ad682c79d974 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.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 @@ -89,7 +89,7 @@ public class AccessibleStatusBarItem extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, + the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } @@ -126,7 +126,7 @@ public class AccessibleStatusBarItem extends TestCase { * @see ifc.accessibility._XAccessibleEventBroadcaster * @see com.sun.star.accessibility.XAccessibleEventBroadcaster */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); @@ -149,7 +149,7 @@ public class AccessibleStatusBarItem extends TestCase { throw new StatusException("Couldn't create document", e); } - XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XInterface oObj = null; @@ -158,13 +158,13 @@ public class AccessibleStatusBarItem extends TestCase { AccessibilityTools at = new AccessibilityTools(); XWindow xWindow = at.getCurrentContainerWindow( - (XMultiServiceFactory) tParam.getMSF(), + (XMultiServiceFactory) tParam.getMSF(), aModel); XAccessible xRoot = at.getAccessibleObject(xWindow); at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - XAccessibleContext statusbar = at.getAccessibleObjectForRole(xRoot, + XAccessibleContext statusbar = at.getAccessibleObjectForRole(xRoot, AccessibleRole.STATUS_BAR); try { @@ -177,7 +177,7 @@ public class AccessibleStatusBarItem extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("EditOnly", + tEnv.addObjRelation("EditOnly", "Can't change or select Text in StatusBarItem"); tEnv.addObjRelation("XAccessibleText", secondItem); @@ -185,7 +185,7 @@ public class AccessibleStatusBarItem extends TestCase { final XTextDocument doc = xTextDoc; - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { doc.getText().setString("AccessibleStatusBarItem"); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java index 488c8a39c7d1..615fd7e52a89 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.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 @@ -96,7 +96,7 @@ public class AccessibleTabControl extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, + the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } @@ -148,7 +148,7 @@ public class AccessibleTabControl extends TestCase { * @see com.sun.star.accessibility.XAccessibleEventBroadcaster * @see com.sun.star.accessibility.XAccessibleSelection */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); @@ -172,13 +172,13 @@ public class AccessibleTabControl extends TestCase { shortWait(); - XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController secondController = aModel1.getCurrentController(); XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, secondController); XURLTransformer urlTransf = null; @@ -225,16 +225,16 @@ public class AccessibleTabControl extends TestCase { shortWait(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); - oObj = at.getAccessibleObjectForRole(xRoot, + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PAGE_TAB_LIST); - XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot, - AccessibleRole.PUSH_BUTTON, + XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot, + AccessibleRole.PUSH_BUTTON, "Close"); accCloseButton = (XAccessibleAction) UnoRuntime.queryInterface( @@ -245,10 +245,10 @@ public class AccessibleTabControl extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); final XAccessibleSelection selection = (XAccessibleSelection) (XAccessibleSelection) UnoRuntime.queryInterface( - XAccessibleSelection.class, + XAccessibleSelection.class, oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { try { @@ -259,10 +259,10 @@ public class AccessibleTabControl extends TestCase { } }); - tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", + tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", new Boolean(true)); - tEnv.addObjRelation("XAccessibleSelection.multiSelection", + tEnv.addObjRelation("XAccessibleSelection.multiSelection", new Boolean(false)); return tEnv; diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java index 318c2a96b8dd..6d458de73581 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.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 @@ -93,7 +93,7 @@ public class AccessibleTabPage extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, + the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } @@ -141,7 +141,7 @@ public class AccessibleTabPage extends TestCase { * @see ifc.accessibility._XAccessibleEventBroadcaster * @see com.sun.star.accessibility.XAccessibleEventBroadcaster */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); @@ -178,13 +178,13 @@ public class AccessibleTabPage extends TestCase { shortWait(); - XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XController secondController = aModel1.getCurrentController(); XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface( - XDispatchProvider.class, + XDispatchProvider.class, secondController); XURLTransformer urlTransf = null; @@ -231,18 +231,18 @@ public class AccessibleTabPage extends TestCase { shortWait(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); - XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot, - AccessibleRole.PUSH_BUTTON, + XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot, + AccessibleRole.PUSH_BUTTON, "Close"); accCloseButton = (XAccessibleAction) UnoRuntime.queryInterface( XAccessibleAction.class, closeButton); - + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PAGE_TAB); log.println("ImplementationName: " + util.utils.getImplName(oObj)); @@ -253,7 +253,7 @@ public class AccessibleTabPage extends TestCase { tEnv.addObjRelation("LimitedBounds", "toolkit.AccessibleTabPage"); XAccessibleComponent accComp = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, oObj); final Point point = accComp.getLocationOnScreen(); @@ -261,13 +261,13 @@ public class AccessibleTabPage extends TestCase { XInterface xEventInt = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PAGE_TAB, "Variables"); final XAccessibleComponent eventAccComp = (XAccessibleComponent) UnoRuntime.queryInterface( - XAccessibleComponent.class, + XAccessibleComponent.class, xEventInt); - - tEnv.addObjRelation("EventProducer", + + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { - eventAccComp.grabFocus(); + eventAccComp.grabFocus(); } }); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java index c02017508695..ed352e6e7183 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.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 @@ -74,7 +74,7 @@ import util.SOfficeFactory; public class AccessibleToolBox extends TestCase { private static XDesktop the_Desk; private static XTextDocument xTextDoc; - + /** * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ @@ -83,20 +83,20 @@ public class AccessibleToolBox extends TestCase { DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } - + /** * Disposes the document, if exists, created in * <code>createTestEnvironment</code> method. */ protected void cleanup(TestParameters Param, PrintWriter log) { log.println("disposing xTextDoc"); - + if (xTextDoc != null) { util.DesktopTools.closeDoc(xTextDoc); ; } } - + /** * Creates a text document. * Then obtains an accessible object with @@ -120,16 +120,16 @@ public class AccessibleToolBox extends TestCase { protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); - + if (xTextDoc != null) { util.DesktopTools.closeDoc(xTextDoc); } - + XMultiServiceFactory msf = (XMultiServiceFactory) tParam.getMSF(); - + // get a soffice factory object SOfficeFactory SOF = SOfficeFactory.getFactory(msf); - + try { log.println("creating a text document"); xTextDoc = SOF.createTextDoc(null); @@ -138,40 +138,40 @@ public class AccessibleToolBox extends TestCase { e.printStackTrace(log); throw new StatusException("Couldn't create document", e); } - + XInterface oObj = null; - + XWindow xWindow = UnoRuntime.queryInterface(XModel.class, xTextDoc). getCurrentController().getFrame().getContainerWindow(); - + AccessibilityTools at = new AccessibilityTools(); XAccessible xRoot = at.getAccessibleObject(xWindow); - + at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - + oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TOOL_BAR); - + log.println("ImplementationName: " + util.utils.getImplName(oObj)); - + TestEnvironment tEnv = new TestEnvironment(oObj); - + tEnv.addObjRelation("LimitedBounds", "yes"); - + XAccessible acc = at.getAccessibleObject(oObj); XAccessible child = null; - + try { child = acc.getAccessibleContext().getAccessibleChild(0); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { } - + util.dbg.printInterfaces(child); - + final XAccessibleAction action = (XAccessibleAction) UnoRuntime.queryInterface( XAccessibleAction.class, child); - + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { @@ -182,7 +182,7 @@ public class AccessibleToolBox extends TestCase { } } }); - + return tEnv; } } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java index d6ecc3ce7cc8..f4e25f0f590a 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.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 @@ -93,7 +93,7 @@ public class AccessibleToolBoxItem extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, + the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } @@ -133,7 +133,7 @@ public class AccessibleToolBoxItem extends TestCase { * @see com.sun.star.accessibility.XAccessibleEventBroadcaster * @see com.sun.star.accessibility.XAccessibleText */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); @@ -154,7 +154,7 @@ public class AccessibleToolBoxItem extends TestCase { throw new StatusException("Couldn't create document", e); } - XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XInterface oObj = null; @@ -162,31 +162,31 @@ public class AccessibleToolBoxItem extends TestCase { AccessibilityTools at = new AccessibilityTools(); XWindow xWindow = at.getCurrentContainerWindow( - (XMultiServiceFactory) tParam.getMSF(), + (XMultiServiceFactory) tParam.getMSF(), aModel); XAccessible xRoot = at.getAccessibleObject(xWindow); at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); - oObj = at.getAccessibleObjectForRole(xRoot, - AccessibleRole.TOGGLE_BUTTON, + oObj = at.getAccessibleObjectForRole(xRoot, + AccessibleRole.TOGGLE_BUTTON, "Bold"); log.println("ImplementationName: " + util.utils.getImplName(oObj)); TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("EditOnly", + tEnv.addObjRelation("EditOnly", "This method isn't supported in this dialog"); tEnv.addObjRelation("LimitedBounds", "yes"); final XAccessibleAction oAction = (XAccessibleAction) UnoRuntime.queryInterface( - XAccessibleAction.class, + XAccessibleAction.class, oObj); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { try { diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java index 95f4f7ccb19d..9dce17e1407b 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.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 @@ -95,7 +95,7 @@ public class AccessibleWindow extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, + the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } @@ -136,7 +136,7 @@ public class AccessibleWindow extends TestCase { * @see com.sun.star.accessibility.XAccessibleEventBroadcaster * @see com.sun.star.accessibility.XAccessibleText */ - protected TestEnvironment createTestEnvironment(TestParameters tParam, + protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { log.println("creating a test environment"); @@ -163,7 +163,7 @@ public class AccessibleWindow extends TestCase { throw new StatusException("Couldn't create document", e); } - XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XInterface oObj = null; @@ -171,7 +171,7 @@ public class AccessibleWindow extends TestCase { AccessibilityTools at = new AccessibilityTools(); XWindow xWindow = at.getCurrentWindow( - (XMultiServiceFactory) tParam.getMSF(), + (XMultiServiceFactory) tParam.getMSF(), aModel); XAccessible xRoot = at.getAccessibleObject(xWindow); @@ -187,7 +187,7 @@ public class AccessibleWindow extends TestCase { final XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface( XExtendedToolkit.class, toolkit); - tEnv.addObjRelation("EventProducer", + tEnv.addObjRelation("EventProducer", new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() { public void fireEvent() { XWindow xWin = (XWindow) UnoRuntime.queryInterface( @@ -197,7 +197,7 @@ public class AccessibleWindow extends TestCase { newPosSize.Height = newPosSize.Height - 20; newPosSize.X = newPosSize.X + 20; newPosSize.Y = newPosSize.Y + 20; - xWin.setPosSize(newPosSize.X, newPosSize.Y, newPosSize.Width, + xWin.setPosSize(newPosSize.X, newPosSize.Y, newPosSize.Width, newPosSize.Height, PosSize.POSSIZE); } }); diff --git a/qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.java b/qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.java index 5b4a0ed704e1..1dbe1cf66cd2 100644 --- a/qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.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 @@ -46,7 +46,7 @@ import util.utils; public class MutableTreeDataModel extends TestCase { private static XTextDocument xTextDoc; private static XInterface oObj = null; - + /** * Creates StarOffice Writer document. */ @@ -55,42 +55,42 @@ public class MutableTreeDataModel extends TestCase { xTextDoc = WriterTools.createTextDoc( (XMultiServiceFactory) tParam.getMSF()); } - + /** * Disposes StarOffice Writer document. */ protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xTextDoc "); - + util.DesktopTools.closeDoc(xTextDoc); } - + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { - + try { oObj = (XInterface) ((XMultiServiceFactory) Param.getMSF()).createInstance( "com.sun.star.awt.tree.MutableTreeDataModel"); } catch (Exception e) { } - + log.println( "creating a new environment for MutableTreeDataModel object"); - + TestEnvironment tEnv = new TestEnvironment(oObj); - + tEnv.addObjRelation("OBJNAME", "toolkit.MutableTreeDataModel"); log.println("ImplementationName: " + utils.getImplName(oObj)); - + tEnv.addObjRelation("XTreeDataModelListenerEvent", new XTreeDataModelListenerEvent()); - + return tEnv; } // finish method getTestEnvironment - + public class XTreeDataModelListenerEvent implements ifc.awt.tree._XTreeDataModel.XTreeDataModelListenerEvent{ - + public void fireEvent(){ - + XMutableTreeDataModel xModel = (XMutableTreeDataModel) UnoRuntime.queryInterface(XMutableTreeDataModel.class, oObj); XMutableTreeNode node = xModel.createNode("EventNode", true); try { @@ -99,7 +99,7 @@ public class MutableTreeDataModel extends TestCase { log.println("ERROR: could not preform event: " + ex.toString()); ex.printStackTrace(); } - + } } } // finish class UnoControlListBoxModel diff --git a/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java b/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java index 39c258c9ffd6..6382c7c3e1e5 100644 --- a/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java +++ b/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.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 @@ -54,7 +54,7 @@ public class MutableTreeNode extends TestCase { private static XMultiServiceFactory mxMSF; private static PrintWriter log; private static boolean debug = false; - + /** * Creates StarOffice Writer document. */ @@ -65,20 +65,20 @@ public class MutableTreeNode extends TestCase { // log.println("creating a textdocument"); // xTextDoc = WriterTools.createTextDoc(mxMSF); } - + /** * Disposes StarOffice Writer document. */ protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xTextDoc "); - + util.DesktopTools.closeDoc(xTextDoc); } - + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XMutableTreeNode xNode; - + try { mXTreeDataModel = (XMutableTreeDataModel) UnoRuntime.queryInterface(XMutableTreeDataModel.class, mxMSF.createInstance("com.sun.star.awt.tree.MutableTreeDataModel")); @@ -86,47 +86,47 @@ public class MutableTreeNode extends TestCase { throw new StatusException(Status.failed("ERROR: could not create instance of" + " 'com.sun.star.awt.tree.MutableTreeDataModel'")); } - + xNode = mXTreeDataModel.createNode("UnoTreeControl", false); - + String sDisplayValue = "UnoTreeControl"; String sExpandedGraphicURL = "private:graphicrepository/sd/res/triangle_down.png"; String sCollapsedGraphicURL = "private:graphicrepository/sd/res/triangle_right.png"; String sNodeGraphicURL = "private:graphicrepository/sw/imglst/nc20010.png"; - + xNode.setDisplayValue( sDisplayValue); xNode.setDataValue(sDisplayValue); xNode.setExpandedGraphicURL(sExpandedGraphicURL); xNode.setCollapsedGraphicURL(sCollapsedGraphicURL); xNode.setNodeGraphicURL(sNodeGraphicURL); xNode.setHasChildrenOnDemand(true); - + fillNode(xNode); - + TestEnvironment tEnv = new TestEnvironment(xNode); - + tEnv.addObjRelation("OBJNAME", "toolkit.MutableTreeDataModel"); log.println("ImplementationName: " + utils.getImplName(oObj)); - + tEnv.addObjRelation("XTreeNode_DisplayValue", sDisplayValue); tEnv.addObjRelation("XTreeNode_ExpandedGraphicURL", sExpandedGraphicURL); tEnv.addObjRelation("XTreeNode_CollapsedGraphicURL", sCollapsedGraphicURL); tEnv.addObjRelation("XTreeNode_NodeGraphicURL", sNodeGraphicURL); - - tEnv.addObjRelation("XMutableTreeNode_NodeToAppend", + + tEnv.addObjRelation("XMutableTreeNode_NodeToAppend", mXTreeDataModel.createNode("XMutableTreeNode_NodeToAppend", true)); - + tEnv.addObjRelation("XMutableTreeNodeCreator", new XMutableTreeNodeCreator(){ public XMutableTreeNode createNode(String name){ return mXTreeDataModel.createNode(name, true); } }); - + return tEnv; } // finish method getTestEnvironment - + private void fillNode( XMutableTreeNode xNode ){ - + if( xNode.getChildCount() == 0 ) { String sParentPath = (String) xNode.getDataValue(); @@ -140,14 +140,14 @@ public class MutableTreeNode extends TestCase { } XSimpleFileAccess sA = (XSimpleFileAccess) UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); - + dirlist(officeUserPath, xNode); } } - + private void dirlist(String dir, XMutableTreeNode xNode){ - + Object fileacc = null; try { fileacc = mxMSF.createInstance("com.sun.star.comp.ucb.SimpleFileAccess"); @@ -181,7 +181,7 @@ public class MutableTreeNode extends TestCase { } catch (com.sun.star.uno.Exception ex) { ex.printStackTrace(); } - + try { xNode.appendChild( xChildNode ); } catch (com.sun.star.lang.IllegalArgumentException ex) { diff --git a/qadevOOo/tests/java/mod/_toolkit/TabController.java b/qadevOOo/tests/java/mod/_toolkit/TabController.java index c7bd67265305..bcba3d88c00f 100644 --- a/qadevOOo/tests/java/mod/_toolkit/TabController.java +++ b/qadevOOo/tests/java/mod/_toolkit/TabController.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 @@ -74,7 +74,7 @@ public class TabController extends TestCase { ; } - public TestEnvironment createTestEnvironment(TestParameters param, + public TestEnvironment createTestEnvironment(TestParameters param, PrintWriter log) { XInterface oObj = null; XControl xCtrl1 = null; @@ -83,20 +83,20 @@ public class TabController extends TestCase { // create object relations - FormTools.insertForm(xTextDoc, + FormTools.insertForm(xTextDoc, FormTools.getForms(WriterTools.getDrawPage( xTextDoc)), "MyForm"); - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "CommandButton", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "CommandButton", "UnoControlButton"); WriterTools.getDrawPage(xTextDoc).add((XShape) aShape); XControlModel model = aShape.getControl(); XControlAccess access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); try { @@ -107,7 +107,7 @@ public class TabController extends TestCase { XForm form = null; try { - form = (XForm) AnyConverter.toObject(new Type(XForm.class), + form = (XForm) AnyConverter.toObject(new Type(XForm.class), (FormTools.getForms( WriterTools.getDrawPage( xTextDoc))) diff --git a/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java b/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java index 3ba6305c2be9..d3fd2693605b 100644 --- a/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.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 @@ -63,17 +63,17 @@ public class TabControllerModel extends TestCase { ; } - public TestEnvironment createTestEnvironment(TestParameters param, + public TestEnvironment createTestEnvironment(TestParameters param, PrintWriter log) { XInterface oObj = null; log.println("inserting some ControlShapes"); - XControlShape shape1 = FormTools.createControlShape(xTextDoc, 3000, - 4500, 15000, 1000, + XControlShape shape1 = FormTools.createControlShape(xTextDoc, 3000, + 4500, 15000, 1000, "CommandButton"); - XControlShape shape2 = FormTools.createControlShape(xTextDoc, 5000, - 3500, 7500, 5000, + XControlShape shape2 = FormTools.createControlShape(xTextDoc, 5000, + 3500, 7500, 5000, "TextField"); try { @@ -81,7 +81,7 @@ public class TabControllerModel extends TestCase { "com.sun.star.awt.TabControllerModel"); } catch (Exception e) { e.printStackTrace(log); - throw new StatusException("Couldn't create " + + throw new StatusException("Couldn't create " + "TabControllerModel", e); } @@ -89,7 +89,7 @@ public class TabControllerModel extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("OBJNAME", + tEnv.addObjRelation("OBJNAME", "stardiv.vcl.controlmodel.TabController"); tEnv.addObjRelation("Model1", shape1.getControl()); tEnv.addObjRelation("Model2", shape2.getControl()); diff --git a/qadevOOo/tests/java/mod/_toolkit/Toolkit.java b/qadevOOo/tests/java/mod/_toolkit/Toolkit.java index edca76e5e682..a8bfc06720e7 100644 --- a/qadevOOo/tests/java/mod/_toolkit/Toolkit.java +++ b/qadevOOo/tests/java/mod/_toolkit/Toolkit.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 @@ -82,7 +82,7 @@ public class Toolkit extends TestCase { * Creating a Testenvironment for the interfaces to be tested. * Creates <code>com.sun.star.awt.Toolkit</code> service. */ - public TestEnvironment createTestEnvironment(TestParameters Param, + public TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) throws StatusException { XInterface oObj = null; @@ -90,8 +90,8 @@ public class Toolkit extends TestCase { XWindow win = 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, "CommandButton"); WriterTools.getDrawPage(xTextDoc).add((XShape) aShape); @@ -100,10 +100,10 @@ public class Toolkit extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); XController cntrlr = (XController) UnoRuntime.queryInterface( - XController.class, + XController.class, xTextDoc.getCurrentController()); //now get the toolkit @@ -120,7 +120,7 @@ public class Toolkit extends TestCase { e.printStackTrace(log); throw new StatusException("Couldn't get toolkit", e); } - + XModel xModel = (XModel)UnoRuntime.queryInterface(XModel.class, xTextDoc); log.println(" creating a new environment for toolkit object"); @@ -130,7 +130,7 @@ public class Toolkit extends TestCase { log.println("Implementation Name: " + utils.getImplName(oObj)); tEnv.addObjRelation("WINPEER", the_win); - + tEnv.addObjRelation("XModel", xModel); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlButton.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlButton.java index fac722977e95..8c7028134d64 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlButton.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlButton.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 @@ -82,7 +82,7 @@ public class UnoControlButton extends TestCase { util.DesktopTools.closeDoc(xTD2); } - public TestEnvironment createTestEnvironment(TestParameters Param, + public TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -92,10 +92,10 @@ public class UnoControlButton extends TestCase { XWindow anotherWindow = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "CommandButton", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "CommandButton", "UnoControlButton"); WriterTools.getDrawPage(xTextDoc).add((XShape) aShape); @@ -104,7 +104,7 @@ public class UnoControlButton extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the ButtonControl for the needed Object relations diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.java index a46b8abee959..4159f6106d9c 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.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 @@ -62,7 +62,7 @@ public class UnoControlButtonModel extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBox.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBox.java index a2b8c167e2c4..c079ed8ac6ac 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBox.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 @@ -83,7 +83,7 @@ public class UnoControlCheckBox extends TestCase { util.DesktopTools.closeDoc(xTD2); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -93,10 +93,10 @@ public class UnoControlCheckBox extends TestCase { XWindow anotherWindow = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "CheckBox", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "CheckBox", "UnoControlCheckBox"); WriterTools.getDrawPage(xTextDoc).add((XShape) aShape); @@ -105,7 +105,7 @@ public class UnoControlCheckBox extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the CheckBoxControl for the needed Object relations @@ -137,7 +137,7 @@ public class UnoControlCheckBox extends TestCase { tEnv.addObjRelation("MODEL", the_Model); // adding object relation for XItemListener - ifc.awt._XItemListener.TestItemListener listener = + ifc.awt._XItemListener.TestItemListener listener = new ifc.awt._XItemListener.TestItemListener(); XCheckBox check = (XCheckBox) UnoRuntime.queryInterface( XCheckBox.class, oObj); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.java index 76773c6d74ac..a30435534417 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.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 @@ -62,7 +62,7 @@ public class UnoControlCheckBoxModel extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBox.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBox.java index 6bc357321d53..4240274d66c4 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBox.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 @@ -77,7 +77,7 @@ public class UnoControlComboBox extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -87,18 +87,18 @@ util.DesktopTools.closeDoc(xTextDoc); XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "ComboBox", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "ComboBox", "UnoControlComboBox"); 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); @@ -107,7 +107,7 @@ util.DesktopTools.closeDoc(xTextDoc); //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the ComboBoxControl for the needed Object relations @@ -139,14 +139,14 @@ util.DesktopTools.closeDoc(xTextDoc); tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - 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); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBoxModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBoxModel.java index 4ee5eef572ab..e24744546411 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBoxModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBoxModel.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 @@ -61,7 +61,7 @@ public class UnoControlComboBoxModel extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlContainer.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlContainer.java index 3b2b83380c04..57eddf415d74 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlContainer.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlContainer.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 @@ -86,7 +86,7 @@ public class UnoControlContainer extends TestCase { util.DesktopTools.closeDoc(xTD2); } - public TestEnvironment createTestEnvironment(TestParameters param, + public TestEnvironment createTestEnvironment(TestParameters param, PrintWriter log) { // create Object Relations ------------------------------------------- XInterface oObj = null; @@ -106,7 +106,7 @@ public class UnoControlContainer extends TestCase { // create 3 XControls // create first XControl - shape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000, + shape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000, 10000, "TextField"); WriterTools.getDrawPage(xTextDoc).add((XShape) shape); model = shape.getControl(); @@ -122,7 +122,7 @@ public class UnoControlContainer extends TestCase { // create second XControl - shape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000, + shape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000, 10000, "TextField"); WriterTools.getDrawPage(xTextDoc).add((XShape) shape); model = shape.getControl(); @@ -138,7 +138,7 @@ public class UnoControlContainer extends TestCase { // create third XControl - shape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000, + shape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000, 10000, "CommandButton"); WriterTools.getDrawPage(xTextDoc).add((XShape) shape); model = shape.getControl(); @@ -154,10 +154,10 @@ public class UnoControlContainer extends TestCase { // create XToolkit, XWindowPeer, XDevice //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "CommandButton", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "CommandButton", "UnoControlButton"); WriterTools.getDrawPage(xTD2).add((XShape) aShape); @@ -166,7 +166,7 @@ public class UnoControlContainer extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTD2.getCurrentController()); //get the ButtonControl for the needed Object relations @@ -213,7 +213,7 @@ public class UnoControlContainer extends TestCase { "creating a new environment for UnoControlContainer object"); TestEnvironment tEnv = new TestEnvironment(oObj); - + XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, oObj); Rectangle ps = xWindow.getPosSize(); xWindow.setPosSize(ps.X+10, ps.Y+10, ps.Width+10, ps.Height+10, PosSize.POSSIZE); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlContainerModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlContainerModel.java index cf7104282237..847ed1e0c17f 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlContainerModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlContainerModel.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 @@ -40,7 +40,7 @@ import util.utils; public class UnoControlContainerModel extends TestCase { - public TestEnvironment createTestEnvironment(TestParameters param, + public TestEnvironment createTestEnvironment(TestParameters param, PrintWriter log) { XInterface oObj = null; @@ -49,7 +49,7 @@ public class UnoControlContainerModel extends TestCase { "com.sun.star.awt.UnoControlContainerModel"); } catch (Exception e) { e.printStackTrace(log); - throw new StatusException("Couldn't create " + + throw new StatusException("Couldn't create " + "UnoControlContainerModel", e); } @@ -57,7 +57,7 @@ public class UnoControlContainerModel extends TestCase { "creating a new environment for UnoControlContainer object"); TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("OBJNAME", + tEnv.addObjRelation("OBJNAME", "stardiv.vcl.controlmodel.ControlContainer"); System.out.println("ImplementationName: " + utils.getImplName(oObj)); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.java index 455c4765bef0..064d9914b786 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.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 @@ -78,7 +78,7 @@ public class UnoControlCurrencyField extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -88,18 +88,18 @@ public class UnoControlCurrencyField extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "CurrencyField", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "CurrencyField", "UnoControlCurrencyField"); 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); @@ -108,7 +108,7 @@ public class UnoControlCurrencyField extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the CurrencyFieldControl for the needed Object relations @@ -141,14 +141,14 @@ public class UnoControlCurrencyField extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - 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); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyFieldModel.java index e2c696b53ac2..606a8ac631be 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyFieldModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyFieldModel.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 @@ -61,7 +61,7 @@ public class UnoControlCurrencyFieldModel extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -71,12 +71,12 @@ public class UnoControlCurrencyFieldModel extends TestCase { } catch (Exception e) { } - log.println("creating a new environment for " + + log.println("creating a new environment for " + "UnoControlCurrencyFieldModel object"); TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("OBJNAME", + tEnv.addObjRelation("OBJNAME", "stardiv.vcl.controlmodel.CurrencyField"); System.out.println("ImplementationName: " + utils.getImplName(oObj)); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlDateField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDateField.java index 073f262a0c12..bb0c947e58e3 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDateField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDateField.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 @@ -83,7 +83,7 @@ public class UnoControlDateField extends TestCase { util.DesktopTools.closeDoc(xTD2); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -93,10 +93,10 @@ public class UnoControlDateField extends TestCase { XWindow anotherWindow = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "DateField", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "DateField", "UnoControlDateField"); WriterTools.getDrawPage(xTextDoc).add((XShape) aShape); @@ -105,7 +105,7 @@ public class UnoControlDateField extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the DateFieldControl for the needed Object relations @@ -154,7 +154,7 @@ public class UnoControlDateField extends TestCase { 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); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.java index 0144d0759b0d..9a4cee1ab823 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.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 @@ -61,7 +61,7 @@ public class UnoControlDateFieldModel extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialog.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialog.java index d621681a75a4..37464599ff6b 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialog.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialog.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 @@ -91,7 +91,7 @@ public class UnoControlDialog extends TestCase { * for Control, adds to Dialog a button, sets its size and * sets the dialog visible. <p> */ - public synchronized TestEnvironment createTestEnvironment(TestParameters Param, + public synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XMultiServiceFactory xMSF = (XMultiServiceFactory) Param.getMSF(); @@ -116,23 +116,23 @@ public class UnoControlDialog extends TestCase { try { dlgModel = (XControlModel) UnoRuntime.queryInterface( - XControlModel.class, + XControlModel.class, xMSF.createInstance( "com.sun.star.awt.UnoControlDialogModel")); XControl dlgControl = (XControl) UnoRuntime.queryInterface( - XControl.class, + XControl.class, xMSF.createInstance( "com.sun.star.awt.UnoControlDialog")); dlgControl.setModel(dlgModel); XControlModel butModel = (XControlModel) UnoRuntime.queryInterface( - XControlModel.class, + XControlModel.class, xMSF.createInstance( "com.sun.star.awt.UnoControlButtonModel")); - butControl = (XControl) UnoRuntime.queryInterface(XControl.class, + butControl = (XControl) UnoRuntime.queryInterface(XControl.class, xMSF.createInstance( "com.sun.star.awt.UnoControlButton")); @@ -141,34 +141,34 @@ public class UnoControlDialog extends TestCase { // creating additional controls for XUnoControlContainer tabControl1 = (XTabController) UnoRuntime.queryInterface( - XTabController.class, + XTabController.class, xMSF.createInstance( "com.sun.star.awt.TabController")); tabControl2 = (XTabController) UnoRuntime.queryInterface( - XTabController.class, + XTabController.class, xMSF.createInstance( "com.sun.star.awt.TabController")); // creating additional controls for XControlContainer butModel = (XControlModel) UnoRuntime.queryInterface( - XControlModel.class, + XControlModel.class, xMSF.createInstance( "com.sun.star.awt.UnoControlButtonModel")); - butControl1 = (XControl) UnoRuntime.queryInterface(XControl.class, + butControl1 = (XControl) UnoRuntime.queryInterface(XControl.class, xMSF.createInstance( "com.sun.star.awt.UnoControlButton")); butControl1.setModel(butModel); butModel = (XControlModel) UnoRuntime.queryInterface( - XControlModel.class, + XControlModel.class, xMSF.createInstance( "com.sun.star.awt.UnoControlButtonModel")); - butControl2 = (XControl) UnoRuntime.queryInterface(XControl.class, + butControl2 = (XControl) UnoRuntime.queryInterface(XControl.class, xMSF.createInstance( "com.sun.star.awt.UnoControlButton")); @@ -177,7 +177,7 @@ public class UnoControlDialog extends TestCase { ctrlCont = (XControlContainer) UnoRuntime.queryInterface( XControlContainer.class, dlgControl); - xWinDlg = (XWindow) UnoRuntime.queryInterface(XWindow.class, + xWinDlg = (XWindow) UnoRuntime.queryInterface(XWindow.class, dlgControl); xWinDlg.setVisible(true); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java index 558ea9f07d95..3f17f765d2dd 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.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 @@ -79,7 +79,7 @@ public class UnoControlDialogModel extends TestCase { * {@link ifc.io._XPersistObject} </li> * </ul> */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XInterface dialogModel = null; @@ -92,23 +92,23 @@ public class UnoControlDialogModel extends TestCase { dialogModel = (XInterface) ((XMultiServiceFactory) Param.getMSF()).createInstance( "com.sun.star.awt.UnoControlDialogModel"); - // create the dialog model and set the properties + // create the dialog model and set the properties XPropertySet xPSetDialog = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, dialogModel); xPSetDialog.setPropertyValue("PositionX", new Integer(100)); xPSetDialog.setPropertyValue("PositionY", new Integer(100)); xPSetDialog.setPropertyValue("Width", new Integer(150)); xPSetDialog.setPropertyValue("Height", new Integer(100)); - xPSetDialog.setPropertyValue("Title", + xPSetDialog.setPropertyValue("Title", new String("Runtime Dialog Demo")); - // get the service manager from the dialog model + // get the service manager from the dialog model xMultiServiceFactory = (XMultiServiceFactory) UnoRuntime.queryInterface( - XMultiServiceFactory.class, + XMultiServiceFactory.class, dialogModel); - // create the button model and set the properties + // create the button model and set the properties Object buttonModel = xMultiServiceFactory.createInstance( "com.sun.star.awt.UnoControlButtonModel"); XPropertySet xPSetButton = (XPropertySet) UnoRuntime.queryInterface( @@ -121,7 +121,7 @@ public class UnoControlDialogModel extends TestCase { xPSetButton.setPropertyValue("TabIndex", new Short((short) 0)); xPSetButton.setPropertyValue("Label", new String("Click Me")); - // create the label model and set the properties + // create the label model and set the properties Object labelModel = xMultiServiceFactory.createInstance( "com.sun.star.awt.UnoControlFixedTextModel"); XPropertySet xPSetLabel = (XPropertySet) UnoRuntime.queryInterface( @@ -134,22 +134,22 @@ public class UnoControlDialogModel extends TestCase { xPSetLabel.setPropertyValue("TabIndex", new Short((short) 1)); xPSetLabel.setPropertyValue("Label", _labelPrefix); - // insert the control models into the dialog model + // insert the control models into the dialog model XNameContainer xNameCont = (XNameContainer) UnoRuntime.queryInterface( - XNameContainer.class, + XNameContainer.class, dialogModel); xNameCont.insertByName(_buttonName, buttonModel); xNameCont.insertByName(_labelName, labelModel); - // create the dialog control and set the model + // create the dialog control and set the model XControl dialog = (XControl) UnoRuntime.queryInterface( - XControl.class, + XControl.class, ((XMultiServiceFactory) Param.getMSF()).createInstance( "com.sun.star.awt.UnoControlDialog")); XControl xControl = (XControl) UnoRuntime.queryInterface( XControl.class, dialog); XControlModel xControlModel = (XControlModel) UnoRuntime.queryInterface( - XControlModel.class, + XControlModel.class, dialogModel); xControl.setModel(xControlModel); } catch (Exception e) { @@ -167,13 +167,13 @@ public class UnoControlDialogModel extends TestCase { try { // XNameReplace - tEnv.addObjRelation("INSTANCE1", + tEnv.addObjRelation("INSTANCE1", xMultiServiceFactory.createInstance( "com.sun.star.awt.UnoControlFixedTextModel")); //XContainer - tEnv.addObjRelation("INSTANCE", + tEnv.addObjRelation("INSTANCE", xMultiServiceFactory.createInstance( "com.sun.star.awt.UnoControlFixedTextModel")); } catch (com.sun.star.uno.Exception e) { diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlEdit.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlEdit.java index e6460fc72d55..80750544d649 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlEdit.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlEdit.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 @@ -78,7 +78,7 @@ public class UnoControlEdit extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -88,18 +88,18 @@ public class UnoControlEdit extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "TextField", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "TextField", "UnoControlEdit"); 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); @@ -108,7 +108,7 @@ public class UnoControlEdit extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the EditControl for the needed Object relations @@ -140,14 +140,14 @@ public class UnoControlEdit extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - 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); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlEditModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlEditModel.java index 4df1e7ee86cc..0f05e3725cd9 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlEditModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlEditModel.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 @@ -61,7 +61,7 @@ public class UnoControlEditModel extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControl.java index ecf4c7170243..c326ee873cb4 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControl.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 @@ -78,7 +78,7 @@ public class UnoControlFileControl extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -88,18 +88,18 @@ public class UnoControlFileControl extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "FileControl", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "FileControl", "UnoControlFileControl"); 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); @@ -108,7 +108,7 @@ public class UnoControlFileControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the FileControlControl for the needed Object relations @@ -141,14 +141,14 @@ public class UnoControlFileControl extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - 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); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControlModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControlModel.java index 31153036da95..cefb7d072d13 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControlModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControlModel.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 @@ -61,7 +61,7 @@ public class UnoControlFileControlModel extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - public synchronized TestEnvironment createTestEnvironment(TestParameters Param, + public synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedLineModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedLineModel.java index 986f3acd9a2c..4deaef81360d 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedLineModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedLineModel.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 @@ -74,7 +74,7 @@ public class UnoControlFixedLineModel extends TestCase { * {@link ifc.io._XPersistObject} </li> * </ul> */ - public synchronized TestEnvironment createTestEnvironment(TestParameters Param, + public synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) throws StatusException { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedText.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedText.java index 7ee0369ad4ea..14d3c8f2b73f 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedText.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedText.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 @@ -77,7 +77,7 @@ public class UnoControlFixedText extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -87,18 +87,18 @@ public class UnoControlFixedText extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "FixedText", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "FixedText", "UnoControlFixedText"); 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); @@ -107,7 +107,7 @@ public class UnoControlFixedText extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the FixedTextControl for the needed Object relations @@ -140,7 +140,7 @@ public class UnoControlFixedText extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedTextModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedTextModel.java index 6bbf6f0cadb1..195dbdfb6984 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedTextModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedTextModel.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 @@ -61,7 +61,7 @@ public class UnoControlFixedTextModel extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java index 62b6169895bc..4511f65323e3 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.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 @@ -79,7 +79,7 @@ public class UnoControlFormattedField extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -89,18 +89,18 @@ public class UnoControlFormattedField extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "DatabaseFormattedField", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "DatabaseFormattedField", "UnoControlFormattedField"); 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); @@ -112,7 +112,7 @@ public class UnoControlFormattedField extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the EditControl for the needed Object relations @@ -146,14 +146,14 @@ public class UnoControlFormattedField extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - 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); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedFieldModel.java index 549ddd82ef7d..035196df0ab9 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedFieldModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedFieldModel.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 @@ -61,7 +61,7 @@ public class UnoControlFormattedFieldModel extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - public synchronized TestEnvironment createTestEnvironment(TestParameters Param, + public synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; @@ -76,7 +76,7 @@ public class UnoControlFormattedFieldModel extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("OBJNAME", + tEnv.addObjRelation("OBJNAME", "stardiv.vcl.controlmodel.FormattedField"); System.out.println("ImplementationName: " + utils.getImplName(oObj)); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBox.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBox.java index ef1377289fea..97d81ec52427 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBox.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 @@ -77,7 +77,7 @@ public class UnoControlGroupBox extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -87,18 +87,18 @@ public class UnoControlGroupBox extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "GroupBox", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "GroupBox", "UnoControlGroupBox"); 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); @@ -107,7 +107,7 @@ public class UnoControlGroupBox extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the GroupBoxControl for the needed Object relations @@ -139,7 +139,7 @@ public class UnoControlGroupBox extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBoxModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBoxModel.java index a960cd91c607..3bb46d8baaf2 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBoxModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBoxModel.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 @@ -61,7 +61,7 @@ public class UnoControlGroupBoxModel extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControl.java index e8611f9aee4c..efe32e3423f0 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControl.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 @@ -78,7 +78,7 @@ public class UnoControlImageControl extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -88,10 +88,10 @@ public class UnoControlImageControl extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "DatabaseImageControl", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "DatabaseImageControl", "UnoControlImageControl"); WriterTools.getDrawPage(xTextDoc).add((XShape) aShape); @@ -101,8 +101,8 @@ public class UnoControlImageControl extends TestCase { XPropertySet xPS = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, the_Model); - 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); @@ -111,7 +111,7 @@ public class UnoControlImageControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the ImageControlControl for the needed Object relations @@ -148,7 +148,7 @@ public class UnoControlImageControl extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControlModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControlModel.java index ab69c310038c..be142c1ebc58 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControlModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControlModel.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 @@ -39,7 +39,7 @@ import util.utils; public class UnoControlImageControlModel extends TestCase { - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlListBox.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlListBox.java index 85e9abd9058c..4e919ba14698 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlListBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlListBox.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 @@ -78,7 +78,7 @@ public class UnoControlListBox extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -88,18 +88,18 @@ public class UnoControlListBox extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "ListBox", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "ListBox", "UnoControlListBox"); 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); @@ -108,7 +108,7 @@ public class UnoControlListBox extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the ListBoxControl for the needed Object relations @@ -141,14 +141,14 @@ public class UnoControlListBox extends TestCase { tEnv.addObjRelation("MODEL", the_Model); // adding object relation for XItemListener - ifc.awt._XItemListener.TestItemListener listener = + ifc.awt._XItemListener.TestItemListener listener = new ifc.awt._XItemListener.TestItemListener(); - XListBox list = (XListBox) UnoRuntime.queryInterface(XListBox.class, + XListBox list = (XListBox) UnoRuntime.queryInterface(XListBox.class, oObj); list.addItemListener(listener); tEnv.addObjRelation("TestItemListener", listener); - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlListBoxModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlListBoxModel.java index d567bb50bb8a..785527f631c2 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlListBoxModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlListBoxModel.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 @@ -61,7 +61,7 @@ public class UnoControlListBoxModel extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericField.java index f9ac8e3b2d61..ac836abbaab7 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericField.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 @@ -85,7 +85,7 @@ public class UnoControlNumericField extends TestCase { } } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -95,18 +95,18 @@ public class UnoControlNumericField extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "NumericField", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "NumericField", "UnoControlNumericField"); 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); @@ -115,7 +115,7 @@ public class UnoControlNumericField extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the NumericFieldControl for the needed Object relations @@ -148,22 +148,22 @@ public class UnoControlNumericField extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - 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); textComp.addTextListener(listener); tEnv.addObjRelation("TestTextListener", listener); - + tEnv.addObjRelation("XTextComponent.onlyNumbers", ""); - + log.println("ImplementationName: " + utils.getImplName(oObj)); return tEnv; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericFieldModel.java index 003f36fd0791..79746cc576ef 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericFieldModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericFieldModel.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 @@ -61,7 +61,7 @@ public class UnoControlNumericFieldModel extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - public synchronized TestEnvironment createTestEnvironment(TestParameters Param, + public synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java index e3c514312b50..b89817e89c11 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.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 @@ -78,7 +78,7 @@ public class UnoControlPatternField extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -88,18 +88,18 @@ public class UnoControlPatternField extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "PatternField", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "PatternField", "UnoControlPatternField"); 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); @@ -108,7 +108,7 @@ public class UnoControlPatternField extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the PatternFieldControl for the needed Object relations @@ -141,14 +141,14 @@ public class UnoControlPatternField extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - 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); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternFieldModel.java index 2b77d40d0b15..11ebe24aac59 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternFieldModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternFieldModel.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 @@ -39,7 +39,7 @@ import util.utils; public class UnoControlPatternFieldModel extends TestCase { - public synchronized TestEnvironment createTestEnvironment(TestParameters Param, + public synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlProgressBarModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlProgressBarModel.java index 39e9dca50035..d582c08c2c57 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlProgressBarModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlProgressBarModel.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 @@ -72,7 +72,7 @@ public class UnoControlProgressBarModel extends TestCase { * {@link ifc.io._XPersistObject} </li> * </ul> */ - public synchronized TestEnvironment createTestEnvironment(TestParameters Param, + public synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) throws StatusException { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButton.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButton.java index 3b8eb313a3fa..3dea66cdb65f 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButton.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButton.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 @@ -77,7 +77,7 @@ public class UnoControlRadioButton extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -87,18 +87,18 @@ public class UnoControlRadioButton extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "RadioButton", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "RadioButton", "UnoControlRadioButton"); 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); @@ -107,7 +107,7 @@ public class UnoControlRadioButton extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the RadioButtonControl for the needed Object relations @@ -140,7 +140,7 @@ public class UnoControlRadioButton extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButtonModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButtonModel.java index 4805f9f4c61a..0db72e0d2db5 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButtonModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButtonModel.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 @@ -39,7 +39,7 @@ import util.utils; public class UnoControlRadioButtonModel extends TestCase { - public synchronized TestEnvironment createTestEnvironment(TestParameters Param, + public synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlScrollBarModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlScrollBarModel.java index bf9a1b6492b8..0ca3e0e7eb82 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlScrollBarModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlScrollBarModel.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 @@ -74,7 +74,7 @@ public class UnoControlScrollBarModel extends TestCase { * {@link ifc.io._XPersistObject} </li> * </ul> */ - public synchronized TestEnvironment createTestEnvironment(TestParameters Param, + public synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) throws StatusException { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeField.java index 04161dca61c2..9547f723414e 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeField.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 @@ -78,7 +78,7 @@ public class UnoControlTimeField extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -88,18 +88,18 @@ public class UnoControlTimeField extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "TimeField", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "TimeField", "UnoControlTimeField"); 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); @@ -108,7 +108,7 @@ public class UnoControlTimeField extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the TimeFieldControl for the needed Object relations @@ -141,14 +141,14 @@ public class UnoControlTimeField extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - 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); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeFieldModel.java index 91472cd01e4b..4b47fe41b475 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeFieldModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeFieldModel.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 @@ -39,7 +39,7 @@ import util.utils; public class UnoControlTimeFieldModel extends TestCase { - protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java index e12d323a5a8f..640365fdb855 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.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 @@ -69,24 +69,24 @@ public class UnoScrollBarControl extends TestCase { try { log.println("creating a textdocument"); xTextDoc = SOF.createTextDoc(null); - + log.println("maximize the window size"); XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XFrame xFrame = xModel.getCurrentController().getFrame(); XWindow xWin = xFrame.getContainerWindow(); - + Toolkit tk = Toolkit.getDefaultToolkit(); Dimension dim = tk.getScreenSize(); - + Rectangle newPosSize = xWin.getPosSize(); newPosSize.Width = new Double(dim.getWidth()).intValue(); newPosSize.Height = new Double(dim.getHeight()).intValue(); newPosSize.X = 0; newPosSize.Y = 0; - + xWin.setPosSize(newPosSize.X, newPosSize.Y, newPosSize.Width, - newPosSize.Height, com.sun.star.awt.PosSize.POSSIZE); - + newPosSize.Height, com.sun.star.awt.PosSize.POSSIZE); + } catch (com.sun.star.uno.Exception e) { // Some exception occures.FAILED e.printStackTrace(log); @@ -100,7 +100,7 @@ public class UnoScrollBarControl extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -110,18 +110,18 @@ public class UnoScrollBarControl extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "ScrollBar", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "ScrollBar", "UnoControlScrollBar"); 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); @@ -130,7 +130,7 @@ public class UnoScrollBarControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the ScrollBarControl for the needed Object relations @@ -167,7 +167,7 @@ public class UnoScrollBarControl extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java index 332cf133568f..a4ba99c437ec 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.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 @@ -68,7 +68,7 @@ public class UnoSpinButtonControl extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -78,18 +78,18 @@ public class UnoSpinButtonControl extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "SpinButton", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "SpinButton", "UnoControlSpinButton"); 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); @@ -98,7 +98,7 @@ public class UnoSpinButtonControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the SpinButtonControl for the needed Object relations @@ -135,7 +135,7 @@ public class UnoSpinButtonControl extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControlModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControlModel.java index fff32d4aeb3d..7cf20b8e0656 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControlModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControlModel.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 @@ -45,7 +45,7 @@ public class UnoSpinButtonControlModel extends TestCase { * Creates an instance of the service * <code>com.sun.star.awt.UnoControlSpinButtonModel</code>. */ - public synchronized TestEnvironment createTestEnvironment(TestParameters Param, + public synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) throws StatusException { XInterface oObj = null; @@ -60,7 +60,7 @@ public class UnoSpinButtonControlModel extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("OBJNAME", + tEnv.addObjRelation("OBJNAME", "com.sun.star.awt.UnoControlSpinButtonModel"); System.out.println("ImplementationName: " + utils.getImplName(oObj)); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java index 5be41be69f27..4a8dc03800e9 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.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 @@ -67,14 +67,14 @@ public class UnoTreeControl extends TestCase { private static XMultiServiceFactory mxMSF; private static PrintWriter log; private static boolean debug = false; - + protected void initialize(TestParameters Param, PrintWriter log) { this.log = log; debug = Param.getBool(PropertyName.DEBUG_IS_ACTIVE); SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) Param.getMSF()); - + try { log.println("creating a textdocument"); xTextDoc = SOF.createTextDoc(null); @@ -84,24 +84,24 @@ public class UnoTreeControl extends TestCase { throw new StatusException("Couldn't create document", e); } } - + protected void cleanup(TestParameters tParam, PrintWriter log) { // log.println(" disposing xTextDoc "); -// +// // util.DesktopTools.closeDoc(xTextDoc); } - + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { String sTreeControlName = "UnoTreeControl-Test"; mxMSF = (XMultiServiceFactory) Param.getMSF(); XInterface oObj = null; XMutableTreeNode xNode = null; - + try { - + mXTreeDataModel = (XMutableTreeDataModel ) - UnoRuntime.queryInterface(XMutableTreeDataModel.class, + UnoRuntime.queryInterface(XMutableTreeDataModel.class, mxMSF.createInstance("com.sun.star.awt.tree.MutableTreeDataModel")); xNode = mXTreeDataModel.createNode("UnoTreeControl", false); @@ -111,92 +111,92 @@ public class UnoTreeControl extends TestCase { xNode.setCollapsedGraphicURL( "private:graphicrepository/sd/res/triangle_right.png"); fillNode(xNode); - + mXTreeDataModel.setRoot(xNode); - + XControlModel xDialogModel = (XControlModel) UnoRuntime.queryInterface(XControlModel.class, mxMSF.createInstance("com.sun.star.awt.UnoControlDialogModel")); - + XPropertySet xDialogPropertySet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xDialogModel); - xDialogPropertySet.setPropertyValue( "PositionX", new Integer(50) ); - xDialogPropertySet.setPropertyValue( "PositionY", new Integer(50) ); - xDialogPropertySet.setPropertyValue( "Width", new Integer(256) ); - xDialogPropertySet.setPropertyValue( "Height", new Integer(256) ); - xDialogPropertySet.setPropertyValue( "Title", "Tree Control Test"); - + xDialogPropertySet.setPropertyValue( "PositionX", new Integer(50) ); + xDialogPropertySet.setPropertyValue( "PositionY", new Integer(50) ); + xDialogPropertySet.setPropertyValue( "Width", new Integer(256) ); + xDialogPropertySet.setPropertyValue( "Height", new Integer(256) ); + xDialogPropertySet.setPropertyValue( "Title", "Tree Control Test"); + XMultiServiceFactory xDialogMSF = (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class, xDialogModel); - + XControlModel xTreeControlModel = (XControlModel) UnoRuntime.queryInterface(XControlModel.class, xDialogMSF.createInstance("com.sun.star.awt.tree.TreeControlModel")); - + XPropertySet XTreeControlModelSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xTreeControlModel); XTreeControlModelSet.setPropertyValue( "SelectionType",com.sun.star.view.SelectionType.NONE); - XTreeControlModelSet.setPropertyValue( "PositionX", new Integer(3 )); - XTreeControlModelSet.setPropertyValue( "PositionY", new Integer(3 )); - XTreeControlModelSet.setPropertyValue( "Width", new Integer(253)); - XTreeControlModelSet.setPropertyValue( "Height", new Integer(253) ); - XTreeControlModelSet.setPropertyValue( "DataModel", mXTreeDataModel ); + XTreeControlModelSet.setPropertyValue( "PositionX", new Integer(3 )); + XTreeControlModelSet.setPropertyValue( "PositionY", new Integer(3 )); + XTreeControlModelSet.setPropertyValue( "Width", new Integer(253)); + XTreeControlModelSet.setPropertyValue( "Height", new Integer(253) ); + XTreeControlModelSet.setPropertyValue( "DataModel", mXTreeDataModel ); XTreeControlModelSet.setPropertyValue( "ShowsRootHandles",new Boolean (false)); - XTreeControlModelSet.setPropertyValue( "ShowsHandles", new Boolean (false)); - XTreeControlModelSet.setPropertyValue( "RootDisplayed", new Boolean (true)); - XTreeControlModelSet.setPropertyValue( "Editable", new Boolean (true )); - + XTreeControlModelSet.setPropertyValue( "ShowsHandles", new Boolean (false)); + XTreeControlModelSet.setPropertyValue( "RootDisplayed", new Boolean (true)); + XTreeControlModelSet.setPropertyValue( "Editable", new Boolean (true )); + XNameContainer xDialogModelContainer = (XNameContainer) UnoRuntime.queryInterface(XNameContainer.class, xDialogModel); - + xDialogModelContainer.insertByName( sTreeControlName, xTreeControlModel); - + XControl xDialogControl = (XControl) UnoRuntime.queryInterface(XControl.class, mxMSF.createInstance("com.sun.star.awt.UnoControlDialog")); - + xDialogControl.setModel( xDialogModel ); - - XToolkit xToolkit = (XToolkit) UnoRuntime.queryInterface(XToolkit.class, + + XToolkit xToolkit = (XToolkit) UnoRuntime.queryInterface(XToolkit.class, mxMSF.createInstance("com.sun.star.awt.Toolkit" )); - + xDialogControl.createPeer( xToolkit, null ); - + // get the peers of the sub controls from the dialog peer container XControlContainer xDialogContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class ,xDialogControl); - + XTreeControl xTreeControl = (XTreeControl) UnoRuntime.queryInterface(XTreeControl.class, xDialogContainer.getControl( sTreeControlName )); - + xTreeControl.expandNode(xNode); oObj = xTreeControl; XDialog xDialog = (XDialog) UnoRuntime.queryInterface(XDialog.class, xDialogControl); - + execurteDialog aDialog = new execurteDialog(xDialog); - + aDialog.start(); - -// xDialog.execute(); - + +// xDialog.execute(); + } catch (com.sun.star.uno.Exception ex) { ex.printStackTrace(); } TestEnvironment tEnv = new TestEnvironment(oObj); - + tEnv.addObjRelation("XTreeControl_Node", xNode); //com.sun.star.view.XSelectionSupplier try { - + System.out.println("count of children: " + xNode.getChildCount()); tEnv.addObjRelation("Selections", new Object[]{xNode.getChildAt(0), xNode}); } catch (com.sun.star.lang.IndexOutOfBoundsException ex) { log.println("ERROR: could not add object relation 'Selections' because 'xNode.getChildAt(1) failed: " + ex.toString()); } - - tEnv.addObjRelation("Comparer", + + tEnv.addObjRelation("Comparer", new Comparator() { public int compare(Object o1, Object o2) { XMutableTreeNode xNode1 = (XMutableTreeNode) UnoRuntime.queryInterface( @@ -207,10 +207,10 @@ public class UnoTreeControl extends TestCase { } catch (com.sun.star.lang.IllegalArgumentException ex) { ex.printStackTrace(); } - + XMutableTreeNode xNode2 = (XMutableTreeNode) UnoRuntime.queryInterface( XMutableTreeNode.class, xNode2a); - + if (((String) xNode1.getDataValue()).equals((String)xNode2.getDataValue())) { return 0; } @@ -219,12 +219,12 @@ public class UnoTreeControl extends TestCase { } }); System.out.println("ImplementationName: " + utils.getImplName(oObj)); - + return tEnv; } // finish method getTestEnvironment - + private void fillNode( XMutableTreeNode xNode ){ - + if( xNode.getChildCount() == 0 ) { String sParentPath = (String) xNode.getDataValue(); @@ -238,14 +238,14 @@ public class UnoTreeControl extends TestCase { } XSimpleFileAccess sA = (XSimpleFileAccess) UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc); - + dirlist(officeUserPath, xNode); } } - + private void dirlist(String dir, XMutableTreeNode xNode){ - + Object fileacc = null; try { fileacc = mxMSF.createInstance("com.sun.star.comp.ucb.SimpleFileAccess"); @@ -279,21 +279,21 @@ public class UnoTreeControl extends TestCase { } catch (com.sun.star.uno.Exception ex) { ex.printStackTrace(); } - + try { xNode.appendChild( xChildNode ); } catch (com.sun.star.lang.IllegalArgumentException ex) { ex.printStackTrace(); } } - + private class execurteDialog extends Thread{ private XDialog mXDialog; - + public execurteDialog(XDialog xDialog){ mXDialog = xDialog; } - + public void run() { mXDialog.endExecute(); } diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.java index f8da7cd2082d..5f6fecef11b6 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.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 @@ -42,7 +42,7 @@ import util.utils; public class UnoTreeModel extends TestCase { private static XTextDocument xTextDoc; - + /** * Creates StarOffice Writer document. */ @@ -51,34 +51,34 @@ public class UnoTreeModel extends TestCase { xTextDoc = WriterTools.createTextDoc( (XMultiServiceFactory) tParam.getMSF()); } - + /** * Disposes StarOffice Writer document. */ protected void cleanup(TestParameters tParam, PrintWriter log) { log.println(" disposing xTextDoc "); - + util.DesktopTools.closeDoc(xTextDoc); } - + protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; - + try { oObj = (XInterface) ((XMultiServiceFactory) Param.getMSF()).createInstance( "com.sun.star.awt.tree.TreeControlModel"); } catch (Exception e) { } - + log.println( "creating a new environment for TreeControlModel object"); - + TestEnvironment tEnv = new TestEnvironment(oObj); - + tEnv.addObjRelation("OBJNAME", "com.sun.star.awt.tree.TreeControlModel"); System.out.println("ImplementationName: " + utils.getImplName(oObj)); - + return tEnv; } // finish method getTestEnvironment } // finish class UnoControlListBoxModel diff --git a/qadevOOo/tests/java/mod/_typeconverter.uno/TypeConverter.java b/qadevOOo/tests/java/mod/_typeconverter.uno/TypeConverter.java index 7fb784e7d26b..e6bd253e2447 100644 --- a/qadevOOo/tests/java/mod/_typeconverter.uno/TypeConverter.java +++ b/qadevOOo/tests/java/mod/_typeconverter.uno/TypeConverter.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 diff --git a/qadevOOo/tests/java/mod/_typemgr.uno/TypeDescriptionManager.java b/qadevOOo/tests/java/mod/_typemgr.uno/TypeDescriptionManager.java index 4abc6230275d..ce278a2095f2 100644 --- a/qadevOOo/tests/java/mod/_typemgr.uno/TypeDescriptionManager.java +++ b/qadevOOo/tests/java/mod/_typemgr.uno/TypeDescriptionManager.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 diff --git a/qadevOOo/tests/java/mod/_ucb/UcbContentProviderProxyFactory.java b/qadevOOo/tests/java/mod/_ucb/UcbContentProviderProxyFactory.java index 1df5afb6733e..fcf8a696d5e1 100644 --- a/qadevOOo/tests/java/mod/_ucb/UcbContentProviderProxyFactory.java +++ b/qadevOOo/tests/java/mod/_ucb/UcbContentProviderProxyFactory.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 diff --git a/qadevOOo/tests/java/mod/_ucb/UcbPropertiesManager.java b/qadevOOo/tests/java/mod/_ucb/UcbPropertiesManager.java index 12fec3fc7fa3..aa22b68d851c 100644 --- a/qadevOOo/tests/java/mod/_ucb/UcbPropertiesManager.java +++ b/qadevOOo/tests/java/mod/_ucb/UcbPropertiesManager.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 diff --git a/qadevOOo/tests/java/mod/_ucb/UcbStore.java b/qadevOOo/tests/java/mod/_ucb/UcbStore.java index 459e068fab5b..2e0489037ff4 100644 --- a/qadevOOo/tests/java/mod/_ucb/UcbStore.java +++ b/qadevOOo/tests/java/mod/_ucb/UcbStore.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 diff --git a/qadevOOo/tests/java/mod/_ucb/UniversalContentBroker.java b/qadevOOo/tests/java/mod/_ucb/UniversalContentBroker.java index 42391e5f83e7..9f886179647e 100644 --- a/qadevOOo/tests/java/mod/_ucb/UniversalContentBroker.java +++ b/qadevOOo/tests/java/mod/_ucb/UniversalContentBroker.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 diff --git a/qadevOOo/tests/java/mod/_ucpchelp/CHelpContentProvider.java b/qadevOOo/tests/java/mod/_ucpchelp/CHelpContentProvider.java index 6e4d8b4b3708..6dccbf02020d 100644 --- a/qadevOOo/tests/java/mod/_ucpchelp/CHelpContentProvider.java +++ b/qadevOOo/tests/java/mod/_ucpchelp/CHelpContentProvider.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 @@ -70,8 +70,8 @@ public class CHelpContentProvider extends TestCase { //Adding ObjRelation for XContentProvider tEnv.addObjRelation("FACTORY",CIF); - tEnv.addObjRelation("CONTENT1", "vnd.sun.star.help://swriter?System=WIN&Language=de&Query=text&HitCount=120&Scope=Heading"); - tEnv.addObjRelation("CONTENT2", + tEnv.addObjRelation("CONTENT1", "vnd.sun.star.help://swriter?System=WIN&Language=de&Query=text&HitCount=120&Scope=Heading"); + tEnv.addObjRelation("CONTENT2", util.utils.getFullTestURL("SwXTextEmbeddedObject.sdw")); return tEnv; diff --git a/qadevOOo/tests/java/mod/_ucpdav/WebDAVContentProvider.java b/qadevOOo/tests/java/mod/_ucpdav/WebDAVContentProvider.java index 1caf45ea4777..b5b3395cb8bb 100644 --- a/qadevOOo/tests/java/mod/_ucpdav/WebDAVContentProvider.java +++ b/qadevOOo/tests/java/mod/_ucpdav/WebDAVContentProvider.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 diff --git a/qadevOOo/tests/java/mod/_ucpfile/FileProvider.java b/qadevOOo/tests/java/mod/_ucpfile/FileProvider.java index edab6d30166e..1258ec52be1a 100644 --- a/qadevOOo/tests/java/mod/_ucpfile/FileProvider.java +++ b/qadevOOo/tests/java/mod/_ucpfile/FileProvider.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 diff --git a/qadevOOo/tests/java/mod/_ucpftp/FTPContentProvider.java b/qadevOOo/tests/java/mod/_ucpftp/FTPContentProvider.java index ec709d5158ac..bb80761d6725 100644 --- a/qadevOOo/tests/java/mod/_ucpftp/FTPContentProvider.java +++ b/qadevOOo/tests/java/mod/_ucpftp/FTPContentProvider.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 diff --git a/qadevOOo/tests/java/mod/_ucphier/HierarchyContentProvider.java b/qadevOOo/tests/java/mod/_ucphier/HierarchyContentProvider.java index 675c9502b54a..ce1901254d7f 100644 --- a/qadevOOo/tests/java/mod/_ucphier/HierarchyContentProvider.java +++ b/qadevOOo/tests/java/mod/_ucphier/HierarchyContentProvider.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 diff --git a/qadevOOo/tests/java/mod/_ucphier/HierarchyDataSource.java b/qadevOOo/tests/java/mod/_ucphier/HierarchyDataSource.java index 366fd30eef41..a54f1bc8a151 100644 --- a/qadevOOo/tests/java/mod/_ucphier/HierarchyDataSource.java +++ b/qadevOOo/tests/java/mod/_ucphier/HierarchyDataSource.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 diff --git a/qadevOOo/tests/java/mod/_ucppkg/PackageContentProvider.java b/qadevOOo/tests/java/mod/_ucppkg/PackageContentProvider.java index 3d9668f82567..021cdadc7cc3 100644 --- a/qadevOOo/tests/java/mod/_ucppkg/PackageContentProvider.java +++ b/qadevOOo/tests/java/mod/_ucppkg/PackageContentProvider.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 diff --git a/qadevOOo/tests/java/mod/_ucprmt/ContentProvider.java b/qadevOOo/tests/java/mod/_ucprmt/ContentProvider.java index 6b6e86557476..d17b4f5be065 100644 --- a/qadevOOo/tests/java/mod/_ucprmt/ContentProvider.java +++ b/qadevOOo/tests/java/mod/_ucprmt/ContentProvider.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 diff --git a/qadevOOo/tests/java/mod/_ucprmt/ProviderAcceptor.java b/qadevOOo/tests/java/mod/_ucprmt/ProviderAcceptor.java index 5935fae84abb..5dba0063dd75 100644 --- a/qadevOOo/tests/java/mod/_ucprmt/ProviderAcceptor.java +++ b/qadevOOo/tests/java/mod/_ucprmt/ProviderAcceptor.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 diff --git a/qadevOOo/tests/java/mod/_ucprmt/ProxyProvider.java b/qadevOOo/tests/java/mod/_ucprmt/ProxyProvider.java index 3d184a87f946..af878cdf1755 100644 --- a/qadevOOo/tests/java/mod/_ucprmt/ProxyProvider.java +++ b/qadevOOo/tests/java/mod/_ucprmt/ProxyProvider.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 diff --git a/qadevOOo/tests/java/mod/_uui/UUIInteractionHandler.java b/qadevOOo/tests/java/mod/_uui/UUIInteractionHandler.java index 2df8d47fbee9..4dec44420321 100644 --- a/qadevOOo/tests/java/mod/_uui/UUIInteractionHandler.java +++ b/qadevOOo/tests/java/mod/_uui/UUIInteractionHandler.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 diff --git a/qadevOOo/tests/java/mod/_uuresolver.uno/UnoUrlResolver.java b/qadevOOo/tests/java/mod/_uuresolver.uno/UnoUrlResolver.java index 8adc3de640fe..46758c6e3d22 100644 --- a/qadevOOo/tests/java/mod/_uuresolver.uno/UnoUrlResolver.java +++ b/qadevOOo/tests/java/mod/_uuresolver.uno/UnoUrlResolver.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 diff --git a/qadevOOo/tests/java/mod/_uuresolver/UnoUrlResolver.java b/qadevOOo/tests/java/mod/_uuresolver/UnoUrlResolver.java index 59f18de31344..ebea2c62b679 100644 --- a/qadevOOo/tests/java/mod/_uuresolver/UnoUrlResolver.java +++ b/qadevOOo/tests/java/mod/_uuresolver/UnoUrlResolver.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.java index 6fe4765389da..93d9de99b214 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentExporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.java index 5e48b073fc9f..4801b2a4c893 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLContentImporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.java index c0edd4f82cda..ccea9da56f1b 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLExporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.java index 83a422df9128..52b3b3ce03d8 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLImporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.java index 4405b5c5ac60..ce399da29702 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesExporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.java b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.java index 7bd02228203d..01f89d61ad68 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Chart/XMLStylesImporter.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 @@ -127,7 +127,7 @@ public class XMLStylesImporter extends TestCase { log.println( "creating a test environment" ); XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF() ; - + try { oInt = xMSF.createInstance ("com.sun.star.comp.Chart.XMLStylesImporter") ; diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentExporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentExporter.java index f628a1c11b8f..b0f38f3d741c 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentExporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentImporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentImporter.java index b6e948aa6312..96d68e2218cc 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentImporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java index 1b468c8a373c..996fc2c7c062 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLImporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLImporter.java index 563b948d875f..93d3d3787ef2 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLImporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaExporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaExporter.java index 4cfc5a72acaf..b572027f3857 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaExporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaImporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaImporter.java index 244b7c9e3591..ff76e821a1b9 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLMetaImporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.java index ee6a4cf35d2b..a1f70a0223fc 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java index b7716acd0957..30ea302140c0 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsImporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesExporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesExporter.java index 9caf84ef2d94..bd4180571506 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesExporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesImporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesImporter.java index 19c95803428a..2466d4dcfa7e 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLStylesImporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.java index ec6d6104da7a..defe48794929 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentExporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentImporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentImporter.java index bb919b651ae0..8de42bcb3bdb 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLContentImporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLExporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLExporter.java index cfb3d1117021..18fab3f93505 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLExporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLImporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLImporter.java index 0675533906f1..4028f0661400 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLImporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaExporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaExporter.java index a71443adbcc5..fd7a4f871c76 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaExporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaImporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaImporter.java index 154f1380a9cc..7c69de6e1df4 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLMetaImporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.java index 31aad6b65034..69a3a45eda39 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java index 75d0661630bd..114d20670f03 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsImporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesExporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesExporter.java index db0b45e3ae8b..aeca441c26e5 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesExporter.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 diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java index f67141c2e1fd..8635b1bdd0ad 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.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 |