1<?php 2// $Header: /cvsroot/html2ps/css.clear.inc.php,v 1.9 2006/09/07 18:38:13 Konstantin Exp $ 3 4define('CLEAR_NONE',0); 5define('CLEAR_LEFT',1); 6define('CLEAR_RIGHT',2); 7define('CLEAR_BOTH',3); 8 9class CSSClear extends CSSPropertyStringSet { 10 function CSSClear() { 11 $this->CSSPropertyStringSet(false, 12 false, 13 array('inherit' => CSS_PROPERTY_INHERIT, 14 'left' => CLEAR_LEFT, 15 'right' => CLEAR_RIGHT, 16 'both' => CLEAR_BOTH, 17 'none' => CLEAR_NONE)); 18 } 19 20 function default_value() { 21 return CLEAR_NONE; 22 } 23 24 function get_property_code() { 25 return CSS_CLEAR; 26 } 27 28 function get_property_name() { 29 return 'clear'; 30 } 31} 32 33CSS::register_css_property(new CSSClear); 34 35?>