summaryrefslogtreecommitdiff
path: root/testautomation/tools/hid
diff options
context:
space:
mode:
Diffstat (limited to 'testautomation/tools/hid')
-rwxr-xr-xtestautomation/tools/hid/cons.txt83
-rwxr-xr-xtestautomation/tools/hid/hid.bat2
-rwxr-xr-xtestautomation/tools/hid/hid.pl92
-rwxr-xr-xtestautomation/tools/hid/hid.sh2
4 files changed, 179 insertions, 0 deletions
diff --git a/testautomation/tools/hid/cons.txt b/testautomation/tools/hid/cons.txt
new file mode 100755
index 000000000000..ad1b62d7671f
--- /dev/null
+++ b/testautomation/tools/hid/cons.txt
@@ -0,0 +1,83 @@
+644j_HID_Eigen 01010100101010101010101010
+
+TB_SW_TEXT_TOOLBOX 23265
+TB_SW_TABLE_TOOLBOX 23266
+TB_SW_GRAFIK_TOOLBOX 23268
+TB_SW_DRAW_TEXTBOX_TOOLBOX 23269
+TB_SW_DRAW_TEXT_TOOLBOX 23270
+TB_SW_NUM_TOOLBOX 23271
+TB_SW_OLE_TOOLBOX 23272
+TB_SW_TOOLS_TOOLBOX 23273
+TB_SW_PREVIEW_TOOLBOX 20631
+HDE_OL_SW_FORMAT_GRAFIK 23267
+HDE_HID_LAB_LAB 54920
+HDE_PDF_EXPORT_DLG 33375
+TB_WEB_TOOLS_TOOLBOX 20402
+TB_WEB_TOOLBOX 20403
+
+TB_SC_TEXT_TOOLBOX 25001
+TB_SC_DRAW_Text_TOOLBOX 25005
+TB_SC_PREVIEW_TOOLBOX 25006
+TB_SC_TOOLS_TOOLBOX 25035
+TB_SC_OLE_TOOLBOX 26436
+
+TB_IM_TOOLS_TOOLBOX 23011
+TB_IM_DIA_TOOLBOX 23012
+TB_IM_TOOLBOX 23030
+TB_IM_SLIDE_OBJ_TOOLBOX 23014
+TB_SD_BEZIER_TOOLBOX 23015
+TB_IM_TEXT_TOOLBOX 23016
+TB_IM_OUTLINIG_TOOLBOX 23017
+TB_SD_GLUEPOINTS_TOOLBOX 23019
+TB_IM_OPTIONS_TOOLBOX 23020
+TB_IM_COMMONTASK_TOOLBOX 23021
+TB_SD_TOOLS_TOOLBOX 23025
+TB_SD_OPTION_TOOLBOX 23026
+TB_SD_TOOLBOX 23027
+TB_SD_TEXT_TOOLBOX 23028
+
+TB_Fullscreen_Toolbox 558
+
+TB_Basic_Controls 63543
+
+HDE_PRN_UNX_PAPER 602472448
+HDE_PRN_UNX_PAPERSIZE 602476034
+HDE_PRN_UNX_ORIENTATION 602476036
+HDE_PRN_UNX_DUPLEX 602476038
+HDE_PRN_UNX_INPUT_SLOT 602476040
+HDE_PRN_UNX_SCALE 602479114
+HDE_PRN_UNX_DEVICE 602456064
+HDE_PRN_UNX_OPTION 602459652
+HDE_PRN_UNX_VALUE 602459654
+HDE_PRN_UNX_POSTSCRIPT 602465288
+HDE_PRN_UNX_COLOR 602459658
+HDE_PRN_UNX_COLORDEPTH 602465292
+HDE_PRN_UNX_COMPRESS 602457101
+
+SID_VERB_OPEN 6103
+SID_VERB_START 6102
+
+TB_Macro 14850
+TB_Macro_Controls 14916
+TZ_Filter_Warning 34195
+
+MSC_Super_ID 123456
+MSC_Super_ID2 1234567
+MSC_Super_ID3 12345678
+
+sfx2:ListBox:TP_CONFIG_ACCEL:BOX_ACC_KEY 575016462
+
+HID_OPTIONS_JAVA_LIST 39997
+
+PDF1TBO 867876864
+PDF2TBO 867860480
+
+FontWork1TBO 40026
+FontWork2TBO 40027
+
+Eval1TBO 64360
+Eval2TBO 64361
+HTMLTBO 808846359
+
+
+
diff --git a/testautomation/tools/hid/hid.bat b/testautomation/tools/hid/hid.bat
new file mode 100755
index 000000000000..b454bb366012
--- /dev/null
+++ b/testautomation/tools/hid/hid.bat
@@ -0,0 +1,2 @@
+perl.exe hid.pl hid.lst hid.txt cons.txt
+
diff --git a/testautomation/tools/hid/hid.pl b/testautomation/tools/hid/hid.pl
new file mode 100755
index 000000000000..3a36b02cb31e
--- /dev/null
+++ b/testautomation/tools/hid/hid.pl
@@ -0,0 +1,92 @@
+#**************************************************************************
+# 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
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#******************************************************************
+#*
+#* Owner : thorsten.bosbach@oracle.com
+#*
+#* short description : Generate a cleaned hid.lst
+#*
+#******************************************************************
+#
+# syntax : hid.pl Input Output ConstantEntries
+# usually: hid.pl hid.lst hid.txt const.txt
+#
+
+for (@ARGV){print $_."\n";}
+open (HID,"<".@ARGV[0]) || die "Can't find old HID-file (first argument)";
+@ary=( <HID> );
+close HID;
+open (HID,">".@ARGV[1]) || die "Can't find new HID-file (second argument)";
+
+@longnum = @longname = ();
+
+for (@ary) {
+ s/MN_VIEW 21//g; # remove slots that are wrong
+ s/MN_INSERT 24//g;
+ s/MN_SUB_TOOLBAR 92//g;
+ s/SID_OBJECT_MIRROR 27085//g;
+ s/UID_SQLERROR_BUTTONMORE 38844//g;
+ s/MN_EXTRA 22//g; # -------------------------------------------
+ s/RID_UNDO_DELETE_WARNING 20558//g;
+ s/.* 01010101010//g;
+ s/ +/ /g; # remove double blanks
+ @x = split(/\s+/) ; # seperate Longnames and HIDs
+# @x[0]=~ tr/a-z/A-Z/;
+# @x[1]=~ tr/a-z/A-Z/;
+ $longname[++$#longname] = @x[0];
+ $longnum[++$#longnum] = @x[1];
+ $_=@x[0]." ".@x[1]."\n";
+}
+
+@ary = @ary[ sort{ # sort
+ @longnum[$a] <=> @longnum[$b] ||
+ @longname[$a] cmp @longname[$b]
+ }0..$#ary
+ ];
+
+# @ary = grep( !/^ *$/, @ary);
+
+#remove double entries
+
+$n="";
+for (@ary) {
+ if ($n eq $_ || $_>0 ){
+ $_="";
+ }
+ else{
+ $n=$_;
+ }
+ }
+
+@ary = grep( !/^ *$/, @ary);
+
+# to insert the constant entries at the beginning, read it and write it out
+open (CON,"<".@ARGV[2]) || die "Can't find constant entries-file: const.txt (third argument)";
+@const=( <CON> );
+close CON;
+print HID @const;
+
+print HID @ary;
+close HID;
diff --git a/testautomation/tools/hid/hid.sh b/testautomation/tools/hid/hid.sh
new file mode 100755
index 000000000000..f7c6d27a5f98
--- /dev/null
+++ b/testautomation/tools/hid/hid.sh
@@ -0,0 +1,2 @@
+ perl hid.pl hid.lst hid.txt cons.txt
+ cp hid.txt ../../global/hid/hid.lst