readCSS($pipeline->get_current_css_state()); return $box; } function TextBoxString($word, $encoding) { // Call parent constructor $this->TextBox(); $this->add_subword($word, $encoding, array()); } function get_extra_bottom() { return 0; } // "Pure" Text boxes never have margins/border/padding function get_extra_left() { return 0; } // "Pure" Text boxes never have margins/border/padding function get_extra_right() { return 0; } function get_extra_top() { return 0; } function get_full_width() { return $this->width; } function get_margin_top() { return 0; } function get_min_width(&$context) { return $this->width; } function get_max_width(&$context) { return $this->width; } // Note that we don't need to call complicated 'get_width' function inherited from GenericFormattedBox, // a TextBox never have width constraints nor children; its width is always defined by the string length function get_width() { return $this->width; } } ?>