summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_fwl
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_fwl')
-rw-r--r--qadevOOo/tests/java/mod/_fwl/ContentHandlerFactory.java8
-rw-r--r--qadevOOo/tests/java/mod/_fwl/FilterFactory.java24
-rw-r--r--qadevOOo/tests/java/mod/_fwl/FrameLoaderFactory.java6
-rw-r--r--qadevOOo/tests/java/mod/_fwl/PathSettings.java24
-rw-r--r--qadevOOo/tests/java/mod/_fwl/SubstituteVariables.java2
-rw-r--r--qadevOOo/tests/java/mod/_fwl/TypeDetection.java24
6 files changed, 44 insertions, 44 deletions
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)) {