1<?php
2
3require_once(HTML2PS_DIR.'box.generic.formatted.php');
4
5class SimpleInlineBox extends GenericBox {
6  function SimpleInlineBox() {
7    $this->GenericBox();
8  }
9
10  function readCSS(&$state) {
11    parent::readCSS($state);
12
13    $this->_readCSS($state,
14                    array(CSS_TEXT_DECORATION,
15                          CSS_TEXT_TRANSFORM));
16
17    // '-html2ps-link-target'
18    global $g_config;
19    if ($g_config["renderlinks"]) {
20      $this->_readCSS($state,
21                      array(CSS_HTML2PS_LINK_TARGET));
22    };
23  }
24
25  function get_extra_left() {
26    return 0;
27  }
28
29  function get_extra_top() {
30    return 0;
31  }
32
33  function get_extra_right() {
34    return 0;
35  }
36
37  function get_extra_bottom() {
38    return 0;
39  }
40
41  function show(&$driver) {
42    parent::show($driver);
43
44    $strategy =& new StrategyLinkRenderingNormal();
45    $strategy->apply($this, $driver);
46  }
47}
48?>