Ruby
extends AbstractElement
in package
Ruby element HTML writer.
Table of Contents
Properties
- $element : AbstractElement
- Element.
- $parentWriter : HTML
- Parent writer.
- $withoutP : bool
- Without paragraph.
Methods
- __construct() : mixed
- Create new instance.
- setWithoutP() : void
- Set without paragraph.
- write() : string
- Write text.
- getParagraphStyleForTextRun() : string
- Write paragraph style for a given TextRun.
- getPropertyCssForRtTag() : string
- Get property CSS for the <rt> tag.
- getPropertyCssForRubyTag() : string
- Get property CSS for the <ruby> tag.
Properties
$element
Element.
protected
AbstractElement
$element
$parentWriter
Parent writer.
protected
HTML
$parentWriter
$withoutP
Without paragraph.
protected
bool
$withoutP
= false
Methods
__construct()
Create new instance.
public
__construct(HTML $parentWriter, AbstractElement $element[, bool $withoutP = false ]) : mixed
Parameters
- $parentWriter : HTML
- $element : AbstractElement
- $withoutP : bool = false
setWithoutP()
Set without paragraph.
public
setWithoutP(bool $value) : void
Parameters
- $value : bool
write()
Write text.
public
write() : string
Return values
stringgetParagraphStyleForTextRun()
Write paragraph style for a given TextRun.
private
getParagraphStyleForTextRun(TextRun $textRun, string $extraCSS) : string
Parameters
- $textRun : TextRun
- $extraCSS : string
Return values
stringgetPropertyCssForRtTag()
Get property CSS for the <rt> tag.
private
getPropertyCssForRtTag(RubyProperties $properties) : string
Parameters
- $properties : RubyProperties
Return values
stringgetPropertyCssForRubyTag()
Get property CSS for the <ruby> tag.
private
getPropertyCssForRubyTag(RubyProperties $properties) : string
Parameters
- $properties : RubyProperties