CSSPropertyStringSet(true,
true,
array('inherit' => CSS_PROPERTY_INHERIT,
'left' => TA_LEFT,
'right' => TA_RIGHT,
'center' => TA_CENTER,
'middle' => TA_CENTER,
'justify' => TA_JUSTIFY));
}
function default_value() { return TA_LEFT; }
function value2pdf($value) {
switch ($value) {
case TA_LEFT:
return "ta_left";
case TA_RIGHT:
return "ta_right";
case TA_CENTER:
return "ta_center";
case TA_JUSTIFY:
return "ta_justify";
default:
return "ta_left";
}
}
function get_property_code() {
return CSS_TEXT_ALIGN;
}
function get_property_name() {
return 'text-align';
}
}
CSS::register_css_property(new CSSTextAlign);
?>