2014-04-26 11:14:27 +07:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* PHPWord
|
|
|
|
|
*
|
|
|
|
|
* @link https://github.com/PHPOffice/PHPWord
|
|
|
|
|
* @copyright 2014 PHPWord
|
2014-05-04 21:03:28 +04:00
|
|
|
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
|
2014-04-26 11:14:27 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace PhpOffice\PhpWord\Writer\HTML\Style;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Generic style writer
|
|
|
|
|
*
|
|
|
|
|
* @since 0.10.0
|
|
|
|
|
*/
|
|
|
|
|
class Generic extends AbstractStyle
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Write style
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function write()
|
|
|
|
|
{
|
|
|
|
|
$css = array();
|
|
|
|
|
|
|
|
|
|
if (is_array($this->style) && !empty($this->style)) {
|
|
|
|
|
$css = $this->style;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $this->assembleCss($css);
|
|
|
|
|
}
|
|
|
|
|
}
|