Пример #1
0
 public function __construct()
 {
     parent::__construct('ParagraphStyle', 'Para', '');
     $this->resetCSS('margin', '0');
     $this->resetCSS('padding', '0');
     $this->resetCSS('border', 'none');
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct('CharacterStyle', 'Char', '');
     $this->resetCSS('margin', '0');
     $this->resetCSS('padding', '0');
     $this->resetCSS('border', 'none');
 }
Пример #3
0
 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');
 }
Пример #4
0
 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');
 }
Пример #5
0
 /**
  * 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);
 }