1<?php 2// $Header: /cvsroot/html2ps/css.visibility.inc.php,v 1.6 2007/04/07 11:16:34 Konstantin Exp $ 3 4define('VISIBILITY_VISIBLE',0); 5define('VISIBILITY_HIDDEN',1); 6define('VISIBILITY_COLLAPSE',2); // TODO: currently treated is hidden 7 8class CSSVisibility extends CSSPropertyStringSet { 9 function CSSVisibility() { 10 $this->CSSPropertyStringSet(false, 11 false, 12 array('inherit' => CSS_PROPERTY_INHERIT, 13 'visible' => VISIBILITY_VISIBLE, 14 'hidden' => VISIBILITY_HIDDEN, 15 'collapse' => VISIBILITY_COLLAPSE)); 16 } 17 18 function default_value() { 19 return VISIBILITY_VISIBLE; 20 } 21 22 function get_property_code() { 23 return CSS_VISIBILITY; 24 } 25 26 function get_property_name() { 27 return 'visibility'; 28 } 29} 30 31CSS::register_css_property(new CSSVisibility); 32 33?>