Styles extends AbstractPart
ODText styles part writer: styles.xml
Table of Contents
- $dateFormat : string
- $parentWriter : AbstractWriter
- Parent writer
- getParentWriter() : AbstractWriter
- Get parent writer
- setParentWriter() : mixed
- Set parent writer.
- write() : string
- Write part
- getXmlWriter() : XMLWriter
- Get XML Writer
- writeCommonRootAttributes() : mixed
- Write common root attributes.
- writeFontFaces() : mixed
- Write font faces declaration.
- writeText() : bool
- Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled()
- cvttwiptostr() : mixed
- Convert int in twips to inches/cm then to string and append unit
- writeDefault() : mixed
- Write default styles.
- writeMaster() : mixed
- Write master style.
- writeNamed() : mixed
- Write named styles.
- writePageLayout() : mixed
- call writePageLayoutIndiv to write page layout styles for each page
- writePageLayoutIndiv() : mixed
- Write page layout styles.
Properties
$dateFormat
protected
string
$dateFormat
= 'Y-m-d\TH:i:sP'
$parentWriter
Parent writer
protected
AbstractWriter
$parentWriter
Methods
getParentWriter()
Get parent writer
public
getParentWriter() : AbstractWriter
Tags
Return values
AbstractWriter —setParentWriter()
Set parent writer.
public
setParentWriter([AbstractWriter $writer = null ]) : mixed
Parameters
- $writer : AbstractWriter = null
Return values
mixed —write()
Write part
public
write() : string
Return values
string —getXmlWriter()
Get XML Writer
protected
getXmlWriter() : XMLWriter
Return values
XMLWriter —writeCommonRootAttributes()
Write common root attributes.
protected
writeCommonRootAttributes(XMLWriter $xmlWriter) : mixed
Parameters
- $xmlWriter : XMLWriter
Return values
mixed —writeFontFaces()
Write font faces declaration.
protected
writeFontFaces(XMLWriter $xmlWriter) : mixed
Parameters
- $xmlWriter : XMLWriter
Return values
mixed —writeText()
Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled()
protected
writeText(string $content) : bool
Parameters
- $content : string
-
The text string to write
Return values
bool —Returns true on success or false on failure
cvttwiptostr()
Convert int in twips to inches/cm then to string and append unit
private
static cvttwiptostr(int|float $twips[, float $factor = 1.0 ]) : mixed
Parameters
- $twips : int|float
- $factor : float = 1.0
-
return string
Return values
mixed —writeDefault()
Write default styles.
private
writeDefault(XMLWriter $xmlWriter) : mixed
Parameters
- $xmlWriter : XMLWriter
Return values
mixed —writeMaster()
Write master style.
private
writeMaster(XMLWriter $xmlWriter) : mixed
Parameters
- $xmlWriter : XMLWriter
Return values
mixed —writeNamed()
Write named styles.
private
writeNamed(XMLWriter $xmlWriter) : mixed
Parameters
- $xmlWriter : XMLWriter
Return values
mixed —writePageLayout()
call writePageLayoutIndiv to write page layout styles for each page
private
writePageLayout(XMLWriter $xmlWriter) : mixed
Parameters
- $xmlWriter : XMLWriter
Return values
mixed —writePageLayoutIndiv()
Write page layout styles.
private
writePageLayoutIndiv(XMLWriter $xmlWriter, Section $section, int $sectionNbr) : mixed