Styles extends AbstractPart
Word2007 styles part writer: word/styles.xml
Tags
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
- writeText() : bool
- Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled()
- writeDefaultStyles() : mixed
- Write default font and other default styles.
- writeFontStyle() : mixed
- Write font style.
- writeParagraphStyle() : mixed
- Write paragraph style.
- writeTableStyle() : mixed
- Write table style.
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 —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
writeDefaultStyles()
Write default font and other default styles.
private
writeDefaultStyles(XMLWriter $xmlWriter, array<string|int, AbstractStyle> $styles) : mixed
Parameters
- $xmlWriter : XMLWriter
- $styles : array<string|int, AbstractStyle>
Return values
mixed —writeFontStyle()
Write font style.
private
writeFontStyle(XMLWriter $xmlWriter, string $styleName, Font $style) : mixed
Parameters
Return values
mixed —writeParagraphStyle()
Write paragraph style.
private
writeParagraphStyle(XMLWriter $xmlWriter, string $styleName, Paragraph $style) : mixed
Parameters
Return values
mixed —writeTableStyle()
Write table style.
private
writeTableStyle(XMLWriter $xmlWriter, string $styleName, Table $style) : mixed