Class TWPCustomTextWriter
Hierarchy
System.TObject | WPRTEDefs.TWPToolsReaderWriter | TWPCustomTextWriter
Subclasses
WPIOANSI.TWPTextWriter | WPIOHTML.TWPHTMLWriter | WPIOUNICODE.TWPUNITextWriter | WPIOWPTools.TWPTOOLSWriter | WPIOWriteRTF.TWPRTFWriter
Description
TWPCustomTextWriter basic functionality All writer classes must be registered using WPRegisterWriter and override the functions UseForContents and UseForFilterName to allow checkingProperties
Property CurrentImageName : string
Property IgnoreCharacterAttributes : Integer
Property OptDontWriteOpenGroups : Boolean
Property SaveName : string
Property SavePath : string
Property StoreOptions : TStoreOptions
Property TableLevel : Integer
Property WriteError : Boolean
Methods
Function CloseCharAttrTags : Boolean
Procedure CloseDocumentStream(aStream:TStream)
Function CloseXMLTags(id:Integer) : Integer
Create(RTFDataCollection:TWPRTFDataCollectionBase)
Function GetWritePosition : Integer
Procedure OpenDocumentStream(aStream:TStream)
Procedure PrepareImageforSaving(txtobj:TWPTextObj; DontSave:Boolean; embed_image_name:string)
Procedure SetTableLevel(x:Integer)
Procedure SetWriteMaxPosition(x:Integer)
Procedure SetWritePosition(x:Integer)
Procedure SwitchWriteBufferRestore(txtobj:TWPTextObj)
Procedure SwitchWriteBufferSave(txtobj:TWPTextObj)
Function UpdateCharAttr(CharAttrIndex:Cardinal) : Boolean
Function UpdateCharAttrEx(CharAttrIndex:Cardinal; Par:TParagraph; pos_in_par:Integer) : Boolean
Function WriteBase64Encoded(data:TMemoryStream) : Boolean
Function WriteBody : Boolean
Function WriteBuffer(pbuffer:PByte; Size:Integer; AsHex:Boolean) : Boolean
Procedure WriteBufferCopyFromPos(p:Integer; dest:TStream)
Function WriteBufferFlush : Boolean
Function WriteCell(cellpar:TParagraph; Style:TWPTextStyle; Start:Boolean) : Boolean
Function WriteChar(aChar:Word) : Boolean
Function WriteCharAttr(Start:Boolean; CharAttrIndex:Integer) : Boolean
Function WriteCharAttrEx(Start:Boolean; CharAttrIndex:Integer; Par:TParagraph; pos_in_par:Integer) : Boolean
Function WriteElementEnd(RTFData:TWPRTFDataBlock) : Boolean
Function WriteElementFinished(RTFData:TWPRTFDataBlock) : Boolean
Procedure WriteElements(SectionID:Integer)
Function WriteElementStart(RTFData:TWPRTFDataBlock) : Boolean
Function WriteFloat(Value:Extended) : Boolean
Function WriteFooter : Boolean
Function WriteHeader : Boolean
Function WriteHexEncoded(data:TMemoryStream; Offset:Integer) : Boolean
Function WriteHTMLChar(C:Char) : Boolean
Function WriteHTMLString(s:string) : Boolean
Function WriteHTMLStringW(s:WideString) : Boolean
Function WriteHyphen : Boolean
Function WriteInteger(Value:Integer) : Boolean
Function WriteLevelEnd(Par:TParagraph) : Boolean
Function WriteObject(txtobj:TWPTextObj; Par:TParagraph; posinpar:Integer) : Boolean
Procedure WriteParagraph(par:TParagraph; StartAndEnd:Boolean; Attributes:Boolean)
Function WriteParagraphEnd(Par:TParagraph; ParagraphType:TWPParagraphType; NeedNL:Boolean) : Boolean
Function WriteParagraphStart(Par:TParagraph; ParagraphType:TWPParagraphType; Style:TWPTextStyle) : Boolean
Function WriteParText(Par:TParagraph; pos_from:Integer; pos_to:Integer; CharAttr:Cardinal) : Boolean
Function WriteRow(rowpar:TParagraph; Style:TWPTextStyle; Start:Boolean; OnlySelectedCells:Boolean) : Boolean
Function WriteStream(str:TMemoryStream; AsHex:Boolean; Offset:Integer) : Boolean
Function WriteString(s:string) : Boolean
Function WriteStringAndValue(s:AnsiString; Value:Integer) : Boolean
Function WriteTable(tablepar:TParagraph; Style:TWPTextStyle; Start:Boolean) : Boolean
Function WriteTranslatedString(str:WideString) : Boolean
Function WriteWideChar(w:Char) : Boolean
Function WriteXMLTag(Name:AnsiString; Params:TStringList) : Integer
Used or referenced by
-Function TWPObject.SaveOLEBinary(Writer:TWPCustomTextWriter; AsHex:Boolean) : Boolean |