This class process the CSS properties and transform them into their equivalent ODF properties
package |
Docxpresso |
---|---|
subpackage |
Parser |
__construct(\Docxpresso\Parser\DOMNode $styleNode, \Docxpresso\Parser\DOMNode $mainStyleNode = NULL, \Docxpresso\Parser\DOMNode $styleStyleNode = NULL)
access |
public |
---|---|
\Docxpresso\Parser\DOMNode
\Docxpresso\Parser\DOMNode
\Docxpresso\Parser\DOMNode
_generateGraphicStyle(\Docxpresso\Parser\DOMNode $styleNode, array $style, string $target = '') : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
array
string
_generateListStyle(\Docxpresso\Parser\DOMNode $styleNode, array $listType, array $listStyle) : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
array
array
_generateParagraphStyle(\Docxpresso\Parser\DOMNode $styleNode, array $style) : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
array
_generateTableCellStyle(\Docxpresso\Parser\DOMNode $styleNode, array $style) : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
array
_generateTableColumnStyle(\Docxpresso\Parser\DOMNode $styleNode, array $style) : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
array
_generateTableRowStyle(\Docxpresso\Parser\DOMNode $styleNode, array $style) : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
array
_generateTableStyle(\Docxpresso\Parser\DOMNode $styleNode, array $style) : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
array
_generateTextStyle(\Docxpresso\Parser\DOMNode $styleNode, array $style) : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
array
_genericStyle(\Docxpresso\Parser\DOMNode $styleNode, array $style, string $styleName, array $styleArray) : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
array
string
array
_parseBreaks(\Docxpresso\Parser\DOMNode $node, string $style, string $attribute, string $value) : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
string
string
string
_parseHeight(\Docxpresso\Parser\DOMNode $node, string $style, string $attribute, string $value) : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
string
string
string
_parseList(\Docxpresso\Parser\DOMNode $node, string $attribute, string $value) : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
string
string
_parseTextDecoration(\Docxpresso\Parser\DOMNode $node, string $style, string $attribute, string $value) : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
string
string
string
_parseWidth(\Docxpresso\Parser\DOMNode $node, string $style, string $attribute, string $value) : void
access |
private |
---|
\Docxpresso\Parser\DOMNode
string
string
string
ODFStyles(array $style)
access |
public |
---|---|
static | |
array
preprocessCSSStyles(string $props) : array
access |
public |
---|
string
array
processListStyle(string $listId, array $style, string $target = 'document') : void
access |
public |
---|
string
array
string
processSingleStyle(string $type, string $styleId, mixed $style, string $target = 'document') : void
access |
public |
---|
string
string
mixed
string
processStyles() : void
access |
private |
---|---|
bgStyles : array
access |
public |
---|---|
static | |
var |
array
chartStyles : array
access |
public |
---|---|
static | |
var |
array
CSSODF : array
Sometimes the relationship is one-to-one but in many cases a CSS property may map to different ODF style properties depending on the type of ODF node or even its value. If the property is mapped into an integer it is a reference for further parsing thrugh the _context array(check this statement)
access |
public |
---|---|
static | |
var |
array
graphicStyles : array
access |
public |
---|---|
static | |
var |
array
pageStyles : array
access |
public |
---|---|
static | |
var |
array
pStyles : array
access |
public |
---|---|
static | |
var |
array
styleFamilies : array
access |
public |
---|---|
static | |
var |
array
tableStyles : array
access |
public |
---|---|
static | |
var |
array
tableCellStyles : array
access |
public |
---|---|
static | |
var |
array
tableColumnStyles : array
access |
public |
---|---|
static | |
var |
array
tableRowStyles : array
access |
public |
---|---|
static | |
var |
array
textStyles : array
access |
public |
---|---|
static | |
var |
array
_cssParser : \Docxpresso\Parser\ParseCSSProperties
_sides : array
access |
private |
---|---|
var |
array
_styleNode : \Docxpresso\Parser\DOMNode
access |
public |
---|---|
static | |
var |
\Docxpresso\Parser\DOMNode