WIKINDX API trunk

PARAGRAPH

Table of Contents

Functions

br()  : void
Add a new line (br)
pStatus()  : bool
Set and get the open/close status of a paragraph. The initial text in a table cell is not enclosed in p tags in the html but must be in a paragrph in DOCX. However, a second paragraph in the cell _is_ enclosed in p tags in the HTML. We must ensure that the initial paragraph of a cell does not itself encapsulate any other paragraphs in the cell. The initial text in a cell will call startP() and set the pStatus to TRUE (open). Any subsequent call to startP() must check if pStatus is TRUE and, if so, close the preceding paragraph.
startP()  : void
Start a paragraph (p).
endP()  : void
End a paragraph (p)

Functions

br()

Add a new line (br)

br(XMLWriter $xml) : void
Parameters
$xml : XMLWriter

pStatus()

Set and get the open/close status of a paragraph. The initial text in a table cell is not enclosed in p tags in the html but must be in a paragrph in DOCX. However, a second paragraph in the cell _is_ enclosed in p tags in the HTML. We must ensure that the initial paragraph of a cell does not itself encapsulate any other paragraphs in the cell. The initial text in a cell will call startP() and set the pStatus to TRUE (open). Any subsequent call to startP() must check if pStatus is TRUE and, if so, close the preceding paragraph.

pStatus(string $method) : bool
Parameters
$method : string
Return values
bool

startP()

Start a paragraph (p).

startP(XMLWriter $xml[, bool $isPreElement = FALSE ]) : void

Return the current paragraph ID in case we need to insert section data

Parameters
$xml : XMLWriter
$isPreElement : bool = FALSE

endP()

End a paragraph (p)

endP(XMLWriter $xml) : void
Parameters
$xml : XMLWriter

        
On this page

Search results