|
ScroogeXHTML for Object Pascal 10.0-RC1
|
An instance of this class reads the DomDocument and builds the (X)HTML result. More...
Public Member Functions | |
| TSxOutputWriter (const TSxBase AConverter) | |
| ~TSxOutputWriter () | |
| string | ConvertTextNodesToHTML (const TParagraphNode Para) |
| Iterates over all paragraph's text node and converts them. | |
| string | GetParaHTML (TParagraphNode Para, const string AText) |
| Write () | |
| Write method iterates the DomDocument and builds the result into StringResult. | |
Public Attributes | |
| TStringBuilder | Content |
| 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. | |
| Boolean | FConvertEmpty |
| TSxBase | FConverter |
| Boolean | FConvertToPlainText |
| string | FEmptyPar |
| string | FLineTag |
| string | LineTag |
| Specifies the tag used for line breaks. | |
| ISimpleDomDocument | strict |
| 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 | ) |
| TSxOutputWriter::~TSxOutputWriter | ( | ) |
| string TSxOutputWriter::ConvertTextNodesToHTML | ( | const TParagraphNode | Para | ) |
Iterates over all paragraph's text node and converts them.
| string TSxOutputWriter::GetParaHTML | ( | TParagraphNode | Para, |
| const string | AText ) |
| 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.
| TStringBuilder TSxOutputWriter::Content |
| 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 |
| Boolean TSxOutputWriter::FConvertEmpty |
| TSxBase TSxOutputWriter::FConverter |
| Boolean TSxOutputWriter::FConvertToPlainText |
| string TSxOutputWriter::FEmptyPar |
| string TSxOutputWriter::FLineTag |
| string TSxOutputWriter::LineTag |
| ISimpleDomDocument TSxOutputWriter::strict |
| string TSxOutputWriter::StringResult |
Retrieves the generated output as a string.
This property provides access to the final result of the document processing.