1<?php
2// $Header: /cvsroot/html2ps/css.text-transform.inc.php,v 1.2 2006/07/09 09:07:46 Konstantin Exp $
3
4define('CSS_TEXT_TRANSFORM_NONE'      ,0);
5define('CSS_TEXT_TRANSFORM_CAPITALIZE',1);
6define('CSS_TEXT_TRANSFORM_UPPERCASE' ,2);
7define('CSS_TEXT_TRANSFORM_LOWERCASE' ,3);
8
9class CSSTextTransform extends CSSPropertyStringSet {
10  function CSSTextTransform() {
11    $this->CSSPropertyStringSet(false,
12                                true,
13                                array('inherit'    => CSS_PROPERTY_INHERIT,
14                                      'none'       => CSS_TEXT_TRANSFORM_NONE,
15                                      'capitalize' => CSS_TEXT_TRANSFORM_CAPITALIZE,
16                                      'uppercase'  => CSS_TEXT_TRANSFORM_UPPERCASE,
17                                      'lowercase'  => CSS_TEXT_TRANSFORM_LOWERCASE));
18  }
19
20  function default_value() {
21    return CSS_TEXT_TRANSFORM_NONE;
22  }
23
24  function get_property_code() {
25    return CSS_TEXT_TRANSFORM;
26  }
27
28  function get_property_name() {
29    return 'text-transform';
30  }
31}
32
33CSS::register_css_property(new CSSTextTransform);
34
35?>
36