WPTools Manual



Search


(press enter to search)

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 checking

Properties

Methods

Function CloseCharAttrTags : Boolean

Procedure CloseDocumentStream(aStream:TStream)

Function CloseXMLTags(id:Integer) : Integer

Create(RTFDataCollection:TWPRTFDataCollectionBase)

Destroy

Function GetWritePosition : Integer

Procedure InitializeWriting

Procedure OpenDocumentStream(aStream:TStream)

Procedure PopBLOCK

Procedure PrepareImageforSaving(txtobj:TWPTextObj; DontSave:Boolean; embed_image_name:string)

Procedure PushBLOCK

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 WriteAttribute(Selection:TWPTextWriterModes; TextAttribute:TWPTextStyle; WriteAttribute:TWPTextStyle) : 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 WriteCode(txtobj:TWPTextObj; Opening:Boolean; Closing:Boolean; Par:TParagraph; posinpar: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

Procedure WriteMainText

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 WriteText(fpOut:TStream; RTFData:TWPRTFDataBlock; par_s:TParagraph; par_e:TParagraph; start_pos:Integer; end_pos:Integer) : 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