Class TrRTFParser

Unit

Declaration

type TrRTFParser = class(TComponent)

Description

TrRTFParser is light version of RTF format parser. It simply extracts all tags and texts to the StringList which can be used to produce plain text file or use rtf tags to produce formatted text.

Hierarchy

  • TComponent
  • TrRTFParser

Overview

Methods

Public function IsRtfFormat: boolean;
Public procedure ParseRtfContent(SupportedTags: TStrings = nil);

Properties

Public property RtfContent: string read FRtfContent write FRtfContent;
Public property RtfElements: TStrings read FRtfElements;
Public property FontTable: TStrings read FFontTable;

Description

Methods

Public function IsRtfFormat: boolean;

return whether RtfContent contain rtf format

Public procedure ParseRtfContent(SupportedTags: TStrings = nil);

parse RtfContent and fill RtfElements by supported tags and text; supported tags can use wild char * for any chars and # for any numbers

Properties

Public property RtfContent: string read FRtfContent write FRtfContent;

define RtfContent

Public property RtfElements: TStrings read FRtfElements;

contain result of parsing

Public property FontTable: TStrings read FFontTable;

contain list of defined fonts (f0, f1, f2)


Generated by PasDoc 0.15.0.