1<?php
2// $Header: /cvsroot/html2ps/css.html2ps.html.content.inc.php,v 1.3 2007/03/15 18:37:30 Konstantin Exp $
3
4require_once(HTML2PS_DIR.'value.content.php');
5
6class CSSHTML2PSHTMLContent extends CSSPropertyHandler {
7  function CSSHTML2PSHTMLContent() {
8    $this->CSSPropertyHandler(false, false);
9  }
10
11  function &default_value() {
12    $data =& new ValueContent();
13    return $data;
14  }
15
16  // CSS 2.1 p 12.2:
17  // Value: [ <string> | <uri> | <counter> | attr(X) | open-quote | close-quote | no-open-quote | no-close-quote ]+ | inherit
18  //
19  // TODO: process values other than <string>
20  //
21  function &parse($value) {
22    if ($value === 'inherit') {
23      return CSS_PROPERTY_INHERIT;
24    };
25
26    $value_obj =& ValueContent::parse($value);
27    return $value_obj;
28  }
29
30  function get_property_code() {
31    return CSS_HTML2PS_HTML_CONTENT;
32  }
33
34  function get_property_name() {
35    return '-html2ps-html-content';
36  }
37}
38
39CSS::register_css_property(new CSSHTML2PSHTMLContent);
40
41?>