Documentation

Styles extends AbstractPart

ODText styles part writer: styles.xml.

Table of Contents

$dateFormat  : string
$parentWriter  : AbstractWriter
Parent writer.
getParentWriter()  : AbstractWriter
Get parent writer.
setParentWriter()  : void
Set parent writer.
write()  : string
Write part.
getXmlWriter()  : XMLWriter
Get XML Writer.
writeCommonRootAttributes()  : void
Write common root attributes.
writeFontFaces()  : void
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()  : void
Write default styles.
writeMaster()  : void
Write master style.
writeNamed()  : void
Write named styles.
writePageLayout()  : void
call writePageLayoutIndiv to write page layout styles for each page.
writePageLayoutIndiv()  : void
Write page layout styles.

Properties

$dateFormat

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

Methods

write()

Write part.

public write() : string
Return values
string

writeCommonRootAttributes()

Write common root attributes.

protected writeCommonRootAttributes(XMLWriter $xmlWriter) : void
Parameters
$xmlWriter : XMLWriter
Return values
void

writeFontFaces()

Write font faces declaration.

protected writeFontFaces(XMLWriter $xmlWriter) : void
Parameters
$xmlWriter : XMLWriter
Return values
void

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(float|int $twips[, float $factor = 1.0 ]) : mixed
Parameters
$twips : float|int
$factor : float = 1.0

return string

Return values
mixed

writeDefault()

Write default styles.

private writeDefault(XMLWriter $xmlWriter) : void
Parameters
$xmlWriter : XMLWriter
Return values
void

writeMaster()

Write master style.

private writeMaster(XMLWriter $xmlWriter) : void
Parameters
$xmlWriter : XMLWriter
Return values
void

writeNamed()

Write named styles.

private writeNamed(XMLWriter $xmlWriter) : void
Parameters
$xmlWriter : XMLWriter
Return values
void

writePageLayout()

call writePageLayoutIndiv to write page layout styles for each page.

private writePageLayout(XMLWriter $xmlWriter) : void
Parameters
$xmlWriter : XMLWriter
Return values
void

writePageLayoutIndiv()

Write page layout styles.

private writePageLayoutIndiv(XMLWriter $xmlWriter, Section $section, int $sectionNbr) : void
Parameters
$xmlWriter : XMLWriter
$section : Section
$sectionNbr : int
Return values
void

Search results