summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sw
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw')
-rw-r--r--qadevOOo/tests/java/mod/_sw/CharacterStyle.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/DocumentSettings.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/PageStyle.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/ParagraphStyle.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.java6
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java6
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java6
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java6
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java6
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java6
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXAutoTextContainer.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXBodyText.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXBookmark.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXBookmarks.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXCell.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXCellRange.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXDrawPage.java4
-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.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXMailMerge.java23
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXModule.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXNumberingRules.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXParagraph.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXPrintSettings.java4
-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.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTableRows.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextColumns.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextCursor.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextDefaults.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextDocument.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java2
-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.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java4
-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.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextTables.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextView.java4
-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.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLContentImporter.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLExporter.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLImporter.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLMetaImporter.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLStylesExporter.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/XMLStylesImporter.java4
95 files changed, 154 insertions, 155 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/CharacterStyle.java b/qadevOOo/tests/java/mod/_sw/CharacterStyle.java
index 9a8e900dc6c5..0ba6d0decc3f 100644
--- a/qadevOOo/tests/java/mod/_sw/CharacterStyle.java
+++ b/qadevOOo/tests/java/mod/_sw/CharacterStyle.java
@@ -52,7 +52,7 @@ public class CharacterStyle extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.java b/qadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.java
index 5d71f1f7bf17..23df9ef54078 100644
--- a/qadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.java
+++ b/qadevOOo/tests/java/mod/_sw/ConditionalParagraphStyle.java
@@ -54,7 +54,7 @@ public class ConditionalParagraphStyle extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/DocumentSettings.java b/qadevOOo/tests/java/mod/_sw/DocumentSettings.java
index 26f54ec3210b..5a7273eae609 100644
--- a/qadevOOo/tests/java/mod/_sw/DocumentSettings.java
+++ b/qadevOOo/tests/java/mod/_sw/DocumentSettings.java
@@ -42,7 +42,7 @@ public class DocumentSettings extends TestCase
{
log.println(" opening xTextDoc ");
xTextDoc =
- WriterTools.createTextDoc((XMultiServiceFactory) tParam.getMSF());
+ WriterTools.createTextDoc(tParam.getMSF());
}
/**
@@ -59,7 +59,7 @@ public class DocumentSettings extends TestCase
)
{
SOfficeFactory SOF =
- SOfficeFactory.getFactory((XMultiServiceFactory) tParam.getMSF());
+ SOfficeFactory.getFactory(tParam.getMSF());
XInterface oObj = null;
log.println("creating a test environment");
diff --git a/qadevOOo/tests/java/mod/_sw/PageStyle.java b/qadevOOo/tests/java/mod/_sw/PageStyle.java
index 2955e03500e0..623956b726ac 100644
--- a/qadevOOo/tests/java/mod/_sw/PageStyle.java
+++ b/qadevOOo/tests/java/mod/_sw/PageStyle.java
@@ -54,7 +54,7 @@ public class PageStyle extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java b/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java
index 0c9110f521c8..e1e023835d4c 100644
--- a/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java
+++ b/qadevOOo/tests/java/mod/_sw/ParagraphStyle.java
@@ -54,7 +54,7 @@ public class ParagraphStyle extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.java
index e9c097711f9e..b6f14e2db0cc 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentPageView.java
@@ -99,7 +99,7 @@ public class SwAccessibleDocumentPageView extends TestCase {
try {
XDispatchProvider xDispProv = UnoRuntime.queryInterface(XDispatchProvider.class, xController);
XURLTransformer xParser = UnoRuntime.queryInterface(XURLTransformer.class,
- ( (XMultiServiceFactory) Param.getMSF()).createInstance("com.sun.star.util.URLTransformer"));
+ Param.getMSF().createInstance("com.sun.star.util.URLTransformer"));
// Because it's an in/out parameter we must use an array of URL objects.
URL[] aParseURL = new URL[1];
aParseURL[0] = new URL();
@@ -118,7 +118,7 @@ public class SwAccessibleDocumentPageView extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = AccessibilityTools.getCurrentWindow( (XMultiServiceFactory) Param.getMSF(), aModel);
+ XWindow xWindow = AccessibilityTools.getCurrentWindow( Param.getMSF(), aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.DOCUMENT );
@@ -180,6 +180,6 @@ public class SwAccessibleDocumentPageView extends TestCase {
*/
protected void initialize(TestParameters Param, PrintWriter log) {
log.println( "creating a text document" );
- xTextDoc = WriterTools.createTextDoc( (XMultiServiceFactory) Param.getMSF());
+ xTextDoc = WriterTools.createTextDoc( Param.getMSF());
}
} \ No newline at end of file
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java
index 714d3c2901ba..fb108b5cc398 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleDocumentView.java
@@ -99,7 +99,7 @@ public class SwAccessibleDocumentView extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = AccessibilityTools.getCurrentWindow((XMultiServiceFactory)Param.getMSF(), aModel);
+ XWindow xWindow = AccessibilityTools.getCurrentWindow(Param.getMSF(), aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.DOCUMENT);
@@ -169,6 +169,6 @@ public class SwAccessibleDocumentView extends TestCase {
*/
protected void initialize(TestParameters Param, PrintWriter log) {
log.println( "creating a text document" );
- xTextDoc = WriterTools.createTextDoc((XMultiServiceFactory)Param.getMSF());
+ xTextDoc = WriterTools.createTextDoc(Param.getMSF());
}
}
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java
index f94515e0be2e..c7b7fc97bebc 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleEndnoteView.java
@@ -115,7 +115,7 @@ public class SwAccessibleEndnoteView extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = AccessibilityTools.getCurrentWindow((XMultiServiceFactory)Param.getMSF(), aModel);
+ XWindow xWindow = AccessibilityTools.getCurrentWindow(Param.getMSF(), aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.END_NOTE);
@@ -174,6 +174,6 @@ public class SwAccessibleEndnoteView extends TestCase {
*/
protected void initialize(TestParameters Param, PrintWriter log) {
log.println( "creating a text document" );
- xTextDoc = WriterTools.createTextDoc((XMultiServiceFactory)Param.getMSF());
+ xTextDoc = WriterTools.createTextDoc(Param.getMSF());
}
}
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java
index 15cb7ddfb635..48172b83c206 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java
@@ -129,7 +129,7 @@ public class SwAccessibleFooterView extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = AccessibilityTools.getCurrentWindow((XMultiServiceFactory)Param.getMSF(), aModel);
+ XWindow xWindow = AccessibilityTools.getCurrentWindow(Param.getMSF(), aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.FOOTER);
@@ -178,7 +178,7 @@ public class SwAccessibleFooterView extends TestCase {
*/
protected void initialize(TestParameters Param, PrintWriter log) {
log.println( "creating a text document" );
- xTextDoc = WriterTools.createTextDoc((XMultiServiceFactory)Param.getMSF());
+ xTextDoc = WriterTools.createTextDoc(Param.getMSF());
}
}
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java
index af45d5dd3c2f..ad18a53e42c7 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java
@@ -116,7 +116,7 @@ public class SwAccessibleFootnoteView extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = AccessibilityTools.getCurrentWindow((XMultiServiceFactory)Param.getMSF(), aModel);
+ XWindow xWindow = AccessibilityTools.getCurrentWindow(Param.getMSF(), aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.FOOTNOTE);
@@ -175,6 +175,6 @@ public class SwAccessibleFootnoteView extends TestCase {
*/
protected void initialize(TestParameters Param, PrintWriter log) {
log.println( "creating a text document" );
- xTextDoc = WriterTools.createTextDoc((XMultiServiceFactory)Param.getMSF());
+ xTextDoc = WriterTools.createTextDoc(Param.getMSF());
}
}
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java
index 7b6dcd44d372..10bd514aaa1a 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java
@@ -119,7 +119,7 @@ public class SwAccessibleHeaderView extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = AccessibilityTools.getCurrentWindow((XMultiServiceFactory)Param.getMSF(), aModel);
+ XWindow xWindow = AccessibilityTools.getCurrentWindow(Param.getMSF(), aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.HEADER);
@@ -168,6 +168,6 @@ public class SwAccessibleHeaderView extends TestCase {
*/
protected void initialize(TestParameters Param, PrintWriter log) {
log.println( "creating a text document" );
- xTextDoc = WriterTools.createTextDoc((XMultiServiceFactory)Param.getMSF());
+ xTextDoc = WriterTools.createTextDoc(Param.getMSF());
}
}
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java b/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java
index fc3e2c6106af..25a045b12172 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java
@@ -154,7 +154,7 @@ public class SwAccessiblePageView extends TestCase {
try {
XDispatchProvider xDispProv = UnoRuntime.queryInterface(XDispatchProvider.class, xController);
XURLTransformer xParser = UnoRuntime.queryInterface(XURLTransformer.class,
- ((XMultiServiceFactory)Param.getMSF()).createInstance("com.sun.star.util.URLTransformer"));
+ Param.getMSF().createInstance("com.sun.star.util.URLTransformer"));
// Because it's an in/out parameter we must use an array of URL objects.
URL[] aParseURL = new URL[1];
aParseURL[0] = new URL();
@@ -173,7 +173,7 @@ public class SwAccessiblePageView extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = AccessibilityTools.getCurrentWindow((XMultiServiceFactory)Param.getMSF(), aModel);
+ XWindow xWindow = AccessibilityTools.getCurrentWindow(Param.getMSF(), aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
AccessibilityTools.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
@@ -250,7 +250,7 @@ public class SwAccessiblePageView extends TestCase {
*/
protected void initialize(TestParameters Param, PrintWriter log) {
log.println( "creating a text document" );
- xTextDoc = WriterTools.createTextDoc((XMultiServiceFactory)Param.getMSF());
+ xTextDoc = WriterTools.createTextDoc(Param.getMSF());
}
/**
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java
index c1928be73673..5b86db7a5db8 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleParagraphView.java
@@ -71,7 +71,7 @@ public class SwAccessibleParagraphView extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = AccessibilityTools.getCurrentWindow( (XMultiServiceFactory) Param.getMSF(), aModel);
+ XWindow xWindow = AccessibilityTools.getCurrentWindow( Param.getMSF(), aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.PARAGRAPH);
@@ -121,6 +121,6 @@ public class SwAccessibleParagraphView extends TestCase {
*/
protected void initialize(TestParameters Param, PrintWriter log) {
log.println( "creating a text document" );
- xTextDoc = WriterTools.createTextDoc( (XMultiServiceFactory) Param.getMSF());
+ xTextDoc = WriterTools.createTextDoc( Param.getMSF());
}
}
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java
index 9c68878552c5..1ed3a6c35c2b 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableCellView.java
@@ -68,7 +68,7 @@ public class SwAccessibleTableCellView extends TestCase {
XAccessibleContext oObj = null;
XTextTable oTable = null;
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) Param.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF());
try {
oTable = SOfficeFactory.createTextTable(xTextDoc);
@@ -91,7 +91,7 @@ public class SwAccessibleTableCellView extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = AccessibilityTools.getCurrentWindow( (XMultiServiceFactory) Param.getMSF(), aModel);
+ XWindow xWindow = AccessibilityTools.getCurrentWindow( Param.getMSF(), aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.TABLE_CELL);
@@ -137,6 +137,6 @@ public class SwAccessibleTableCellView extends TestCase {
*/
protected void initialize(TestParameters Param, PrintWriter log) {
log.println("creating a text document");
- xTextDoc = WriterTools.createTextDoc( (XMultiServiceFactory) Param.getMSF());
+ xTextDoc = WriterTools.createTextDoc( Param.getMSF());
}
} \ No newline at end of file
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java
index e54a1599f96f..96802c362db1 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTableView.java
@@ -71,7 +71,7 @@ public class SwAccessibleTableView extends TestCase {
XInterface oObj = null;
XTextTable oTable = null;
- SOfficeFactory SOF = SOfficeFactory.getFactory((XMultiServiceFactory)Param.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory(Param.getMSF());
try {
oTable = SOfficeFactory.createTextTable( xTextDoc );
} catch ( com.sun.star.uno.Exception e ) {
@@ -92,7 +92,7 @@ public class SwAccessibleTableView extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = AccessibilityTools.getCurrentWindow((XMultiServiceFactory)Param.getMSF(), aModel);
+ XWindow xWindow = AccessibilityTools.getCurrentWindow(Param.getMSF(), aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.TABLE);
@@ -154,7 +154,7 @@ public class SwAccessibleTableView extends TestCase {
*/
protected void initialize(TestParameters Param, PrintWriter log) {
log.println( "creating a text document" );
- xTextDoc = WriterTools.createTextDoc((XMultiServiceFactory)Param.getMSF());
+ xTextDoc = WriterTools.createTextDoc(Param.getMSF());
}
}
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java
index 6d2ef55e278c..6525506f9df2 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextEmbeddedObject.java
@@ -70,7 +70,7 @@ public class SwAccessibleTextEmbeddedObject extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = AccessibilityTools.getCurrentWindow((XMultiServiceFactory)Param.getMSF(), aModel);
+ XWindow xWindow = AccessibilityTools.getCurrentWindow(Param.getMSF(), aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.EMBEDDED_OBJECT);
@@ -136,7 +136,7 @@ public class SwAccessibleTextEmbeddedObject extends TestCase {
log.println( "open a text document" );
String testdoc = utils.getFullTestURL("SwXTextEmbeddedObject.sxw");
log.println(testdoc);
- xTextDoc = WriterTools.loadTextDoc((XMultiServiceFactory)Param.getMSF(),testdoc);
+ xTextDoc = WriterTools.loadTextDoc(Param.getMSF(),testdoc);
}
}
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java
index 2503d38ef4e2..6e95efb7d936 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextFrameView.java
@@ -79,7 +79,7 @@ public class SwAccessibleTextFrameView extends TestCase {
XTextCursor oCursor = null;
// get a soffice factory object
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF() );
// creating Frames
log.println( "creating Frames" );
try {
@@ -103,7 +103,7 @@ public class SwAccessibleTextFrameView extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = AccessibilityTools.getCurrentWindow((XMultiServiceFactory)Param.getMSF(), aModel);
+ XWindow xWindow = AccessibilityTools.getCurrentWindow(Param.getMSF(), aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.TEXT_FRAME);
@@ -166,7 +166,7 @@ public class SwAccessibleTextFrameView extends TestCase {
*/
protected void initialize(TestParameters Param, PrintWriter log) {
log.println( "creating a text document" );
- xTextDoc = WriterTools.createTextDoc((XMultiServiceFactory)Param.getMSF());
+ xTextDoc = WriterTools.createTextDoc(Param.getMSF());
}
}
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java
index ee63c3dd0e45..f846460d952d 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleTextGraphicObject.java
@@ -72,7 +72,7 @@ public class SwAccessibleTextGraphicObject extends TestCase {
XInterface oObj = null;
- SOfficeFactory SOF = SOfficeFactory.getFactory((XMultiServiceFactory)Param.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory(Param.getMSF());
Object oGraphObj = SOF.createInstance(
xTextDoc, "com.sun.star.text.GraphicObject");
@@ -92,7 +92,7 @@ public class SwAccessibleTextGraphicObject extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = AccessibilityTools.getCurrentWindow((XMultiServiceFactory)Param.getMSF(), aModel);
+ XWindow xWindow = AccessibilityTools.getCurrentWindow(Param.getMSF(), aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
oObj = AccessibilityTools.getAccessibleObjectForRole(xRoot, AccessibleRole.GRAPHIC);
@@ -156,7 +156,7 @@ public class SwAccessibleTextGraphicObject extends TestCase {
*/
protected void initialize(TestParameters Param, PrintWriter log) {
log.println( "creating a text document" );
- xTextDoc = WriterTools.createTextDoc((XMultiServiceFactory)Param.getMSF());
+ xTextDoc = WriterTools.createTextDoc(Param.getMSF());
}
}
diff --git a/qadevOOo/tests/java/mod/_sw/SwXAutoTextContainer.java b/qadevOOo/tests/java/mod/_sw/SwXAutoTextContainer.java
index 934616fb2fec..317dbe7bd2e1 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXAutoTextContainer.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXAutoTextContainer.java
@@ -61,7 +61,7 @@ public class SwXAutoTextContainer extends TestCase {
// first we write what we are intend to do to log file
log.println("creating a AutoTextContainer");
try {
- XMultiServiceFactory myMSF = (XMultiServiceFactory)Param.getMSF();
+ XMultiServiceFactory myMSF = Param.getMSF();
Object oInst = myMSF.createInstance
("com.sun.star.text.AutoTextContainer");
oContainer = UnoRuntime.queryInterface
diff --git a/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java b/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java
index b37512167a85..1ed259c4b5ee 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXAutoTextEntry.java
@@ -72,7 +72,7 @@ public class SwXAutoTextEntry extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- XMultiServiceFactory msf = (XMultiServiceFactory) tParam.getMSF();
+ XMultiServiceFactory msf = tParam.getMSF();
SOfficeFactory SOF = SOfficeFactory.getFactory( msf );
try {
log.println( "creating a textdocument" );
@@ -124,7 +124,7 @@ public class SwXAutoTextEntry extends TestCase {
XInterface oObj = null;
log.println( "creating a test environment" );
try {
- XMultiServiceFactory myMSF = (XMultiServiceFactory)Param.getMSF();
+ XMultiServiceFactory myMSF = Param.getMSF();
Object oInst = myMSF.createInstance
("com.sun.star.text.AutoTextContainer");
oContainer = UnoRuntime.queryInterface(XAutoTextContainer.class,oInst);
diff --git a/qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java b/qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java
index 3f2e802473b2..cd79331ed178 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXAutoTextGroup.java
@@ -70,7 +70,7 @@ public class SwXAutoTextGroup extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
@@ -106,7 +106,7 @@ public class SwXAutoTextGroup extends TestCase {
log.println( "creating a test environment" );
try {
- XMultiServiceFactory myMSF = (XMultiServiceFactory)Param.getMSF();
+ XMultiServiceFactory myMSF = Param.getMSF();
Object oInst = myMSF.createInstance("com.sun.star.text.AutoTextContainer");
oContainer = UnoRuntime.queryInterface(XAutoTextContainer.class,oInst);
} catch (com.sun.star.uno.Exception e) {
diff --git a/qadevOOo/tests/java/mod/_sw/SwXBodyText.java b/qadevOOo/tests/java/mod/_sw/SwXBodyText.java
index f10a161aa2af..8d954e4f7fd6 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXBodyText.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXBodyText.java
@@ -74,7 +74,7 @@ public class SwXBodyText extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXBookmark.java b/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
index 13543e806a0b..1c71e3633faf 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
@@ -61,7 +61,7 @@ public class SwXBookmark extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
@@ -84,7 +84,7 @@ public class SwXBookmark extends TestCase {
* a bookmark, it is inserted to the text document.
*/
protected synchronized TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF());
XInterface oObj = null;
Object instance = null;
log.println( "creating a test environment" );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java b/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java
index 5ea99e608709..67cfc87ea4c1 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXBookmarks.java
@@ -57,7 +57,7 @@ public class SwXBookmarks extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXCell.java b/qadevOOo/tests/java/mod/_sw/SwXCell.java
index 257c699aeccf..b4a0a827e059 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXCell.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXCell.java
@@ -55,7 +55,7 @@ public class SwXCell extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
@@ -89,7 +89,7 @@ public class SwXCell extends TestCase {
XInterface oObj = null;
XTextContent oTable = null;
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
log.println( "creating a test environment" );
try {
oTable = SOfficeFactory.createTextTable(xTextDoc, 3, 4);
diff --git a/qadevOOo/tests/java/mod/_sw/SwXCellRange.java b/qadevOOo/tests/java/mod/_sw/SwXCellRange.java
index a60f1b56f901..b566c1342f47 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXCellRange.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXCellRange.java
@@ -57,7 +57,7 @@ public class SwXCellRange extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.java b/qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.java
index 75b0a49b8285..f11ff4017388 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXChapterNumbering.java
@@ -60,7 +60,7 @@ public class SwXChapterNumbering extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java
index 8111ea596bf4..b099c3f08641 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndex.java
@@ -66,7 +66,7 @@ public class SwXDocumentIndex extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
@@ -95,7 +95,7 @@ public class SwXDocumentIndex extends TestCase {
XTextContent xTC = null;
Object instance = null;
- SOfficeFactory SOF = SOfficeFactory.getFactory((XMultiServiceFactory)tParam.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory(tParam.getMSF());
log.println( "creating a test environment" );
try {
xTC = SOfficeFactory.createIndex(xTextDoc, "com.sun.star.text.DocumentIndex");
diff --git a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java
index 0bc8ce938378..235d525544c9 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexMark.java
@@ -66,7 +66,7 @@ public class SwXDocumentIndexMark extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java
index d4ff191f42f6..e7b2094a2132 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXDocumentIndexes.java
@@ -60,7 +60,7 @@ public class SwXDocumentIndexes extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
@@ -89,7 +89,7 @@ public class SwXDocumentIndexes extends TestCase {
public TestEnvironment createTestEnvironment(
TestParameters tParam, PrintWriter log ) throws StatusException {
XInterface oObj = null;
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
log.println( "creating a test environment" );
XTextContent xTC = null;
diff --git a/qadevOOo/tests/java/mod/_sw/SwXDrawPage.java b/qadevOOo/tests/java/mod/_sw/SwXDrawPage.java
index 45cc2daf6f7c..e5c52186fef8 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXDrawPage.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXDrawPage.java
@@ -85,7 +85,7 @@ public class SwXDrawPage extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
@@ -125,7 +125,7 @@ public class SwXDrawPage extends TestCase {
XShapes oShapes = null;
log.println( "creating a test environment" );
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF() );
XDPSupp = UnoRuntime.queryInterface
(XDrawPageSupplier.class, xTextDoc);
xDP = XDPSupp.getDrawPage();
diff --git a/qadevOOo/tests/java/mod/_sw/SwXEndnoteProperties.java b/qadevOOo/tests/java/mod/_sw/SwXEndnoteProperties.java
index 87d1dc9aa2b4..0f1ed1efb9be 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXEndnoteProperties.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXEndnoteProperties.java
@@ -56,7 +56,7 @@ public class SwXEndnoteProperties extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXFieldEnumeration.java b/qadevOOo/tests/java/mod/_sw/SwXFieldEnumeration.java
index 67f80b319f1c..53ff8d35d029 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXFieldEnumeration.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXFieldEnumeration.java
@@ -56,7 +56,7 @@ public class SwXFieldEnumeration extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXFieldMaster.java b/qadevOOo/tests/java/mod/_sw/SwXFieldMaster.java
index b570ad3d322f..d7387fca274f 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXFieldMaster.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXFieldMaster.java
@@ -54,7 +54,7 @@ public class SwXFieldMaster extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXFootnote.java b/qadevOOo/tests/java/mod/_sw/SwXFootnote.java
index c650a67d6d35..7c8fbe05844a 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXFootnote.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXFootnote.java
@@ -73,7 +73,7 @@ public class SwXFootnote extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java b/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java
index 4659f0198e93..6b80f52a6683 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXFootnoteProperties.java
@@ -55,7 +55,7 @@ public class SwXFootnoteProperties extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java b/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java
index 6c1edcb810a7..edf29d7e8f97 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java
@@ -77,7 +77,7 @@ public class SwXFootnoteText extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXFootnotes.java b/qadevOOo/tests/java/mod/_sw/SwXFootnotes.java
index d9a7215b8887..08655a3e42e3 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXFootnotes.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXFootnotes.java
@@ -58,7 +58,7 @@ public class SwXFootnotes extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXFrames.java b/qadevOOo/tests/java/mod/_sw/SwXFrames.java
index 50050ea5c048..7cf813260e15 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXFrames.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXFrames.java
@@ -61,7 +61,7 @@ public class SwXFrames extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java b/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java
index 28e111b3c36e..4d5e66854211 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java
@@ -80,7 +80,7 @@ public class SwXHeadFootText extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.java b/qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.java
index ff07a8cfc46e..8ac3c5441021 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXLineNumberingProperties.java
@@ -55,7 +55,7 @@ public class SwXLineNumberingProperties extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java b/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java
index efdbeca57011..cfd35362d233 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java
@@ -78,7 +78,7 @@ public class SwXMailMerge extends TestCase {
log.println(" instantiate MailMerge service");
try {
- oObj = (XInterface) ( (XMultiServiceFactory) Param.getMSF()).createInstance
+ oObj = (XInterface) Param.getMSF().createInstance
("com.sun.star.text.MailMerge");
} catch (Exception e) {
throw new StatusException("Can't create object environment", e) ;
@@ -87,7 +87,7 @@ public class SwXMailMerge extends TestCase {
// <set some variables>
String cTestDoc = utils.getFullTestURL("MailMerge.sxw");
//cMailMerge_DocumentURL = cTestDoc
- String cOutputURL = utils.getOfficeTemp( (XMultiServiceFactory) Param.getMSF());
+ String cOutputURL = utils.getOfficeTemp( Param.getMSF());
String cDataSourceName = "Bibliography";
String cDataCommand = "biblio";
Object[] sel = new Object[2];
@@ -99,7 +99,7 @@ public class SwXMailMerge extends TestCase {
// <create XResultSet>
log.println("create a XResultSet");
try {
- oRowSet = (XInterface) ( (XMultiServiceFactory) Param.getMSF()).createInstance
+ oRowSet = (XInterface) Param.getMSF().createInstance
("com.sun.star.sdb.RowSet");
} catch (Exception e) {
throw new StatusException("Can't create com.sun.star.sdb.RowSet", e);
@@ -233,7 +233,7 @@ public class SwXMailMerge extends TestCase {
log.println("create XResultSet");
try {
- oRowSet = (XInterface) ( (XMultiServiceFactory) Param.getMSF()).createInstance
+ oRowSet = (XInterface) Param.getMSF().createInstance
("com.sun.star.sdb.RowSet");
} catch (Exception e) {
throw new StatusException("Can't create com.sun.star.sdb.RowSet", e);
@@ -266,8 +266,7 @@ public class SwXMailMerge extends TestCase {
XResultSet oMMXResultSet = null;
try {
oMMXResultSet = UnoRuntime.queryInterface(XResultSet.class,
- ( (XMultiServiceFactory)
- Param.getMSF()).createInstance("com.sun.star.sdb.RowSet"));
+ Param.getMSF().createInstance("com.sun.star.sdb.RowSet"));
} catch (Exception e) {
throw new StatusException("Can't create com.sun.star.sdb.RowSet", e);
@@ -307,17 +306,17 @@ public class SwXMailMerge extends TestCase {
int uniqueSuffix = Param.getInt("uniqueSuffix");
try {
- xMSF = (XMultiServiceFactory)Param.getMSF();
+ xMSF = Param.getMSF();
xMSF.createInstance( "com.sun.star.sdb.DatabaseContext" );
// retrieving temp directory for database
- String tmpDatabaseUrl = utils.getOfficeTempDir((XMultiServiceFactory)Param.getMSF());
+ String tmpDatabaseUrl = utils.getOfficeTempDir(Param.getMSF());
databaseName = "NewDatabaseSource" + uniqueSuffix ;
String tmpDatabaseFile = tmpDatabaseUrl + databaseName + ".odb";
System.out.println("try to delete '"+tmpDatabaseFile+"'");
- utils.deleteFile(((XMultiServiceFactory) Param.getMSF()), tmpDatabaseFile);
+ utils.deleteFile((Param.getMSF()), tmpDatabaseFile);
tmpDatabaseUrl = "sdbc:dbase:file:///" + tmpDatabaseUrl ;
@@ -330,7 +329,7 @@ public class SwXMailMerge extends TestCase {
xSrcProp.setPropertyValue("URL", tmpDatabaseUrl) ;
- DBTools dbt = new DBTools( (XMultiServiceFactory)Param.getMSF(), log );
+ DBTools dbt = new DBTools( Param.getMSF(), log );
// registering source in DatabaseContext
log.println("register database '"+tmpDatabaseUrl+"' as '"+databaseName+"'" );
dbt.reRegisterDB(databaseName, newSource) ;
@@ -355,7 +354,7 @@ public class SwXMailMerge extends TestCase {
XInterface oDataCont = null;
try {
- oDataCont = (XInterface)( (XMultiServiceFactory) Param.getMSF()).createInstance
+ oDataCont = (XInterface)Param.getMSF().createInstance
("com.sun.star.sdb.DatabaseContext");
} catch(Exception e) {
throw new StatusException("Couldn't create instance of 'com.sun.star.sdb.DatabaseContext'", e);
@@ -388,7 +387,7 @@ public class SwXMailMerge extends TestCase {
protected void cleanup(TestParameters Param, PrintWriter log) {
log.println("closing connections...");
- XMultiServiceFactory xMsf = (XMultiServiceFactory) Param.getMSF();
+ XMultiServiceFactory xMsf = Param.getMSF();
DBTools dbt = new DBTools( xMsf, log );
if (Param.containsKey("uniqueSuffix")){
diff --git a/qadevOOo/tests/java/mod/_sw/SwXModule.java b/qadevOOo/tests/java/mod/_sw/SwXModule.java
index 8d848751eba4..15ae811f176f 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXModule.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXModule.java
@@ -56,7 +56,7 @@ public class SwXModule extends TestCase {
Object oInterface = null;
try {
- oInterface = ((XMultiServiceFactory)Param.getMSF()).createInstance(
+ oInterface = Param.getMSF().createInstance(
"com.sun.star.text.GlobalSettings" );
} catch ( com.sun.star.uno.Exception e ) {
log.println("Service not available" );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXNumberingRules.java b/qadevOOo/tests/java/mod/_sw/SwXNumberingRules.java
index d88fc9516c9c..dd5043cf8ffe 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXNumberingRules.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXNumberingRules.java
@@ -69,7 +69,7 @@ public class SwXNumberingRules extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXParagraph.java b/qadevOOo/tests/java/mod/_sw/SwXParagraph.java
index 7a2e85b3659c..f28cd9a06b2f 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXParagraph.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXParagraph.java
@@ -145,7 +145,7 @@ public class SwXParagraph extends TestCase {
log.println("couldn't close document");
}
}
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java b/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java
index ace70b24c369..e9d292666a2f 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXParagraphEnumeration.java
@@ -55,7 +55,7 @@ public class SwXParagraphEnumeration extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXPrintSettings.java b/qadevOOo/tests/java/mod/_sw/SwXPrintSettings.java
index 0c08a925bf00..216243102161 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXPrintSettings.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXPrintSettings.java
@@ -51,7 +51,7 @@ public class SwXPrintSettings extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
@@ -82,7 +82,7 @@ public class SwXPrintSettings extends TestCase {
log.println( "creating a test environment" );
try {
- XMultiServiceFactory myMSF = (XMultiServiceFactory)tParam.getMSF();
+ XMultiServiceFactory myMSF = tParam.getMSF();
oInst = myMSF.createInstance("com.sun.star.text.GlobalSettings");
} catch ( com.sun.star.uno.Exception e ){
log.println("Couldn't create instance!" + e);
diff --git a/qadevOOo/tests/java/mod/_sw/SwXPropertySet.java b/qadevOOo/tests/java/mod/_sw/SwXPropertySet.java
index 4a2d07e99892..785eb334489a 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXPropertySet.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXPropertySet.java
@@ -59,7 +59,7 @@ public class SwXPropertySet extends TestCase {
TestParameters Param, PrintWriter log ) throws StatusException {
log.println( "creating a test environment" );
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF() );
try {
log.println( "creating a text document" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXPropertySetInfo.java b/qadevOOo/tests/java/mod/_sw/SwXPropertySetInfo.java
index 1971579eb332..542841cb9ce0 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXPropertySetInfo.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXPropertySetInfo.java
@@ -65,7 +65,7 @@ public class SwXPropertySetInfo extends TestCase {
XInterface oObj = null;
log.println( "creating a test environment" );
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java b/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java
index c345785dae87..47d82163c98d 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXReferenceMark.java
@@ -61,7 +61,7 @@ public class SwXReferenceMark extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java b/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java
index 273ca44ceb3b..601acd8fd34d 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXReferenceMarks.java
@@ -62,7 +62,7 @@ public class SwXReferenceMarks extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXShape.java b/qadevOOo/tests/java/mod/_sw/SwXShape.java
index dc7ca25d0dcd..a03b76c51a10 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXShape.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXShape.java
@@ -67,7 +67,7 @@ public class SwXShape extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXStyle.java b/qadevOOo/tests/java/mod/_sw/SwXStyle.java
index 0371ffe866b0..96c8a8d74961 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXStyle.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXStyle.java
@@ -69,7 +69,7 @@ public class SwXStyle extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java b/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java
index bd77d4cabe99..44a3037d2a3e 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXStyleFamilies.java
@@ -59,7 +59,7 @@ public class SwXStyleFamilies extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java b/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java
index e2fdb12febd6..4550cec18f08 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java
@@ -69,7 +69,7 @@ public class SwXStyleFamily extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
@@ -120,7 +120,7 @@ public class SwXStyleFamily extends TestCase {
log.println( "Creating Test Environment..." );
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF());
XComponent xComp = UnoRuntime.queryInterface(XComponent.class, xTextDoc);
XInterface oInstance = (XInterface)
SOF.createInstance(xComp, "com.sun.star.style.CharacterStyle");
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java b/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java
index 700780ee1eac..a279016637be 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTableCellText.java
@@ -77,7 +77,7 @@ public class SwXTableCellText extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java b/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java
index c69741a6ec69..4e9e8b9234e7 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java
@@ -63,7 +63,7 @@ public class SwXTableColumns extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTableRows.java b/qadevOOo/tests/java/mod/_sw/SwXTableRows.java
index 6bc037557633..e03064d7d483 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTableRows.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTableRows.java
@@ -58,7 +58,7 @@ public class SwXTableRows extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
@@ -87,7 +87,7 @@ public class SwXTableRows extends TestCase {
XTextTable oTable = null;
log.println( "creating a test environment" );
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
oTable = SOfficeFactory.createTextTable( xTextDoc );
} catch ( com.sun.star.uno.Exception e ) {
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextColumns.java b/qadevOOo/tests/java/mod/_sw/SwXTextColumns.java
index 7d4746ab1ac3..832aeddc06b6 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextColumns.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextColumns.java
@@ -64,7 +64,7 @@ public class SwXTextColumns extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextCursor.java b/qadevOOo/tests/java/mod/_sw/SwXTextCursor.java
index c175421a1d53..a11470f6b54d 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextCursor.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextCursor.java
@@ -97,7 +97,7 @@ public class SwXTextCursor extends TestCase {
* Creates text document.
*/
protected void initialize(TestParameters tParam, PrintWriter log) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) tParam.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF());
try {
log.println("creating a textdocument");
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextDefaults.java b/qadevOOo/tests/java/mod/_sw/SwXTextDefaults.java
index e39a409b98d8..16bedd3c6436 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextDefaults.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextDefaults.java
@@ -93,7 +93,7 @@ public class SwXTextDefaults extends TestCase {
* Creates text document.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextDocument.java b/qadevOOo/tests/java/mod/_sw/SwXTextDocument.java
index 829e1d6853d6..84e35edfe4d9 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextDocument.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextDocument.java
@@ -74,7 +74,7 @@ public class SwXTextDocument extends TestCase {
try {
log.println("creating a textdocument");
xTextDoc = WriterTools.createTextDoc(
- (XMultiServiceFactory) Param.getMSF());
+ Param.getMSF());
XText oText = xTextDoc.getText();
XTextCursor oCursor = oText.createTextCursor();
@@ -208,7 +208,7 @@ public class SwXTextDocument extends TestCase {
log.println("creating a second textdocument");
xSecondTextDoc = WriterTools.createTextDoc(
- (XMultiServiceFactory) Param.getMSF());
+ Param.getMSF());
} catch (com.sun.star.uno.Exception e) {
// Some exception occurs.FAILED
e.printStackTrace(log);
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java b/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java
index c4808493a4c9..9c1745154572 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObject.java
@@ -96,7 +96,7 @@ public class SwXTextEmbeddedObject extends TestCase {
XInterface oObj = null;
// create testobject here
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) tParam.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF());
try {
xTextDoc = SOF.createTextDoc(null);
} catch (com.sun.star.uno.Exception e) {
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java b/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java
index e025bd95a2a9..f1f23365a7e3 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextEmbeddedObjects.java
@@ -52,7 +52,7 @@ public class SwXTextEmbeddedObjects extends TestCase {
*
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
oDoc = SOF.createTextDoc(null);
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextField.java b/qadevOOo/tests/java/mod/_sw/SwXTextField.java
index e4173e485d1e..c2cca418794f 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextField.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextField.java
@@ -61,7 +61,7 @@ public class SwXTextField extends TestCase {
*
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java b/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java
index 6629c12052d8..ea9c4154bd9e 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextFieldMasters.java
@@ -58,7 +58,7 @@ public class SwXTextFieldMasters extends TestCase {
*
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java b/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java
index bff70af76caa..c21d69916da5 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextFieldTypes.java
@@ -56,7 +56,7 @@ public class SwXTextFieldTypes extends TestCase {
*
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java b/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java
index 15806946a87c..4acc235dd8a9 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextFrame.java
@@ -47,7 +47,7 @@ public class SwXTextFrame extends TestCase {
XTextDocument xTextDoc;
protected void initialize(TestParameters tParam, PrintWriter log) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) tParam.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF());
try {
log.println("creating a textdocument");
@@ -82,7 +82,7 @@ public class SwXTextFrame extends TestCase {
log.println("creating a test environment");
// get a soffice factory object
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) Param.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF());
// creating Frames
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java b/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java
index 5282155bb56b..77caca5dbc30 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java
@@ -53,7 +53,7 @@ public class SwXTextFrameText extends TestCase {
XTextDocument xTextDoc;
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -95,7 +95,7 @@ public class SwXTextFrameText extends TestCase {
log.println( "creating a test environment" );
// get a soffice factory object
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
// create testobject here
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java
index fc9c67c958f3..1b37e78d3bf4 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java
@@ -52,7 +52,7 @@ public class SwXTextGraphicObject extends TestCase {
*
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdoc" );
xTextDoc = SOF.createTextDoc( null );
@@ -97,7 +97,7 @@ public class SwXTextGraphicObject extends TestCase {
XInterface oObj = null;
Object oGObject = null;
Object xTextFrame = null;
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
Object instance = null;
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java
index b4897fa82469..91da8efeff85 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java
@@ -52,7 +52,7 @@ public class SwXTextGraphicObjects extends TestCase {
*
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdoc" );
xTextDoc = SOF.createTextDoc( null );
@@ -97,7 +97,7 @@ public class SwXTextGraphicObjects extends TestCase {
XInterface oObj = null;
Object oGObject = null;
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
oGObject = SOF.createInstance
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java b/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java
index db07f4796d24..522dd5d9a1ad 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java
@@ -49,7 +49,7 @@ public class SwXTextPortion extends TestCase {
XTextDocument xTextDoc;
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java b/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java
index 0a96111a7d74..c1ae07d08d4b 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextPortionEnumeration.java
@@ -49,7 +49,7 @@ public class SwXTextPortionEnumeration extends TestCase {
XTextDocument xTextDoc;
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextRange.java b/qadevOOo/tests/java/mod/_sw/SwXTextRange.java
index ef2778ac72d9..e25491ff5b4f 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextRange.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextRange.java
@@ -37,7 +37,7 @@ public class SwXTextRange extends TestCase {
XTextDocument xTextDoc;
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextRanges.java b/qadevOOo/tests/java/mod/_sw/SwXTextRanges.java
index 4cc8e8d71bac..a65a79ddc8e8 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextRanges.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextRanges.java
@@ -47,7 +47,7 @@ public class SwXTextRanges extends TestCase {
XTextDocument xTextDoc;
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextSearch.java b/qadevOOo/tests/java/mod/_sw/SwXTextSearch.java
index 135b1e792509..8f1b3298c7e7 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextSearch.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextSearch.java
@@ -48,7 +48,7 @@ public class SwXTextSearch extends TestCase {
XTextDocument xTextDoc;
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextSection.java b/qadevOOo/tests/java/mod/_sw/SwXTextSection.java
index 4dd774ea5d8c..dcd5c115039b 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextSection.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextSection.java
@@ -57,7 +57,7 @@ public class SwXTextSection extends TestCase {
XTextDocument xTextDoc;
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextSections.java b/qadevOOo/tests/java/mod/_sw/SwXTextSections.java
index 7786e19243c6..3af9c0c74aa8 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextSections.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextSections.java
@@ -46,7 +46,7 @@ public class SwXTextSections extends TestCase {
XTextDocument xTextDoc;
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTable.java b/qadevOOo/tests/java/mod/_sw/SwXTextTable.java
index dfbec2492c74..25f7125344c6 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextTable.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextTable.java
@@ -50,7 +50,7 @@ public class SwXTextTable extends TestCase {
XTextDocument xTextDoc;
protected void initialize(TestParameters tParam, PrintWriter log) {
- SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) tParam.getMSF());
+ SOF = SOfficeFactory.getFactory( tParam.getMSF());
try {
log.println("creating a textdocument");
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java b/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java
index 980765be4fc2..58ecd51dbce5 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextTableCursor.java
@@ -42,7 +42,7 @@ public class SwXTextTableCursor extends TestCase {
XTextDocument xTextDoc;
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -82,7 +82,7 @@ public class SwXTextTableCursor extends TestCase {
log.println( "creating a test environment" );
// get a soffice factory object
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
// create testobject here
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java b/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java
index a7b48cb02eec..2c3398ccc652 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java
@@ -44,7 +44,7 @@ public class SwXTextTableRow extends TestCase {
XTextDocument xTextDoc;
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -73,7 +73,7 @@ public class SwXTextTableRow extends TestCase {
log.println( "Creating a test environment" );
// get a soffice factory object
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF() );
try {
log.println("creating a texttable");
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTables.java b/qadevOOo/tests/java/mod/_sw/SwXTextTables.java
index 1fc75c2d96a1..8e2253c7d5c2 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextTables.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextTables.java
@@ -45,7 +45,7 @@ public class SwXTextTables extends TestCase {
XTextDocument xTextDoc;
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -87,7 +87,7 @@ public class SwXTextTables extends TestCase {
log.println( "creating a test environment" );
// get a soffice factory object
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
// create testobject here
TestEnvironment tEnv = null;
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextView.java b/qadevOOo/tests/java/mod/_sw/SwXTextView.java
index 9de15817be2a..30ccf734a105 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextView.java
@@ -78,7 +78,7 @@ public class SwXTextView extends TestCase {
*
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -133,7 +133,7 @@ public class SwXTextView extends TestCase {
util.dbg.getSuppServices(xContr);
- SOfficeFactory SOF=SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF=SOfficeFactory.getFactory( tParam.getMSF() );
XTextFrame first =null;
XTextFrame second =null;
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.java b/qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.java
index 9c387b6e780e..b59abcac68a9 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextViewCursor.java
@@ -53,7 +53,7 @@ public class SwXTextViewCursor extends TestCase {
XTextDocument xTextDoc;
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
diff --git a/qadevOOo/tests/java/mod/_sw/SwXViewSettings.java b/qadevOOo/tests/java/mod/_sw/SwXViewSettings.java
index 4636a4c05025..b0e86b30e915 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXViewSettings.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXViewSettings.java
@@ -43,7 +43,7 @@ public class SwXViewSettings extends TestCase {
XTextDocument xTextDoc;
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
diff --git a/qadevOOo/tests/java/mod/_sw/XMLContentExporter.java b/qadevOOo/tests/java/mod/_sw/XMLContentExporter.java
index 6c6ab533c737..30765eea3ec2 100644
--- a/qadevOOo/tests/java/mod/_sw/XMLContentExporter.java
+++ b/qadevOOo/tests/java/mod/_sw/XMLContentExporter.java
@@ -68,7 +68,7 @@ public class XMLContentExporter extends TestCase {
* New text document created.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -113,7 +113,7 @@ public class XMLContentExporter extends TestCase {
( TestParameters tParam, PrintWriter log ) throws StatusException {
final String CONTENT = "XMLContentExporter";
- XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF() ;
+ XMultiServiceFactory xMSF = tParam.getMSF() ;
XInterface oObj = null;
Filter = new ContentFilterChecker(log);
diff --git a/qadevOOo/tests/java/mod/_sw/XMLContentImporter.java b/qadevOOo/tests/java/mod/_sw/XMLContentImporter.java
index 493e990e387b..1e4e812f4160 100644
--- a/qadevOOo/tests/java/mod/_sw/XMLContentImporter.java
+++ b/qadevOOo/tests/java/mod/_sw/XMLContentImporter.java
@@ -64,7 +64,7 @@ public class XMLContentImporter extends TestCase {
* New text document created.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -114,7 +114,7 @@ public class XMLContentImporter extends TestCase {
// first we write what we are intend to do to log file
log.println( "creating a test environment" );
- XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF() ;
+ XMultiServiceFactory xMSF = tParam.getMSF() ;
try {
oInt = xMSF.createInstance
diff --git a/qadevOOo/tests/java/mod/_sw/XMLExporter.java b/qadevOOo/tests/java/mod/_sw/XMLExporter.java
index 85000526bf4c..8a380749ee1b 100644
--- a/qadevOOo/tests/java/mod/_sw/XMLExporter.java
+++ b/qadevOOo/tests/java/mod/_sw/XMLExporter.java
@@ -68,7 +68,7 @@ public class XMLExporter extends TestCase {
* New text document created.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -114,7 +114,7 @@ public class XMLExporter extends TestCase {
final String TEST_STR = "XMLExporter";
- XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF() ;
+ XMultiServiceFactory xMSF = tParam.getMSF() ;
XInterface oObj = null;
Filter = new FilterChecker(log);
diff --git a/qadevOOo/tests/java/mod/_sw/XMLImporter.java b/qadevOOo/tests/java/mod/_sw/XMLImporter.java
index cb4fd3f2d8ec..9d04f6e42749 100644
--- a/qadevOOo/tests/java/mod/_sw/XMLImporter.java
+++ b/qadevOOo/tests/java/mod/_sw/XMLImporter.java
@@ -65,7 +65,7 @@ public class XMLImporter extends TestCase {
* New text document created.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -106,7 +106,7 @@ public class XMLImporter extends TestCase {
public synchronized TestEnvironment createTestEnvironment
( TestParameters tParam, PrintWriter log) {
- XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF() ;
+ XMultiServiceFactory xMSF = tParam.getMSF() ;
XInterface oObj = null;
try {
diff --git a/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java b/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java
index 8cea6256add1..d8a67d589152 100644
--- a/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java
+++ b/qadevOOo/tests/java/mod/_sw/XMLMetaExporter.java
@@ -69,7 +69,7 @@ public class XMLMetaExporter extends TestCase {
* New text document created.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
@@ -114,7 +114,7 @@ public class XMLMetaExporter extends TestCase {
( TestParameters tParam, PrintWriter log ) throws StatusException {
final String TITLE = "Title for testing of XMLMetaExporter";
- XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF() ;
+ XMultiServiceFactory xMSF = tParam.getMSF() ;
XInterface oObj = null;
Filter = new MetaFilterChecker(log);
diff --git a/qadevOOo/tests/java/mod/_sw/XMLMetaImporter.java b/qadevOOo/tests/java/mod/_sw/XMLMetaImporter.java
index 75b5ecac8cce..c8d56fec4a15 100644
--- a/qadevOOo/tests/java/mod/_sw/XMLMetaImporter.java
+++ b/qadevOOo/tests/java/mod/_sw/XMLMetaImporter.java
@@ -66,7 +66,7 @@ public class XMLMetaImporter extends TestCase {
* New text document created.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -117,7 +117,7 @@ public class XMLMetaImporter extends TestCase {
// first we write what we are intend to do to log file
log.println( "creating a test environment" );
- XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF() ;
+ XMultiServiceFactory xMSF = tParam.getMSF() ;
try {
oInt = xMSF.createInstance
diff --git a/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java
index b2fc797e717b..8b1f4badffe9 100644
--- a/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java
+++ b/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java
@@ -70,7 +70,7 @@ public class XMLSettingsExporter extends TestCase {
* New text document created.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -118,7 +118,7 @@ public class XMLSettingsExporter extends TestCase {
final short ZOOM = 50;
- XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF() ;
+ XMultiServiceFactory xMSF = tParam.getMSF() ;
XInterface oObj = null;
Filter = new SettingsFilterChecker(log);
diff --git a/qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.java b/qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.java
index ab62e10f5872..d17430c02b27 100644
--- a/qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.java
+++ b/qadevOOo/tests/java/mod/_sw/XMLSettingsImporter.java
@@ -67,7 +67,7 @@ public class XMLSettingsImporter extends TestCase {
* New text document created.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -117,7 +117,7 @@ public class XMLSettingsImporter extends TestCase {
// first we write what we are intend to do to log file
log.println( "creating a test environment" );
- XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF() ;
+ XMultiServiceFactory xMSF = tParam.getMSF() ;
try {
oInt = xMSF.createInstance
diff --git a/qadevOOo/tests/java/mod/_sw/XMLStylesExporter.java b/qadevOOo/tests/java/mod/_sw/XMLStylesExporter.java
index af1f403ed59d..7873a957679a 100644
--- a/qadevOOo/tests/java/mod/_sw/XMLStylesExporter.java
+++ b/qadevOOo/tests/java/mod/_sw/XMLStylesExporter.java
@@ -68,7 +68,7 @@ public class XMLStylesExporter extends TestCase {
* New text document created.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -112,7 +112,7 @@ public class XMLStylesExporter extends TestCase {
public synchronized TestEnvironment createTestEnvironment
( TestParameters tParam, PrintWriter log ) {
- XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF() ;
+ XMultiServiceFactory xMSF = tParam.getMSF() ;
XInterface oObj = null;
FilterChecker filter = new FilterChecker(log) ;
Any arg = new Any(new Type(XDocumentHandler.class),filter);
diff --git a/qadevOOo/tests/java/mod/_sw/XMLStylesImporter.java b/qadevOOo/tests/java/mod/_sw/XMLStylesImporter.java
index bf3daa24f604..e1cdafae68c1 100644
--- a/qadevOOo/tests/java/mod/_sw/XMLStylesImporter.java
+++ b/qadevOOo/tests/java/mod/_sw/XMLStylesImporter.java
@@ -66,7 +66,7 @@ public class XMLStylesImporter extends TestCase {
* New text document created.
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
+ SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
try {
log.println( "creating a textdocument" );
@@ -117,7 +117,7 @@ public class XMLStylesImporter extends TestCase {
// first we write what we are intend to do to log file
log.println( "creating a test environment" );
- XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF() ;
+ XMultiServiceFactory xMSF = tParam.getMSF() ;
try {
oInt = xMSF.createInstance