Documentation

Paragraph extends AbstractStyle
in package

Paragraph style writer.

Tags
since
0.10.0

Table of Contents

Properties

$style  : AbstractStyle|string
Style; set protected for a while.
$isInline  : bool
Is inline in element.
$withoutPPR  : bool
Without w:pPr.
$xmlWriter  : XMLWriter
XML writer.

Methods

__construct()  : mixed
Create new instance.
setIsInline()  : void
Set is inline.
setWithoutPPR()  : void
Set without w:pPr.
write()  : void
Write style.
assembleStyle()  : string
Assemble style array into style string.
convertTwip()  : float|int
Convert twip value.
getStyle()  : AbstractStyle|string
Get Style.
getXmlWriter()  : XMLWriter
Get XML Writer.
writeChildStyle()  : void
Write child style.
writeOnOf()  : null|string
Writes boolean as 0 or 1.
writeNumbering()  : void
Write numbering.
writeStyle()  : void
Write full style.
writeTabs()  : void
Write tabs.

Properties

$isInline

Is inline in element.

private bool $isInline = false

$withoutPPR

Without w:pPr.

private bool $withoutPPR = false

Methods

setIsInline()

Set is inline.

public setIsInline(bool $value) : void
Parameters
$value : bool

setWithoutPPR()

Set without w:pPr.

public setWithoutPPR(bool $value) : void
Parameters
$value : bool

assembleStyle()

Assemble style array into style string.

protected assembleStyle([array<string|int, mixed> $styles = [] ]) : string
Parameters
$styles : array<string|int, mixed> = []
Return values
string

convertTwip()

Convert twip value.

protected convertTwip(float|int $value[, int $default = 0 ]) : float|int
Parameters
$value : float|int
$default : int = 0

(int|float)

Return values
float|int

writeChildStyle()

Write child style.

protected writeChildStyle(XMLWriter $xmlWriter, string $name, mixed $value) : void
Parameters
$xmlWriter : XMLWriter
$name : string
$value : mixed

writeOnOf()

Writes boolean as 0 or 1.

protected writeOnOf([bool $value = null ]) : null|string
Parameters
$value : bool = null
Return values
null|string

writeNumbering()

Write numbering.

private writeNumbering(XMLWriter $xmlWriter, array<string|int, mixed> $numbering) : void
Parameters
$xmlWriter : XMLWriter
$numbering : array<string|int, mixed>

writeStyle()

Write full style.

private writeStyle() : void

writeTabs()

Write tabs.

private writeTabs(XMLWriter $xmlWriter, array<string|int, Tab$tabs) : void
Parameters
$xmlWriter : XMLWriter
$tabs : array<string|int, Tab>

        
On this page

Search results