diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java | 28 |
1 files changed, 14 insertions, 14 deletions
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"); |