1<?php
2// $Header: /cvsroot/html2ps/box.null.php,v 1.18 2006/07/09 09:07:44 Konstantin Exp $
3
4class NullBox extends GenericInlineBox {
5  function get_min_width(&$context) { return 0; }
6  function get_max_width(&$context) { return 0; }
7  function get_height() { return 0; }
8
9  function NullBox() {
10    $this->GenericInlineBox();
11  }
12
13  function &create() {
14    $box =& new NullBox;
15
16    $css_state = new CSSState(CSS::get());
17    $css_state->pushState();
18    $box->readCSS($css_state);
19
20    return $box;
21  }
22
23  function show(&$viewport) {
24    return true;
25  }
26
27  function reflow_static(&$parent, &$context) {
28    if (!$parent) {
29      $this->put_left(0);
30      $this->put_top(0);
31      return;
32    };
33
34    // Move current "box" to parent current coordinates. It is REQUIRED,
35    // as some other routines uses box coordinates.
36    $this->put_left($parent->get_left());
37    $this->put_top($parent->get_top());
38  }
39
40  function is_null() { return true; }
41}
42?>