1<?php
2// $Header: /cvsroot/html2ps/css.float.inc.php,v 1.7 2006/07/09 09:07:44 Konstantin Exp $
3
4define('FLOAT_NONE',0);
5define('FLOAT_LEFT',1);
6define('FLOAT_RIGHT',2);
7
8class CSSFloat extends CSSPropertyStringSet {
9  function CSSFloat() {
10    $this->CSSPropertyStringSet(false,
11                                false,
12                                array('left'  => FLOAT_LEFT,
13                                      'right' => FLOAT_RIGHT,
14                                      'none'  => FLOAT_NONE));
15  }
16
17  function default_value() {
18    return FLOAT_NONE;
19  }
20
21  function get_property_code() {
22    return CSS_FLOAT;
23  }
24
25  function get_property_name() {
26    return 'float';
27  }
28}
29
30CSS::register_css_property(new CSSFloat);
31
32?>