1<?php 2// $Header: /cvsroot/html2ps/css.white-space.inc.php,v 1.8 2006/12/24 14:42:44 Konstantin Exp $ 3 4define('TABLE_LAYOUT_AUTO', 1); 5define('TABLE_LAYOUT_FIXED', 2); 6 7class CSSTableLayout extends CSSPropertyStringSet { 8 function CSSTableLayout() { 9 $this->CSSPropertyStringSet(false, 10 false, 11 array('auto' => TABLE_LAYOUT_AUTO, 12 'fixed' => TABLE_LAYOUT_FIXED)); 13 } 14 15 function default_value() { 16 return TABLE_LAYOUT_AUTO; 17 } 18 19 function get_property_code() { 20 return CSS_TABLE_LAYOUT; 21 } 22 23 function get_property_name() { 24 return 'table-layout'; 25 } 26} 27 28CSS::register_css_property(new CSSTableLayout()); 29 30?>