diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-06-29 09:45:06 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-06-29 09:45:06 +0000 |
commit | 7dc9756921325232a4eb99837bebbdfa4cd2689d (patch) | |
tree | aa8897ea19a81bdeee140299bffdbd5e5733990c /print.ps | |
parent | 6b2bdd3a6ef97b19ac83e816c38da0fd36cf213f (diff) | |
download | wireshark-7dc9756921325232a4eb99837bebbdfa4cd2689d.tar.gz wireshark-7dc9756921325232a4eb99837bebbdfa4cd2689d.tar.bz2 wireshark-7dc9756921325232a4eb99837bebbdfa4cd2689d.zip |
Have "print_line()" take an indentation argument, and do blank
padding when printing text and use "putline" when printing PostScript.
Eliminate "hexdump", as it's just a special case of "putline".
Have "proto_tree_print_node()" just call "print_line()".
Get rid of "print_ps_hex()" - the font used for the hex dump and the
protocol tree are the same, so there's no need to switch fonts.
svn path=/trunk/; revision=5798
Diffstat (limited to 'print.ps')
-rw-r--r-- | print.ps | 48 |
1 files changed, 13 insertions, 35 deletions
@@ -56,23 +56,6 @@ pop pop % junk if % then formfeed and start at top } def -% A putline with no indenting -/hexdump { - lmargin % X - vpos % Y - moveto - show - - /vpos vpos 10 sub def - - vpos bmargin le % is vpos <= bottom margin? - { - printpagenum showpage - /vpos tmargin def - } - if % then formfeed and start at top -} def - % A put line with smaller spacing and no formfeed /titleline { lmargin % X @@ -123,24 +106,19 @@ pop pop % junk 1 (Type: IP \(0x0800\)) putline 0 (Source: 00:c0:4f:c7:eb:c0) putline -% ---- ethereal hex start ---- % -% Set the font to 10 point -/Courier findfont 10 scalefont setfont -% ---- ethereal hex end ---- % - -() hexdump -(0000 cc 00 00 00 00 00 07 02 00 00 00 00 00 00 00 00 ................ ) hexdump -(0010 00 00 bd 0e fe 16 01 00 3e 00 03 08 58 4c 20 38 ........>...XL 8 ) hexdump -(0020 30 20 49 4d 33 00 16 01 00 34 00 16 01 01 35 00 0 IM3....4....5. ) hexdump -(0030 16 01 02 36 00 16 01 03 6e 00 16 01 ff 6f 00 16 ...6....n....o.. ) hexdump -(0040 01 ff 70 00 16 01 ff 71 00 16 01 ff 48 00 01 04 ..p....q....H... ) hexdump -(0050 ff 03 07 00 24 00 01 01 05 25 00 01 01 05 26 00 ....$....%....&. ) hexdump -(0060 01 01 05 27 00 01 01 05 6a 00 01 01 00 6b 00 01 ...'....j....k.. ) hexdump -(0070 01 00 6c 00 01 01 00 6d 00 01 01 00 3d 00 01 02 ..l....m....=... ) hexdump -(0080 02 00 c0 00 03 08 80 00 00 00 00 00 00 00 b4 00 ................ ) hexdump -(0090 01 04 c0 a8 42 ef 39 00 16 08 05 05 05 05 00 00 ....B.9......... ) hexdump -(00a0 00 00 00 03 20 36 41 20 52 69 6e 67 00 00 00 00 .... 6A Ring.... ) hexdump -(00b0 00 00 00 00 00 00 ...... ) hexdump +0 () putline +0 (0000 cc 00 00 00 00 00 07 02 00 00 00 00 00 00 00 00 ................ ) putline +0 (0010 00 00 bd 0e fe 16 01 00 3e 00 03 08 58 4c 20 38 ........>...XL 8 ) putline +0 (0020 30 20 49 4d 33 00 16 01 00 34 00 16 01 01 35 00 0 IM3....4....5. ) putline +0 (0030 16 01 02 36 00 16 01 03 6e 00 16 01 ff 6f 00 16 ...6....n....o.. ) putline +0 (0040 01 ff 70 00 16 01 ff 71 00 16 01 ff 48 00 01 04 ..p....q....H... ) putline +0 (0050 ff 03 07 00 24 00 01 01 05 25 00 01 01 05 26 00 ....$....%....&. ) putline +0 (0060 01 01 05 27 00 01 01 05 6a 00 01 01 00 6b 00 01 ...'....j....k.. ) putline +0 (0070 01 00 6c 00 01 01 00 6d 00 01 01 00 3d 00 01 02 ..l....m....=... ) putline +0 (0080 02 00 c0 00 03 08 80 00 00 00 00 00 00 00 b4 00 ................ ) putline +0 (0090 01 04 c0 a8 42 ef 39 00 16 08 05 05 05 05 00 00 ....B.9......... ) putline +0 (00a0 00 00 00 03 20 36 41 20 52 69 6e 67 00 00 00 00 .... 6A Ring.... ) putline +0 (00b0 00 00 00 00 00 00 ...... ) putline % ---- ethereal finale start ---- % % If this is not the first page, then print the page number |