1<?php 2// $Header: /cvsroot/html2ps/css.right.inc.php,v 1.6 2006/11/11 13:43:52 Konstantin Exp $ 3 4require_once(HTML2PS_DIR.'value.right.php'); 5 6class CSSRight extends CSSPropertyHandler { 7 function CSSRight() { 8 $this->CSSPropertyHandler(false, false); 9 $this->_autoValue = ValueRight::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 parse($value) { 21 return ValueRight::fromString($value); 22 } 23 24 function get_property_code() { 25 return CSS_RIGHT; 26 } 27 28 function get_property_name() { 29 return 'right'; 30 } 31} 32 33CSS::register_css_property(new CSSRight); 34 35?>