summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/util
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/runner/util')
-rw-r--r--qadevOOo/runner/util/DesktopTools.java8
-rw-r--r--qadevOOo/runner/util/PropertyName.java3
2 files changed, 10 insertions, 1 deletions
diff --git a/qadevOOo/runner/util/DesktopTools.java b/qadevOOo/runner/util/DesktopTools.java
index 2e34e4de49d3..104bcdc309d3 100644
--- a/qadevOOo/runner/util/DesktopTools.java
+++ b/qadevOOo/runner/util/DesktopTools.java
@@ -245,6 +245,7 @@ public class DesktopTools {
{
throw new IllegalArgumentException("Document could not be loaded");
}
+
bringWindowToFront(oDoc);
return oDoc;
} //finish openNewDoc
@@ -254,6 +255,11 @@ public class DesktopTools {
* @param DocumentToClose the document to close
*/
public static void closeDoc(XInterface DocumentToClose) {
+ if (DocumentToClose == null)
+ {
+ return;
+ }
+
String kd = System.getProperty("KeepDocument");
if (kd != null ) {
System.out.println("The property 'KeepDocument' is set and so the document won't be disposed");
@@ -434,7 +440,7 @@ public class DesktopTools {
}
public static void bringWindowToFront(XComponent xComponent){
- System.out.println("DEBUG: bring to front xCompoent");
+ System.out.println("DEBUG: bring to front xComponent");
XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, xComponent);
if (xModel != null){
bringWindowToFront(xModel);
diff --git a/qadevOOo/runner/util/PropertyName.java b/qadevOOo/runner/util/PropertyName.java
index 3f1b1e44d2c3..c77c07187288 100644
--- a/qadevOOo/runner/util/PropertyName.java
+++ b/qadevOOo/runner/util/PropertyName.java
@@ -46,6 +46,9 @@ public interface PropertyName {
* parameter name: "ConnectionString"
*/
final public static String CONNECTION_STRING = "ConnectionString";
+ final public static String PIPE_CONNECTION_STRING = "PipeConnectionString";
+ final public static String USE_PIPE_CONNECTION = "UsePipeConnection";
+
/**
* parameter name: "TestBase"
*/