summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_toolkit
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_toolkit')
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java20
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java22
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.java28
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.java12
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java12
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.java16
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java22
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleList.java28
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.java24
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.java22
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java12
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java12
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java12
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java8
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java24
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java52
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java10
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java6
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java16
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java26
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java28
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java46
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java20
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java14
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.java30
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java46
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/TabController.java18
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java16
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/Toolkit.java16
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlButton.java14
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBox.java16
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlComboBox.java22
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlComboBoxModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlContainer.java22
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlContainerModel.java8
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.java22
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyFieldModel.java8
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlDateField.java16
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlDialog.java26
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java30
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlEdit.java22
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlEditModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlFileControl.java22
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlFileControlModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlFixedLineModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlFixedText.java20
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlFixedTextModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java22
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedFieldModel.java6
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBox.java20
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBoxModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlImageControl.java20
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlImageControlModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlListBox.java24
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlListBoxModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlNumericField.java26
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlNumericFieldModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java22
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlPatternFieldModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlProgressBarModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButton.java20
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButtonModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlScrollBarModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlTimeField.java22
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlTimeFieldModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java32
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java20
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControlModel.java6
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java118
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.java20
73 files changed, 656 insertions, 656 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java
index 1e9c0cbb69b0..ae39ac3ddb2d 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.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
@@ -92,7 +92,7 @@ public class AccessibleButton extends lib.TestCase {
* window) and finds accessible button 'OK' walking through the
* accessible component tree.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XMultiServiceFactory msf = (XMultiServiceFactory) Param.getMSF();
@@ -121,14 +121,14 @@ public class AccessibleButton extends lib.TestCase {
Object atw = tk.getActiveTopWindow();
- XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
atw);
XAccessible xRoot = at.getAccessibleObject(xWindow);
at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
- oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
+ oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
"Cancel");
log.println("ImplementationName " + utils.getImplName(oObj));
@@ -139,10 +139,10 @@ public class AccessibleButton extends lib.TestCase {
XAccessibleAction.class, oObj);
final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
oObj);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
System.out.println("Grabbing focus ... ");
@@ -155,7 +155,7 @@ public class AccessibleButton extends lib.TestCase {
tEnv.addObjRelation("XAccessibleText.Text", text.getText());
- tEnv.addObjRelation("EditOnly",
+ tEnv.addObjRelation("EditOnly",
"This method isn't supported in this component");
tEnv.addObjRelation("LimitedBounds", "yes");
@@ -209,7 +209,7 @@ public class AccessibleButton extends lib.TestCase {
}
public void run() {
- XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XController xController = aModel.getCurrentController();
@@ -218,10 +218,10 @@ public class AccessibleButton extends lib.TestCase {
try {
String aSlotID = ".uno:Zoom";
XDispatchProvider xDispProv = (XDispatchProvider) UnoRuntime.queryInterface(
- XDispatchProvider.class,
+ XDispatchProvider.class,
xController);
XURLTransformer xParser = (com.sun.star.util.XURLTransformer) UnoRuntime.queryInterface(
- XURLTransformer.class,
+ XURLTransformer.class,
msf.createInstance(
"com.sun.star.util.URLTransformer"));
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java
index 2ae69a72c246..f6f04297bdbf 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -97,7 +97,7 @@ public class AccessibleCheckBox extends TestCase {
* window) and finds first accessible check box walking through the
* accessible component tree.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XMultiServiceFactory msf = (XMultiServiceFactory) Param.getMSF();
log.println("Creating text document");
@@ -136,21 +136,21 @@ public class AccessibleCheckBox extends TestCase {
psDiag.start();
util.utils.shortWait(Param.getInt("ShortWait"));
-
+
AccessibilityTools at = new AccessibilityTools();
util.utils.shortWait(Param.getInt("ShortWait"));
log.println("Getting the active TopWindow");
- XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());
XAccessible xRoot = at.getAccessibleObject(xWindow);
at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
- oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
+ oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
"Cancel");
action = (XAccessibleAction) UnoRuntime.queryInterface(
@@ -163,10 +163,10 @@ public class AccessibleCheckBox extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
oObj);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
System.out.println("Grabbing focus ... ");
@@ -179,7 +179,7 @@ public class AccessibleCheckBox extends TestCase {
tEnv.addObjRelation("XAccessibleText.Text", text.getText());
- tEnv.addObjRelation("EditOnly",
+ tEnv.addObjRelation("EditOnly",
"This method isn't supported in this component");
tEnv.addObjRelation("LimitedBounds", "yes");
@@ -225,7 +225,7 @@ public class AccessibleCheckBox extends TestCase {
}
public void run() {
- XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XController xController = aModel.getCurrentController();
@@ -234,10 +234,10 @@ public class AccessibleCheckBox extends TestCase {
try {
String aSlotID = ".uno:InsertTable";
XDispatchProvider xDispProv = (XDispatchProvider) UnoRuntime.queryInterface(
- XDispatchProvider.class,
+ XDispatchProvider.class,
xController);
XURLTransformer xParser = (com.sun.star.util.XURLTransformer) UnoRuntime.queryInterface(
- XURLTransformer.class,
+ XURLTransformer.class,
msf.createInstance(
"com.sun.star.util.URLTransformer"));
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.java
index 97879627d25d..755a5ce05007 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleComboBox.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
@@ -86,7 +86,7 @@ public class AccessibleComboBox extends TestCase {
* finds AccessibleComboBox walking through the
* accessible component tree.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
@@ -102,7 +102,7 @@ public class AccessibleComboBox extends TestCase {
XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface(
XExtendedToolkit.class, oObj);
- DiagThread psDiag = new DiagThread(xTextDoc,
+ DiagThread psDiag = new DiagThread(xTextDoc,
(XMultiServiceFactory) Param.getMSF());
psDiag.start();
@@ -114,21 +114,21 @@ public class AccessibleComboBox extends TestCase {
Object atw = tk.getActiveTopWindow();
- XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
atw);
XAccessible xRoot = at.getAccessibleObject(xWindow);
- oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
+ oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
"Cancel");
action = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, oObj);
- oObj = at.getAccessibleObjectForRole(xRoot,
+ oObj = at.getAccessibleObjectForRole(xRoot,
AccessibleRole.PAGE_TAB_LIST);
XAccessibleSelection xAccSel = (XAccessibleSelection) UnoRuntime.queryInterface(
- XAccessibleSelection.class,
+ XAccessibleSelection.class,
oObj);
try {
@@ -139,7 +139,7 @@ public class AccessibleComboBox extends TestCase {
util.utils.shortWait(Param.getInt("ShortWait"));
at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
- oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL, "",
+ oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL, "",
"AccessibleComboBox");
log.println("ImplementationName " + utils.getImplName(oObj));
@@ -147,13 +147,13 @@ public class AccessibleComboBox extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
oObj);
final XAccessibleComponent acomp1 = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
action);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
acomp1.grabFocus();
@@ -210,7 +210,7 @@ public class AccessibleComboBox extends TestCase {
}
public void run() {
- XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XController xController = aModel.getCurrentController();
@@ -219,10 +219,10 @@ public class AccessibleComboBox extends TestCase {
try {
String aSlotID = ".uno:FontDialog";
XDispatchProvider xDispProv = (XDispatchProvider) UnoRuntime.queryInterface(
- XDispatchProvider.class,
+ XDispatchProvider.class,
xController);
XURLTransformer xParser = (com.sun.star.util.XURLTransformer) UnoRuntime.queryInterface(
- XURLTransformer.class,
+ XURLTransformer.class,
msf.createInstance(
"com.sun.star.util.URLTransformer"));
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.java
index fee8473550e9..df78b827624e 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownComboBox.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
@@ -79,19 +79,19 @@ public class AccessibleDropDownComboBox extends TestCase {
* Finds AccessibleDropDownComboBox walking through the
* accessible component tree of a writer document.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
AccessibilityTools at = new AccessibilityTools();
XWindow xWindow = at.getCurrentContainerWindow(
- (XMultiServiceFactory) Param.getMSF(),
+ (XMultiServiceFactory) Param.getMSF(),
xTextDoc);
XAccessible xRoot = at.getAccessibleObject(xWindow);
- oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.COMBO_BOX,
+ oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.COMBO_BOX,
"", "AccessibleDropDownComboBox");
log.println("ImplementationName " + utils.getImplName(oObj));
@@ -99,10 +99,10 @@ public class AccessibleDropDownComboBox extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
final XAccessibleAction editAction = (XAccessibleAction) UnoRuntime.queryInterface(
- XAccessibleAction.class,
+ XAccessibleAction.class,
oObj);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java
index a42922a2f8f1..fd61a5c67396 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleDropDownListBox.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
@@ -80,7 +80,7 @@ public class AccessibleDropDownListBox extends TestCase {
* Finds AccessibleDropDownListBox walking through the
* accessible component tree of a writer document.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
@@ -89,14 +89,14 @@ public class AccessibleDropDownListBox extends TestCase {
AccessibilityTools at = new AccessibilityTools();
XWindow xWindow = at.getCurrentWindow(
- (XMultiServiceFactory) Param.getMSF(),
+ (XMultiServiceFactory) Param.getMSF(),
xTextDoc);
XAccessible xRoot = at.getAccessibleObject(xWindow);
at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
-
- oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.COMBO_BOX,
+
+ oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.COMBO_BOX,
"", "AccessibleDropDownListBox");
log.println("ImplementationName " + utils.getImplName(oObj));
@@ -105,7 +105,7 @@ public class AccessibleDropDownListBox extends TestCase {
final XAccessibleAction acomp = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, oObj);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.java
index e26481176e1e..d9f5282b2612 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleEdit.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
@@ -95,7 +95,7 @@ public class AccessibleEdit extends TestCase {
* button 'Close' (for closing this dialog when disposing)
* walking through the accessible component tree.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
@@ -111,13 +111,13 @@ public class AccessibleEdit extends TestCase {
XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface(
XExtendedToolkit.class, oObj);
- XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XController secondController = aModel1.getCurrentController();
XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface(
- XDispatchProvider.class,
+ XDispatchProvider.class,
secondController);
XURLTransformer urlTransf = null;
@@ -148,12 +148,12 @@ public class AccessibleEdit extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());
XAccessible xRoot = at.getAccessibleObject(xWindow);
- oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
+ oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
"Close");
action = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, oObj);
@@ -165,11 +165,11 @@ public class AccessibleEdit extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
final XAccessibleEditableText edText = (XAccessibleEditableText) UnoRuntime.queryInterface(
- XAccessibleEditableText.class,
+ XAccessibleEditableText.class,
oObj);
edText.setText("AccessibleEdit");
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
// buttonAccComp.grabFocus();
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java
index 3bc7e81885c3..5fafb21fbe53 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleFixedText.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
@@ -86,7 +86,7 @@ public class AccessibleFixedText extends TestCase {
* displays it. Then the text's accessible component is
* obtained.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XMultiServiceFactory xMSF = (XMultiServiceFactory) Param.getMSF();
@@ -97,23 +97,23 @@ public class AccessibleFixedText extends TestCase {
try {
dlgModel = (XControlModel) UnoRuntime.queryInterface(
- XControlModel.class,
+ XControlModel.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlDialogModel"));
XControl dlgControl = (XControl) UnoRuntime.queryInterface(
- XControl.class,
+ XControl.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlDialog"));
dlgControl.setModel(dlgModel);
txtModel = (XControlModel) UnoRuntime.queryInterface(
- XControlModel.class,
+ XControlModel.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlFixedTextModel"));
- txtControl = (XControl) UnoRuntime.queryInterface(XControl.class,
+ txtControl = (XControl) UnoRuntime.queryInterface(XControl.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlFixedText"));
@@ -124,12 +124,12 @@ public class AccessibleFixedText extends TestCase {
xFT.setText("FxedText");
XControlContainer ctrlCont = (XControlContainer) UnoRuntime.queryInterface(
- XControlContainer.class,
+ XControlContainer.class,
dlgControl);
ctrlCont.addControl("Text", txtControl);
- xWinDlg = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ xWinDlg = (XWindow) UnoRuntime.queryInterface(XWindow.class,
dlgControl);
xWinDlg.setVisible(true);
@@ -163,10 +163,10 @@ public class AccessibleFixedText extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
- final XWindow xWin = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ final XWindow xWin = (XWindow) UnoRuntime.queryInterface(XWindow.class,
txtControl);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
xWin.setEnable(false);
@@ -179,7 +179,7 @@ public class AccessibleFixedText extends TestCase {
tEnv.addObjRelation("XAccessibleText.Text", text.getText());
- tEnv.addObjRelation("EditOnly",
+ tEnv.addObjRelation("EditOnly",
"This method isn't supported in this component");
tEnv.addObjRelation("LimitedBounds", "yes");
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java
index 6fe2129995cc..cc8e718f965a 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleList.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
@@ -71,7 +71,7 @@ public class AccessibleList extends TestCase {
* Then the TREE component is found and the 'New Document' tab is
* selected to make list box visible. After that list box is obtained.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
@@ -88,13 +88,13 @@ public class AccessibleList extends TestCase {
shortWait();
- XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XController secondController = aModel1.getCurrentController();
XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface(
- XDispatchProvider.class,
+ XDispatchProvider.class,
secondController);
XURLTransformer urlTransf = null;
@@ -125,7 +125,7 @@ public class AccessibleList extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());
XAccessible xRoot = at.getAccessibleObject(xWindow);
@@ -133,7 +133,7 @@ public class AccessibleList extends TestCase {
at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
// obtaining 'Close' button
- oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
+ oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
"Close");
action = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, oObj);
@@ -143,7 +143,7 @@ public class AccessibleList extends TestCase {
oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TREE);
XAccessibleSelection xAccSel = (XAccessibleSelection) UnoRuntime.queryInterface(
- XAccessibleSelection.class,
+ XAccessibleSelection.class,
oObj);
xAccSel.selectAccessibleChild(3);
shortWait();
@@ -153,9 +153,9 @@ public class AccessibleList extends TestCase {
log.println("# Getting the ListBox");
- XAccessibleContext parent = at.getAccessibleObjectForRole(xRoot,
- AccessibleRole.PANEL,
- "",
+ XAccessibleContext parent = at.getAccessibleObjectForRole(xRoot,
+ AccessibleRole.PANEL,
+ "",
"com.sun.star.comp.toolkit.AccessibleListBox");
log.println("# Getting the first child");
@@ -169,17 +169,17 @@ public class AccessibleList extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
- tEnv.addObjRelation("XAccessibleSelection.multiSelection",
+ tEnv.addObjRelation("XAccessibleSelection.multiSelection",
new Boolean(false));
final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
oObj);
final XAccessibleComponent acomp1 = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
action);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
System.out.println("Grabbing focus ... ");
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.java
index 7b65e74152b1..8be8462e9064 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleListBox.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,7 +94,7 @@ public class AccessibleListBox extends TestCase {
* Then the TREE component is found and the 'New Document' tab is
* selected to make list box visible. After that list box is obtained.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
@@ -112,13 +112,13 @@ public class AccessibleListBox extends TestCase {
shortWait();
- XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XController secondController = aModel1.getCurrentController();
XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface(
- XDispatchProvider.class,
+ XDispatchProvider.class,
secondController);
XURLTransformer urlTransf = null;
@@ -149,7 +149,7 @@ public class AccessibleListBox extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());
XAccessible xRoot = at.getAccessibleObject(xWindow);
@@ -158,7 +158,7 @@ public class AccessibleListBox extends TestCase {
// obtaining 'Close' button
- oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
+ oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
"Close");
action = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, oObj);
@@ -168,7 +168,7 @@ public class AccessibleListBox extends TestCase {
oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TREE);
XAccessibleSelection xAccSel = (XAccessibleSelection) UnoRuntime.queryInterface(
- XAccessibleSelection.class,
+ XAccessibleSelection.class,
oObj);
xAccSel.selectAccessibleChild(3);
shortWait();
@@ -176,10 +176,10 @@ public class AccessibleListBox extends TestCase {
throw new StatusException("Can't switch to required tab", e);
}
- oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL, "",
+ oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL, "",
"com.sun.star.comp.toolkit.AccessibleListBox");
- Object list = at.getAccessibleObjectForRole(at.SearchedAccessible,
+ Object list = at.getAccessibleObjectForRole(at.SearchedAccessible,
AccessibleRole.LIST);
log.println("ImplementationName " + utils.getImplName(oObj));
@@ -187,13 +187,13 @@ public class AccessibleListBox extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
list);
final XAccessibleComponent acomp1 = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
action);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
System.out.println("Grabbing focus ... ");
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.java
index ecbf43679ef8..97b2ce338ffb 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleListItem.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
@@ -91,7 +91,7 @@ public class AccessibleListItem extends TestCase {
* Then the TREE component is found and the 'New Document' tab is
* selected to make list box visible. After that listbox item is obtained.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XMultiServiceFactory msf = (XMultiServiceFactory) Param.getMSF();
@@ -109,13 +109,13 @@ public class AccessibleListItem extends TestCase {
shortWait();
- XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XController secondController = aModel1.getCurrentController();
XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface(
- XDispatchProvider.class,
+ XDispatchProvider.class,
secondController);
XURLTransformer urlTransf = null;
@@ -146,7 +146,7 @@ public class AccessibleListItem extends TestCase {
AccessibilityTools at = new AccessibilityTools();
- XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());
XAccessible xRoot = at.getAccessibleObject(xWindow);
@@ -154,7 +154,7 @@ public class AccessibleListItem extends TestCase {
at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
// obtaining 'Close' button
- oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
+ oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON,
"Close");
action = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, oObj);
@@ -164,7 +164,7 @@ public class AccessibleListItem extends TestCase {
oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TREE);
XAccessibleSelection xAccSel = (XAccessibleSelection) UnoRuntime.queryInterface(
- XAccessibleSelection.class,
+ XAccessibleSelection.class,
oObj);
xAccSel.selectAccessibleChild(3);
shortWait();
@@ -172,21 +172,21 @@ public class AccessibleListItem extends TestCase {
throw new StatusException("Can't switch to required tab", e);
}
- oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.LIST_ITEM,"Spr");
+ oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.LIST_ITEM,"Spr");
log.println("ImplementationName " + utils.getImplName(oObj));
TestEnvironment tEnv = new TestEnvironment(oObj);
- tEnv.addObjRelation("EditOnly",
+ tEnv.addObjRelation("EditOnly",
"This method isn't supported in this component");
tEnv.addObjRelation("LimitedBounds", "yes");
final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
oObj);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
acomp.grabFocus();
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java
index 4eaec80dcd81..d9da588e290a 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.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
@@ -91,7 +91,7 @@ public class AccessibleMenu extends TestCase {
* Finds accessible component with role <code>MENU</code>
* walking through the accessible component tree of a document.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XMultiServiceFactory msf = (XMultiServiceFactory) Param.getMSF();
@@ -112,7 +112,7 @@ public class AccessibleMenu extends TestCase {
XAccessible xRoot = at.getAccessibleObject(xWindow);
at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
- XAccessibleContext menubar = at.getAccessibleObjectForRole(xRoot,
+ XAccessibleContext menubar = at.getAccessibleObjectForRole(xRoot,
AccessibleRole.MENU_BAR);
XInterface oObj = null;
Object menu2 = null;
@@ -132,7 +132,7 @@ public class AccessibleMenu extends TestCase {
final XAccessibleAction act2 = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, menu2);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
@@ -158,10 +158,10 @@ public class AccessibleMenu extends TestCase {
tEnv.addObjRelation("LimitedBounds", "yes");
- tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected",
+ tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected",
new Boolean(false));
- tEnv.addObjRelation("XAccessibleSelection.multiSelection",
+ tEnv.addObjRelation("XAccessibleSelection.multiSelection",
new Boolean(false));
return tEnv;
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java
index 2441bdaa7075..b0fcb29cfa32 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.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,7 +81,7 @@ public class AccessibleMenuBar extends TestCase {
* Finds accessible component with role <code>MENUBAR</code>
* walking through the accessible component tree of a document.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
shortWait();
@@ -101,10 +101,10 @@ public class AccessibleMenuBar extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
oObj);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
System.out.println("Grabbing focus ... ");
@@ -112,10 +112,10 @@ public class AccessibleMenuBar extends TestCase {
}
});
- tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected",
+ tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected",
new Boolean(false));
- tEnv.addObjRelation("XAccessibleSelection.multiSelection",
+ tEnv.addObjRelation("XAccessibleSelection.multiSelection",
new Boolean(false));
return tEnv;
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java
index a41abe45e520..af41ba44b645 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.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
@@ -89,7 +89,7 @@ public class AccessibleMenuItem extends TestCase {
* Finds first accessible component with role <code>MENUITEM</code>
* walking through the accessible component tree of a document.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
@@ -110,13 +110,13 @@ public class AccessibleMenuItem extends TestCase {
Object atw = tk.getActiveTopWindow();
- XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
atw);
XAccessible xRoot = at.getAccessibleObject(xWindow);
at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
- XAccessibleContext MenuBar = at.getAccessibleObjectForRole(xRoot,
+ XAccessibleContext MenuBar = at.getAccessibleObjectForRole(xRoot,
AccessibleRole.MENU_BAR);
try {
@@ -142,7 +142,7 @@ public class AccessibleMenuItem extends TestCase {
final XAccessibleAction action = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, oObj);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
@@ -157,7 +157,7 @@ public class AccessibleMenuItem extends TestCase {
tEnv.addObjRelation("XAccessibleText.Text", text.getText());
- tEnv.addObjRelation("EditOnly",
+ tEnv.addObjRelation("EditOnly",
"Can't change or select Text in MenuBarItem");
tEnv.addObjRelation("Destroy", new Boolean(true));
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java
index f05bcb025803..77d5cf198b7a 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuSeparator.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,7 +81,7 @@ public class AccessibleMenuSeparator extends TestCase {
* and implementation name <code>AccessibleMenuSeparator</code>
* walking through the accessible component tree of a document.
*/
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
shortWait();
@@ -93,7 +93,7 @@ public class AccessibleMenuSeparator extends TestCase {
XAccessible xRoot = at.getAccessibleObject(xWindow);
at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
- XAccessibleContext MenuBar = at.getAccessibleObjectForRole(xRoot,
+ XAccessibleContext MenuBar = at.getAccessibleObjectForRole(xRoot,
AccessibleRole.MENU_BAR);
XAccessibleAction act = null;
XInterface oObj = null;
@@ -120,7 +120,7 @@ public class AccessibleMenuSeparator extends TestCase {
final XAccessibleAction aAct = act;
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java b/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java
index f4b292c84b23..bc6b4d057dca 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.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
@@ -65,7 +65,7 @@ public class AccessiblePopupMenu extends TestCase {
* Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>).
*/
protected void initialize(TestParameters Param, PrintWriter log) {
- the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
+ the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
DesktopTools.createDesktop(
(XMultiServiceFactory) Param.getMSF()));
}
@@ -75,7 +75,7 @@ public class AccessiblePopupMenu extends TestCase {
* <code>createTestEnvironment</code> method.
*/
protected void cleanup(TestParameters Param, PrintWriter log) {
-
+
log.println("release the popup menu");
try {
Robot rob = new Robot();
@@ -87,7 +87,7 @@ public class AccessiblePopupMenu extends TestCase {
} catch (java.awt.AWTException e) {
log.println("couldn't press mouse button");
}
-
+
log.println("disposing xTextDoc");
if (xTextDoc != null) {
@@ -118,7 +118,7 @@ public class AccessiblePopupMenu extends TestCase {
* @see com.sun.star.accessibility.XAccessibleEventBroadcaster
* @see com.sun.star.accessibility.XAccessibleText
*/
- protected TestEnvironment createTestEnvironment(TestParameters tParam,
+ protected TestEnvironment createTestEnvironment(TestParameters tParam,
PrintWriter log) {
log.println("creating a test environment");
@@ -145,7 +145,7 @@ public class AccessiblePopupMenu extends TestCase {
shortWait(tParam);
- XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XInterface oObj = null;
@@ -153,7 +153,7 @@ public class AccessiblePopupMenu extends TestCase {
AccessibilityTools at = new AccessibilityTools();
XWindow xWindow = at.getCurrentWindow(
- (XMultiServiceFactory) tParam.getMSF(),
+ (XMultiServiceFactory) tParam.getMSF(),
aModel);
XAccessible xRoot = at.getAccessibleObject(xWindow);
@@ -176,14 +176,14 @@ public class AccessiblePopupMenu extends TestCase {
} catch (java.awt.AWTException e) {
log.println("couldn't press mouse button");
}
-
+
shortWait(tParam);
XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface(
XExtendedToolkit.class, toolkit);
try {
- xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
tk.getTopWindow(0));
xRoot = at.getAccessibleObject(xWindow);
@@ -199,14 +199,14 @@ public class AccessiblePopupMenu extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
- tEnv.addObjRelation("XAccessibleSelection.multiSelection",
+ tEnv.addObjRelation("XAccessibleSelection.multiSelection",
new Boolean(false));
final XAccessibleSelection sel = (XAccessibleSelection) UnoRuntime.queryInterface(
- XAccessibleSelection.class,
+ XAccessibleSelection.class,
oObj);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java
index 53f60643f955..20812b1db4cb 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.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
@@ -95,17 +95,17 @@ import util.SOfficeFactory;
public class AccessibleRadioButton extends TestCase {
private static XDesktop the_Desk;
private static XTextDocument xTextDoc;
- private static XAccessibleAction accCloseButton;
-
+ private static XAccessibleAction accCloseButton;
+
/**
* Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>).
*/
protected void initialize(TestParameters Param, PrintWriter log) {
- the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
+ the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
DesktopTools.createDesktop(
(XMultiServiceFactory) Param.getMSF()));
- }
+ }
/**
* Closes a Hyperlink dialog, disposes the document, if exists, created in
@@ -159,7 +159,7 @@ public class AccessibleRadioButton extends TestCase {
* @see com.sun.star.accessibility.XAccessibleEventBroadcaster
* @see com.sun.star.accessibility.XAccessibleText
*/
- protected TestEnvironment createTestEnvironment(TestParameters tParam,
+ protected TestEnvironment createTestEnvironment(TestParameters tParam,
PrintWriter log) {
log.println("creating a test environment");
@@ -178,13 +178,13 @@ public class AccessibleRadioButton extends TestCase {
util.utils.shortWait(2000);
- XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XController secondController = aModel1.getCurrentController();
XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface(
- XDispatchProvider.class,
+ XDispatchProvider.class,
secondController);
XURLTransformer urlTransf = null;
@@ -231,17 +231,17 @@ public class AccessibleRadioButton extends TestCase {
util.utils.shortWait(2000);
- XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());
XAccessible xRoot = at.getAccessibleObject(xWindow);
XAccessibleContext iconChoiceCtrl = at.getAccessibleObjectForRole(
- xRoot, AccessibleRole.TREE,
+ xRoot, AccessibleRole.TREE,
"IconChoiceControl");
XAccessibleSelection sel = (XAccessibleSelection) UnoRuntime.queryInterface(
- XAccessibleSelection.class,
+ XAccessibleSelection.class,
iconChoiceCtrl);
try {
@@ -252,37 +252,37 @@ public class AccessibleRadioButton extends TestCase {
}
at.printAccessibleTree(log,xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
-
- oObj = at.getAccessibleObjectForRole(xRoot,
- AccessibleRole.RADIO_BUTTON,
+
+ oObj = at.getAccessibleObjectForRole(xRoot,
+ AccessibleRole.RADIO_BUTTON,
"Web");
- XAccessibleContext anotherButton = at.getAccessibleObjectForRole(xRoot,
- AccessibleRole.RADIO_BUTTON,
+ XAccessibleContext anotherButton = at.getAccessibleObjectForRole(xRoot,
+ AccessibleRole.RADIO_BUTTON,
"FTP");
- XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot,
- AccessibleRole.PUSH_BUTTON,
+ XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot,
+ AccessibleRole.PUSH_BUTTON,
"Close");
-
+
accCloseButton = (XAccessibleAction) UnoRuntime.queryInterface(
- XAccessibleAction.class, closeButton);
+ XAccessibleAction.class, closeButton);
log.println("ImplementationName: " + util.utils.getImplName(oObj));
TestEnvironment tEnv = new TestEnvironment(oObj);
- tEnv.addObjRelation("EditOnly",
+ tEnv.addObjRelation("EditOnly",
"This method isn't supported in this component");
tEnv.addObjRelation("LimitedBounds", "yes");
final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
oObj);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
acomp.grabFocus();
@@ -291,14 +291,14 @@ public class AccessibleRadioButton extends TestCase {
tEnv.addObjRelation("XAccessibleText.Text", "Web");
- tEnv.addObjRelation("EditOnly",
+ tEnv.addObjRelation("EditOnly",
"Can't change or select Text in AccessibleRadioButton");
XAccessibleValue anotherButtonValue = (XAccessibleValue) UnoRuntime.queryInterface(
- XAccessibleValue.class,
+ XAccessibleValue.class,
anotherButton);
- tEnv.addObjRelation("XAccessibleValue.anotherFromGroup",
+ tEnv.addObjRelation("XAccessibleValue.anotherFromGroup",
anotherButtonValue);
return tEnv;
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java
index a52a9fef5483..009fdefd2aaa 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.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
@@ -89,7 +89,7 @@ public class AccessibleScrollBar extends TestCase {
* Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>).
*/
protected void initialize(TestParameters Param, PrintWriter log) {
- the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
+ the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
DesktopTools.createDesktop(
(XMultiServiceFactory) Param.getMSF()));
}
@@ -125,7 +125,7 @@ public class AccessibleScrollBar extends TestCase {
* @see ifc.accessibility._XAccessibleEventBroadcaster
* @see com.sun.star.accessibility.XAccessibleEventBroadcaster
*/
- protected TestEnvironment createTestEnvironment(TestParameters tParam,
+ protected TestEnvironment createTestEnvironment(TestParameters tParam,
PrintWriter log) {
log.println("creating a test environment");
@@ -153,7 +153,7 @@ public class AccessibleScrollBar extends TestCase {
AccessibilityTools at = new AccessibilityTools();
XWindow xWindow = at.getCurrentWindow(
- (XMultiServiceFactory) tParam.getMSF(),
+ (XMultiServiceFactory) tParam.getMSF(),
aModel);
XAccessible xRoot = at.getAccessibleObject(xWindow);
@@ -167,7 +167,7 @@ public class AccessibleScrollBar extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java
index 32dd630370a3..0f6cca0ed753 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBar.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
@@ -117,7 +117,7 @@ public class AccessibleStatusBar extends TestCase {
* @see ifc.accessibility._XAccessibleEventBroadcaster
* @see com.sun.star.accessibility.XAccessibleEventBroadcaster
*/
- protected TestEnvironment createTestEnvironment(TestParameters tParam,
+ protected TestEnvironment createTestEnvironment(TestParameters tParam,
PrintWriter log) {
log.println("creating a test environment");
@@ -163,7 +163,7 @@ public class AccessibleStatusBar extends TestCase {
final XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface(
XExtendedToolkit.class, toolkit);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
Rectangle newPosSize = xWindow.getPosSize();
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java
index 446d0deb4f42..ad682c79d974 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleStatusBarItem.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
@@ -89,7 +89,7 @@ public class AccessibleStatusBarItem extends TestCase {
* Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>).
*/
protected void initialize(TestParameters Param, PrintWriter log) {
- the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
+ the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
DesktopTools.createDesktop(
(XMultiServiceFactory) Param.getMSF()));
}
@@ -126,7 +126,7 @@ public class AccessibleStatusBarItem extends TestCase {
* @see ifc.accessibility._XAccessibleEventBroadcaster
* @see com.sun.star.accessibility.XAccessibleEventBroadcaster
*/
- protected TestEnvironment createTestEnvironment(TestParameters tParam,
+ protected TestEnvironment createTestEnvironment(TestParameters tParam,
PrintWriter log) {
log.println("creating a test environment");
@@ -149,7 +149,7 @@ public class AccessibleStatusBarItem extends TestCase {
throw new StatusException("Couldn't create document", e);
}
- XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XInterface oObj = null;
@@ -158,13 +158,13 @@ public class AccessibleStatusBarItem extends TestCase {
AccessibilityTools at = new AccessibilityTools();
XWindow xWindow = at.getCurrentContainerWindow(
- (XMultiServiceFactory) tParam.getMSF(),
+ (XMultiServiceFactory) tParam.getMSF(),
aModel);
XAccessible xRoot = at.getAccessibleObject(xWindow);
at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
- XAccessibleContext statusbar = at.getAccessibleObjectForRole(xRoot,
+ XAccessibleContext statusbar = at.getAccessibleObjectForRole(xRoot,
AccessibleRole.STATUS_BAR);
try {
@@ -177,7 +177,7 @@ public class AccessibleStatusBarItem extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
- tEnv.addObjRelation("EditOnly",
+ tEnv.addObjRelation("EditOnly",
"Can't change or select Text in StatusBarItem");
tEnv.addObjRelation("XAccessibleText", secondItem);
@@ -185,7 +185,7 @@ public class AccessibleStatusBarItem extends TestCase {
final XTextDocument doc = xTextDoc;
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
doc.getText().setString("AccessibleStatusBarItem");
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java
index 488c8a39c7d1..615fd7e52a89 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.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
@@ -96,7 +96,7 @@ public class AccessibleTabControl extends TestCase {
* Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>).
*/
protected void initialize(TestParameters Param, PrintWriter log) {
- the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
+ the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
DesktopTools.createDesktop(
(XMultiServiceFactory) Param.getMSF()));
}
@@ -148,7 +148,7 @@ public class AccessibleTabControl extends TestCase {
* @see com.sun.star.accessibility.XAccessibleEventBroadcaster
* @see com.sun.star.accessibility.XAccessibleSelection
*/
- protected TestEnvironment createTestEnvironment(TestParameters tParam,
+ protected TestEnvironment createTestEnvironment(TestParameters tParam,
PrintWriter log) {
log.println("creating a test environment");
@@ -172,13 +172,13 @@ public class AccessibleTabControl extends TestCase {
shortWait();
- XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XController secondController = aModel1.getCurrentController();
XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface(
- XDispatchProvider.class,
+ XDispatchProvider.class,
secondController);
XURLTransformer urlTransf = null;
@@ -225,16 +225,16 @@ public class AccessibleTabControl extends TestCase {
shortWait();
- XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());
XAccessible xRoot = at.getAccessibleObject(xWindow);
- oObj = at.getAccessibleObjectForRole(xRoot,
+ oObj = at.getAccessibleObjectForRole(xRoot,
AccessibleRole.PAGE_TAB_LIST);
- XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot,
- AccessibleRole.PUSH_BUTTON,
+ XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot,
+ AccessibleRole.PUSH_BUTTON,
"Close");
accCloseButton = (XAccessibleAction) UnoRuntime.queryInterface(
@@ -245,10 +245,10 @@ public class AccessibleTabControl extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
final XAccessibleSelection selection = (XAccessibleSelection) (XAccessibleSelection) UnoRuntime.queryInterface(
- XAccessibleSelection.class,
+ XAccessibleSelection.class,
oObj);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
@@ -259,10 +259,10 @@ public class AccessibleTabControl extends TestCase {
}
});
- tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected",
+ tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected",
new Boolean(true));
- tEnv.addObjRelation("XAccessibleSelection.multiSelection",
+ tEnv.addObjRelation("XAccessibleSelection.multiSelection",
new Boolean(false));
return tEnv;
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java
index 318c2a96b8dd..6d458de73581 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.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
@@ -93,7 +93,7 @@ public class AccessibleTabPage extends TestCase {
* Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>).
*/
protected void initialize(TestParameters Param, PrintWriter log) {
- the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
+ the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
DesktopTools.createDesktop(
(XMultiServiceFactory) Param.getMSF()));
}
@@ -141,7 +141,7 @@ public class AccessibleTabPage extends TestCase {
* @see ifc.accessibility._XAccessibleEventBroadcaster
* @see com.sun.star.accessibility.XAccessibleEventBroadcaster
*/
- protected TestEnvironment createTestEnvironment(TestParameters tParam,
+ protected TestEnvironment createTestEnvironment(TestParameters tParam,
PrintWriter log) {
log.println("creating a test environment");
@@ -178,13 +178,13 @@ public class AccessibleTabPage extends TestCase {
shortWait();
- XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XController secondController = aModel1.getCurrentController();
XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface(
- XDispatchProvider.class,
+ XDispatchProvider.class,
secondController);
XURLTransformer urlTransf = null;
@@ -231,18 +231,18 @@ public class AccessibleTabPage extends TestCase {
shortWait();
- XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());
XAccessible xRoot = at.getAccessibleObject(xWindow);
- XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot,
- AccessibleRole.PUSH_BUTTON,
+ XAccessibleContext closeButton = at.getAccessibleObjectForRole(xRoot,
+ AccessibleRole.PUSH_BUTTON,
"Close");
accCloseButton = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, closeButton);
-
+
oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PAGE_TAB);
log.println("ImplementationName: " + util.utils.getImplName(oObj));
@@ -253,7 +253,7 @@ public class AccessibleTabPage extends TestCase {
tEnv.addObjRelation("LimitedBounds", "toolkit.AccessibleTabPage");
XAccessibleComponent accComp = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
oObj);
final Point point = accComp.getLocationOnScreen();
@@ -261,13 +261,13 @@ public class AccessibleTabPage extends TestCase {
XInterface xEventInt = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PAGE_TAB, "Variables");
final XAccessibleComponent eventAccComp = (XAccessibleComponent) UnoRuntime.queryInterface(
- XAccessibleComponent.class,
+ XAccessibleComponent.class,
xEventInt);
-
- tEnv.addObjRelation("EventProducer",
+
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
- eventAccComp.grabFocus();
+ eventAccComp.grabFocus();
}
});
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java
index c02017508695..ed352e6e7183 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBox.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.SOfficeFactory;
public class AccessibleToolBox extends TestCase {
private static XDesktop the_Desk;
private static XTextDocument xTextDoc;
-
+
/**
* Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>).
*/
@@ -83,20 +83,20 @@ public class AccessibleToolBox extends TestCase {
DesktopTools.createDesktop(
(XMultiServiceFactory) Param.getMSF()));
}
-
+
/**
* Disposes the document, if exists, created in
* <code>createTestEnvironment</code> method.
*/
protected void cleanup(TestParameters Param, PrintWriter log) {
log.println("disposing xTextDoc");
-
+
if (xTextDoc != null) {
util.DesktopTools.closeDoc(xTextDoc);
;
}
}
-
+
/**
* Creates a text document.
* Then obtains an accessible object with
@@ -120,16 +120,16 @@ public class AccessibleToolBox extends TestCase {
protected TestEnvironment createTestEnvironment(TestParameters tParam,
PrintWriter log) {
log.println("creating a test environment");
-
+
if (xTextDoc != null) {
util.DesktopTools.closeDoc(xTextDoc);
}
-
+
XMultiServiceFactory msf = (XMultiServiceFactory) tParam.getMSF();
-
+
// get a soffice factory object
SOfficeFactory SOF = SOfficeFactory.getFactory(msf);
-
+
try {
log.println("creating a text document");
xTextDoc = SOF.createTextDoc(null);
@@ -138,40 +138,40 @@ public class AccessibleToolBox extends TestCase {
e.printStackTrace(log);
throw new StatusException("Couldn't create document", e);
}
-
+
XInterface oObj = null;
-
+
XWindow xWindow = UnoRuntime.queryInterface(XModel.class, xTextDoc).
getCurrentController().getFrame().getContainerWindow();
-
+
AccessibilityTools at = new AccessibilityTools();
XAccessible xRoot = at.getAccessibleObject(xWindow);
-
+
at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
-
+
oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TOOL_BAR);
-
+
log.println("ImplementationName: " + util.utils.getImplName(oObj));
-
+
TestEnvironment tEnv = new TestEnvironment(oObj);
-
+
tEnv.addObjRelation("LimitedBounds", "yes");
-
+
XAccessible acc = at.getAccessibleObject(oObj);
XAccessible child = null;
-
+
try {
child = acc.getAccessibleContext().getAccessibleChild(0);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
}
-
+
util.dbg.printInterfaces(child);
-
+
final XAccessibleAction action = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class,
child);
-
+
tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
@@ -182,7 +182,7 @@ public class AccessibleToolBox extends TestCase {
}
}
});
-
+
return tEnv;
}
}
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java
index d6ecc3ce7cc8..f4e25f0f590a 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleToolBoxItem.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
@@ -93,7 +93,7 @@ public class AccessibleToolBoxItem extends TestCase {
* Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>).
*/
protected void initialize(TestParameters Param, PrintWriter log) {
- the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
+ the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
DesktopTools.createDesktop(
(XMultiServiceFactory) Param.getMSF()));
}
@@ -133,7 +133,7 @@ public class AccessibleToolBoxItem extends TestCase {
* @see com.sun.star.accessibility.XAccessibleEventBroadcaster
* @see com.sun.star.accessibility.XAccessibleText
*/
- protected TestEnvironment createTestEnvironment(TestParameters tParam,
+ protected TestEnvironment createTestEnvironment(TestParameters tParam,
PrintWriter log) {
log.println("creating a test environment");
@@ -154,7 +154,7 @@ public class AccessibleToolBoxItem extends TestCase {
throw new StatusException("Couldn't create document", e);
}
- XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XInterface oObj = null;
@@ -162,31 +162,31 @@ public class AccessibleToolBoxItem extends TestCase {
AccessibilityTools at = new AccessibilityTools();
XWindow xWindow = at.getCurrentContainerWindow(
- (XMultiServiceFactory) tParam.getMSF(),
+ (XMultiServiceFactory) tParam.getMSF(),
aModel);
XAccessible xRoot = at.getAccessibleObject(xWindow);
at.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
- oObj = at.getAccessibleObjectForRole(xRoot,
- AccessibleRole.TOGGLE_BUTTON,
+ oObj = at.getAccessibleObjectForRole(xRoot,
+ AccessibleRole.TOGGLE_BUTTON,
"Bold");
log.println("ImplementationName: " + util.utils.getImplName(oObj));
TestEnvironment tEnv = new TestEnvironment(oObj);
- tEnv.addObjRelation("EditOnly",
+ tEnv.addObjRelation("EditOnly",
"This method isn't supported in this dialog");
tEnv.addObjRelation("LimitedBounds", "yes");
final XAccessibleAction oAction = (XAccessibleAction) UnoRuntime.queryInterface(
- XAccessibleAction.class,
+ XAccessibleAction.class,
oObj);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java
index 95f4f7ccb19d..9dce17e1407b 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleWindow.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
@@ -95,7 +95,7 @@ public class AccessibleWindow extends TestCase {
* Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>).
*/
protected void initialize(TestParameters Param, PrintWriter log) {
- the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
+ the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
DesktopTools.createDesktop(
(XMultiServiceFactory) Param.getMSF()));
}
@@ -136,7 +136,7 @@ public class AccessibleWindow extends TestCase {
* @see com.sun.star.accessibility.XAccessibleEventBroadcaster
* @see com.sun.star.accessibility.XAccessibleText
*/
- protected TestEnvironment createTestEnvironment(TestParameters tParam,
+ protected TestEnvironment createTestEnvironment(TestParameters tParam,
PrintWriter log) {
log.println("creating a test environment");
@@ -163,7 +163,7 @@ public class AccessibleWindow extends TestCase {
throw new StatusException("Couldn't create document", e);
}
- XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
+ XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class,
xTextDoc);
XInterface oObj = null;
@@ -171,7 +171,7 @@ public class AccessibleWindow extends TestCase {
AccessibilityTools at = new AccessibilityTools();
XWindow xWindow = at.getCurrentWindow(
- (XMultiServiceFactory) tParam.getMSF(),
+ (XMultiServiceFactory) tParam.getMSF(),
aModel);
XAccessible xRoot = at.getAccessibleObject(xWindow);
@@ -187,7 +187,7 @@ public class AccessibleWindow extends TestCase {
final XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface(
XExtendedToolkit.class, toolkit);
- tEnv.addObjRelation("EventProducer",
+ tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
XWindow xWin = (XWindow) UnoRuntime.queryInterface(
@@ -197,7 +197,7 @@ public class AccessibleWindow extends TestCase {
newPosSize.Height = newPosSize.Height - 20;
newPosSize.X = newPosSize.X + 20;
newPosSize.Y = newPosSize.Y + 20;
- xWin.setPosSize(newPosSize.X, newPosSize.Y, newPosSize.Width,
+ xWin.setPosSize(newPosSize.X, newPosSize.Y, newPosSize.Width,
newPosSize.Height, PosSize.POSSIZE);
}
});
diff --git a/qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.java b/qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.java
index 5b4a0ed704e1..1dbe1cf66cd2 100644
--- a/qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/MutableTreeDataModel.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
@@ -46,7 +46,7 @@ import util.utils;
public class MutableTreeDataModel extends TestCase {
private static XTextDocument xTextDoc;
private static XInterface oObj = null;
-
+
/**
* Creates StarOffice Writer document.
*/
@@ -55,42 +55,42 @@ public class MutableTreeDataModel extends TestCase {
xTextDoc = WriterTools.createTextDoc(
(XMultiServiceFactory) tParam.getMSF());
}
-
+
/**
* Disposes StarOffice Writer document.
*/
protected void cleanup(TestParameters tParam, PrintWriter log) {
log.println(" disposing xTextDoc ");
-
+
util.DesktopTools.closeDoc(xTextDoc);
}
-
+
protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
-
+
try {
oObj = (XInterface) ((XMultiServiceFactory) Param.getMSF()).createInstance(
"com.sun.star.awt.tree.MutableTreeDataModel");
} catch (Exception e) {
}
-
+
log.println(
"creating a new environment for MutableTreeDataModel object");
-
+
TestEnvironment tEnv = new TestEnvironment(oObj);
-
+
tEnv.addObjRelation("OBJNAME", "toolkit.MutableTreeDataModel");
log.println("ImplementationName: " + utils.getImplName(oObj));
-
+
tEnv.addObjRelation("XTreeDataModelListenerEvent", new XTreeDataModelListenerEvent());
-
+
return tEnv;
} // finish method getTestEnvironment
-
+
public class XTreeDataModelListenerEvent implements ifc.awt.tree._XTreeDataModel.XTreeDataModelListenerEvent{
-
+
public void fireEvent(){
-
+
XMutableTreeDataModel xModel = (XMutableTreeDataModel) UnoRuntime.queryInterface(XMutableTreeDataModel.class, oObj);
XMutableTreeNode node = xModel.createNode("EventNode", true);
try {
@@ -99,7 +99,7 @@ public class MutableTreeDataModel extends TestCase {
log.println("ERROR: could not preform event: " + ex.toString());
ex.printStackTrace();
}
-
+
}
}
} // finish class UnoControlListBoxModel
diff --git a/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java b/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java
index 39c258c9ffd6..6382c7c3e1e5 100644
--- a/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.java
+++ b/qadevOOo/tests/java/mod/_toolkit/MutableTreeNode.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
@@ -54,7 +54,7 @@ public class MutableTreeNode extends TestCase {
private static XMultiServiceFactory mxMSF;
private static PrintWriter log;
private static boolean debug = false;
-
+
/**
* Creates StarOffice Writer document.
*/
@@ -65,20 +65,20 @@ public class MutableTreeNode extends TestCase {
// log.println("creating a textdocument");
// xTextDoc = WriterTools.createTextDoc(mxMSF);
}
-
+
/**
* Disposes StarOffice Writer document.
*/
protected void cleanup(TestParameters tParam, PrintWriter log) {
log.println(" disposing xTextDoc ");
-
+
util.DesktopTools.closeDoc(xTextDoc);
}
-
+
protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XMutableTreeNode xNode;
-
+
try {
mXTreeDataModel = (XMutableTreeDataModel) UnoRuntime.queryInterface(XMutableTreeDataModel.class,
mxMSF.createInstance("com.sun.star.awt.tree.MutableTreeDataModel"));
@@ -86,47 +86,47 @@ public class MutableTreeNode extends TestCase {
throw new StatusException(Status.failed("ERROR: could not create instance of" +
" 'com.sun.star.awt.tree.MutableTreeDataModel'"));
}
-
+
xNode = mXTreeDataModel.createNode("UnoTreeControl", false);
-
+
String sDisplayValue = "UnoTreeControl";
String sExpandedGraphicURL = "private:graphicrepository/sd/res/triangle_down.png";
String sCollapsedGraphicURL = "private:graphicrepository/sd/res/triangle_right.png";
String sNodeGraphicURL = "private:graphicrepository/sw/imglst/nc20010.png";
-
+
xNode.setDisplayValue( sDisplayValue);
xNode.setDataValue(sDisplayValue);
xNode.setExpandedGraphicURL(sExpandedGraphicURL);
xNode.setCollapsedGraphicURL(sCollapsedGraphicURL);
xNode.setNodeGraphicURL(sNodeGraphicURL);
xNode.setHasChildrenOnDemand(true);
-
+
fillNode(xNode);
-
+
TestEnvironment tEnv = new TestEnvironment(xNode);
-
+
tEnv.addObjRelation("OBJNAME", "toolkit.MutableTreeDataModel");
log.println("ImplementationName: " + utils.getImplName(oObj));
-
+
tEnv.addObjRelation("XTreeNode_DisplayValue", sDisplayValue);
tEnv.addObjRelation("XTreeNode_ExpandedGraphicURL", sExpandedGraphicURL);
tEnv.addObjRelation("XTreeNode_CollapsedGraphicURL", sCollapsedGraphicURL);
tEnv.addObjRelation("XTreeNode_NodeGraphicURL", sNodeGraphicURL);
-
- tEnv.addObjRelation("XMutableTreeNode_NodeToAppend",
+
+ tEnv.addObjRelation("XMutableTreeNode_NodeToAppend",
mXTreeDataModel.createNode("XMutableTreeNode_NodeToAppend", true));
-
+
tEnv.addObjRelation("XMutableTreeNodeCreator", new XMutableTreeNodeCreator(){
public XMutableTreeNode createNode(String name){
return mXTreeDataModel.createNode(name, true);
}
});
-
+
return tEnv;
} // finish method getTestEnvironment
-
+
private void fillNode( XMutableTreeNode xNode ){
-
+
if( xNode.getChildCount() == 0 )
{
String sParentPath = (String) xNode.getDataValue();
@@ -140,14 +140,14 @@ public class MutableTreeNode extends TestCase {
}
XSimpleFileAccess sA = (XSimpleFileAccess)
UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc);
-
+
dirlist(officeUserPath, xNode);
}
}
-
+
private void dirlist(String dir, XMutableTreeNode xNode){
-
+
Object fileacc = null;
try {
fileacc = mxMSF.createInstance("com.sun.star.comp.ucb.SimpleFileAccess");
@@ -181,7 +181,7 @@ public class MutableTreeNode extends TestCase {
} catch (com.sun.star.uno.Exception ex) {
ex.printStackTrace();
}
-
+
try {
xNode.appendChild( xChildNode );
} catch (com.sun.star.lang.IllegalArgumentException ex) {
diff --git a/qadevOOo/tests/java/mod/_toolkit/TabController.java b/qadevOOo/tests/java/mod/_toolkit/TabController.java
index c7bd67265305..bcba3d88c00f 100644
--- a/qadevOOo/tests/java/mod/_toolkit/TabController.java
+++ b/qadevOOo/tests/java/mod/_toolkit/TabController.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 TabController extends TestCase {
;
}
- public TestEnvironment createTestEnvironment(TestParameters param,
+ public TestEnvironment createTestEnvironment(TestParameters param,
PrintWriter log) {
XInterface oObj = null;
XControl xCtrl1 = null;
@@ -83,20 +83,20 @@ public class TabController extends TestCase {
// create object relations
- FormTools.insertForm(xTextDoc,
+ FormTools.insertForm(xTextDoc,
FormTools.getForms(WriterTools.getDrawPage(
xTextDoc)), "MyForm");
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "CommandButton",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "CommandButton",
"UnoControlButton");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel model = aShape.getControl();
XControlAccess access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
try {
@@ -107,7 +107,7 @@ public class TabController extends TestCase {
XForm form = null;
try {
- form = (XForm) AnyConverter.toObject(new Type(XForm.class),
+ form = (XForm) AnyConverter.toObject(new Type(XForm.class),
(FormTools.getForms(
WriterTools.getDrawPage(
xTextDoc)))
diff --git a/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java b/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java
index 3ba6305c2be9..d3fd2693605b 100644
--- a/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.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
@@ -63,17 +63,17 @@ public class TabControllerModel extends TestCase {
;
}
- public TestEnvironment createTestEnvironment(TestParameters param,
+ public TestEnvironment createTestEnvironment(TestParameters param,
PrintWriter log) {
XInterface oObj = null;
log.println("inserting some ControlShapes");
- XControlShape shape1 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 15000, 1000,
+ XControlShape shape1 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 15000, 1000,
"CommandButton");
- XControlShape shape2 = FormTools.createControlShape(xTextDoc, 5000,
- 3500, 7500, 5000,
+ XControlShape shape2 = FormTools.createControlShape(xTextDoc, 5000,
+ 3500, 7500, 5000,
"TextField");
try {
@@ -81,7 +81,7 @@ public class TabControllerModel extends TestCase {
"com.sun.star.awt.TabControllerModel");
} catch (Exception e) {
e.printStackTrace(log);
- throw new StatusException("Couldn't create " +
+ throw new StatusException("Couldn't create " +
"TabControllerModel", e);
}
@@ -89,7 +89,7 @@ public class TabControllerModel extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
- tEnv.addObjRelation("OBJNAME",
+ tEnv.addObjRelation("OBJNAME",
"stardiv.vcl.controlmodel.TabController");
tEnv.addObjRelation("Model1", shape1.getControl());
tEnv.addObjRelation("Model2", shape2.getControl());
diff --git a/qadevOOo/tests/java/mod/_toolkit/Toolkit.java b/qadevOOo/tests/java/mod/_toolkit/Toolkit.java
index edca76e5e682..a8bfc06720e7 100644
--- a/qadevOOo/tests/java/mod/_toolkit/Toolkit.java
+++ b/qadevOOo/tests/java/mod/_toolkit/Toolkit.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
@@ -82,7 +82,7 @@ public class Toolkit extends TestCase {
* Creating a Testenvironment for the interfaces to be tested.
* Creates <code>com.sun.star.awt.Toolkit</code> service.
*/
- public TestEnvironment createTestEnvironment(TestParameters Param,
+ public TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log)
throws StatusException {
XInterface oObj = null;
@@ -90,8 +90,8 @@ public class Toolkit extends TestCase {
XWindow win = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 15000, 10000,
+ XControlShape aShape = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 15000, 10000,
"CommandButton");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
@@ -100,10 +100,10 @@ public class Toolkit extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
XController cntrlr = (XController) UnoRuntime.queryInterface(
- XController.class,
+ XController.class,
xTextDoc.getCurrentController());
//now get the toolkit
@@ -120,7 +120,7 @@ public class Toolkit extends TestCase {
e.printStackTrace(log);
throw new StatusException("Couldn't get toolkit", e);
}
-
+
XModel xModel = (XModel)UnoRuntime.queryInterface(XModel.class, xTextDoc);
log.println(" creating a new environment for toolkit object");
@@ -130,7 +130,7 @@ public class Toolkit extends TestCase {
log.println("Implementation Name: " + utils.getImplName(oObj));
tEnv.addObjRelation("WINPEER", the_win);
-
+
tEnv.addObjRelation("XModel", xModel);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlButton.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlButton.java
index fac722977e95..8c7028134d64 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlButton.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlButton.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
@@ -82,7 +82,7 @@ public class UnoControlButton extends TestCase {
util.DesktopTools.closeDoc(xTD2);
}
- public TestEnvironment createTestEnvironment(TestParameters Param,
+ public TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -92,10 +92,10 @@ public class UnoControlButton extends TestCase {
XWindow anotherWindow = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "CommandButton",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "CommandButton",
"UnoControlButton");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
@@ -104,7 +104,7 @@ public class UnoControlButton extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the ButtonControl for the needed Object relations
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.java
index a46b8abee959..4159f6106d9c 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlButtonModel.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
@@ -62,7 +62,7 @@ public class UnoControlButtonModel extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBox.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBox.java
index a2b8c167e2c4..c079ed8ac6ac 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBox.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBox.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
@@ -83,7 +83,7 @@ public class UnoControlCheckBox extends TestCase {
util.DesktopTools.closeDoc(xTD2);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -93,10 +93,10 @@ public class UnoControlCheckBox extends TestCase {
XWindow anotherWindow = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "CheckBox",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "CheckBox",
"UnoControlCheckBox");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
@@ -105,7 +105,7 @@ public class UnoControlCheckBox extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the CheckBoxControl for the needed Object relations
@@ -137,7 +137,7 @@ public class UnoControlCheckBox extends TestCase {
tEnv.addObjRelation("MODEL", the_Model);
// adding object relation for XItemListener
- ifc.awt._XItemListener.TestItemListener listener =
+ ifc.awt._XItemListener.TestItemListener listener =
new ifc.awt._XItemListener.TestItemListener();
XCheckBox check = (XCheckBox) UnoRuntime.queryInterface(
XCheckBox.class, oObj);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.java
index 76773c6d74ac..a30435534417 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlCheckBoxModel.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
@@ -62,7 +62,7 @@ public class UnoControlCheckBoxModel extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBox.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBox.java
index 6bc357321d53..4240274d66c4 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBox.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBox.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
@@ -77,7 +77,7 @@ public class UnoControlComboBox extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -87,18 +87,18 @@ util.DesktopTools.closeDoc(xTextDoc);
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "ComboBox",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "ComboBox",
"UnoControlComboBox");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -107,7 +107,7 @@ util.DesktopTools.closeDoc(xTextDoc);
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the ComboBoxControl for the needed Object relations
@@ -139,14 +139,14 @@ util.DesktopTools.closeDoc(xTextDoc);
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
tEnv.addObjRelation("XWindow.ControlShape", aShape);
// Adding relation for XTextListener
- ifc.awt._XTextListener.TestTextListener listener =
+ ifc.awt._XTextListener.TestTextListener listener =
new ifc.awt._XTextListener.TestTextListener();
XTextComponent textComp = (XTextComponent) UnoRuntime.queryInterface(
XTextComponent.class, oObj);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBoxModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBoxModel.java
index 4ee5eef572ab..e24744546411 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBoxModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlComboBoxModel.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
@@ -61,7 +61,7 @@ public class UnoControlComboBoxModel extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlContainer.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlContainer.java
index 3b2b83380c04..57eddf415d74 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlContainer.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlContainer.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
@@ -86,7 +86,7 @@ public class UnoControlContainer extends TestCase {
util.DesktopTools.closeDoc(xTD2);
}
- public TestEnvironment createTestEnvironment(TestParameters param,
+ public TestEnvironment createTestEnvironment(TestParameters param,
PrintWriter log) {
// create Object Relations -------------------------------------------
XInterface oObj = null;
@@ -106,7 +106,7 @@ public class UnoControlContainer extends TestCase {
// create 3 XControls
// create first XControl
- shape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000,
+ shape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000,
10000, "TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) shape);
model = shape.getControl();
@@ -122,7 +122,7 @@ public class UnoControlContainer extends TestCase {
// create second XControl
- shape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000,
+ shape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000,
10000, "TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) shape);
model = shape.getControl();
@@ -138,7 +138,7 @@ public class UnoControlContainer extends TestCase {
// create third XControl
- shape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000,
+ shape = FormTools.createControlShape(xTextDoc, 3000, 4500, 15000,
10000, "CommandButton");
WriterTools.getDrawPage(xTextDoc).add((XShape) shape);
model = shape.getControl();
@@ -154,10 +154,10 @@ public class UnoControlContainer extends TestCase {
// create XToolkit, XWindowPeer, XDevice
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "CommandButton",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "CommandButton",
"UnoControlButton");
WriterTools.getDrawPage(xTD2).add((XShape) aShape);
@@ -166,7 +166,7 @@ public class UnoControlContainer extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTD2.getCurrentController());
//get the ButtonControl for the needed Object relations
@@ -213,7 +213,7 @@ public class UnoControlContainer extends TestCase {
"creating a new environment for UnoControlContainer object");
TestEnvironment tEnv = new TestEnvironment(oObj);
-
+
XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, oObj);
Rectangle ps = xWindow.getPosSize();
xWindow.setPosSize(ps.X+10, ps.Y+10, ps.Width+10, ps.Height+10, PosSize.POSSIZE);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlContainerModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlContainerModel.java
index cf7104282237..847ed1e0c17f 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlContainerModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlContainerModel.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
@@ -40,7 +40,7 @@ import util.utils;
public class UnoControlContainerModel extends TestCase {
- public TestEnvironment createTestEnvironment(TestParameters param,
+ public TestEnvironment createTestEnvironment(TestParameters param,
PrintWriter log) {
XInterface oObj = null;
@@ -49,7 +49,7 @@ public class UnoControlContainerModel extends TestCase {
"com.sun.star.awt.UnoControlContainerModel");
} catch (Exception e) {
e.printStackTrace(log);
- throw new StatusException("Couldn't create " +
+ throw new StatusException("Couldn't create " +
"UnoControlContainerModel", e);
}
@@ -57,7 +57,7 @@ public class UnoControlContainerModel extends TestCase {
"creating a new environment for UnoControlContainer object");
TestEnvironment tEnv = new TestEnvironment(oObj);
- tEnv.addObjRelation("OBJNAME",
+ tEnv.addObjRelation("OBJNAME",
"stardiv.vcl.controlmodel.ControlContainer");
System.out.println("ImplementationName: " + utils.getImplName(oObj));
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.java
index 455c4765bef0..064d9914b786 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyField.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 UnoControlCurrencyField extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -88,18 +88,18 @@ public class UnoControlCurrencyField extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "CurrencyField",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "CurrencyField",
"UnoControlCurrencyField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -108,7 +108,7 @@ public class UnoControlCurrencyField extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the CurrencyFieldControl for the needed Object relations
@@ -141,14 +141,14 @@ public class UnoControlCurrencyField extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
tEnv.addObjRelation("XWindow.ControlShape", aShape);
// Adding relation for XTextListener
- ifc.awt._XTextListener.TestTextListener listener =
+ ifc.awt._XTextListener.TestTextListener listener =
new ifc.awt._XTextListener.TestTextListener();
XTextComponent textComp = (XTextComponent) UnoRuntime.queryInterface(
XTextComponent.class, oObj);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyFieldModel.java
index e2c696b53ac2..606a8ac631be 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyFieldModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlCurrencyFieldModel.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
@@ -61,7 +61,7 @@ public class UnoControlCurrencyFieldModel extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
@@ -71,12 +71,12 @@ public class UnoControlCurrencyFieldModel extends TestCase {
} catch (Exception e) {
}
- log.println("creating a new environment for " +
+ log.println("creating a new environment for " +
"UnoControlCurrencyFieldModel object");
TestEnvironment tEnv = new TestEnvironment(oObj);
- tEnv.addObjRelation("OBJNAME",
+ tEnv.addObjRelation("OBJNAME",
"stardiv.vcl.controlmodel.CurrencyField");
System.out.println("ImplementationName: " + utils.getImplName(oObj));
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlDateField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDateField.java
index 073f262a0c12..bb0c947e58e3 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDateField.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDateField.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
@@ -83,7 +83,7 @@ public class UnoControlDateField extends TestCase {
util.DesktopTools.closeDoc(xTD2);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -93,10 +93,10 @@ public class UnoControlDateField extends TestCase {
XWindow anotherWindow = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "DateField",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "DateField",
"UnoControlDateField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
@@ -105,7 +105,7 @@ public class UnoControlDateField extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the DateFieldControl for the needed Object relations
@@ -154,7 +154,7 @@ public class UnoControlDateField extends TestCase {
tEnv.addObjRelation("XWindow.ControlShape", aShape);
// Adding relation for XTextListener
- ifc.awt._XTextListener.TestTextListener listener =
+ ifc.awt._XTextListener.TestTextListener listener =
new ifc.awt._XTextListener.TestTextListener();
XTextComponent textComp = (XTextComponent) UnoRuntime.queryInterface(
XTextComponent.class, oObj);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.java
index 0144d0759b0d..9a4cee1ab823 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDateFieldModel.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
@@ -61,7 +61,7 @@ public class UnoControlDateFieldModel extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialog.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialog.java
index d621681a75a4..37464599ff6b 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialog.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialog.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
@@ -91,7 +91,7 @@ public class UnoControlDialog extends TestCase {
* for Control, adds to Dialog a button, sets its size and
* sets the dialog visible. <p>
*/
- public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XMultiServiceFactory xMSF = (XMultiServiceFactory) Param.getMSF();
@@ -116,23 +116,23 @@ public class UnoControlDialog extends TestCase {
try {
dlgModel = (XControlModel) UnoRuntime.queryInterface(
- XControlModel.class,
+ XControlModel.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlDialogModel"));
XControl dlgControl = (XControl) UnoRuntime.queryInterface(
- XControl.class,
+ XControl.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlDialog"));
dlgControl.setModel(dlgModel);
XControlModel butModel = (XControlModel) UnoRuntime.queryInterface(
- XControlModel.class,
+ XControlModel.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlButtonModel"));
- butControl = (XControl) UnoRuntime.queryInterface(XControl.class,
+ butControl = (XControl) UnoRuntime.queryInterface(XControl.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlButton"));
@@ -141,34 +141,34 @@ public class UnoControlDialog extends TestCase {
// creating additional controls for XUnoControlContainer
tabControl1 = (XTabController) UnoRuntime.queryInterface(
- XTabController.class,
+ XTabController.class,
xMSF.createInstance(
"com.sun.star.awt.TabController"));
tabControl2 = (XTabController) UnoRuntime.queryInterface(
- XTabController.class,
+ XTabController.class,
xMSF.createInstance(
"com.sun.star.awt.TabController"));
// creating additional controls for XControlContainer
butModel = (XControlModel) UnoRuntime.queryInterface(
- XControlModel.class,
+ XControlModel.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlButtonModel"));
- butControl1 = (XControl) UnoRuntime.queryInterface(XControl.class,
+ butControl1 = (XControl) UnoRuntime.queryInterface(XControl.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlButton"));
butControl1.setModel(butModel);
butModel = (XControlModel) UnoRuntime.queryInterface(
- XControlModel.class,
+ XControlModel.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlButtonModel"));
- butControl2 = (XControl) UnoRuntime.queryInterface(XControl.class,
+ butControl2 = (XControl) UnoRuntime.queryInterface(XControl.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlButton"));
@@ -177,7 +177,7 @@ public class UnoControlDialog extends TestCase {
ctrlCont = (XControlContainer) UnoRuntime.queryInterface(
XControlContainer.class, dlgControl);
- xWinDlg = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ xWinDlg = (XWindow) UnoRuntime.queryInterface(XWindow.class,
dlgControl);
xWinDlg.setVisible(true);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java
index 558ea9f07d95..3f17f765d2dd 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.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
@@ -79,7 +79,7 @@ public class UnoControlDialogModel extends TestCase {
* {@link ifc.io._XPersistObject} </li>
* </ul>
*/
- protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XInterface dialogModel = null;
@@ -92,23 +92,23 @@ public class UnoControlDialogModel extends TestCase {
dialogModel = (XInterface) ((XMultiServiceFactory) Param.getMSF()).createInstance(
"com.sun.star.awt.UnoControlDialogModel");
- // create the dialog model and set the properties
+ // create the dialog model and set the properties
XPropertySet xPSetDialog = (XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, dialogModel);
xPSetDialog.setPropertyValue("PositionX", new Integer(100));
xPSetDialog.setPropertyValue("PositionY", new Integer(100));
xPSetDialog.setPropertyValue("Width", new Integer(150));
xPSetDialog.setPropertyValue("Height", new Integer(100));
- xPSetDialog.setPropertyValue("Title",
+ xPSetDialog.setPropertyValue("Title",
new String("Runtime Dialog Demo"));
- // get the service manager from the dialog model
+ // get the service manager from the dialog model
xMultiServiceFactory = (XMultiServiceFactory) UnoRuntime.queryInterface(
- XMultiServiceFactory.class,
+ XMultiServiceFactory.class,
dialogModel);
- // create the button model and set the properties
+ // create the button model and set the properties
Object buttonModel = xMultiServiceFactory.createInstance(
"com.sun.star.awt.UnoControlButtonModel");
XPropertySet xPSetButton = (XPropertySet) UnoRuntime.queryInterface(
@@ -121,7 +121,7 @@ public class UnoControlDialogModel extends TestCase {
xPSetButton.setPropertyValue("TabIndex", new Short((short) 0));
xPSetButton.setPropertyValue("Label", new String("Click Me"));
- // create the label model and set the properties
+ // create the label model and set the properties
Object labelModel = xMultiServiceFactory.createInstance(
"com.sun.star.awt.UnoControlFixedTextModel");
XPropertySet xPSetLabel = (XPropertySet) UnoRuntime.queryInterface(
@@ -134,22 +134,22 @@ public class UnoControlDialogModel extends TestCase {
xPSetLabel.setPropertyValue("TabIndex", new Short((short) 1));
xPSetLabel.setPropertyValue("Label", _labelPrefix);
- // insert the control models into the dialog model
+ // insert the control models into the dialog model
XNameContainer xNameCont = (XNameContainer) UnoRuntime.queryInterface(
- XNameContainer.class,
+ XNameContainer.class,
dialogModel);
xNameCont.insertByName(_buttonName, buttonModel);
xNameCont.insertByName(_labelName, labelModel);
- // create the dialog control and set the model
+ // create the dialog control and set the model
XControl dialog = (XControl) UnoRuntime.queryInterface(
- XControl.class,
+ XControl.class,
((XMultiServiceFactory) Param.getMSF()).createInstance(
"com.sun.star.awt.UnoControlDialog"));
XControl xControl = (XControl) UnoRuntime.queryInterface(
XControl.class, dialog);
XControlModel xControlModel = (XControlModel) UnoRuntime.queryInterface(
- XControlModel.class,
+ XControlModel.class,
dialogModel);
xControl.setModel(xControlModel);
} catch (Exception e) {
@@ -167,13 +167,13 @@ public class UnoControlDialogModel extends TestCase {
try {
// XNameReplace
- tEnv.addObjRelation("INSTANCE1",
+ tEnv.addObjRelation("INSTANCE1",
xMultiServiceFactory.createInstance(
"com.sun.star.awt.UnoControlFixedTextModel"));
//XContainer
- tEnv.addObjRelation("INSTANCE",
+ tEnv.addObjRelation("INSTANCE",
xMultiServiceFactory.createInstance(
"com.sun.star.awt.UnoControlFixedTextModel"));
} catch (com.sun.star.uno.Exception e) {
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlEdit.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlEdit.java
index e6460fc72d55..80750544d649 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlEdit.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlEdit.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 UnoControlEdit extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -88,18 +88,18 @@ public class UnoControlEdit extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "TextField",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "TextField",
"UnoControlEdit");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -108,7 +108,7 @@ public class UnoControlEdit extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the EditControl for the needed Object relations
@@ -140,14 +140,14 @@ public class UnoControlEdit extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
tEnv.addObjRelation("XWindow.ControlShape", aShape);
// Adding relation for XTextListener
- ifc.awt._XTextListener.TestTextListener listener =
+ ifc.awt._XTextListener.TestTextListener listener =
new ifc.awt._XTextListener.TestTextListener();
XTextComponent textComp = (XTextComponent) UnoRuntime.queryInterface(
XTextComponent.class, oObj);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlEditModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlEditModel.java
index 4df1e7ee86cc..0f05e3725cd9 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlEditModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlEditModel.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
@@ -61,7 +61,7 @@ public class UnoControlEditModel extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControl.java
index ecf4c7170243..c326ee873cb4 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControl.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControl.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 UnoControlFileControl extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -88,18 +88,18 @@ public class UnoControlFileControl extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "FileControl",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "FileControl",
"UnoControlFileControl");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -108,7 +108,7 @@ public class UnoControlFileControl extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the FileControlControl for the needed Object relations
@@ -141,14 +141,14 @@ public class UnoControlFileControl extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
tEnv.addObjRelation("XWindow.ControlShape", aShape);
// Adding relation for XTextListener
- ifc.awt._XTextListener.TestTextListener listener =
+ ifc.awt._XTextListener.TestTextListener listener =
new ifc.awt._XTextListener.TestTextListener();
XTextComponent textComp = (XTextComponent) UnoRuntime.queryInterface(
XTextComponent.class, oObj);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControlModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControlModel.java
index 31153036da95..cefb7d072d13 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControlModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFileControlModel.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
@@ -61,7 +61,7 @@ public class UnoControlFileControlModel extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedLineModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedLineModel.java
index 986f3acd9a2c..4deaef81360d 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedLineModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedLineModel.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 UnoControlFixedLineModel extends TestCase {
* {@link ifc.io._XPersistObject} </li>
* </ul>
*/
- public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log)
throws StatusException {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedText.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedText.java
index 7ee0369ad4ea..14d3c8f2b73f 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedText.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedText.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
@@ -77,7 +77,7 @@ public class UnoControlFixedText extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -87,18 +87,18 @@ public class UnoControlFixedText extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "FixedText",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "FixedText",
"UnoControlFixedText");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -107,7 +107,7 @@ public class UnoControlFixedText extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the FixedTextControl for the needed Object relations
@@ -140,7 +140,7 @@ public class UnoControlFixedText extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedTextModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedTextModel.java
index 6bbf6f0cadb1..195dbdfb6984 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedTextModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFixedTextModel.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
@@ -61,7 +61,7 @@ public class UnoControlFixedTextModel extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java
index 62b6169895bc..4511f65323e3 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.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
@@ -79,7 +79,7 @@ public class UnoControlFormattedField extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -89,18 +89,18 @@ public class UnoControlFormattedField extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "DatabaseFormattedField",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "DatabaseFormattedField",
"UnoControlFormattedField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -112,7 +112,7 @@ public class UnoControlFormattedField extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the EditControl for the needed Object relations
@@ -146,14 +146,14 @@ public class UnoControlFormattedField extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
tEnv.addObjRelation("XWindow.ControlShape", aShape);
// Adding relation for XTextListener
- ifc.awt._XTextListener.TestTextListener listener =
+ ifc.awt._XTextListener.TestTextListener listener =
new ifc.awt._XTextListener.TestTextListener();
XTextComponent textComp = (XTextComponent) UnoRuntime.queryInterface(
XTextComponent.class, oObj);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedFieldModel.java
index 549ddd82ef7d..035196df0ab9 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedFieldModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedFieldModel.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
@@ -61,7 +61,7 @@ public class UnoControlFormattedFieldModel extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
@@ -76,7 +76,7 @@ public class UnoControlFormattedFieldModel extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
- tEnv.addObjRelation("OBJNAME",
+ tEnv.addObjRelation("OBJNAME",
"stardiv.vcl.controlmodel.FormattedField");
System.out.println("ImplementationName: " + utils.getImplName(oObj));
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBox.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBox.java
index ef1377289fea..97d81ec52427 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBox.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBox.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
@@ -77,7 +77,7 @@ public class UnoControlGroupBox extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -87,18 +87,18 @@ public class UnoControlGroupBox extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "GroupBox",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "GroupBox",
"UnoControlGroupBox");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -107,7 +107,7 @@ public class UnoControlGroupBox extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the GroupBoxControl for the needed Object relations
@@ -139,7 +139,7 @@ public class UnoControlGroupBox extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBoxModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBoxModel.java
index a960cd91c607..3bb46d8baaf2 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBoxModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlGroupBoxModel.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
@@ -61,7 +61,7 @@ public class UnoControlGroupBoxModel extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControl.java
index e8611f9aee4c..efe32e3423f0 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControl.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControl.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 UnoControlImageControl extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -88,10 +88,10 @@ public class UnoControlImageControl extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "DatabaseImageControl",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "DatabaseImageControl",
"UnoControlImageControl");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
@@ -101,8 +101,8 @@ public class UnoControlImageControl extends TestCase {
XPropertySet xPS = (XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, the_Model);
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -111,7 +111,7 @@ public class UnoControlImageControl extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the ImageControlControl for the needed Object relations
@@ -148,7 +148,7 @@ public class UnoControlImageControl extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControlModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControlModel.java
index ab69c310038c..be142c1ebc58 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControlModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlImageControlModel.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
@@ -39,7 +39,7 @@ import util.utils;
public class UnoControlImageControlModel extends TestCase {
- protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlListBox.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlListBox.java
index 85e9abd9058c..4e919ba14698 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlListBox.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlListBox.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 UnoControlListBox extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -88,18 +88,18 @@ public class UnoControlListBox extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "ListBox",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "ListBox",
"UnoControlListBox");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -108,7 +108,7 @@ public class UnoControlListBox extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the ListBoxControl for the needed Object relations
@@ -141,14 +141,14 @@ public class UnoControlListBox extends TestCase {
tEnv.addObjRelation("MODEL", the_Model);
// adding object relation for XItemListener
- ifc.awt._XItemListener.TestItemListener listener =
+ ifc.awt._XItemListener.TestItemListener listener =
new ifc.awt._XItemListener.TestItemListener();
- XListBox list = (XListBox) UnoRuntime.queryInterface(XListBox.class,
+ XListBox list = (XListBox) UnoRuntime.queryInterface(XListBox.class,
oObj);
list.addItemListener(listener);
tEnv.addObjRelation("TestItemListener", listener);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlListBoxModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlListBoxModel.java
index d567bb50bb8a..785527f631c2 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlListBoxModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlListBoxModel.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
@@ -61,7 +61,7 @@ public class UnoControlListBoxModel extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericField.java
index f9ac8e3b2d61..ac836abbaab7 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericField.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericField.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 UnoControlNumericField extends TestCase {
}
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -95,18 +95,18 @@ public class UnoControlNumericField extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "NumericField",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "NumericField",
"UnoControlNumericField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -115,7 +115,7 @@ public class UnoControlNumericField extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the NumericFieldControl for the needed Object relations
@@ -148,22 +148,22 @@ public class UnoControlNumericField extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
tEnv.addObjRelation("XWindow.ControlShape", aShape);
// Adding relation for XTextListener
- ifc.awt._XTextListener.TestTextListener listener =
+ ifc.awt._XTextListener.TestTextListener listener =
new ifc.awt._XTextListener.TestTextListener();
XTextComponent textComp = (XTextComponent) UnoRuntime.queryInterface(
XTextComponent.class, oObj);
textComp.addTextListener(listener);
tEnv.addObjRelation("TestTextListener", listener);
-
+
tEnv.addObjRelation("XTextComponent.onlyNumbers", "");
-
+
log.println("ImplementationName: " + utils.getImplName(oObj));
return tEnv;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericFieldModel.java
index 003f36fd0791..79746cc576ef 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericFieldModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlNumericFieldModel.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
@@ -61,7 +61,7 @@ public class UnoControlNumericFieldModel extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java
index e3c514312b50..b89817e89c11 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternField.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 UnoControlPatternField extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -88,18 +88,18 @@ public class UnoControlPatternField extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "PatternField",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "PatternField",
"UnoControlPatternField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -108,7 +108,7 @@ public class UnoControlPatternField extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the PatternFieldControl for the needed Object relations
@@ -141,14 +141,14 @@ public class UnoControlPatternField extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
tEnv.addObjRelation("XWindow.ControlShape", aShape);
// Adding relation for XTextListener
- ifc.awt._XTextListener.TestTextListener listener =
+ ifc.awt._XTextListener.TestTextListener listener =
new ifc.awt._XTextListener.TestTextListener();
XTextComponent textComp = (XTextComponent) UnoRuntime.queryInterface(
XTextComponent.class, oObj);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternFieldModel.java
index 2b77d40d0b15..11ebe24aac59 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternFieldModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlPatternFieldModel.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
@@ -39,7 +39,7 @@ import util.utils;
public class UnoControlPatternFieldModel extends TestCase {
- public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlProgressBarModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlProgressBarModel.java
index 39e9dca50035..d582c08c2c57 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlProgressBarModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlProgressBarModel.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 UnoControlProgressBarModel extends TestCase {
* {@link ifc.io._XPersistObject} </li>
* </ul>
*/
- public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log)
throws StatusException {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButton.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButton.java
index 3b8eb313a3fa..3dea66cdb65f 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButton.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButton.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
@@ -77,7 +77,7 @@ public class UnoControlRadioButton extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -87,18 +87,18 @@ public class UnoControlRadioButton extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "RadioButton",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "RadioButton",
"UnoControlRadioButton");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -107,7 +107,7 @@ public class UnoControlRadioButton extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the RadioButtonControl for the needed Object relations
@@ -140,7 +140,7 @@ public class UnoControlRadioButton extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButtonModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButtonModel.java
index 4805f9f4c61a..0db72e0d2db5 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButtonModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlRadioButtonModel.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
@@ -39,7 +39,7 @@ import util.utils;
public class UnoControlRadioButtonModel extends TestCase {
- public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlScrollBarModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlScrollBarModel.java
index bf9a1b6492b8..0ca3e0e7eb82 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlScrollBarModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlScrollBarModel.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 UnoControlScrollBarModel extends TestCase {
* {@link ifc.io._XPersistObject} </li>
* </ul>
*/
- public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log)
throws StatusException {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeField.java
index 04161dca61c2..9547f723414e 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeField.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeField.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 UnoControlTimeField extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -88,18 +88,18 @@ public class UnoControlTimeField extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "TimeField",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "TimeField",
"UnoControlTimeField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -108,7 +108,7 @@ public class UnoControlTimeField extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the TimeFieldControl for the needed Object relations
@@ -141,14 +141,14 @@ public class UnoControlTimeField extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
tEnv.addObjRelation("XWindow.ControlShape", aShape);
// Adding relation for XTextListener
- ifc.awt._XTextListener.TestTextListener listener =
+ ifc.awt._XTextListener.TestTextListener listener =
new ifc.awt._XTextListener.TestTextListener();
XTextComponent textComp = (XTextComponent) UnoRuntime.queryInterface(
XTextComponent.class, oObj);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeFieldModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeFieldModel.java
index 91472cd01e4b..4b47fe41b475 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeFieldModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlTimeFieldModel.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
@@ -39,7 +39,7 @@ import util.utils;
public class UnoControlTimeFieldModel extends TestCase {
- protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java
index e12d323a5a8f..640365fdb855 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.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
@@ -69,24 +69,24 @@ public class UnoScrollBarControl extends TestCase {
try {
log.println("creating a textdocument");
xTextDoc = SOF.createTextDoc(null);
-
+
log.println("maximize the window size");
XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc);
XFrame xFrame = xModel.getCurrentController().getFrame();
XWindow xWin = xFrame.getContainerWindow();
-
+
Toolkit tk = Toolkit.getDefaultToolkit();
Dimension dim = tk.getScreenSize();
-
+
Rectangle newPosSize = xWin.getPosSize();
newPosSize.Width = new Double(dim.getWidth()).intValue();
newPosSize.Height = new Double(dim.getHeight()).intValue();
newPosSize.X = 0;
newPosSize.Y = 0;
-
+
xWin.setPosSize(newPosSize.X, newPosSize.Y, newPosSize.Width,
- newPosSize.Height, com.sun.star.awt.PosSize.POSSIZE);
-
+ newPosSize.Height, com.sun.star.awt.PosSize.POSSIZE);
+
} catch (com.sun.star.uno.Exception e) {
// Some exception occures.FAILED
e.printStackTrace(log);
@@ -100,7 +100,7 @@ public class UnoScrollBarControl extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -110,18 +110,18 @@ public class UnoScrollBarControl extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "ScrollBar",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "ScrollBar",
"UnoControlScrollBar");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -130,7 +130,7 @@ public class UnoScrollBarControl extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the ScrollBarControl for the needed Object relations
@@ -167,7 +167,7 @@ public class UnoScrollBarControl extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java
index 332cf133568f..a4ba99c437ec 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.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,7 +68,7 @@ public class UnoSpinButtonControl extends TestCase {
util.DesktopTools.closeDoc(xTextDoc);
}
- protected TestEnvironment createTestEnvironment(TestParameters Param,
+ protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XWindowPeer the_win = null;
@@ -78,18 +78,18 @@ public class UnoSpinButtonControl extends TestCase {
XControl aControl = null;
//Insert a ControlShape and get the ControlModel
- XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
- 4500, 15000,
- 10000,
- "SpinButton",
+ XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000,
+ 4500, 15000,
+ 10000,
+ "SpinButton",
"UnoControlSpinButton");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape);
XControlModel the_Model = aShape.getControl();
- XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
- 4500, 5000, 10000,
+ XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000,
+ 4500, 5000, 10000,
"TextField");
WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2);
@@ -98,7 +98,7 @@ public class UnoSpinButtonControl extends TestCase {
//Try to query XControlAccess
XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface(
- XControlAccess.class,
+ XControlAccess.class,
xTextDoc.getCurrentController());
//get the SpinButtonControl for the needed Object relations
@@ -135,7 +135,7 @@ public class UnoSpinButtonControl extends TestCase {
tEnv.addObjRelation("TOOLKIT", the_kit);
tEnv.addObjRelation("MODEL", the_Model);
- XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class,
aControl);
tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControlModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControlModel.java
index fff32d4aeb3d..7cf20b8e0656 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControlModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControlModel.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ public class UnoSpinButtonControlModel extends TestCase {
* Creates an instance of the service
* <code>com.sun.star.awt.UnoControlSpinButtonModel</code>.
*/
- public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
+ public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log)
throws StatusException {
XInterface oObj = null;
@@ -60,7 +60,7 @@ public class UnoSpinButtonControlModel extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
- tEnv.addObjRelation("OBJNAME",
+ tEnv.addObjRelation("OBJNAME",
"com.sun.star.awt.UnoControlSpinButtonModel");
System.out.println("ImplementationName: " + utils.getImplName(oObj));
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java
index 5be41be69f27..4a8dc03800e9 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.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
@@ -67,14 +67,14 @@ public class UnoTreeControl extends TestCase {
private static XMultiServiceFactory mxMSF;
private static PrintWriter log;
private static boolean debug = false;
-
+
protected void initialize(TestParameters Param, PrintWriter log) {
this.log = log;
debug = Param.getBool(PropertyName.DEBUG_IS_ACTIVE);
SOfficeFactory SOF = SOfficeFactory.getFactory(
(XMultiServiceFactory) Param.getMSF());
-
+
try {
log.println("creating a textdocument");
xTextDoc = SOF.createTextDoc(null);
@@ -84,24 +84,24 @@ public class UnoTreeControl extends TestCase {
throw new StatusException("Couldn't create document", e);
}
}
-
+
protected void cleanup(TestParameters tParam, PrintWriter log) {
// log.println(" disposing xTextDoc ");
-//
+//
// util.DesktopTools.closeDoc(xTextDoc);
}
-
+
protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
String sTreeControlName = "UnoTreeControl-Test";
mxMSF = (XMultiServiceFactory) Param.getMSF();
XInterface oObj = null;
XMutableTreeNode xNode = null;
-
+
try {
-
+
mXTreeDataModel = (XMutableTreeDataModel )
- UnoRuntime.queryInterface(XMutableTreeDataModel.class,
+ UnoRuntime.queryInterface(XMutableTreeDataModel.class,
mxMSF.createInstance("com.sun.star.awt.tree.MutableTreeDataModel"));
xNode = mXTreeDataModel.createNode("UnoTreeControl", false);
@@ -111,92 +111,92 @@ public class UnoTreeControl extends TestCase {
xNode.setCollapsedGraphicURL( "private:graphicrepository/sd/res/triangle_right.png");
fillNode(xNode);
-
+
mXTreeDataModel.setRoot(xNode);
-
+
XControlModel xDialogModel = (XControlModel)
UnoRuntime.queryInterface(XControlModel.class,
mxMSF.createInstance("com.sun.star.awt.UnoControlDialogModel"));
-
+
XPropertySet xDialogPropertySet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xDialogModel);
- xDialogPropertySet.setPropertyValue( "PositionX", new Integer(50) );
- xDialogPropertySet.setPropertyValue( "PositionY", new Integer(50) );
- xDialogPropertySet.setPropertyValue( "Width", new Integer(256) );
- xDialogPropertySet.setPropertyValue( "Height", new Integer(256) );
- xDialogPropertySet.setPropertyValue( "Title", "Tree Control Test");
-
+ xDialogPropertySet.setPropertyValue( "PositionX", new Integer(50) );
+ xDialogPropertySet.setPropertyValue( "PositionY", new Integer(50) );
+ xDialogPropertySet.setPropertyValue( "Width", new Integer(256) );
+ xDialogPropertySet.setPropertyValue( "Height", new Integer(256) );
+ xDialogPropertySet.setPropertyValue( "Title", "Tree Control Test");
+
XMultiServiceFactory xDialogMSF = (XMultiServiceFactory)
UnoRuntime.queryInterface(XMultiServiceFactory.class, xDialogModel);
-
+
XControlModel xTreeControlModel = (XControlModel)
UnoRuntime.queryInterface(XControlModel.class,
xDialogMSF.createInstance("com.sun.star.awt.tree.TreeControlModel"));
-
+
XPropertySet XTreeControlModelSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xTreeControlModel);
XTreeControlModelSet.setPropertyValue( "SelectionType",com.sun.star.view.SelectionType.NONE);
- XTreeControlModelSet.setPropertyValue( "PositionX", new Integer(3 ));
- XTreeControlModelSet.setPropertyValue( "PositionY", new Integer(3 ));
- XTreeControlModelSet.setPropertyValue( "Width", new Integer(253));
- XTreeControlModelSet.setPropertyValue( "Height", new Integer(253) );
- XTreeControlModelSet.setPropertyValue( "DataModel", mXTreeDataModel );
+ XTreeControlModelSet.setPropertyValue( "PositionX", new Integer(3 ));
+ XTreeControlModelSet.setPropertyValue( "PositionY", new Integer(3 ));
+ XTreeControlModelSet.setPropertyValue( "Width", new Integer(253));
+ XTreeControlModelSet.setPropertyValue( "Height", new Integer(253) );
+ XTreeControlModelSet.setPropertyValue( "DataModel", mXTreeDataModel );
XTreeControlModelSet.setPropertyValue( "ShowsRootHandles",new Boolean (false));
- XTreeControlModelSet.setPropertyValue( "ShowsHandles", new Boolean (false));
- XTreeControlModelSet.setPropertyValue( "RootDisplayed", new Boolean (true));
- XTreeControlModelSet.setPropertyValue( "Editable", new Boolean (true ));
-
+ XTreeControlModelSet.setPropertyValue( "ShowsHandles", new Boolean (false));
+ XTreeControlModelSet.setPropertyValue( "RootDisplayed", new Boolean (true));
+ XTreeControlModelSet.setPropertyValue( "Editable", new Boolean (true ));
+
XNameContainer xDialogModelContainer = (XNameContainer)
UnoRuntime.queryInterface(XNameContainer.class, xDialogModel);
-
+
xDialogModelContainer.insertByName( sTreeControlName, xTreeControlModel);
-
+
XControl xDialogControl = (XControl)
UnoRuntime.queryInterface(XControl.class,
mxMSF.createInstance("com.sun.star.awt.UnoControlDialog"));
-
+
xDialogControl.setModel( xDialogModel );
-
- XToolkit xToolkit = (XToolkit) UnoRuntime.queryInterface(XToolkit.class,
+
+ XToolkit xToolkit = (XToolkit) UnoRuntime.queryInterface(XToolkit.class,
mxMSF.createInstance("com.sun.star.awt.Toolkit" ));
-
+
xDialogControl.createPeer( xToolkit, null );
-
+
// get the peers of the sub controls from the dialog peer container
XControlContainer xDialogContainer = (XControlContainer)
UnoRuntime.queryInterface(XControlContainer.class ,xDialogControl);
-
+
XTreeControl xTreeControl = (XTreeControl)
UnoRuntime.queryInterface(XTreeControl.class, xDialogContainer.getControl( sTreeControlName ));
-
+
xTreeControl.expandNode(xNode);
oObj = xTreeControl;
XDialog xDialog = (XDialog) UnoRuntime.queryInterface(XDialog.class, xDialogControl);
-
+
execurteDialog aDialog = new execurteDialog(xDialog);
-
+
aDialog.start();
-
-// xDialog.execute();
-
+
+// xDialog.execute();
+
} catch (com.sun.star.uno.Exception ex) {
ex.printStackTrace();
}
TestEnvironment tEnv = new TestEnvironment(oObj);
-
+
tEnv.addObjRelation("XTreeControl_Node", xNode);
//com.sun.star.view.XSelectionSupplier
try {
-
+
System.out.println("count of children: " + xNode.getChildCount());
tEnv.addObjRelation("Selections", new Object[]{xNode.getChildAt(0), xNode});
} catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
log.println("ERROR: could not add object relation 'Selections' because 'xNode.getChildAt(1) failed: " +
ex.toString());
}
-
- tEnv.addObjRelation("Comparer",
+
+ tEnv.addObjRelation("Comparer",
new Comparator() {
public int compare(Object o1, Object o2) {
XMutableTreeNode xNode1 = (XMutableTreeNode) UnoRuntime.queryInterface(
@@ -207,10 +207,10 @@ public class UnoTreeControl extends TestCase {
} catch (com.sun.star.lang.IllegalArgumentException ex) {
ex.printStackTrace();
}
-
+
XMutableTreeNode xNode2 = (XMutableTreeNode) UnoRuntime.queryInterface(
XMutableTreeNode.class, xNode2a);
-
+
if (((String) xNode1.getDataValue()).equals((String)xNode2.getDataValue())) {
return 0;
}
@@ -219,12 +219,12 @@ public class UnoTreeControl extends TestCase {
}
});
System.out.println("ImplementationName: " + utils.getImplName(oObj));
-
+
return tEnv;
} // finish method getTestEnvironment
-
+
private void fillNode( XMutableTreeNode xNode ){
-
+
if( xNode.getChildCount() == 0 )
{
String sParentPath = (String) xNode.getDataValue();
@@ -238,14 +238,14 @@ public class UnoTreeControl extends TestCase {
}
XSimpleFileAccess sA = (XSimpleFileAccess)
UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc);
-
+
dirlist(officeUserPath, xNode);
}
}
-
+
private void dirlist(String dir, XMutableTreeNode xNode){
-
+
Object fileacc = null;
try {
fileacc = mxMSF.createInstance("com.sun.star.comp.ucb.SimpleFileAccess");
@@ -279,21 +279,21 @@ public class UnoTreeControl extends TestCase {
} catch (com.sun.star.uno.Exception ex) {
ex.printStackTrace();
}
-
+
try {
xNode.appendChild( xChildNode );
} catch (com.sun.star.lang.IllegalArgumentException ex) {
ex.printStackTrace();
}
}
-
+
private class execurteDialog extends Thread{
private XDialog mXDialog;
-
+
public execurteDialog(XDialog xDialog){
mXDialog = xDialog;
}
-
+
public void run() {
mXDialog.endExecute();
}
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.java
index f8da7cd2082d..5f6fecef11b6 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoTreeModel.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
@@ -42,7 +42,7 @@ import util.utils;
public class UnoTreeModel extends TestCase {
private static XTextDocument xTextDoc;
-
+
/**
* Creates StarOffice Writer document.
*/
@@ -51,34 +51,34 @@ public class UnoTreeModel extends TestCase {
xTextDoc = WriterTools.createTextDoc(
(XMultiServiceFactory) tParam.getMSF());
}
-
+
/**
* Disposes StarOffice Writer document.
*/
protected void cleanup(TestParameters tParam, PrintWriter log) {
log.println(" disposing xTextDoc ");
-
+
util.DesktopTools.closeDoc(xTextDoc);
}
-
+
protected synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
-
+
try {
oObj = (XInterface) ((XMultiServiceFactory) Param.getMSF()).createInstance(
"com.sun.star.awt.tree.TreeControlModel");
} catch (Exception e) {
}
-
+
log.println(
"creating a new environment for TreeControlModel object");
-
+
TestEnvironment tEnv = new TestEnvironment(oObj);
-
+
tEnv.addObjRelation("OBJNAME", "com.sun.star.awt.tree.TreeControlModel");
System.out.println("ImplementationName: " + utils.getImplName(oObj));
-
+
return tEnv;
} // finish method getTestEnvironment
} // finish class UnoControlListBoxModel