public function __construct() { parent::__construct('ParagraphStyle', 'Para', ''); $this->resetCSS('margin', '0'); $this->resetCSS('padding', '0'); $this->resetCSS('border', 'none'); }
public function __construct() { parent::__construct('CharacterStyle', 'Char', ''); $this->resetCSS('margin', '0'); $this->resetCSS('padding', '0'); $this->resetCSS('border', 'none'); }
public function __construct() { parent::__construct('CellStyle', 'Cell', ''); $this->resetCSS('margin', '0'); $this->resetCSS('padding', '0'); $this->resetCSS('border', '1px solid #000000'); $this->resetCSS('vertical-align', 'top'); }
public function __construct() { parent::__construct('TableStyle', 'Table', ''); $this->resetCSS('margin', '0'); $this->resetCSS('padding', '0'); $this->resetCSS('border', 'none'); $this->resetCSS('border-spacing', '0'); $this->resetCSS('border-collapse', 'collapse'); // careful: if you use 'collapse' here, the outer table borders conflict with the cell borders, and none border is shown. $this->resetCSS('empty-cells', 'show'); $this->resetCSS('table-layout', 'fixed'); }
/** * Saves the node--required only for contextual styles--after calling the parent class parse method. * @param DOMElement $node */ public function parse(DOMElement $node) { parent::parse($node); $this->setAllStyles($node); }