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