![]() |
ScroogeXHTML for Object Pascal 9.3
|
An instance of this class reads the DomDocument and builds the (X)HTML result. More...
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. |
An instance of this class reads the DomDocument and builds the (X)HTML result.
TSxOutputWriter::TSxOutputWriter | ( | const TSxBase | AConverter | ) |
string TSxOutputWriter::GetParaHTML | ( | const TSimpleDomNode | Node | ) |
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.
Boolean TSxOutputWriter::ConvertEmpty |
Determines whether empty paragraphs should be converted.
If set to True
, empty paragraphs will be processed and included in the output.
Boolean TSxOutputWriter::ConvertToPlainText |
Enables or disables plain text conversion.
If set to True
, the output will be plain text instead of (X)HTML.
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.
string TSxOutputWriter::EmptyPar |
Defines the string used for empty paragraphs.
This property specifies the placeholder string for empty paragraphs in the output.
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.
string TSxOutputWriter::StringResult |
Retrieves the generated output as a string.
This property provides access to the final result of the document processing.