1<?php 2// $Header: /cvsroot/html2ps/css.position.inc.php,v 1.12 2006/09/07 18:38:14 Konstantin Exp $ 3 4define('POSITION_STATIC',0); 5define('POSITION_RELATIVE',1); 6define('POSITION_ABSOLUTE',2); 7define('POSITION_FIXED',3); 8 9// CSS 3 10 11define('POSITION_FOOTNOTE',4); 12 13class CSSPosition extends CSSPropertyStringSet { 14 function CSSPosition() { 15 $this->CSSPropertyStringSet(false, 16 false, 17 array('inherit' => CSS_PROPERTY_INHERIT, 18 'absolute' => POSITION_ABSOLUTE, 19 'relative' => POSITION_RELATIVE, 20 'fixed' => POSITION_FIXED, 21 'static' => POSITION_STATIC, 22 'footnote' => POSITION_FOOTNOTE)); 23 } 24 25 function default_value() { 26 return POSITION_STATIC; 27 } 28 29 function get_property_code() { 30 return CSS_POSITION; 31 } 32 33 function get_property_name() { 34 return 'position'; 35 } 36} 37 38CSS::register_css_property(new CSSPosition); 39 40?>