1<?php
2// $Header: /cvsroot/html2ps/css.overflow.inc.php,v 1.8 2006/09/07 18:38:14 Konstantin Exp $
3
4define('OVERFLOW_VISIBLE',0);
5define('OVERFLOW_HIDDEN',1);
6
7class CSSOverflow extends CSSPropertyStringSet {
8  function CSSOverflow() {
9    $this->CSSPropertyStringSet(false,
10                                false,
11                                array('inherit' => CSS_PROPERTY_INHERIT,
12                                      'hidden'  => OVERFLOW_HIDDEN,
13                                      'scroll'  => OVERFLOW_HIDDEN,
14                                      'auto'    => OVERFLOW_HIDDEN,
15                                      'visible' => OVERFLOW_VISIBLE));
16  }
17
18  function default_value() {
19    return OVERFLOW_VISIBLE;
20  }
21
22  function get_property_code() {
23    return CSS_OVERFLOW;
24  }
25
26  function get_property_name() {
27    return 'overflow';
28  }
29}
30
31CSS::register_css_property(new CSSOverflow);
32
33?>
34