Documentation

Styles extends AbstractPart
in package

Word2007 styles part writer: word/styles.xml.

Tags
todo

Do something with the numbering style introduced in 0.10.0

SuppressWarnings

(PHPMD.UnusedPrivateMethod) For writeFontStyle, writeParagraphStyle, and writeTableStyle

Table of Contents

Properties

$dateFormat  : string
$parentWriter  : AbstractWriter
Parent writer.

Methods

getParentWriter()  : AbstractWriter
Get parent writer.
setParentWriter()  : void
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()  : void
Write default font and other default styles.
writeFontStyle()  : void
Write font style.
writeParagraphStyle()  : void
Write paragraph style.
writeTableStyle()  : void
Write table style.

Properties

$dateFormat

protected string $dateFormat = 'Y-m-d\TH:i:sP'

Date format

Methods

write()

Write part.

public write() : string
Return values
string

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

writeFontStyle()

Write font style.

private writeFontStyle(XMLWriter $xmlWriter, string $styleName, Font $style) : void
Parameters
$xmlWriter : XMLWriter
$styleName : string
$style : Font

writeParagraphStyle()

Write paragraph style.

private writeParagraphStyle(XMLWriter $xmlWriter, string $styleName, Paragraph $style) : void
Parameters
$xmlWriter : XMLWriter
$styleName : string
$style : Paragraph

writeTableStyle()

Write table style.

private writeTableStyle(XMLWriter $xmlWriter, string $styleName, Table $style) : void
Parameters
$xmlWriter : XMLWriter
$styleName : string
$style : Table

        
On this page

Search results