public function copyFrom($style)
{
parent::copyFrom($style);
if ($style instanceof TTableStyle) {
if ($style->_backImageUrl !== null) {
$this->_backImageUrl = $style->_backImageUrl;
}
if ($style->_horizontalAlign !== null) {
$this->_horizontalAlign = $style->_horizontalAlign;
}
if ($style->_cellPadding !== null) {
$this->_cellPadding = $style->_cellPadding;
}
if ($style->_cellSpacing !== null) {
$this->_cellSpacing = $style->_cellSpacing;
}
if ($style->_gridLines !== null) {
$this->_gridLines = $style->_gridLines;
}
if ($style->_borderCollapse !== null) {
$this->_borderCollapse = $style->_borderCollapse;
}
}
}