Files
luos/thirdparty/html2ps_pdf/css.text-indent.inc.php
Paula Quispe 9eb7d6cac2 HOR-2689
2017-08-03 17:00:30 -04:00

39 lines
841 B
PHP

<?php
// $Header: /cvsroot/html2ps/css.text-indent.inc.php,v 1.13 2006/11/11 13:43:52 Konstantin Exp $
require_once(HTML2PS_DIR.'value.text-indent.class.php');
class CSSTextIndent extends CSSPropertyHandler {
function CSSTextIndent() {
$this->CSSPropertyHandler(true, true);
}
function default_value() {
return new TextIndentValuePDF(array(0,false));
}
function parse($value) {
if ($value === 'inherit') {
return CSS_PROPERTY_INHERIT;
};
if (is_percentage($value)) {
return new TextIndentValuePDF(array((int)$value, true));
} else {
return new TextIndentValuePDF(array($value, false));
};
}
function getPropertyCode() {
return CSS_TEXT_INDENT;
}
function getPropertyName() {
return 'text-indent';
}
}
CSS::register_css_property(new CSSTextIndent());
?>