Files
luos/thirdparty/html2ps_pdf/css.list-style-position.inc.php

32 lines
691 B
PHP
Raw Normal View History

2010-12-02 23:34:41 +00:00
<?php
// $Header: /cvsroot/html2ps/css.list-style-position.inc.php,v 1.6 2006/07/09 09:07:45 Konstantin Exp $
define('LSP_OUTSIDE',0);
define('LSP_INSIDE',1);
class CSSListStylePosition extends CSSSubFieldProperty {
// CSS 2.1: default value for list-style-position is 'outside'
function default_value() { return LSP_OUTSIDE; }
function parse($value) {
if (preg_match('/\binside\b/',$value)) {
return LSP_INSIDE;
};
if (preg_match('/\boutside\b/',$value)) {
return LSP_OUTSIDE;
};
return null;
}
function getPropertyCode() {
return CSS_LIST_STYLE_POSITION;
}
function getPropertyName() {
return 'list-style-position';
}
}
?>