function postParse(FO_Object $obj) { if (!$obj instanceof FO_Inline) { return parent::postParse($obj); } $this->setContext("startx", $obj->getContext("lx")); $this->setContext("y", $obj->getContext("ly")); $this->setContext("x", $obj->getContext("x")); $h1 = $this->getContext("height"); $h2 = $obj->getContext("height"); if ($h2 > $h1) { $this->setLocalContext("height", $h2); } }
function parse(DOMNode $node) { $col = $this->getContext("column"); $width = $this->getContext("column-{$col}-width"); $this->setLocalContext("width", $width); parent::parse($node); }