summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/document
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/document')
-rw-r--r--qadevOOo/tests/java/ifc/document/_DocumentInfo.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_ExportFilter.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_ImportFilter.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_LinkTarget.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_OfficeDocument.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_Settings.java26
-rw-r--r--qadevOOo/tests/java/ifc/document/_XActionLockable.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_XDocumentInfo.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_XDocumentInfoSupplier.java6
-rw-r--r--qadevOOo/tests/java/ifc/document/_XDocumentInsertable.java12
-rw-r--r--qadevOOo/tests/java/ifc/document/_XEmbeddedObjectSupplier.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_XEventBroadcaster.java42
-rw-r--r--qadevOOo/tests/java/ifc/document/_XEventsSupplier.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_XExporter.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_XFilter.java16
-rw-r--r--qadevOOo/tests/java/ifc/document/_XImporter.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_XLinkTargetSupplier.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_XMimeTypeInfo.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_XStandaloneDocumentInfo.java2
-rw-r--r--qadevOOo/tests/java/ifc/document/_XTypeDetection.java6
-rw-r--r--qadevOOo/tests/java/ifc/document/_XViewDataSupplier.java16
21 files changed, 76 insertions, 76 deletions
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();