Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
// $Header: /cvsroot/html2ps/css.visibility.inc.php,v 1.6 2007/04/07 11:16:34 Konstantin Exp $
3
 
4
define('VISIBILITY_VISIBLE',0);
5
define('VISIBILITY_HIDDEN',1);
6
define('VISIBILITY_COLLAPSE',2); // TODO: currently treated is hidden
7
 
8
class 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
 
31
CSS::register_css_property(new CSSVisibility);
32
 
33
?>