1<?php
2// $Header: /cvsroot/html2ps/css.white-space.inc.php,v 1.9 2007/01/24 18:55:52 Konstantin Exp $
3
4define('WHITESPACE_NORMAL',   0);
5define('WHITESPACE_PRE',      1);
6define('WHITESPACE_NOWRAP',   2);
7define('WHITESPACE_PRE_WRAP', 3);
8define('WHITESPACE_PRE_LINE', 4);
9
10class CSSWhiteSpace extends CSSPropertyStringSet {
11  function CSSWhiteSpace() {
12    $this->CSSPropertyStringSet(true,
13                                true,
14                                array('normal'   => WHITESPACE_NORMAL,
15                                      'pre'      => WHITESPACE_PRE,
16                                      'pre-wrap' => WHITESPACE_PRE_WRAP,
17                                      'nowrap'   => WHITESPACE_NOWRAP,
18                                      'pre-line' => WHITESPACE_PRE_LINE));
19  }
20
21  function default_value() {
22    return WHITESPACE_NORMAL;
23  }
24
25  function get_property_code() {
26    return CSS_WHITE_SPACE;
27  }
28
29  function get_property_name() {
30    return 'white-space';
31  }
32}
33
34CSS::register_css_property(new CSSWhiteSpace);
35
36?>