summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sw
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw')
-rwxr-xr-xqadevOOo/tests/java/mod/_sw/CharacterStyle.java6
-rwxr-xr-xqadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.java12
-rw-r--r--qadevOOo/tests/java/mod/_sw/DocumentSettings.java2
-rwxr-xr-xqadevOOo/tests/java/mod/_sw/PageStyle.java14
-rwxr-xr-xqadevOOo/tests/java/mod/_sw/ParagraphStyle.java14
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.java32
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java8
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java22
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java14
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXAutoTextContainer.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java42
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java42
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXBodyText.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXBookmark.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXBookmarks.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXCell.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXCellRange.java6
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.java14
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXDrawPage.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXEndnoteProperties.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXFieldEnumeration.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXFieldMaster.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXFootnote.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXFootnotes.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXFrames.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXMailMerge.java140
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXModule.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXNumberingRules.java10
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXParagraph.java54
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXPrintSettings.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXPropertySet.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXPropertySetInfo.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXShape.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXStyle.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTableCellText.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTableColumns.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTableRows.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextColumns.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextCursor.java54
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextDefaults.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextDocument.java66
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java6
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextField.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextFrame.java14
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java6
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextPortion.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextRange.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextRanges.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextSearch.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextSection.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextSections.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextTable.java40
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextTables.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextView.java28
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXViewSettings.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLContentExporter.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLContentImporter.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLExporter.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLImporter.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLMetaImporter.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLStylesExporter.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLStylesImporter.java2
95 files changed, 399 insertions, 399 deletions
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