summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/style/_ParagraphProperties.java')
-rw-r--r--qadevOOo/tests/java/ifc/style/_ParagraphProperties.java48
1 files changed, 24 insertions, 24 deletions
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