| 1 |
lars |
1 |
<?php
|
|
|
2 |
// $Header: /cvsroot/html2ps/css.list-style.inc.php,v 1.8 2007/02/04 17:08:19 Konstantin Exp $
|
|
|
3 |
|
|
|
4 |
require_once(HTML2PS_DIR.'value.list-style.class.php');
|
|
|
5 |
|
|
|
6 |
class CSSListStyle extends CSSPropertyHandler {
|
|
|
7 |
// CSS 2.1: list-style is inherited
|
|
|
8 |
function CSSListStyle() {
|
|
|
9 |
$this->default_value = new ListStyleValue;
|
|
|
10 |
$this->default_value->image = CSSListStyleImage::default_value();
|
|
|
11 |
$this->default_value->position = CSSListStylePosition::default_value();
|
|
|
12 |
$this->default_value->type = CSSListStyleType::default_value();
|
|
|
13 |
|
|
|
14 |
$this->CSSPropertyHandler(true, true);
|
|
|
15 |
}
|
|
|
16 |
|
|
|
17 |
function parse($value, &$pipeline) {
|
|
|
18 |
$style = new ListStyleValue;
|
|
|
19 |
$style->image = CSSListStyleImage::parse($value, $pipeline);
|
|
|
20 |
$style->position = CSSListStylePosition::parse($value);
|
|
|
21 |
$style->type = CSSListStyleType::parse($value);
|
|
|
22 |
|
|
|
23 |
return $style;
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
function default_value() { return $this->default_value; }
|
|
|
27 |
|
|
|
28 |
function get_property_code() {
|
|
|
29 |
return CSS_LIST_STYLE;
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
function get_property_name() {
|
|
|
33 |
return 'list-style';
|
|
|
34 |
}
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
$ls = new CSSListStyle;
|
|
|
38 |
CSS::register_css_property($ls);
|
|
|
39 |
CSS::register_css_property(new CSSListStyleImage($ls, 'image'));
|
|
|
40 |
CSS::register_css_property(new CSSListStylePosition($ls, 'position'));
|
|
|
41 |
CSS::register_css_property(new CSSListStyleType($ls, 'type'));
|
|
|
42 |
|
|
|
43 |
?>
|