\PhpOffice\PhpWord\Writer\ODText\PartStyles

ODText styles part writer: styles.xml

Summary

Methods
Properties
Constants
write()
setParentWriter()
getParentWriter()
No public properties found
No constants found
writeCommonRootAttributes()
writeFontFaces()
getXmlWriter()
writeText()
$dateFormat
$parentWriter
N/A
writeDefault()
writeNamed()
writePageLayout()
writeMaster()
No private properties found
N/A

Properties

$dateFormat

$dateFormat : string

Type

string — Date format

Methods

write()

write() : string

Write part

Returns

string

writeCommonRootAttributes()

writeCommonRootAttributes(\PhpOffice\Common\XMLWriter  $xmlWriter) 

Write common root attributes.

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter

writeFontFaces()

writeFontFaces(\PhpOffice\Common\XMLWriter  $xmlWriter) 

Write font faces declaration.

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter

writeText()

writeText(string  $content) : boolean

Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled()

Parameters

string $content

The text string to write

Returns

boolean —

Returns true on success or false on failure

writeDefault()

writeDefault(\PhpOffice\Common\XMLWriter  $xmlWriter) 

Write default styles.

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter

writeNamed()

writeNamed(\PhpOffice\Common\XMLWriter  $xmlWriter) 

Write named styles.

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter

writePageLayout()

writePageLayout(\PhpOffice\Common\XMLWriter  $xmlWriter) 

Write page layout styles.

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter

writeMaster()

writeMaster(\PhpOffice\Common\XMLWriter  $xmlWriter) 

Write master style.

Parameters

\PhpOffice\Common\XMLWriter $xmlWriter