summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/convwatch/HTMLOutputter.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/runner/convwatch/HTMLOutputter.java')
-rw-r--r--qadevOOo/runner/convwatch/HTMLOutputter.java50
1 files changed, 25 insertions, 25 deletions
diff --git a/qadevOOo/runner/convwatch/HTMLOutputter.java b/qadevOOo/runner/convwatch/HTMLOutputter.java
index 49edb2c25ac0..9801897c648c 100644
--- a/qadevOOo/runner/convwatch/HTMLOutputter.java
+++ b/qadevOOo/runner/convwatch/HTMLOutputter.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
@@ -36,7 +36,7 @@ public class HTMLOutputter
FileWriter m_aOut;
String m_sFilename;
String m_sNamePrefix; // the HTML files used a suffix to build it's right name
-
+
/**
* ls is the current line separator (carridge return)
*/
@@ -67,7 +67,7 @@ public class HTMLOutputter
return a;
}
public String getFilename() {return m_sFilename;}
-
+
public void header(String _sTitle)
{
try
@@ -79,17 +79,17 @@ public class HTMLOutputter
m_aOut.write( "<link rel=\"stylesheet\" type=\"text/css\" href=\"/gfxcmp_ui/style.css\" media=\"screen\" />" + ls);
m_aOut.write( "</head>" + ls);
m_aOut.write( "<body bgcolor=white>" + ls);
- m_aOut.flush();
+ m_aOut.flush();
}
catch (java.io.IOException e)
{
}
}
-
+
final static String TEST_TABLETITLE = "Test";
final static String VISUAL_STATUS_TABLETITLE = "Visual status";
final static String VISUAL_STATUS_MESSAGE_TABLETITLE = "Message";
-
+
public void indexSection(String _sOfficeInfo)
{
try
@@ -151,7 +151,7 @@ public class HTMLOutputter
// sbUNIXPath.append(_sHREF.substring(index + 2));
// String sUNIXPath = sbUNIXPath.toString();
// sUNIXPath = utils.replaceAll13(sUNIXPath, "\\", "/");
- //
+ //
// a.append("<A HREF=\"");
// a.append(sUNIXPath);
// a.append("\">");
@@ -162,7 +162,7 @@ public class HTMLOutputter
// {
// System.out.println("Path is '" + _sHREF + "'");
// }
-
+
}
return a.toString();
}
@@ -175,7 +175,7 @@ public class HTMLOutputter
a.append("</TD>");
return a.toString();
}
-
+
String tableHeaderCell(String _sValue)
{
StringBuffer a = new StringBuffer();
@@ -184,7 +184,7 @@ public class HTMLOutputter
a.append("</TH>");
return a.toString();
}
-
+
public void indexLine(String _sHTMLFile, String _sHTMLName, String _sHTMLFile2, String _sHTMLName2, String _sStatusRunThrough, String _sStatusMessage)
{
try
@@ -199,7 +199,7 @@ public class HTMLOutputter
{
m_aOut.write(tableDataCell( "" ) );
}
-
+
m_aOut.write( tableDataCell(_sStatusRunThrough) );
m_aOut.write( tableDataCell(_sStatusMessage) );
m_aOut.write( "</TR>" + ls);
@@ -210,7 +210,7 @@ public class HTMLOutputter
{
}
}
-
+
public void close()
{
try
@@ -224,7 +224,7 @@ public class HTMLOutputter
{
}
}
-
+
// -----------------------------------------------------------------------------
String stronghtml(String _sValue)
{
@@ -234,7 +234,7 @@ public class HTMLOutputter
a.append("</STRONG>");
return a.toString();
}
-
+
final static String FIRSTGFX_TABLETITLE = "Original print file as jpeg";
final static String SECONDGFX_TABLETITLE = "New print file as jpeg";
final static String DIFFER_TABLETITLE = "Difference file";
@@ -265,7 +265,7 @@ public class HTMLOutputter
m_aOut.write( "<table class=\"infotable\">" + ls);
- m_aOut.write( "<TR>" + ls);
+ m_aOut.write( "<TR>" + ls);
m_aOut.write( tableHeaderCell( FIRSTGFX_TABLETITLE) );
m_aOut.write( tableHeaderCell( SECONDGFX_TABLETITLE ) );
m_aOut.write( tableHeaderCell(DIFFER_TABLETITLE ) );
@@ -283,11 +283,11 @@ public class HTMLOutputter
{
}
}
-
+
public void checkLine(StatusHelper _aStatus, boolean _bCurrentResult)
{
try
- {
+ {
m_aOut.write( "<TR>" + ls);
String sLink = getHREF(FileHelper.getBasename(_aStatus.m_sOldGfx), FileHelper.getBasename(_aStatus.m_sOldGfx));
m_aOut.write( tableDataCell(sLink) );
@@ -297,14 +297,14 @@ public class HTMLOutputter
sLink = getHREF(FileHelper.getBasename(_aStatus.m_sDiffGfx), FileHelper.getBasename(_aStatus.m_sDiffGfx));
m_aOut.write( tableDataCell(sLink) );
-
+
String sPercent = String.valueOf(_aStatus.nPercent) + "%";
if (_aStatus.nPercent > 0 && _aStatus.nPercent < 5)
{
sPercent += " (less 5% is ok)";
}
m_aOut.write(tableDataCell( sPercent ) );
-
+
if (_aStatus.m_sDiff_BM_Gfx == null)
{
sLink = "No diffs, therefore no moves";
@@ -333,7 +333,7 @@ public class HTMLOutputter
{
m_aOut.write(tableDataCell( "NO" ) );
}
-
+
m_aOut.write( "</TR>" + ls);
}
catch (java.io.IOException e)
@@ -353,7 +353,7 @@ public class HTMLOutputter
m_aOut.write( "<table class=\"infotable\">" + ls);
- m_aOut.write( "<TR>" + ls);
+ m_aOut.write( "<TR>" + ls);
m_aOut.write( tableHeaderCell( "Source to actual difference" ) );
m_aOut.write( tableHeaderCell( "Actual difference" ) );
m_aOut.write( tableHeaderCell(DIFFER_TABLETITLE ) );
@@ -368,11 +368,11 @@ public class HTMLOutputter
{
}
}
-
+
public void checkDiffDiffLine(StatusHelper _aStatus, boolean _bCurrentResult)
{
try
- {
+ {
m_aOut.write( "<TR>" + ls);
// the link to the old difference can't offer here
// String sLink = getHREF(FileHelper.getBasename(_aStatus.m_sOldGfx), FileHelper.getBasename(_aStatus.m_sOldGfx));
@@ -380,7 +380,7 @@ public class HTMLOutputter
String sBasename = FileHelper.getBasename(m_sFilename);
String sNew = sBasename.substring(m_sNamePrefix.length());
-
+
String sLink;
sLink = getHREF(sNew, sNew);
m_aOut.write( tableDataCell(sLink) );
@@ -407,7 +407,7 @@ public class HTMLOutputter
{
m_aOut.write(tableDataCell( "NO" ) );
}
-
+
m_aOut.write( "</TR>" + ls);
}
catch (java.io.IOException e)