summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/convwatch/GraphicalTestArguments.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/runner/convwatch/GraphicalTestArguments.java')
-rw-r--r--qadevOOo/runner/convwatch/GraphicalTestArguments.java74
1 files changed, 37 insertions, 37 deletions
diff --git a/qadevOOo/runner/convwatch/GraphicalTestArguments.java b/qadevOOo/runner/convwatch/GraphicalTestArguments.java
index 72d732d3d8de..04080e3a8d0e 100644
--- a/qadevOOo/runner/convwatch/GraphicalTestArguments.java
+++ b/qadevOOo/runner/convwatch/GraphicalTestArguments.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
@@ -107,7 +107,7 @@ public class GraphicalTestArguments
String m_sDistinct = null;
boolean m_bCreateDefaultReference = false;
-
+
// CONSTRUCTOR
private GraphicalTestArguments(){}
@@ -116,7 +116,7 @@ public class GraphicalTestArguments
m_aCurrentParams = param;
// collect interesting information from the ComplexTestCase
// ....
-
+
// REFERENCE_TYPE ----------
String sReferenceType = (String)param.get( PropertyName.DOC_COMPARATOR_REFERENCE_TYPE );
if (sReferenceType == null || sReferenceType.length() == 0)
@@ -127,7 +127,7 @@ public class GraphicalTestArguments
// log.println("found REFERENCE_TYPE " + sReferenceType );
setReferenceType(sReferenceType);
}
-
+
// PRINTER_NAME ----------
String sPrinterName = (String)param.get( PropertyName.DOC_COMPARATOR_PRINTER_NAME );
if (sPrinterName == null || sPrinterName.length() == 0)
@@ -221,7 +221,7 @@ public class GraphicalTestArguments
{
m_bResuseOffice = false;
}
-
+
String sHTMLOutputPrefix = (String)param.get( PropertyName.DOC_COMPARATOR_HTML_OUTPUT_PREFIX);
if (sHTMLOutputPrefix == null)
@@ -255,19 +255,19 @@ public class GraphicalTestArguments
m_tWithBorderMove = TriState.FALSE;
// m_tWithBorderMove = TriState.UNSET;
}
-
+
String sLeaveOutNames = (String)param.get(PropertyName.DOC_COMPARATOR_LEAVE_OUT_FILES);
if (sLeaveOutNames != null)
{
m_sLeaveOutNames = sLeaveOutNames;
- }
-
+ }
+
String sDBInfoString = (String)param.get(PropertyName.DOC_COMPARATOR_DB_INFO_STRING);
if (sDBInfoString != null)
{
m_sDBInfoString = sDBInfoString;
}
-
+
// DISTINCT ----------
String sDistinct = (String)param.get( "DISTINCT" );
if (sDistinct == null || sDistinct.length() == 0)
@@ -306,7 +306,7 @@ public class GraphicalTestArguments
m_bCreateDefaultReference = false;
}
}
-
+
}
public boolean checkIfUsableDocumentType(String _sName)
@@ -322,18 +322,18 @@ public class GraphicalTestArguments
{
return false;
}
-
+
return true;
}
-
- static void showInternalFilterName(String _sFilterName, XMultiServiceFactory _xMSF)
+
+ static void showInternalFilterName(String _sFilterName, XMultiServiceFactory _xMSF)
{
if (_sFilterName.length() == 0)
{
// System.out.println("No FilterName set.");
return;
}
-
+
if (_xMSF == null)
{
GlobalLogWriter.get().println("MultiServiceFactory not set.");
@@ -355,7 +355,7 @@ public class GraphicalTestArguments
XNameAccess aNameAccess = (XNameAccess)UnoRuntime.queryInterface(XNameAccess.class, aObj);
if (aNameAccess != null)
{
-
+
if (_sFilterName.toLowerCase().equals("help"))
{
GlobalLogWriter.get().println("Show all possible ElementNames from current version." );
@@ -368,7 +368,7 @@ public class GraphicalTestArguments
}
}
}
-
+
/*
public GraphicalTestArguments(TestParameters param, Log xxx)
{
@@ -397,12 +397,12 @@ public class GraphicalTestArguments
public void setDefaultXMLFormatApp(String _sNameOfApp) {m_sDefaultXMLFormatApplication = _sNameOfApp;}
// get methods
- public XMultiServiceFactory getMultiServiceFactory()
+ public XMultiServiceFactory getMultiServiceFactory()
{
XMultiServiceFactory xMSF = (XMultiServiceFactory)m_aCurrentParams.getMSF();
-
+
// check if MultiServiceFactory is given
- if (getReferenceType().toLowerCase().equals("pdf") ||
+ if (getReferenceType().toLowerCase().equals("pdf") ||
getReferenceType().toLowerCase().equals("ooo"))
{
if (xMSF == null)
@@ -454,7 +454,7 @@ public class GraphicalTestArguments
}
return true;
}
-
+
/**
* @return integer value, which contain resolution in DPI.
*/
@@ -474,7 +474,7 @@ public class GraphicalTestArguments
}
}
}
-
+
/**
* @return the INPUT_PATH out of the TestParameters
@@ -528,7 +528,7 @@ public class GraphicalTestArguments
sReferenceInputPath = (String)m_aCurrentParams.get(PropertyName.DOC_COMPARATOR_REFERENCE_INPUT_PATH);
return sReferenceInputPath;
}
-
+
/**
* Helper function to get the buildid of the current used OpenOffice.org
* out of the AppExecutionCommand the build ID
@@ -537,7 +537,7 @@ public class GraphicalTestArguments
{
String sAPP = (String)m_aCurrentParams.get(util.PropertyName.APP_EXECUTION_COMMAND);
// return getBuildID(sAPP);
-// TODO: here we need the getBuildID(string) method
+// TODO: here we need the getBuildID(string) method
String sBuildID = convwatch.BuildID.getBuildID(sAPP);
return sBuildID;
}
@@ -554,7 +554,7 @@ public class GraphicalTestArguments
}
return true;
}
-
+
// Handle for Reference Build ID, is set in ConvWatch.createPostscriptStartCheck()
private String m_sRefBuildID;
@@ -566,7 +566,7 @@ public class GraphicalTestArguments
{
return m_sRefBuildID;
}
-
+
public void disallowStore()
{
m_bStoreFile = false;
@@ -583,7 +583,7 @@ public class GraphicalTestArguments
{
return m_bCreateDefaultReference;
}
-
+
// get/set for FilterName
// get the right Filtername (internal Name) from
@@ -626,13 +626,13 @@ public class GraphicalTestArguments
}
return false;
}
-
+
String m_sHTMLOutputPrefix = "";
public String getHTMLOutputPrefix()
{
return m_sHTMLOutputPrefix;
}
-
+
TriState m_tWithBorderMove = TriState.UNSET;
// public TriState isBorderMove()
// {
@@ -646,7 +646,7 @@ public class GraphicalTestArguments
{
m_tWithBorderMove = _tBorderMove;
}
-
+
String m_sDocumentType = "";
public void setDocumentType(String _sName)
{
@@ -656,7 +656,7 @@ public class GraphicalTestArguments
{
return m_sDocumentType;
}
-
+
/*
helper class for performance analyser features
*/
@@ -669,7 +669,7 @@ public class GraphicalTestArguments
}
return m_aPerformanceContainer;
}
-
+
private String m_aInputFile;
public void setInputFile(String _sInputFile)
{
@@ -690,10 +690,10 @@ public class GraphicalTestArguments
return null;
}
}
-
+
return m_sDBInfoString;
}
-
+
public boolean cancelRequest()
{
File aCancelFile = null;
@@ -703,15 +703,15 @@ public class GraphicalTestArguments
if (sTempPath != null)
{
String sGDC_Dir = sTempPath;
-
+
if (m_sDistinct.length() > 0)
{
sGDC_Dir = sGDC_Dir + fs + m_sDistinct;
}
-
+
String sCancelFile = sGDC_Dir + fs + "cancel_compare.txt";
aCancelFile = new File(sCancelFile);
-
+
if (aCancelFile.exists())
{
GlobalLogWriter.get().println("ATTENTION: Found file: '" + sCancelFile + "'.");
@@ -721,7 +721,7 @@ public class GraphicalTestArguments
}
return false;
}
-
+
}