ScroogeXHTML for Object Pascal 9.3
Loading...
Searching...
No Matches
TSxOutputWriter Class Reference

An instance of this class reads the DomDocument and builds the (X)HTML result. More...

Inheritance diagram for TSxOutputWriter:
ISxOutputWriter

Public Member Functions

 TSxOutputWriter (const TSxBase AConverter)
string GetParaHTML (const TSimpleDomNode Node)
 Write ()
 Write method iterates the DomDocument and builds the result into StringResult.

Public Attributes

Boolean ConvertEmpty
 Determines whether empty paragraphs should be converted.
Boolean ConvertToPlainText
 Enables or disables plain text conversion.
ISimpleDomDocument DomDocument
 Provides access to the DOM document being processed.
string EmptyPar
 Defines the string used for empty paragraphs.
string LineTag
 Specifies the tag used for line breaks.
string StringResult
 Retrieves the generated output as a string.

Detailed Description

An instance of this class reads the DomDocument and builds the (X)HTML result.

Constructor & Destructor Documentation

◆ TSxOutputWriter()

TSxOutputWriter::TSxOutputWriter ( const TSxBase AConverter)

Member Function Documentation

◆ GetParaHTML()

string TSxOutputWriter::GetParaHTML ( const TSimpleDomNode Node)

◆ Write()

TSxOutputWriter::Write ( )

Write method iterates the DomDocument and builds the result into StringResult.

Depending on the value of ConvertToPlainText, this method either generates plain text or (X)HTML output.

Implements ISxOutputWriter.

Member Data Documentation

◆ ConvertEmpty

Boolean TSxOutputWriter::ConvertEmpty

Determines whether empty paragraphs should be converted.

If set to True, empty paragraphs will be processed and included in the output.

See also
FConvertEmpty For reading
FConvertEmpty For writing

◆ ConvertToPlainText

Boolean TSxOutputWriter::ConvertToPlainText

Enables or disables plain text conversion.

If set to True, the output will be plain text instead of (X)HTML.

See also
SetConvertToPlainText For writing

◆ DomDocument

ISimpleDomDocument TSxOutputWriter::DomDocument

Provides access to the DOM document being processed.

This property allows getting or setting the ISimpleDomDocument instance that represents the document structure.

See also
GetDomDocument For reading
SetDomDocument For writing

◆ EmptyPar

string TSxOutputWriter::EmptyPar

Defines the string used for empty paragraphs.

This property specifies the placeholder string for empty paragraphs in the output.

See also
FEmptyPar For reading
FEmptyPar For writing

◆ LineTag

string TSxOutputWriter::LineTag

Specifies the tag used for line breaks.

This property defines the tag or string used to represent line breaks in the output.

See also
FLineTag For reading
FLineTag For writing

◆ StringResult

string TSxOutputWriter::StringResult

Retrieves the generated output as a string.

This property provides access to the final result of the document processing.

See also
GetStringResult For reading