ScroogeXHTML for Object Pascal 9.5
Loading...
Searching...
No Matches
TSxReader Class Reference

This class reads the RTF input and sends the property changes to an instance of TSxWriter. More...

Inheritance diagram for TSxReader:
ISxReader

Public Member Functions

 TSxReader (const TSxBase AOwner, const ISxWriter AWriter)
 create a new instance of a TSxReader
 ~TSxReader ()
 destroy the TSxReader
 BeforeEndGroup ()
 ChangeDestination (TRTFDestination ADestination)
 ConvertRTFToHTML ()
 ConvertRTFToHTML (const RawByteString RTF)
 the main converter procedure
 FinishColorTableEntry ()
 add a color (RGB-value) to the color table
 FinishFontName ()
 FinishFontTable ()
 replace fonts and set the default font name
TCharset GetFontCharSetByNr (const Int64 FontNr)
 get a font character set using its number as key
string GetFontNameByNr (const Int64 FontNr)
 get a font name using its number as key
AnsiChar GetNextCharacter ()
 ParseCharacter (AnsiChar c)
 ParseRTFKeyword (Shortint &PreviewTextNibble)
 ParseSpecialKeyword (TRTFFunction RTFFnct)
 PopRTFState ()
 restore the last reader state
 PrintCharacter (const AnsiChar Ch)
 PushRTFState ()
 save the current reader state
 SetDestination (const TRTFDestination Value)
 change the destination
 SetParagraphNumberingProperty (const TRTFProperty Prop, const Int64 Value)
 SetProperty (const TRTFProperty Prop, const Int64 Value)
 change a property to a new value
 SetSkipUnknownDestination (const Boolean Value)
 change the 'skip unknown destination' flag
 SkipWord ()
 TranslateKeyword (const string AToken, Int64 AParamValue, const Boolean hasParam)
 UndoGetNextCharacter ()

Public Attributes

string Anchor
Int64 BinByteCount
TStrings ColorTable
TSxBase Converter
Int64 CurFontCSet
TFontFamily CurFontFamily
string CurFontName
Int64 CurFontNr
Int64 CurrUniSkip
Int64 DefaultFontNr
TRTFDestination Destination
 the current Destination
TRTFDestination FDestination
string FieldExpression
<, > TFontDescriptor FontTable
TInternalState IntState
TRTFDestination LeavingDestination
AnsiChar NextChar
Int64 ParamVal
string PictHex
Integer PictNibble
Int64 Red
Integer RTFLength
RawByteString RTFsource
Boolean SkipPicture
Boolean SkipUnknownDestination
 the 'skip unknown destination' flag
Integer SourcePos
<> TObjectStack Stack
Boolean strict
IUnicodeConverter UnicodeConverter
Int64 UnicodeSkip
ISxWriter Writer

Detailed Description

This class reads the RTF input and sends the property changes to an instance of TSxWriter.

See also
TSxWriter

Constructor & Destructor Documentation

◆ TSxReader()

TSxReader::TSxReader ( const TSxBase AOwner,
const ISxWriter AWriter )

create a new instance of a TSxReader

◆ ~TSxReader()

TSxReader::~TSxReader ( )

destroy the TSxReader

Member Function Documentation

◆ BeforeEndGroup()

TSxReader::BeforeEndGroup ( )

◆ ChangeDestination()

TSxReader::ChangeDestination ( TRTFDestination ADestination)

◆ ConvertRTFToHTML() [1/2]

TSxReader::ConvertRTFToHTML ( )

◆ ConvertRTFToHTML() [2/2]

TSxReader::ConvertRTFToHTML ( const RawByteString RTF)

the main converter procedure

Implements ISxReader.

◆ FinishColorTableEntry()

TSxReader::FinishColorTableEntry ( )

add a color (RGB-value) to the color table

◆ FinishFontName()

TSxReader::FinishFontName ( )

◆ FinishFontTable()

TSxReader::FinishFontTable ( )

replace fonts and set the default font name

◆ GetFontCharSetByNr()

TCharset TSxReader::GetFontCharSetByNr ( const Int64 FontNr)

get a font character set using its number as key

◆ GetFontNameByNr()

string TSxReader::GetFontNameByNr ( const Int64 FontNr)

get a font name using its number as key

◆ GetNextCharacter()

AnsiChar TSxReader::GetNextCharacter ( )

◆ ParseCharacter()

TSxReader::ParseCharacter ( AnsiChar c)

◆ ParseRTFKeyword()

TSxReader::ParseRTFKeyword ( Shortint & PreviewTextNibble)

◆ ParseSpecialKeyword()

TSxReader::ParseSpecialKeyword ( TRTFFunction RTFFnct)

◆ PopRTFState()

TSxReader::PopRTFState ( )

restore the last reader state

◆ PrintCharacter()

TSxReader::PrintCharacter ( const AnsiChar Ch)

◆ PushRTFState()

TSxReader::PushRTFState ( )

save the current reader state

◆ SetDestination()

TSxReader::SetDestination ( const TRTFDestination Value)

change the destination

◆ SetParagraphNumberingProperty()

TSxReader::SetParagraphNumberingProperty ( const TRTFProperty Prop,
const Int64 Value )

◆ SetProperty()

TSxReader::SetProperty ( const TRTFProperty Prop,
const Int64 Value )

change a property to a new value

◆ SetSkipUnknownDestination()

TSxReader::SetSkipUnknownDestination ( const Boolean Value)

change the 'skip unknown destination' flag

◆ SkipWord()

TSxReader::SkipWord ( )

◆ TranslateKeyword()

TSxReader::TranslateKeyword ( const string AToken,
Int64 AParamValue,
const Boolean hasParam )

◆ UndoGetNextCharacter()

TSxReader::UndoGetNextCharacter ( )

Member Data Documentation

◆ Anchor

string TSxReader::Anchor

◆ BinByteCount

Int64 TSxReader::BinByteCount

◆ ColorTable

TStrings TSxReader::ColorTable

◆ Converter

TSxBase TSxReader::Converter

◆ CurFontCSet

Int64 TSxReader::CurFontCSet

◆ CurFontFamily

TFontFamily TSxReader::CurFontFamily

◆ CurFontName

string TSxReader::CurFontName

◆ CurFontNr

Int64 TSxReader::CurFontNr

◆ CurrUniSkip

Int64 TSxReader::CurrUniSkip

◆ DefaultFontNr

Int64 TSxReader::DefaultFontNr

◆ Destination

TRTFDestination TSxReader::Destination

the current Destination

See also
FDestination For reading
SetDestination For writing

◆ FDestination

TRTFDestination TSxReader::FDestination

◆ FieldExpression

string TSxReader::FieldExpression

◆ FontTable

<, > TFontDescriptor TSxReader::FontTable

◆ IntState

TInternalState TSxReader::IntState

◆ LeavingDestination

TRTFDestination TSxReader::LeavingDestination

◆ NextChar

AnsiChar TSxReader::NextChar

◆ ParamVal

Int64 TSxReader::ParamVal

◆ PictHex

string TSxReader::PictHex

◆ PictNibble

Integer TSxReader::PictNibble

◆ Red

Int64 TSxReader::Red

◆ RTFLength

Integer TSxReader::RTFLength

◆ RTFsource

RawByteString TSxReader::RTFsource

◆ SkipPicture

Boolean TSxReader::SkipPicture

◆ SkipUnknownDestination

Boolean TSxReader::SkipUnknownDestination

the 'skip unknown destination' flag

See also
FSkipUnkDest For reading
SetSkipUnknownDestination For writing

◆ SourcePos

Integer TSxReader::SourcePos

◆ Stack

<> TObjectStack TSxReader::Stack
See also
TReaderProperties For writing

◆ strict

Boolean TSxReader::strict

◆ UnicodeConverter

IUnicodeConverter TSxReader::UnicodeConverter

◆ UnicodeSkip

Int64 TSxReader::UnicodeSkip

◆ Writer

ISxWriter TSxReader::Writer