Spaces:
Sleeping
Sleeping
File size: 1,255 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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | <?php
class FakeTableCellBox extends TableCellBox {
var $colspan;
var $rowspan;
function create(&$pipeline) {
$box =& new FakeTableCellBox;
$css_state =& $pipeline->getCurrentCSSState();
$css_state->pushDefaultState();
$box->readCSS($css_state);
$nullbox =& new NullBox;
$nullbox->readCSS($css_state);
$box->add_child($nullbox);
$box->readCSS($css_state);
$css_state->popState();
return $box;
}
function FakeTableCellBox() {
// Required to reset any constraints initiated by CSS properties
$this->colspan = 1;
$this->rowspan = 1;
$this->GenericContainerBox();
$this->setCSSProperty(CSS_DISPLAY, 'table-cell');
$this->setCSSProperty(CSS_VERTICAL_ALIGN, VA_MIDDLE);
}
function show(&$viewport) {
return true;
}
function is_fake() {
return true;
}
function get_width_constraint() {
return new WCNone();
}
function get_height_constraint() {
return new HCConstraint(null, null, null);
}
function get_height() {
return 0;
}
function get_top_margin() {
return 0;
}
function get_full_height() {
return 0;
}
function get_max_width() {
return 0;
}
function get_min_width() {
return 0;
}
}
?> |