| 1 |
lars |
1 |
<?php
|
|
|
2 |
// $Header: /cvsroot/html2ps/output._interface.class.php,v 1.8 2007/01/09 20:13:48 Konstantin Exp $
|
|
|
3 |
|
|
|
4 |
class OutputDriver {
|
|
|
5 |
function add_link($x, $y, $w, $h, $target) { }
|
|
|
6 |
function add_local_link($left, $top, $width, $height, $anchor) { }
|
|
|
7 |
function circle($x, $y, $r) { }
|
|
|
8 |
function clip() {}
|
|
|
9 |
function close() { die("Unoverridden 'close' method called in ".get_class($this)); }
|
|
|
10 |
function closepath() {}
|
|
|
11 |
|
|
|
12 |
function content_type() { die("Unoverridden 'content_type' method called in ".get_class($this)); }
|
|
|
13 |
|
|
|
14 |
function dash($x, $y) { }
|
|
|
15 |
function decoration($underline, $overline, $strikeout) { }
|
|
|
16 |
|
|
|
17 |
function error_message() { die("Unoverridden 'error_message' method called in ".get_class($this)); }
|
|
|
18 |
|
|
|
19 |
function new_form($name) {}
|
|
|
20 |
|
|
|
21 |
function field_multiline_text($x, $y, $w, $h, $value, $field_name) { }
|
|
|
22 |
function field_text($x, $y, $w, $h, $value, $field_name) { }
|
|
|
23 |
function field_password($x, $y, $w, $h, $value, $field_name) { }
|
|
|
24 |
|
|
|
25 |
function field_pushbutton($x, $y, $w, $h) { }
|
|
|
26 |
function field_pushbuttonimage($x, $y, $w, $h, $field_name, $value, $actionURL) { }
|
|
|
27 |
function field_pushbuttonreset($x, $y, $w, $h) { }
|
|
|
28 |
function field_pushbuttonsubmit($x, $y, $w, $h, $field_name, $value, $actionURL) { }
|
|
|
29 |
|
|
|
30 |
function field_checkbox($x, $y, $w, $h, $name, $value) { }
|
|
|
31 |
function field_radio($x, $y, $w, $h, $groupname, $value, $checked) { }
|
|
|
32 |
function field_select($x, $y, $w, $h, $name, $value, $options) { }
|
|
|
33 |
|
|
|
34 |
function fill() { }
|
|
|
35 |
function font_ascender($name, $encoding) {}
|
|
|
36 |
|
|
|
37 |
/**
|
|
|
38 |
* Note that positive value returned by this function
|
|
|
39 |
* means offset to the BOTTOM!
|
|
|
40 |
*/
|
|
|
41 |
function font_descender($name, $encoding) {}
|
|
|
42 |
|
|
|
43 |
function get_bottom() {}
|
|
|
44 |
function image($image, $x, $y, $scale) {}
|
|
|
45 |
function image_scaled($image, $x, $y, $scale_x, $scale_y) { }
|
|
|
46 |
function image_ry($image, $x, $y, $height, $bottom, $ox, $oy, $scale) { }
|
|
|
47 |
function image_rx($image, $x, $y, $width, $right, $ox, $oy, $scale) { }
|
|
|
48 |
function image_rx_ry($image, $x, $y, $width, $height, $right, $bottom, $ox, $oy, $scale) { }
|
|
|
49 |
function lineto($x, $y) { }
|
|
|
50 |
function moveto($x, $y) { }
|
|
|
51 |
function next_page($height) { }
|
|
|
52 |
function release() { }
|
|
|
53 |
function restore() { }
|
|
|
54 |
function save() { }
|
|
|
55 |
|
|
|
56 |
// Note that there's no functions for setting bold/italic style of the fonts;
|
|
|
57 |
// you must keep in mind that roman/bold/italic font variations are, in fact, different
|
|
|
58 |
// fonts stored in different files and it is the business of the font resolver object to
|
|
|
59 |
// find the appropriate font name. Here we just re-use it.
|
|
|
60 |
//
|
|
|
61 |
function setfont($name, $encoding, $size) {}
|
|
|
62 |
// function setfontcore($name, $size) {}
|
|
|
63 |
|
|
|
64 |
function setlinewidth($x) { }
|
|
|
65 |
function setrgbcolor($r, $g, $b) { }
|
|
|
66 |
|
|
|
67 |
function set_watermark($text) { }
|
|
|
68 |
|
|
|
69 |
function show_xy($text, $x, $y) {}
|
|
|
70 |
function stringwidth($string, $name, $encoding, $size) { }
|
|
|
71 |
function stroke() { }
|
|
|
72 |
}
|
|
|
73 |
?>
|