Settings extends AbstractPart
Word2007 settings part writer: word/settings.xml.
Tags
Table of Contents
- $dateFormat : string
- $parentWriter : AbstractWriter
- Parent writer.
- $settings : array<string|int, mixed>
- Settings value.
- getParentWriter() : AbstractWriter
- Get parent writer.
- setParentWriter() : void
- Set parent writer.
- write() : string
- Write part.
- getXmlWriter() : XMLWriter
- Get XML Writer.
- writeSetting() : void
- Write indivual setting, recursive to any child settings.
- writeText() : bool
- Write an XML text, this will call text() or writeRaw() depending on the value of Settings::isOutputEscapingEnabled().
- getSettings() : void
- Get settings.
- setCompatibility() : void
- Get compatibility setting.
- setConsecutiveHyphenLimit() : void
- setDocumentProtection() : void
- Get protection settings.
- setHyphenationZone() : void
- setOnOffValue() : void
- Adds a boolean attribute to the settings array.
- setProofState() : void
- Set the Proof state.
- setRevisionView() : void
- Set the Revision View.
- setThemeFontLang() : void
- Sets the language.
- setZoom() : void
- Set the magnification.
Properties
$dateFormat
protected
string
$dateFormat
= 'Y-m-d\TH:i:sP'
$parentWriter
Parent writer.
protected
AbstractWriter
$parentWriter
$settings
Settings value.
private
array<string|int, mixed>
$settings
= []
Methods
getParentWriter()
Get parent writer.
public
getParentWriter() : AbstractWriter
Return values
AbstractWriter —setParentWriter()
Set parent writer.
public
setParentWriter([AbstractWriter $writer = null ]) : void
Parameters
- $writer : AbstractWriter = null
Return values
void —write()
Write part.
public
write() : string
Return values
string —getXmlWriter()
Get XML Writer.
protected
getXmlWriter() : XMLWriter
Return values
XMLWriter —writeSetting()
Write indivual setting, recursive to any child settings.
protected
writeSetting(XMLWriter $xmlWriter, string $settingKey, array<string|int, mixed>|string $settingValue) : void
Parameters
- $xmlWriter : XMLWriter
- $settingKey : string
- $settingValue : array<string|int, mixed>|string
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
getSettings()
Get settings.
private
getSettings() : void
Return values
void —setCompatibility()
Get compatibility setting.
private
setCompatibility() : void
Return values
void —setConsecutiveHyphenLimit()
private
setConsecutiveHyphenLimit(null|int $consecutiveHyphenLimit) : void
Parameters
- $consecutiveHyphenLimit : null|int
Return values
void —setDocumentProtection()
Get protection settings.
private
setDocumentProtection(Protection $documentProtection) : void
Parameters
- $documentProtection : Protection
Return values
void —setHyphenationZone()
private
setHyphenationZone(null|float $hyphenationZone) : void
Parameters
- $hyphenationZone : null|float
Return values
void —setOnOffValue()
Adds a boolean attribute to the settings array.
private
setOnOffValue(string $settingName, null|bool $booleanValue) : void
Parameters
- $settingName : string
- $booleanValue : null|bool
Return values
void —setProofState()
Set the Proof state.
private
setProofState([ProofState $proofState = null ]) : void
Parameters
- $proofState : ProofState = null
Return values
void —setRevisionView()
Set the Revision View.
private
setRevisionView([TrackChangesView $trackChangesView = null ]) : void
Parameters
- $trackChangesView : TrackChangesView = null
Return values
void —setThemeFontLang()
Sets the language.
private
setThemeFontLang([Language $language = null ]) : void
Parameters
- $language : Language = null
Return values
void —setZoom()
Set the magnification.
private
setZoom([mixed $zoom = null ]) : void
Parameters
- $zoom : mixed = null