1<?php 2// $Header: /cvsroot/html2ps/css.top.inc.php,v 1.14 2006/11/11 13:43:52 Konstantin Exp $ 3 4require_once(HTML2PS_DIR.'value.top.php'); 5 6class CSSTop extends CSSPropertyHandler { 7 function CSSTop() { 8 $this->CSSPropertyHandler(false, false); 9 $this->_autoValue = ValueTop::fromString('auto'); 10 } 11 12 function _getAutoValue() { 13 return $this->_autoValue->copy(); 14 } 15 16 function default_value() { 17 return $this->_getAutoValue(); 18 } 19 20 function get_property_code() { 21 return CSS_TOP; 22 } 23 24 function get_property_name() { 25 return 'top'; 26 } 27 28 function parse($value) { 29 return ValueTop::fromString($value); 30 } 31} 32 33CSS::register_css_property(new CSSTop); 34 35?>