Kaydet (Commit) d3f60c05 authored tarafından Marcos Paulo de Souza's avatar Marcos Paulo de Souza Kaydeden (comit) Noel Power

fdo#51304: Remove @author and more commented code

More tags removed and with it, more commented code was found. So remove it all.
Not functional changes here, just a cleanup.

Change-Id: Id4a6b3126ca32f3460dec3056b9caa370d0ee69c
Signed-off-by: 's avatarMarcos Paulo de Souza <marcos.souza.org@gmail.com>
üst c7374511
...@@ -41,10 +41,6 @@ import net.adaptivebox.knowledge.Library; ...@@ -41,10 +41,6 @@ import net.adaptivebox.knowledge.Library;
import net.adaptivebox.knowledge.SearchPoint; import net.adaptivebox.knowledge.SearchPoint;
import net.adaptivebox.problem.ProblemEncoder; import net.adaptivebox.problem.ProblemEncoder;
/**
*
* @author Andreas Schneider <Andreas.Schneider@Sun.COM>
*/
public abstract class BaseEvolutionarySolver extends BaseNLPSolver { public abstract class BaseEvolutionarySolver extends BaseNLPSolver {
public BaseEvolutionarySolver(XComponentContext xContext, String name) { public BaseEvolutionarySolver(XComponentContext xContext, String name) {
...@@ -126,7 +122,6 @@ public abstract class BaseEvolutionarySolver extends BaseNLPSolver { ...@@ -126,7 +122,6 @@ public abstract class BaseEvolutionarySolver extends BaseNLPSolver {
for (int i = 0; i < m_variables.size(); i++) { for (int i = 0; i < m_variables.size(); i++) {
CellMap variableMap = m_variables.get(i).CellMap; CellMap variableMap = m_variables.get(i).CellMap;
m_variableData[variableMap.Range][variableMap.Row][variableMap.Col] = VX[i]; m_variableData[variableMap.Range][variableMap.Row][variableMap.Col] = VX[i];
//m_variableCells[i].setValue(VX[i]);
} }
for (int i = 0; i < m_cellRangeCount; i++) for (int i = 0; i < m_cellRangeCount; i++)
m_cellRangeData[i].setData(m_variableData[i]); m_cellRangeData[i].setData(m_variableData[i]);
......
...@@ -62,10 +62,6 @@ import java.util.HashMap; ...@@ -62,10 +62,6 @@ import java.util.HashMap;
import java.util.logging.Level; import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
/**
*
* @author Andreas Schneider <Andreas.Schneider@Sun.COM>
*/
public abstract class BaseNLPSolver extends WeakBase public abstract class BaseNLPSolver extends WeakBase
implements com.sun.star.lang.XLocalizable, implements com.sun.star.lang.XLocalizable,
com.sun.star.sheet.XSolver, com.sun.star.sheet.XSolver,
......
...@@ -31,10 +31,6 @@ import com.sun.star.beans.Property; ...@@ -31,10 +31,6 @@ import com.sun.star.beans.Property;
import com.sun.star.lang.IllegalArgumentException; import com.sun.star.lang.IllegalArgumentException;
import com.sun.star.uno.Type; import com.sun.star.uno.Type;
/**
*
* @author Andreas Schneider
*/
public class PropertyInfo<PropType> { public class PropertyInfo<PropType> {
private Property m_property; private Property m_property;
......
...@@ -53,7 +53,6 @@ import java.util.logging.Logger; ...@@ -53,7 +53,6 @@ import java.util.logging.Logger;
/** /**
* The BaseDialog represents the base for all dialogs used within the addon. * The BaseDialog represents the base for all dialogs used within the addon.
* It automatically loads the necessary interfaces to access OpenOffice.org dialogs. * It automatically loads the necessary interfaces to access OpenOffice.org dialogs.
* @author Andreas Schneider
*/ */
public abstract class BaseDialog extends BaseControl { public abstract class BaseDialog extends BaseControl {
...@@ -163,4 +162,4 @@ public abstract class BaseDialog extends BaseControl { ...@@ -163,4 +162,4 @@ public abstract class BaseDialog extends BaseControl {
InvalidateStyle.UPDATE | InvalidateStyle.TRANSPARENT)); InvalidateStyle.UPDATE | InvalidateStyle.TRANSPARENT));
} }
} }
\ No newline at end of file
...@@ -27,10 +27,6 @@ ...@@ -27,10 +27,6 @@
package com.sun.star.comp.Calc.NLPSolver.dialogs; package com.sun.star.comp.Calc.NLPSolver.dialogs;
/**
*
* @author Andreas Schneider <andreas.schneider@sun.com>
*/
public class DummyEvolutionarySolverStatusDialog public class DummyEvolutionarySolverStatusDialog
implements IEvolutionarySolverStatusDialog { implements IEvolutionarySolverStatusDialog {
......
...@@ -40,10 +40,6 @@ import com.sun.star.comp.Calc.NLPSolver.dialogs.controls.Button; ...@@ -40,10 +40,6 @@ import com.sun.star.comp.Calc.NLPSolver.dialogs.controls.Button;
import com.sun.star.comp.Calc.NLPSolver.dialogs.controls.Label; import com.sun.star.comp.Calc.NLPSolver.dialogs.controls.Label;
import com.sun.star.comp.Calc.NLPSolver.dialogs.controls.ProgressBar; import com.sun.star.comp.Calc.NLPSolver.dialogs.controls.ProgressBar;
/**
*
* @author Andreas Schneider <Andreas.Schneider@Sun.COM>
*/
public class EvolutionarySolverStatusUno extends BaseDialog public class EvolutionarySolverStatusUno extends BaseDialog
implements IEvolutionarySolverStatusDialog, implements IEvolutionarySolverStatusDialog,
XActionListener { XActionListener {
......
...@@ -27,10 +27,6 @@ ...@@ -27,10 +27,6 @@
package com.sun.star.comp.Calc.NLPSolver.dialogs; package com.sun.star.comp.Calc.NLPSolver.dialogs;
/**
*
* @author Andreas Schneider <Andreas.Schneider@Sun.COM>
*/
public interface IEvolutionarySolverStatusDialog { public interface IEvolutionarySolverStatusDialog {
public final static int WAITING = 0; public final static int WAITING = 0;
public final static int OK = 1; public final static int OK = 1;
......
...@@ -32,7 +32,6 @@ package com.sun.star.comp.Calc.NLPSolver.dialogs; ...@@ -32,7 +32,6 @@ package com.sun.star.comp.Calc.NLPSolver.dialogs;
* "Exit" indicates no significant change (for example when the user presses * "Exit" indicates no significant change (for example when the user presses
* Cancel or simply closes the dialog). "OK" indicates for example, that the * Cancel or simply closes the dialog). "OK" indicates for example, that the
* user pressed the OK button. * user pressed the OK button.
* @author Andreas Schneider
*/ */
public enum ModalState { public enum ModalState {
Exit, Exit,
......
...@@ -41,10 +41,6 @@ import com.sun.star.uno.XComponentContext; ...@@ -41,10 +41,6 @@ import com.sun.star.uno.XComponentContext;
import java.util.logging.Level; import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
/**
*
* @author Andreas Schneider
*/
public abstract class BaseControl { public abstract class BaseControl {
protected XComponentContext context; protected XComponentContext context;
......
...@@ -35,10 +35,6 @@ import java.util.logging.Level; ...@@ -35,10 +35,6 @@ import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
import com.sun.star.comp.Calc.NLPSolver.dialogs.BaseDialog; import com.sun.star.comp.Calc.NLPSolver.dialogs.BaseDialog;
/**
*
* @author Andreas Schneider
*/
public class Button extends LabeledControl { public class Button extends LabeledControl {
private String name; private String name;
......
...@@ -35,10 +35,6 @@ import java.util.logging.Level; ...@@ -35,10 +35,6 @@ import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
import com.sun.star.comp.Calc.NLPSolver.dialogs.BaseDialog; import com.sun.star.comp.Calc.NLPSolver.dialogs.BaseDialog;
/**
*
* @author Andreas Schneider
*/
public class Label extends LabeledControl { public class Label extends LabeledControl {
private String name; private String name;
......
...@@ -29,10 +29,6 @@ package com.sun.star.comp.Calc.NLPSolver.dialogs.controls; ...@@ -29,10 +29,6 @@ package com.sun.star.comp.Calc.NLPSolver.dialogs.controls;
import com.sun.star.uno.XComponentContext; import com.sun.star.uno.XComponentContext;
/**
*
* @author Andreas Schneider
*/
public abstract class LabeledControl extends BaseControl { public abstract class LabeledControl extends BaseControl {
public LabeledControl(XComponentContext context) { public LabeledControl(XComponentContext context) {
......
...@@ -33,10 +33,6 @@ import java.util.logging.Level; ...@@ -33,10 +33,6 @@ import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
import com.sun.star.comp.Calc.NLPSolver.dialogs.BaseDialog; import com.sun.star.comp.Calc.NLPSolver.dialogs.BaseDialog;
/**
*
* @author Andreas Schneider <Andreas.Schneider@Sun.COM>
*/
public class ProgressBar extends BaseControl { public class ProgressBar extends BaseControl {
private String m_name; private String m_name;
......
...@@ -27,10 +27,6 @@ ...@@ -27,10 +27,6 @@
package com.sun.star.comp.Calc.NLPSolver.dialogs.controls; package com.sun.star.comp.Calc.NLPSolver.dialogs.controls;
/**
*
* @author Andreas Schneider
*/
public enum TextAlign { public enum TextAlign {
Left(0), Left(0),
Center(1), Center(1),
......
...@@ -17,16 +17,13 @@ ...@@ -17,16 +17,13 @@
*/ */
/** /**
* @author: ll93751
* @copyright: Sun Microsystems Inc. 2010 * @copyright: Sun Microsystems Inc. 2010
*/ */
package complex.junitskeleton; package complex.junitskeleton;
public class justatest /* extends *//* implements */ { public class justatest {
//public static void main( String[] argv ) {
//
// }
public void justatest() public void justatest()
{ {
System.out.println("justatest CTor."); System.out.println("justatest CTor.");
......
...@@ -22,9 +22,6 @@ import java.lang.reflect.InvocationTargetException; ...@@ -22,9 +22,6 @@ import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method; import java.lang.reflect.Method;
/** /**
*
* @author ll93751
*
* I have removed the assure(...) functions from ComplexTestCase due to the fact now I can * I have removed the assure(...) functions from ComplexTestCase due to the fact now I can
* use the functions every where and don't need to be a ComplexTestCase any longer. * use the functions every where and don't need to be a ComplexTestCase any longer.
*/ */
...@@ -398,16 +395,6 @@ public class Assurance ...@@ -398,16 +395,6 @@ public class Assurance
assure(msg, false, cont); assure(msg, false, cont);
} }
// /**
// * @deprecated
// */
// protected void addResult(String message, boolean state) {
// String msg = message + " - " + state;
// this.state &= state;
// this.message += msg + "\r\n";
// log.println(msg);
// }
public class AssureException extends RuntimeException { public class AssureException extends RuntimeException {
public AssureException(String msg) { public AssureException(String msg) {
......
...@@ -20,10 +20,6 @@ package complexlib; ...@@ -20,10 +20,6 @@ package complexlib;
import java.util.ArrayList; import java.util.ArrayList;
/**
*
* @author fs93730
*/
public class ShowTargets public class ShowTargets
{ {
/** Creates a new instance of ShowTargets */ /** Creates a new instance of ShowTargets */
......
...@@ -24,8 +24,6 @@ import java.util.ArrayList; ...@@ -24,8 +24,6 @@ import java.util.ArrayList;
/** /**
* Helper for directory access * Helper for directory access
*
* @author Lars.Langhans@sun.com
*/ */
public class DirectoryHelper public class DirectoryHelper
{ {
...@@ -118,7 +116,6 @@ public class DirectoryHelper ...@@ -118,7 +116,6 @@ public class DirectoryHelper
try try
{ {
// Composing the URL by replacing all backslashs // Composing the URL by replacing all backslashs
// String stringUrl = "file:///" + aFileEntries[ i ].getAbsolutePath().replace( '\\', '/' );
String aStr = aDirEntries[ i ].getAbsolutePath(); String aStr = aDirEntries[ i ].getAbsolutePath();
m_aFileList.add(aStr); m_aFileList.add(aStr);
} }
...@@ -130,18 +127,5 @@ public class DirectoryHelper ...@@ -130,18 +127,5 @@ public class DirectoryHelper
} }
} }
} }
// tests
// public static void main(String[] args)
// {
// String sDirectory = "/misc/convwatch/gfxcmp/data/doc-pool/demo";
// Object[] aDirectoryList = DirectoryHelper.traverse( sDirectory, false );
//
// for (int i=0;i<aDirectoryList.length;i++)
// {
// String sEntry = (String)aDirectoryList[i];
// System.out.println(sEntry);
// }
// }
} }
...@@ -24,8 +24,6 @@ import java.util.ArrayList; ...@@ -24,8 +24,6 @@ import java.util.ArrayList;
/** /**
* Helper for directory access * Helper for directory access
*
* @author lla@openoffice.org
*/ */
public class DirectoryHelper public class DirectoryHelper
{ {
...@@ -122,7 +120,6 @@ public class DirectoryHelper ...@@ -122,7 +120,6 @@ public class DirectoryHelper
try try
{ {
// Composing the URL by replacing all backslashs // Composing the URL by replacing all backslashs
// String stringUrl = "file:///" + aFileEntries[ i ].getAbsolutePath().replace( '\\', '/' );
String aStr = aDirEntries[ i ].getAbsolutePath(); String aStr = aDirEntries[ i ].getAbsolutePath();
m_aFileList.add(aStr); m_aFileList.add(aStr);
} }
...@@ -134,18 +131,5 @@ public class DirectoryHelper ...@@ -134,18 +131,5 @@ public class DirectoryHelper
} }
} }
} }
// tests
// public static void main(String[] args)
// {
// String sDirectory = "/misc/convwatch/gfxcmp/data/doc-pool/demo";
// Object[] aDirectoryList = DirectoryHelper.traverse( sDirectory, false );
//
// for (int i=0;i<aDirectoryList.length;i++)
// {
// String sEntry = (String)aDirectoryList[i];
// System.out.println(sEntry);
// }
// }
} }
...@@ -23,17 +23,12 @@ import java.io.File; ...@@ -23,17 +23,12 @@ import java.io.File;
import java.io.FileFilter; import java.io.FileFilter;
import java.util.ArrayList; import java.util.ArrayList;
/**
*
* @author ll93751
*/
abstract public class EnhancedComplexTestCase extends ComplexTestCase implements IDocument abstract public class EnhancedComplexTestCase extends ComplexTestCase implements IDocument
{ {
private void callEntry(String _sEntry, ParameterHelper _aParam) private void callEntry(String _sEntry, ParameterHelper _aParam)
{ {
// log.println("- next file is: ------------------------------");
log.println(" File: " + _sEntry); log.println(" File: " + _sEntry);
// TODO: check if 'sEntry' is a guilty document. // TODO: check if 'sEntry' is a guilty document.
File aFile = new File(_aParam.getInputPath()); File aFile = new File(_aParam.getInputPath());
...@@ -50,25 +45,14 @@ private void callEntry(String _sEntry, ParameterHelper _aParam) ...@@ -50,25 +45,14 @@ private void callEntry(String _sEntry, ParameterHelper _aParam)
} }
String sNewSubDir = FileHelper.removeFirstDirectorysAndBasenameFrom(_sEntry, sPath); String sNewSubDir = FileHelper.removeFirstDirectorysAndBasenameFrom(_sEntry, sPath);
// String sNewReferencePath = _aParam.getReferencePath();
String sNewOutputPath = _aParam.getOutputPath(); String sNewOutputPath = _aParam.getOutputPath();
// String sNewDiffPath = m_sDiffPath;
// if there exist a subdirectory, add it to all result path // if there exist a subdirectory, add it to all result path
if (sNewSubDir.length() > 0) if (sNewSubDir.length() > 0)
{ {
// if (sNewReferencePath != null)
// {
// sNewReferencePath = FileHelper.appendPath(sNewReferencePath, sNewSubDir);
// }
sNewOutputPath = FileHelper.appendPath(sNewOutputPath, sNewSubDir); sNewOutputPath = FileHelper.appendPath(sNewOutputPath, sNewSubDir);
// if (sNewDiffPath != null)
// {
// sNewDiffPath = FileHelper.appendPath(sNewDiffPath, sNewSubDir);
// }
} }
// log.println("sEntry: " + _sEntry + " " /* + sNewReferencePath + " " */ + sNewOutputPath);
log.println("Outputpath: " + sNewOutputPath); log.println("Outputpath: " + sNewOutputPath);
...@@ -135,11 +119,6 @@ private void callEntry(String _sEntry, ParameterHelper _aParam) ...@@ -135,11 +119,6 @@ private void callEntry(String _sEntry, ParameterHelper _aParam)
// TODO: auslagern in eine function, die ein Interface annimmt. // TODO: auslagern in eine function, die ein Interface annimmt.
String sInputPath = _aParam.getInputPath(); String sInputPath = _aParam.getInputPath();
File aInputPath = new File(sInputPath); File aInputPath = new File(sInputPath);
// if (!aInputPath.exists())
// {
// GlobalLogWriter.println("Error, InputPath or File in InputPath doesn't exists. Please check: '" + sInputPath + "'");
// assure("Error, InputPath or File in InputPath doesn't exists. Please check: '" + sInputPath + "'", false);
// }
if (aInputPath.isDirectory()) if (aInputPath.isDirectory())
{ {
// check a whole directory // check a whole directory
...@@ -328,11 +307,6 @@ private void callEntry(String _sEntry, ParameterHelper _aParam) ...@@ -328,11 +307,6 @@ private void callEntry(String _sEntry, ParameterHelper _aParam)
// TODO: auslagern in eine function, die ein Interface annimmt. // TODO: auslagern in eine function, die ein Interface annimmt.
String sInputPath = _aParam.getInputPath(); String sInputPath = _aParam.getInputPath();
File aInputPath = new File(sInputPath); File aInputPath = new File(sInputPath);
// if (!aInputPath.exists())
// {
// GlobalLogWriter.println("Error, InputPath or File in InputPath doesn't exists. Please check: '" + sInputPath + "'");
// assure("Error, InputPath or File in InputPath doesn't exists. Please check: '" + sInputPath + "'", false);
// }
if (aInputPath.isDirectory()) if (aInputPath.isDirectory())
{ {
// check a whole directory // check a whole directory
...@@ -392,7 +366,6 @@ private void callEntry(String _sEntry, ParameterHelper _aParam) ...@@ -392,7 +366,6 @@ private void callEntry(String _sEntry, ParameterHelper _aParam)
// TODO: unhandled yet. // TODO: unhandled yet.
GlobalLogWriter.println("Warning: caught OfficeException " + e.getMessage()); GlobalLogWriter.println("Warning: caught OfficeException " + e.getMessage());
} }
// callEntry(sInputPath, _aParam);
} }
} }
} }
...@@ -462,7 +435,7 @@ private void callEntry(String _sEntry, ParameterHelper _aParam) ...@@ -462,7 +435,7 @@ private void callEntry(String _sEntry, ParameterHelper _aParam)
String sIndexFile2 = FileHelper.appendPath(sPath, sPSFile + ".ini"); String sIndexFile2 = FileHelper.appendPath(sPath, sPSFile + ".ini");
IniFile aIniFile2 = new IniFile(sIndexFile2); IniFile aIniFile2 = new IniFile(sIndexFile2);
String sStatusRunThrough = aIniFile2.getValue("global", "state"); String sStatusRunThrough = aIniFile2.getValue("global", "state");
String sStatusMessage = ""; // aIniFile2.getValue("global", "info"); String sStatusMessage = "";
aIniFile2.close(); aIniFile2.close();
...@@ -471,34 +444,6 @@ private void callEntry(String _sEntry, ParameterHelper _aParam) ...@@ -471,34 +444,6 @@ private void callEntry(String _sEntry, ParameterHelper _aParam)
} }
aOutputter.close(); aOutputter.close();
// String sHTMLFile = FileHelper.appendPath(sPath, sBasename + ".ps.html");
// try
// {
//
// FileOutputStream out2 = new FileOutputStream(sHTMLFile);
// PrintStream out = new PrintStream(out2);
//
// out.println("<HTML>");
// out.println("<BODY>");
// for (int i=0;i<aList.size();i++)
// {
// // <A href="link">blah</A>
// String sPSFile = (String)aList.get(i);
// out.print("<A href=\"");
// out.print(sPSFile + ".html");
// out.print("\">");
// out.print(sPSFile);
// out.println("</A>");
// out.println("<BR>");
// }
// out.println("</BODY></HTML>");
// out.close();
// out2.close();
// }
// catch (java.io.IOException e)
// {
//
// }
} }
} }
aIniFile.close(); aIniFile.close();
......
...@@ -16,23 +16,11 @@ ...@@ -16,23 +16,11 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package graphical; package graphical;
// import graphical.EnhancedComplexTestCase;
/**
*
* @author ll93751
*/
public class GraphicalComparator extends EnhancedComplexTestCase public class GraphicalComparator extends EnhancedComplexTestCase
{ {
// @Override
public String[] getTestMethodNames() { public String[] getTestMethodNames() {
return new String[]{"check"}; return new String[]{"check"};
} }
...@@ -46,4 +34,3 @@ public class GraphicalComparator extends EnhancedComplexTestCase ...@@ -46,4 +34,3 @@ public class GraphicalComparator extends EnhancedComplexTestCase
} }
} }
...@@ -18,10 +18,6 @@ ...@@ -18,10 +18,6 @@
package graphical; package graphical;
/**
*
* @author ll93751
*/
public interface IDocument public interface IDocument
{ {
/** /**
......
...@@ -18,10 +18,6 @@ ...@@ -18,10 +18,6 @@
package graphical; package graphical;
/**
*
* @author ll93751
*/
public interface IOffice public interface IOffice
{ {
/** /**
......
...@@ -23,13 +23,8 @@ import helper.ProcessHandler; ...@@ -23,13 +23,8 @@ import helper.ProcessHandler;
import helper.StringHelper; import helper.StringHelper;
import java.io.File; import java.io.File;
/**
*
* @author ll93751
*/
public class JPEGCreator extends EnhancedComplexTestCase public class JPEGCreator extends EnhancedComplexTestCase
{ {
// @Override
public String[] getTestMethodNames() public String[] getTestMethodNames()
{ {
return new String[]{"PostscriptOrPDFToJPEG"}; return new String[]{"PostscriptOrPDFToJPEG"};
...@@ -52,11 +47,6 @@ public class JPEGCreator extends EnhancedComplexTestCase ...@@ -52,11 +47,6 @@ public class JPEGCreator extends EnhancedComplexTestCase
{ {
GlobalLogWriter.println(" Document: " + _sDocumentName); GlobalLogWriter.println(" Document: " + _sDocumentName);
GlobalLogWriter.println(" results: " + _sResult); GlobalLogWriter.println(" results: " + _sResult);
// IOffice aOffice = new Office(_aParams, _sResult);
// aOffice.start();
// aOffice.load(_sDocumentName);
// aOffice.storeAsPostscript();
// aOffice.close();
String sJPEGNameSchema = createJPEG(_sDocumentName, "", _aParams); String sJPEGNameSchema = createJPEG(_sDocumentName, "", _aParams);
// store information only if jpeg files exists // store information only if jpeg files exists
...@@ -140,10 +130,6 @@ public static void convertToNearSameFileWithWidth340(String _sJPEGFilename) ...@@ -140,10 +130,6 @@ public static void convertToNearSameFileWithWidth340(String _sJPEGFilename)
return; return;
} }
String sJPEGFilename = _sJPEGFilename.replaceAll("\\\\", "/"); String sJPEGFilename = _sJPEGFilename.replaceAll("\\\\", "/");
// if (OSHelper.isWindows())
// {
// sJPEGFilename = sJPEGFilename.replaceAll("/", "\\\\");
// }
String sNewJPEGFilename; String sNewJPEGFilename;
sNewJPEGFilename = util.utils.replaceAll13(sJPEGFilename, ".jpg", "_w340.jpg"); sNewJPEGFilename = util.utils.replaceAll13(sJPEGFilename, ".jpg", "_w340.jpg");
convertToWidth340(sJPEGFilename, sNewJPEGFilename); convertToWidth340(sJPEGFilename, sNewJPEGFilename);
...@@ -164,8 +150,6 @@ Catrom am besten ...@@ -164,8 +150,6 @@ Catrom am besten
*/ */
private static void convertToWidth340(String _sFrom, String _To) private static void convertToWidth340(String _sFrom, String _To)
{ {
// int nResult = 0;
String sConvertEXE = "convert"; String sConvertEXE = "convert";
if (OSHelper.isLinuxIntel()) if (OSHelper.isLinuxIntel())
{ {
...@@ -201,23 +185,6 @@ private static void convertToWidth340(String _sFrom, String _To) ...@@ -201,23 +185,6 @@ private static void convertToWidth340(String _sFrom, String _To)
{ {
GlobalLogWriter.println("'" + sBack + "'"); GlobalLogWriter.println("'" + sBack + "'");
} }
// try to interpret the result, which we get as a String
// try
// {
// int nIdx = sBack.indexOf("\n");
// if (nIdx > 0)
// {
// sBack = sBack.substring(0, nIdx);
// }
//
// nResult = Integer.valueOf(sBack).intValue();
// }
// catch(java.lang.NumberFormatException e)
// {
// GlobalLogWriter.get().println("Number format exception");
// nResult = 0;
// }
// return nResult;
} }
/** /**
...@@ -249,7 +216,6 @@ private static void convertToWidth340(String _sFrom, String _To) ...@@ -249,7 +216,6 @@ private static void convertToWidth340(String _sFrom, String _To)
} }
String sFileDir = FileHelper.getPath(_sFile); String sFileDir = FileHelper.getPath(_sFile);
String sBasename = FileHelper.getBasename(_sFile); String sBasename = FileHelper.getBasename(_sFile);
// String sNameNoSuffix = FileHelper.getNameNoSuffix(sBasename);
String sTmpDir = util.utils.getUsersTempDir(); String sTmpDir = util.utils.getUsersTempDir();
if (_aParam.getOutputPath() != null) if (_aParam.getOutputPath() != null)
...@@ -282,7 +248,6 @@ private static void convertToWidth340(String _sFrom, String _To) ...@@ -282,7 +248,6 @@ private static void convertToWidth340(String _sFrom, String _To)
private String getJPEGName(String _sOutputPath, String _sBasename, int _nResolutionInDPI, String _sGS_PageOutput) private String getJPEGName(String _sOutputPath, String _sBasename, int _nResolutionInDPI, String _sGS_PageOutput)
{ {
// String fs = System.getProperty("file.separator");
String sName = _sBasename + "_" + String.valueOf(_nResolutionInDPI) + "DPI_" + _sGS_PageOutput + ".jpg"; String sName = _sBasename + "_" + String.valueOf(_nResolutionInDPI) + "DPI_" + _sGS_PageOutput + ".jpg";
String sJPEGName = FileHelper.appendPath(_sOutputPath, sName); String sJPEGName = FileHelper.appendPath(_sOutputPath, sName);
return sJPEGName; return sJPEGName;
...@@ -303,9 +268,6 @@ private static void convertToWidth340(String _sFrom, String _To) ...@@ -303,9 +268,6 @@ private static void convertToWidth340(String _sFrom, String _To)
{ {
FileHelper.makeDirectories("", _sOutputPath); FileHelper.makeDirectories("", _sOutputPath);
// create a jpeg from original prn
// String fs = System.getProperty("file.separator");
String sJPEGNameSchema = getJPEGName(_sOutputPath, _sSourceFile, _nResolutionInDPI, m_sGS_PageOutput); String sJPEGNameSchema = getJPEGName(_sOutputPath, _sSourceFile, _nResolutionInDPI, m_sGS_PageOutput);
String sPostscriptOrPDFFile = FileHelper.appendPath(_sSourcePath, _sSourceFile); String sPostscriptOrPDFFile = FileHelper.appendPath(_sSourcePath, _sSourceFile);
String sGhostscriptEXE = "gs"; String sGhostscriptEXE = "gs";
...@@ -324,7 +286,6 @@ private static void convertToWidth340(String _sFrom, String _To) ...@@ -324,7 +286,6 @@ private static void convertToWidth340(String _sFrom, String _To)
} }
} }
// String sCommand = sGhostscriptEXE + " -dNOPROMPT -dBATCH -sDEVICE=jpeg -r" + String.valueOf(_nResolutionInDPI) + " -dNOPAUSE -sOutputFile=" + StringHelper.doubleQuoteIfNeed(sJPGFilename) + " " + StringHelper.doubleQuoteIfNeed(sOriginalFile);
String[] sCommandArray = String[] sCommandArray =
{ {
sGhostscriptEXE, sGhostscriptEXE,
...@@ -339,23 +300,13 @@ private static void convertToWidth340(String _sFrom, String _To) ...@@ -339,23 +300,13 @@ private static void convertToWidth340(String _sFrom, String _To)
}; };
// System.out.println("Start Command array");
// try
// {
// Runtime.getRuntime().exec(sCommandArray);
// } catch (Exception e) {
// System.out.println("FAILED");
// }
// System.out.println("done");
// TODO: gives ghostscript an error we can handle? // TODO: gives ghostscript an error we can handle?
ProcessHandler aHandler = new ProcessHandler(sCommandArray); ProcessHandler aHandler = new ProcessHandler(sCommandArray);
boolean bBackValue = aHandler.executeSynchronously(); boolean bBackValue = aHandler.executeSynchronously();
assure("There seems to be a problem with ghostscript", bBackValue, true); assure("There seems to be a problem with ghostscript", bBackValue, true);
int nExitCode = aHandler.getExitCode(); int nExitCode = aHandler.getExitCode();
// ArrayList m_aFileList = new ArrayList();
// String sJPEGNameSchema = "";
if (nExitCode == 0) if (nExitCode == 0)
{ {
// TODO: return a real filename, due to the fact we don't know how much files are created, maybe better to return a list // TODO: return a real filename, due to the fact we don't know how much files are created, maybe better to return a list
...@@ -372,8 +323,7 @@ private static void convertToWidth340(String _sFrom, String _To) ...@@ -372,8 +323,7 @@ private static void convertToWidth340(String _sFrom, String _To)
assure("There seems to be a problem with ghostscript and '" + sPostscriptOrPDFFile + "' exit code: " + nExitCode, false, true); assure("There seems to be a problem with ghostscript and '" + sPostscriptOrPDFFile + "' exit code: " + nExitCode, false, true);
GlobalLogWriter.println("Warning: There seems to be a problem with '" + sGhostscriptEXE + "'..."); GlobalLogWriter.println("Warning: There seems to be a problem with '" + sGhostscriptEXE + "'...");
} }
// String[] aList = new String[m_aFileList.size()];
// aList = (String[])m_aFileList.toArray(aList);
return sJPEGNameSchema; // sNewJPEGFilename; return sJPEGNameSchema; // sNewJPEGFilename;
} }
...@@ -405,7 +355,6 @@ private static void convertToWidth340(String _sFrom, String _To) ...@@ -405,7 +355,6 @@ private static void convertToWidth340(String _sFrom, String _To)
String sNewJPEGFilename = getFilenameForJPEGSchema(_sJPEGSchema, i); String sNewJPEGFilename = getFilenameForJPEGSchema(_sJPEGSchema, i);
if (FileHelper.exists(sNewJPEGFilename)) if (FileHelper.exists(sNewJPEGFilename))
{ {
// m_aFileList.add(sNewJPEGFilename); // as long as the files exist, fill the array
nPages ++; nPages ++;
} }
else else
...@@ -416,47 +365,4 @@ private static void convertToWidth340(String _sFrom, String _To) ...@@ -416,47 +365,4 @@ private static void convertToWidth340(String _sFrom, String _To)
} }
return nPages; return nPages;
} }
// public static void main(String [] _args)
// {
//// DONE: give an index.ini file ok
//// String args[] = {
//// "-TimeOut", "3600000",
//// "-tb", "java_complex",
//// "-o", "graphical.JPEGCreator",
//// "-DOC_COMPARATOR_INPUT_PATH", "C:\\CWS\\temp\\output\\index.ini",
//// "-DOC_COMPARATOR_OUTPUT_PATH", "C:\\CWS\\temp\\output",
//// "-DOC_COMPARATOR_PRINT_MAX_PAGE", "9999",
//// "-DOC_COMPARATOR_GFX_OUTPUT_DPI_RESOLUTION", "180",
//// "-DOC_COMPARATOR_HTML_OUTPUT_PREFIX", "http://so-gfxcmp-lin.germany.sun.com/gfxcmp_ui/cw.php?inifile=",
////// "-DOC_COMPARATOR_REFERENCE_CREATOR_TYPE", "PDF", /* default: "OOo" */
////// "-DOC_COMPARATOR_REFERENCE_CREATOR_TYPE", "msoffice", /* default: "OOo" */
////// "-OFFICE_VIEWABLE", "false",
//// "-AppExecutionCommand", "\"C:/Programme/sun/staroffice 9/program/soffice.exe\" --norestore --nocrashreport --accept=pipe,name=ll93751;urp;",
//// "-NoOffice"
//// };
//
//// Done: give a directory, where exist pdf/ps files ok.
//// Done: inputpath (given file) doesn't exists, ok.
//// Done: give a ps/pdf file. ok.
//
// String args[] = {
// "-TimeOut", "3600000",
// "-tb", "java_complex",
// "-o", "graphical.JPEGCreator",
// "-DOC_COMPARATOR_INPUT_PATH", "C:\\CWS\\temp\\output\\Names7.odt.pdf",
// "-DOC_COMPARATOR_OUTPUT_PATH", "C:\\CWS\\temp\\output",
// "-DOC_COMPARATOR_PRINT_MAX_PAGE", "9999",
// "-DOC_COMPARATOR_GFX_OUTPUT_DPI_RESOLUTION", "180",
// "-DOC_COMPARATOR_HTML_OUTPUT_PREFIX", "http://so-gfxcmp-lin.germany.sun.com/gfxcmp_ui/cw.php?inifile=",
//// "-DOC_COMPARATOR_REFERENCE_CREATOR_TYPE", "PDF", /* default: "OOo" */
//// "-DOC_COMPARATOR_REFERENCE_CREATOR_TYPE", "msoffice", /* default: "OOo" */
//// "-OFFICE_VIEWABLE", "false",
// "-AppExecutionCommand", "\"C:/Programme/sun/staroffice 9/program/soffice.exe\" --norestore --nocrashreport --accept=pipe,name=ll93751;urp;",
// "-NoOffice"
// };
//
// org.openoffice.Runner.main(args);
// }
} }
...@@ -18,15 +18,8 @@ ...@@ -18,15 +18,8 @@
package graphical; package graphical;
// import java.io.File;
/**
*
* @author ll93751
*/
public class JPEGEvaluator extends EnhancedComplexTestCase public class JPEGEvaluator extends EnhancedComplexTestCase
{ {
// @Override
public String[] getTestMethodNames() public String[] getTestMethodNames()
{ {
return new String[]{"EvaluateResult"}; return new String[]{"EvaluateResult"};
...@@ -40,47 +33,14 @@ public class JPEGEvaluator extends EnhancedComplexTestCase ...@@ -40,47 +33,14 @@ public class JPEGEvaluator extends EnhancedComplexTestCase
GlobalLogWriter.set(log); GlobalLogWriter.set(log);
ParameterHelper aParam = new ParameterHelper(param); ParameterHelper aParam = new ParameterHelper(param);
// aParam.getTestParameters().put("current_ok_status", -1);
// run through all documents found in Inputpath // run through all documents found in Inputpath
foreachResultCreateHTML(aParam); foreachResultCreateHTML(aParam);
} }
public void checkOneFile(String _sDocument, String _sResult, ParameterHelper _aParams) throws OfficeException public void checkOneFile(String _sDocument, String _sResult, ParameterHelper _aParams) throws OfficeException
{ {
// throw new UnsupportedOperationException("Not supported yet.");
// int dummy = 0;
String sBasename = FileHelper.getBasename(_sDocument); String sBasename = FileHelper.getBasename(_sDocument);
String sResultIniFile = _sDocument + ".ini"; String sResultIniFile = _sDocument + ".ini";
// File aFile = new File(sResultIniFile);
// assure("Result file doesn't exists " + sResultIniFile, aFile.exists());
//
// int good = 0;
// int bad = 0;
// int ugly = 0;
//
// IniFile aResultIniFile = new IniFile(sResultIniFile);
// int nPages = aResultIniFile.getIntValue("global", "pages", 0);
// for (int i=0;i<nPages;i++)
// {
// String sCurrentPage = "page" + String.valueOf(i + 1);
// int nPercent = aResultIniFile.getIntValue(sCurrentPage, "percent", -1);
// if (nPercent == 0)
// {
// good++;
// }
// else if (nPercent <= 5)
// {
// bad ++;
// }
// else
// {
// ugly ++;
// }
// }
//
// assure("Error: document doesn't contains pages", nPages > 0);
HTMLResult aOutputter = new HTMLResult(_sResult, sBasename + ".html" ); HTMLResult aOutputter = new HTMLResult(_sResult, sBasename + ".html" );
aOutputter.header(_sResult); aOutputter.header(_sResult);
...@@ -90,65 +50,9 @@ public class JPEGEvaluator extends EnhancedComplexTestCase ...@@ -90,65 +50,9 @@ public class JPEGEvaluator extends EnhancedComplexTestCase
String sStatusRunThrough = aResultIniFile.getValue("global", "state"); String sStatusRunThrough = aResultIniFile.getValue("global", "state");
String sStatusMessage = aResultIniFile.getValue("global", "info"); String sStatusMessage = aResultIniFile.getValue("global", "info");
// // TODO: this information has to come out of the ini files
// String sStatusRunThrough = "PASSED, ";
// String sPassed = "OK";
//
// String sStatusMessage = "From " + nPages + " page(s) are: ";
// String sGood = "";
// String sBad = "";
// String sUgly = "";
//
// if (good > 0)
// {
// sGood = " good:=" + good;
// sStatusMessage += sGood;
// }
// if (bad > 0)
// {
// sBad = " bad:=" + bad;
// sStatusMessage += sBad;
// }
// if (ugly > 0)
// {
// sUgly = " ugly:=" + ugly;
// sStatusMessage += sUgly;
// }
//
// // Failure matrix
// // 0 1
// // ugly OK FAILED
// // bad OK
// // good OK
//
// if (ugly > 0)
// {
// sPassed = "FAILED";
// }
// else
// {
// if (bad > 0)
// {
// sPassed = "NEED A LOOK";
// }
// else
// {
// sPassed = "OK";
// }
// }
// sStatusRunThrough += sPassed;
// aResultIniFile.insertValue("global", "state", sStatusRunThrough);
// aResultIniFile.insertValue("global", "info", sStatusMessage);
// aResultIniFile.close();
String sHTMLFile = _aParams.getHTMLPrefix(); // "http://so-gfxcmp-lin/gfxcmp_ui/cw.php?inifile="; String sHTMLFile = _aParams.getHTMLPrefix(); // "http://so-gfxcmp-lin/gfxcmp_ui/cw.php?inifile=";
sHTMLFile += _sDocument + ".ini"; sHTMLFile += _sDocument + ".ini";
aOutputter.indexLine(sHTMLFile, sBasename, sStatusRunThrough, sStatusMessage); aOutputter.indexLine(sHTMLFile, sBasename, sStatusRunThrough, sStatusMessage);
aOutputter.close(); aOutputter.close();
// IniFile aIniFile = new IniFile(_sDocument);
// aIniFile.
} }
} }
...@@ -20,10 +20,6 @@ package graphical; ...@@ -20,10 +20,6 @@ package graphical;
import java.util.ArrayList; import java.util.ArrayList;
/**
*
* @author ll93751
*/
public class Office implements IOffice public class Office implements IOffice
{ {
private ParameterHelper m_aParameterHelper; private ParameterHelper m_aParameterHelper;
...@@ -101,7 +97,6 @@ public class Office implements IOffice ...@@ -101,7 +97,6 @@ public class Office implements IOffice
// foreach Report found in the .odb file, create an entry 'report'<number> in the original <name>.odb Section // foreach Report found in the .odb file, create an entry 'report'<number> in the original <name>.odb Section
// so it is possible to run through all reports by the given .odb name // so it is possible to run through all reports by the given .odb name
IniFile aIniFile = new IniFile(sIniFile); IniFile aIniFile = new IniFile(sIniFile);
// String sSection = FileHelper.getBasename(_sDocumentName); // name of the odb file
int nFileCount = aIniFile.getIntValue(sSection, "reportcount", 0); int nFileCount = aIniFile.getIntValue(sSection, "reportcount", 0);
String sValue = FileHelper.getBasename(sDocumentName); // name of the corresponding report String sValue = FileHelper.getBasename(sDocumentName); // name of the corresponding report
aIniFile.insertValue(sSection, "report" + nFileCount, sValue); aIniFile.insertValue(sSection, "report" + nFileCount, sValue);
...@@ -133,8 +128,6 @@ public class Office implements IOffice ...@@ -133,8 +128,6 @@ public class Office implements IOffice
{ {
m_aOffice.storeAsPostscript(); m_aOffice.storeAsPostscript();
} }
// FileHelper.addBasenameToIndex(sOutputFilename);
} }
} }
...@@ -154,7 +147,4 @@ public class Office implements IOffice ...@@ -154,7 +147,4 @@ public class Office implements IOffice
} }
} }
} }
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
package graphical; package graphical;
/** /**
*
* @author ll93751
* Exception which occur if something goes wrong at load document. * Exception which occur if something goes wrong at load document.
*/ */
...@@ -30,5 +28,4 @@ public class OfficeException extends Exception ...@@ -30,5 +28,4 @@ public class OfficeException extends Exception
{ {
super(_aMessage); super(_aMessage);
} }
} }
...@@ -18,15 +18,9 @@ ...@@ -18,15 +18,9 @@
package graphical; package graphical;
/**
*
* @author ll93751
*/
public class PostscriptCreator extends EnhancedComplexTestCase public class PostscriptCreator extends EnhancedComplexTestCase
{ {
// @Override
public String[] getTestMethodNames() public String[] getTestMethodNames()
{ {
return new String[]{"DocumentToPostscript"}; return new String[]{"DocumentToPostscript"};
...@@ -55,14 +49,10 @@ public class PostscriptCreator extends EnhancedComplexTestCase ...@@ -55,14 +49,10 @@ public class PostscriptCreator extends EnhancedComplexTestCase
PerformanceContainer a = new PerformanceContainer(); PerformanceContainer a = new PerformanceContainer();
a.startTime(PerformanceContainer.AllTime); a.startTime(PerformanceContainer.AllTime);
// _aParams.getTestParameters().put(util.PropertyName.DEBUG_IS_ACTIVE, Boolean.TRUE);
a.startTime(PerformanceContainer.OfficeStart); a.startTime(PerformanceContainer.OfficeStart);
aOffice.start(); aOffice.start();
a.stopTime(PerformanceContainer.OfficeStart); a.stopTime(PerformanceContainer.OfficeStart);
// _aParams.getTestParameters().put(util.PropertyName.DEBUG_IS_ACTIVE, Boolean.FALSE);
// This force an error! _sDocumentName = helper.StringHelper.doubleQuote(_sDocumentName);
try try
{ {
a.startTime(PerformanceContainer.Load); a.startTime(PerformanceContainer.Load);
...@@ -84,44 +74,4 @@ public class PostscriptCreator extends EnhancedComplexTestCase ...@@ -84,44 +74,4 @@ public class PostscriptCreator extends EnhancedComplexTestCase
a.print( System.out ); a.print( System.out );
} }
} }
// public static void main(String [] _args)
// {
// String args[] = {
// "-TimeOut", "3600000",
// "-tb", "java_complex",
// "-o", "graphical.PostscriptCreator",
//// "-DOC_COMPARATOR_INPUT_PATH", "D:\\temp\\input",
//// "-DOC_COMPARATOR_OUTPUT_PATH", "D:\\temp\\output",
//// "-DOC_COMPARATOR_REFERENCE_PATH", "D:\\temp\\output\\ref",
//// "-DOC_COMPARATOR_PRINT_MAX_PAGE", "9999",
//// "-DOC_COMPARATOR_GFX_OUTPUT_DPI_RESOLUTION", "180",
//// "-DOC_COMPARATOR_HTML_OUTPUT_PREFIX", "http://so-gfxcmp-lin.germany.sun.com/gfxcmp_ui/cw.php?inifile=",
////// "-DOC_COMPARATOR_REFERENCE_CREATOR_TYPE", "PDF", /* default: "OOo" */
////// "-DOC_COMPARATOR_REFERENCE_CREATOR_TYPE", "msoffice", /* default: "OOo" */
////// "-OFFICE_VIEWABLE", "false",
//// "-AppExecutionCommand", "\"C:/home/ll93751/staroffice9_DEV300_m25/Sun/StarOffice 9/program/soffice.exe\" --norestore --nocrashreport --accept=pipe,name=ll93751;urp;",
////// "-NoOffice"
// "-DOC_COMPARATOR_PRINT_MAX_PAGE","9999",
// "-DOC_COMPARATOR_GFX_OUTPUT_DPI_RESOLUTION","180",
// "-DOC_COMPARATOR_HTML_OUTPUT_PREFIX","http://so-gfxcmp.germany.sun.com/gfxcmp_ui/cw.php?inifile=",
// "-DOC_COMPARATOR_REFERENCE_CREATOR_TYPE","OOo",
// "-DOC_COMPARATOR_DB_INFO_STRING","p:DEV300_m18,c:,d:LLA_test,src:DEV300_m18,dest:,doc:LLA_test,id:34715,distinct:2008-06-27_13-39-09_d6f22d4c-958d-10",
// "-DISTINCT","2008-06-27_13-39-09_d6f22d4c-958d-10",
// "-TEMPPATH","//so-gfxcmp-lin/gfxcmp-data/wntmsci/temp/2008-06-27_13-39-09_d6f22d4c-958d-10/34715",
//// "ConnectionString","socket,host=localhost,port=8101",
// "-OFFICE_VIEWABLE","true",
// "-wntmsci.DOC_COMPARATOR_INPUT_PATH","\\\\so-gfxcmp-lin\\doc-pool\\LLA_test\\issue_79214.odb",
// "-wntmsci.DOC_COMPARATOR_OUTPUT_PATH","\\\\so-gfxcmp-lin\\gfxcmp-data\\wntmsci\\convwatch-output\\LLA_test\\DEV300_m11",
// "-wntmsci.AppExecutionCommand","\"C:\\gfxcmp\\programs\\staroffice8_DEV300_m11\\Sun\\StarOffice 9\\program\\soffice.exe\" --norestore --nocrashreport --accept=pipe,name=ll93751;urp;",
// "-wntmsci.AppKillCommand","\"C:\\bin\\pskill.exe soffice.bin;C:\\bin\\pskill.exe winword;C:\\bin\\pskill.exe excel\"",
//
// };
//
// org.openoffice.Runner.main(args);
// }
} }
...@@ -18,20 +18,12 @@ ...@@ -18,20 +18,12 @@
package graphical; package graphical;
/**
*
* @author ll93751
*/
public interface PropertyName public interface PropertyName
{ {
final public static String DOC_COMPARATOR_INPUT_PATH = "DOC_COMPARATOR_INPUT_PATH"; final public static String DOC_COMPARATOR_INPUT_PATH = "DOC_COMPARATOR_INPUT_PATH";
final public static String DOC_COMPARATOR_OUTPUT_PATH = "DOC_COMPARATOR_OUTPUT_PATH"; final public static String DOC_COMPARATOR_OUTPUT_PATH = "DOC_COMPARATOR_OUTPUT_PATH";
// final public static String DOC_COMPARATOR_DIFF_PATH = "DOC_COMPARATOR_DIFF_PATH";
// final public static String DOC_COMPARATOR_REFERENCE_PATH = "DOC_COMPARATOR_REFERENCE_PATH";
// final public static String DOC_COMPARATOR_REFERENCE_INPUT_PATH = "DOC_COMPARATOR_REFERENCE_INPUT_PATH";
final public static String DOC_COMPARATOR_REFERENCE_TYPE = "DOC_COMPARATOR_REFERENCE_CREATOR_TYPE"; final public static String DOC_COMPARATOR_REFERENCE_TYPE = "DOC_COMPARATOR_REFERENCE_CREATOR_TYPE";
final public static String DOC_COMPARATOR_PRINTER_NAME = "DOC_COMPARATOR_PRINTER_NAME"; final public static String DOC_COMPARATOR_PRINTER_NAME = "DOC_COMPARATOR_PRINTER_NAME";
// final public static String DOC_COMPARATOR_DEFAULT_XML_FORMAT_APP = "DOC_COMPARATOR_DEFAULT_XML_FORMAT_APP";
final public static String DOC_COMPARATOR_INCLUDE_SUBDIRS = "DOC_COMPARATOR_INCLUDE_SUBDIRS"; final public static String DOC_COMPARATOR_INCLUDE_SUBDIRS = "DOC_COMPARATOR_INCLUDE_SUBDIRS";
final public static String DOC_COMPARATOR_PRINT_MAX_PAGE = "DOC_COMPARATOR_PRINT_MAX_PAGE"; final public static String DOC_COMPARATOR_PRINT_MAX_PAGE = "DOC_COMPARATOR_PRINT_MAX_PAGE";
final public static String DOC_COMPARATOR_PRINT_ONLY_PAGE = "DOC_COMPARATOR_PRINT_ONLY_PAGE"; final public static String DOC_COMPARATOR_PRINT_ONLY_PAGE = "DOC_COMPARATOR_PRINT_ONLY_PAGE";
...@@ -39,24 +31,16 @@ public interface PropertyName ...@@ -39,24 +31,16 @@ public interface PropertyName
final public static String DOC_COMPARATOR_OVERWRITE_REFERENCE = "DOC_COMPARATOR_OVERWRITE_REFERENCE"; final public static String DOC_COMPARATOR_OVERWRITE_REFERENCE = "DOC_COMPARATOR_OVERWRITE_REFERENCE";
final public static String DOC_COMPARATOR_HTML_OUTPUT_PREFIX = "DOC_COMPARATOR_HTML_OUTPUT_PREFIX"; final public static String DOC_COMPARATOR_HTML_OUTPUT_PREFIX = "DOC_COMPARATOR_HTML_OUTPUT_PREFIX";
// final public static String DOC_COMPARATOR_GFXCMP_WITH_BORDERMOVE = "DOC_COMPARATOR_GFXCMP_WITH_BORDERMOVE";
final public static String DOC_CONVERTER_IMPORT_FILTER_NAME = "DOC_CONVERTER_IMPORT_FILTER_NAME"; final public static String DOC_CONVERTER_IMPORT_FILTER_NAME = "DOC_CONVERTER_IMPORT_FILTER_NAME";
final public static String DOC_CONVERTER_EXPORT_FILTER_NAME = "DOC_CONVERTER_EXPORT_FILTER_NAME"; final public static String DOC_CONVERTER_EXPORT_FILTER_NAME = "DOC_CONVERTER_EXPORT_FILTER_NAME";
final public static String DOC_CONVERTER_OFFICE_PROGRAM = "DOC_CONVERTER_OFFICE_PROGRAM"; final public static String DOC_CONVERTER_OFFICE_PROGRAM = "DOC_CONVERTER_OFFICE_PROGRAM";
// final public static String DOC_CONVERTER_REUSE_OFFICE = "DOC_CONVERTER_REUSE_OFFICE";
final public static String DOC_COMPARATOR_LEAVE_OUT_FILES = "DOC_COMPARATOR_LEAVE_OUT_FILES"; final public static String DOC_COMPARATOR_LEAVE_OUT_FILES = "DOC_COMPARATOR_LEAVE_OUT_FILES";
final public static String DOC_COMPARATOR_DB_INFO_STRING = "DOC_COMPARATOR_DB_INFO_STRING"; final public static String DOC_COMPARATOR_DB_INFO_STRING = "DOC_COMPARATOR_DB_INFO_STRING";
// final public static String TEMPPATH = "TEMPPATH";
// set this variable to "true" or "yes" and loadComponentFromURL works with property Hidden=false
final public static String OFFICE_VIEWABLE = "OFFICE_VIEWABLE"; final public static String OFFICE_VIEWABLE = "OFFICE_VIEWABLE";
// final public static String DB_CONNECTION_STRING = "DB_CONNECTION_STRING";
// final public static String CHECK_NEED_TOOLS = "CHECK_NEED_TOOLS";
// final public static String CREATE_DEFAULT = "CREATE_DEFAULT_REFERENCE";
final public static String NO_SMALL_PICTURES = "NoSmallPictures"; final public static String NO_SMALL_PICTURES = "NoSmallPictures";
} }
...@@ -20,10 +20,6 @@ package graphical; ...@@ -20,10 +20,6 @@ package graphical;
import java.util.Calendar; import java.util.Calendar;
/**
*
* @author ll93751
*/
public class TimeHelper public class TimeHelper
{ {
/* /*
...@@ -72,5 +68,4 @@ public class TimeHelper ...@@ -72,5 +68,4 @@ public class TimeHelper
{ {
return String.valueOf(m_nRealMilliSeconds); return String.valueOf(m_nRealMilliSeconds);
} }
} }
...@@ -23,10 +23,6 @@ ...@@ -23,10 +23,6 @@
package graphical; package graphical;
/**
*
* @author ll93751
*/
public class Tolerance public class Tolerance
{ {
private int m_nTolerance; private int m_nTolerance;
......
...@@ -18,10 +18,6 @@ ...@@ -18,10 +18,6 @@
package graphical; package graphical;
/**
*
* @author ll93751
*/
public class WrongEnvironmentException extends OfficeException public class WrongEnvironmentException extends OfficeException
{ {
public WrongEnvironmentException(String _aMessage) public WrongEnvironmentException(String _aMessage)
......
...@@ -18,10 +18,6 @@ ...@@ -18,10 +18,6 @@
package graphical; package graphical;
/**
*
* @author ll93751
*/
public class WrongSuffixException extends OfficeException public class WrongSuffixException extends OfficeException
{ {
public WrongSuffixException(String _aMessage) public WrongSuffixException(String _aMessage)
......
...@@ -20,7 +20,6 @@ package helper; ...@@ -20,7 +20,6 @@ package helper;
/** /**
* Helper object, to identify the current Operation System. * Helper object, to identify the current Operation System.
* @author ll93751
*/ */
public class OSHelper public class OSHelper
{ {
...@@ -33,8 +32,6 @@ public class OSHelper ...@@ -33,8 +32,6 @@ public class OSHelper
} }
return false; return false;
} }
// not need
// public static boolean isUnix()
public static boolean isSolarisIntel() public static boolean isSolarisIntel()
{ {
if ( ( System.getProperty("os.name").toLowerCase().startsWith("solaris") || if ( ( System.getProperty("os.name").toLowerCase().startsWith("solaris") ||
......
...@@ -22,10 +22,6 @@ import share.DescEntry; ...@@ -22,10 +22,6 @@ import share.DescEntry;
import java.util.HashMap; import java.util.HashMap;
/**
*
* @author sg128468
*/
public abstract class DataBaseOutProducer implements LogWriter { public abstract class DataBaseOutProducer implements LogWriter {
protected HashMap<String,Object> mSqlInput = null; protected HashMap<String,Object> mSqlInput = null;
protected HashMap<String, String[]> mSqlOutput = null; protected HashMap<String, String[]> mSqlOutput = null;
...@@ -78,14 +74,9 @@ public abstract class DataBaseOutProducer implements LogWriter { ...@@ -78,14 +74,9 @@ public abstract class DataBaseOutProducer implements LogWriter {
return true; return true;
} }
/**
*
*
*/
public boolean summary(DescEntry entry) { public boolean summary(DescEntry entry) {
mSqlExec.openConnection(); mSqlExec.openConnection();
findTypeInEntryTree(entry, entry.Logger); findTypeInEntryTree(entry, entry.Logger);
// checkDataBase(entry.Logger);
mSqlExec.closeConnection(); mSqlExec.closeConnection();
return true; return true;
} }
...@@ -189,10 +180,4 @@ public abstract class DataBaseOutProducer implements LogWriter { ...@@ -189,10 +180,4 @@ public abstract class DataBaseOutProducer implements LogWriter {
* Abstract method, so derived classes have to overwrite it. * Abstract method, so derived classes have to overwrite it.
*/ */
protected abstract boolean insertEntry(LogWriter log); protected abstract boolean insertEntry(LogWriter log);
/**
*
protected abstract boolean checkDataBase(LogWriter log);
*/
} }
...@@ -19,10 +19,7 @@ ...@@ -19,10 +19,7 @@
package stats; package stats;
import share.LogWriter; import share.LogWriter;
/**
*
* @author sw93809
*/
public class SimpleOutProducer implements LogWriter { public class SimpleOutProducer implements LogWriter {
......
...@@ -28,8 +28,6 @@ import com.sun.star.uno.XNamingService; ...@@ -28,8 +28,6 @@ import com.sun.star.uno.XNamingService;
import lib.StatusException; import lib.StatusException;
/** wraps a com.sun.star.sdb.DataSource /** wraps a com.sun.star.sdb.DataSource
*
* @author fs93730
*/ */
public class DataSource public class DataSource
{ {
......
...@@ -22,8 +22,6 @@ import com.sun.star.beans.PropertyValue; ...@@ -22,8 +22,6 @@ import com.sun.star.beans.PropertyValue;
import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.lang.XMultiServiceFactory;
/** a descriptor for creating a com.sun.star.sdb.DataSource /** a descriptor for creating a com.sun.star.sdb.DataSource
*
* @author fs93730
*/ */
public class DataSourceDescriptor public class DataSourceDescriptor
{ {
......
...@@ -34,11 +34,6 @@ import com.sun.star.uno.UnoRuntime; ...@@ -34,11 +34,6 @@ import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
import com.sun.star.util.XTimeStamped; import com.sun.star.util.XTimeStamped;
/**
*
* @author sw93809
*/
public class JavaSystemBackend implements XSingleLayerStratum, XTypeProvider, public class JavaSystemBackend implements XSingleLayerStratum, XTypeProvider,
XServiceInfo, XTimeStamped, XComponent { XServiceInfo, XTimeStamped, XComponent {
public final static String __serviceName = "com.sun.star.configuration.backend.PlatformBackend"; public final static String __serviceName = "com.sun.star.configuration.backend.PlatformBackend";
...@@ -246,4 +241,4 @@ public class JavaSystemBackend implements XSingleLayerStratum, XTypeProvider, ...@@ -246,4 +241,4 @@ public class JavaSystemBackend implements XSingleLayerStratum, XTypeProvider,
return "2004-03-31"; return "2004-03-31";
} }
} }
} }
\ No newline at end of file
...@@ -26,11 +26,6 @@ import lib.MultiMethodTest; ...@@ -26,11 +26,6 @@ import lib.MultiMethodTest;
import util.XLayerHandlerImpl; import util.XLayerHandlerImpl;
import util.XLayerImpl; import util.XLayerImpl;
/**
*
* @author sw93809
*/
public class _XUpdateHandler extends MultiMethodTest { public class _XUpdateHandler extends MultiMethodTest {
public XUpdateHandler oObj; public XUpdateHandler oObj;
protected XLayerHandlerImpl xLayerHandler = null; protected XLayerHandlerImpl xLayerHandler = null;
......
...@@ -26,10 +26,6 @@ import com.sun.star.sheet.XDataPilotFieldGrouping; ...@@ -26,10 +26,6 @@ import com.sun.star.sheet.XDataPilotFieldGrouping;
import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.UnoRuntime;
import lib.MultiMethodTest; import lib.MultiMethodTest;
/**
*
* @author sw93809
*/
public class _XDataPilotFieldGrouping extends MultiMethodTest public class _XDataPilotFieldGrouping extends MultiMethodTest
{ {
public XDataPilotFieldGrouping oObj = null; public XDataPilotFieldGrouping oObj = null;
......
...@@ -29,10 +29,6 @@ import com.sun.star.table.CellRangeAddress; ...@@ -29,10 +29,6 @@ import com.sun.star.table.CellRangeAddress;
import com.sun.star.table.XCell; import com.sun.star.table.XCell;
import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.UnoRuntime;
/**
*
* @author sw93809
*/
public class _XFormulaQuery extends MultiMethodTest { public class _XFormulaQuery extends MultiMethodTest {
public XFormulaQuery oObj; public XFormulaQuery oObj;
......
...@@ -23,11 +23,6 @@ import com.sun.star.uno.UnoRuntime; ...@@ -23,11 +23,6 @@ import com.sun.star.uno.UnoRuntime;
import lib.MultiMethodTest; import lib.MultiMethodTest;
/**
*
* @author sw93809
*/
public class _XScenarioEnhanced extends MultiMethodTest { public class _XScenarioEnhanced extends MultiMethodTest {
public XScenarioEnhanced oObj = null; public XScenarioEnhanced oObj = null;
...@@ -81,4 +76,4 @@ public class _XScenarioEnhanced extends MultiMethodTest { ...@@ -81,4 +76,4 @@ public class _XScenarioEnhanced extends MultiMethodTest {
tRes.tested("getRanges()", res); tRes.tested("getRanges()", res);
} }
} }
\ No newline at end of file
...@@ -26,10 +26,6 @@ import lib.TestEnvironment; ...@@ -26,10 +26,6 @@ import lib.TestEnvironment;
import lib.TestParameters; import lib.TestParameters;
import util.utils; import util.utils;
/**
*
* @author sg128468
*/
public class UICommandDescription extends TestCase { public class UICommandDescription extends TestCase {
XInterface oObj = null; XInterface oObj = null;
......
...@@ -47,12 +47,6 @@ import com.sun.star.util.URL; ...@@ -47,12 +47,6 @@ import com.sun.star.util.URL;
import com.sun.star.util.XURLTransformer; import com.sun.star.util.XURLTransformer;
import com.sun.star.view.XSelectionSupplier; import com.sun.star.view.XSelectionSupplier;
/**
*
* @author sw93809
* @version
*/
public class SvxGraphCtrlAccessibleContext extends TestCase{ public class SvxGraphCtrlAccessibleContext extends TestCase{
static XComponent xDrawDoc = null; static XComponent xDrawDoc = null;
...@@ -137,7 +131,6 @@ public class SvxGraphCtrlAccessibleContext extends TestCase{ ...@@ -137,7 +131,6 @@ public class SvxGraphCtrlAccessibleContext extends TestCase{
XExtendedToolkit tk = UnoRuntime.queryInterface(XExtendedToolkit.class,oObj); XExtendedToolkit tk = UnoRuntime.queryInterface(XExtendedToolkit.class,oObj);
AccessibilityTools at = new AccessibilityTools(); AccessibilityTools at = new AccessibilityTools();
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,tk.getActiveTopWindow()); XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,tk.getActiveTopWindow());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment