diff options
author | Lars Langhans <lla@openoffice.org> | 2010-02-09 11:01:49 +0100 |
---|---|---|
committer | Lars Langhans <lla@openoffice.org> | 2010-02-09 11:01:49 +0100 |
commit | 3e8044b8783b8b4d9eeb569c391ccb3d4135f749 (patch) | |
tree | 84cc8c7f732c8a46394cc4b70d3bd63daa076f99 /qadevOOo | |
parent | 894b4aeefcb008729720dbfa4f8197126bc7d6cd (diff) |
qadev40: #161118# remove old main functions
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/runner/convwatch/IniFile.java | 28 | ||||
-rw-r--r-- | qadevOOo/runner/convwatch/OfficePrint.java | 10 | ||||
-rw-r--r-- | qadevOOo/runner/convwatch/PerformanceContainer.java | 27 | ||||
-rw-r--r-- | qadevOOo/runner/convwatch/PixelCounter.java | 31 |
4 files changed, 50 insertions, 46 deletions
diff --git a/qadevOOo/runner/convwatch/IniFile.java b/qadevOOo/runner/convwatch/IniFile.java index 83cff8595678..fc28a93c9798 100644 --- a/qadevOOo/runner/convwatch/IniFile.java +++ b/qadevOOo/runner/convwatch/IniFile.java @@ -438,18 +438,18 @@ class IniFile /** * some tests for this class */ - public static void main(String[] args) - { - IniFile aIniFile = new IniFile("/tmp/inifile"); - String sValue = aIniFile.getValue("Section","Key"); - // insert a new value to a already exist section - aIniFile.insertValue("Section","Key2","a new value in a existing section"); - // replace a value - aIniFile.insertValue("Section","Key","replaced value"); - // create a new value - aIniFile.insertValue("New Section", "Key", "a new key value pair"); - - String sValue2 = aIniFile.getValue("Section2","Key"); - aIniFile.store(); - } +// public static void main(String[] args) +// { +// IniFile aIniFile = new IniFile("/tmp/inifile"); +// String sValue = aIniFile.getValue("Section","Key"); +// // insert a new value to a already exist section +// aIniFile.insertValue("Section","Key2","a new value in a existing section"); +// // replace a value +// aIniFile.insertValue("Section","Key","replaced value"); +// // create a new value +// aIniFile.insertValue("New Section", "Key", "a new key value pair"); +// +// String sValue2 = aIniFile.getValue("Section2","Key"); +// aIniFile.store(); +// } } diff --git a/qadevOOo/runner/convwatch/OfficePrint.java b/qadevOOo/runner/convwatch/OfficePrint.java index 7f8e32733246..767fc607039c 100644 --- a/qadevOOo/runner/convwatch/OfficePrint.java +++ b/qadevOOo/runner/convwatch/OfficePrint.java @@ -111,7 +111,8 @@ public class OfficePrint { } catch (com.sun.star.lang.IllegalArgumentException e) { - GlobalLogWriter.get().println("showProperty: can't convert a object to string."); + // GlobalLogWriter.get().println("showProperty: can't convert a object to string."); + GlobalLogWriter.get().println("Property " + sName + ":= a Object which can't convert by AnyConverter()"); } } @@ -630,11 +631,12 @@ public class OfficePrint { { XPropertySet xPropSet = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, aSettings ); xPropSet.setPropertyValue( "PrintAllSheets", new Boolean( true ) ); + GlobalLogWriter.get().println("PrintAllSheets := true"); } } ArrayList aPrintProps = new ArrayList(); - GlobalLogWriter.get().println("Property FileName:=" + _sPrintFileURL); + // GlobalLogWriter.get().println("Property FileName:=" + _sPrintFileURL); // PropertyValue [] aPrintProps = new PropertyValue[nProperties]; PropertyValue Arg = new PropertyValue(); @@ -642,7 +644,7 @@ public class OfficePrint { Arg.Value = _sPrintFileURL; // aPrintProps[nPropsCount ++] = Arg; aPrintProps.add(Arg); - // showProperty(Arg); + showProperty(Arg); if (_aGTA.printAllPages() == false) { @@ -664,8 +666,8 @@ public class OfficePrint { Arg.Name = "Pages"; Arg.Value = sPages; aPrintProps.add(Arg); + showProperty(Arg); } - showProperty(Arg); // GlobalLogWriter.get().println("Start printing."); diff --git a/qadevOOo/runner/convwatch/PerformanceContainer.java b/qadevOOo/runner/convwatch/PerformanceContainer.java index 3846f7c69f10..5a347d92c847 100644 --- a/qadevOOo/runner/convwatch/PerformanceContainer.java +++ b/qadevOOo/runner/convwatch/PerformanceContainer.java @@ -235,18 +235,19 @@ public class PerformanceContainer /* extends *//* implements */ { } } - public static void main(String[] args) { +// public static void main(String[] args) { +// +///* +// BorderRemover a = new BorderRemover(); +// try +// { +// a.createNewImageWithoutBorder(args[0], args[1]); +// } +// catch(java.io.IOException e) +// { +// System.out.println("Exception caught."); +// } +// */ +// } -/* - BorderRemover a = new BorderRemover(); - try - { - a.createNewImageWithoutBorder(args[0], args[1]); - } - catch(java.io.IOException e) - { - System.out.println("Exception caught."); - } - */ - } } diff --git a/qadevOOo/runner/convwatch/PixelCounter.java b/qadevOOo/runner/convwatch/PixelCounter.java index 3e1a5adec731..58b8021d8489 100644 --- a/qadevOOo/runner/convwatch/PixelCounter.java +++ b/qadevOOo/runner/convwatch/PixelCounter.java @@ -187,22 +187,23 @@ public class PixelCounter { // ----------------------------------------------------------------------------- - public static void main(String[] args) { +// public static void main(String[] args) { +// +// String a = helper.StringHelper.createValueString(10, 4); +// int dummy = 1; +///* +// BorderRemover a = new BorderRemover(); +// try +// { +// a.createNewImageWithoutBorder(args[0], args[1]); +// } +// catch(java.io.IOException e) +// { +// System.out.println("Exception caught."); +// } +// */ +// } - String a = helper.StringHelper.createValueString(10, 4); - int dummy = 1; -/* - BorderRemover a = new BorderRemover(); - try - { - a.createNewImageWithoutBorder(args[0], args[1]); - } - catch(java.io.IOException e) - { - System.out.println("Exception caught."); - } - */ - } } |