Class TWPCustomTextReader
Hierarchy
System.TObject | WPRTEDefs.TWPToolsReaderWriter | TWPCustomTextReader
Subclasses
WPIOANSI.TWPTextReader | WPIOHTML.TWPHTMLReader | WPIOReadRTF.TWPRTFReader | WPIOUNICODE.TWPUNITextReader | WPIOWPTools.TWPTOOLSReader
Description
TWPCustomTextReader basic functionality All reader classes must be registered using WPRegisterReader and override the functions UseForContents and UseForFilterName to allow checking Each Reader creates a new 'wpIsLoadedBody' TWPRTFDataBlock object which can be then inserted into the destination text or added to the collectionProperties
Property AlwaysDBCS : Boolean
Property CopyOfBodyData : TMemoryStream
Property CustomLoadOptions : Integer
Property LoadHTMLOptions : TLoadHTMLOptions
Property LoadName : string
Property LoadOptions : TLoadOptions
Property LoadPath : string
Property MemoryStreamPos : Integer
Property OptDontOverwriteStyles : Boolean
Property OptIgnoreUnknownFonts : Boolean
Property ParamObj : TObject
Property ReadingError : Boolean
Property WaitForFragment : Boolean
Methods
Create(RTFDataCollection:TWPRTFDataCollectionBase)
Function CurrentParagraph : TParagraph
Function NewChildParagraph(InitCount:Integer) : TParagraph
Events
OnTextReaderPreprocessTextObject : TWPTextReaderPreprocessTextObjectEvent= TWPTextReaderPreprocessTextObjectEvent
This event can be used by custom reader classes to preprocess loadxed objects.
Used or referenced by
-Procedure TWPRTFDataBlockEd.DoMergeAfterLoadText(RTFData:TWPRTFDataCollectionBase; Stream:TStream; Reader:TWPCustomTextReader; OnlyBodyText:Boolean; LoadedText:TWPRTFDataBlock) |