1: <?php
2:
3: /**
4: * Class TableStyle
5: *
6: * @version 1.0.0
7: * @author v.raskin
8: * @package vsword.structure.style
9: */
10: class ListStyle extends Style {
11:
12: const TYPE_NUMERIC = 1;
13: const TYPE_MARKER = 2;
14:
15: protected $type;
16:
17: public function __construct($type = 1) {
18: $this->setType($type);
19: }
20:
21: public function setType($type) {
22: $this->type = $type;
23: }
24:
25: public function getStyle() {
26: if($this->type == self::TYPE_NUMERIC) {
27: return '';
28: }
29:
30: return '<w:style w:type="paragraph" w:styleId="'.$this->getStyleId().'"><w:name w:val="'.$this->getName().'"/><w:basedOn w:val="a"/><w:uiPriority w:val="34"/><w:qFormat/><w:rsid w:val="00E404C0"/><w:pPr><w:ind w:left="720"/><w:contextualSpacing/></w:pPr></w:style>';
31:
32: }
33: }