Class TWPAbstractCharAttrInterface

Hierarchy

System.TObject | TWPAbstractCharAttrInterface

Subclasses

WPRTEDefs.TWPAbstractCharParAttrInterface | WPRTEDefs.TWPOwnedCharAttrInterface | WPRTEDefs.TWPStoredCharAttrInterface

Description

WPTools stores attributes in a very compact way. To make it easier to modify this compact records the attribute interfaces have been created, This is the abstract anchestor of attribute interfaces. You can use to temporarily save the character attributes and load them later with .

Properties

Property CSStyle : string

Property RTFProps : TWPRTFProps

Methods

Procedure AddTo(DestInterface:TWPAbstractCharAttrInterface)

Procedure ADel(WPAT_Code:Byte)

Function AGet(WPAT_Code:Byte; Value:Integer) : Boolean

Function AGetWPSS(OnlyUsePTag:Boolean; Abbreviated:Boolean) : AnsiString

Function AGetWPSSNoCharSheets(Abbreviated:Boolean) : AnsiString

Procedure ASet(WPAT_Code:Byte; Value:Integer)

Procedure ASetWPSS(WPCSSString:AnsiString; Merge:Boolean; Abbreviated:Boolean)

Procedure Assign(SourceStyle:TWPTextStyle)

Procedure AssignTo(aTFont:TFont)

Function AttrLoad(store:TWPAbstractCharAttrStore) : Boolean

Procedure AttrSave(store:TWPAbstractCharAttrStore)

Procedure BeginUpdate

Procedure Clear(FontName:string; FontSize:Single; FontColor:TColor)

Function ContainedIn(CharAttrInterface:TWPStoredCharAttrInterface) : Boolean

Function Contains(CharAttrInterface:TWPStoredCharAttrInterface) : Boolean

Procedure DelIntValue(Index:Integer)

Function EndUpdate : Boolean

Procedure ExcludeStyle(Element:TOneWrtStyle)

Procedure ExcludeStyles(Elements:WrtStyle)

Function GetBGColor(Color:TColor) : Boolean

Function GetBGColorNr(ColorNr:Integer) : Boolean

Function GetCharEffect(Effect:Integer) : Boolean

Function GetCharLevel(CharlevelPC:Integer) : Boolean

Function GetCharSpacing(DistanceTW:Integer) : Boolean

Function GetCharStyleSheet(StyleNr:Integer) : Boolean

Function GetCharWidth(CharwidthPC:Integer) : Boolean

Function GetColor(Color:TColor) : Boolean

Function GetColorNr(ColorNr:Integer) : Boolean

Function GetColorValue(Index:Integer; Value:TColor) : Boolean

Function GetFont(FontNr:Integer) : Boolean

Function GetFontCharset(CharSet:Integer) : Boolean

Function GetFontName(FontName:TFontName) : Boolean

Function GetFontSize(FontSize:Single) : Boolean

Function GetFontStyle(FontStyle:TFontStyles) : Boolean

Function GetHighlightMode(Mode:Integer) : Boolean

Function GetIntValue(Index:Integer; Value:Integer) : Boolean

Function GetStyles(styles:WrtStyle) : Boolean

Function GetStylesEx(styles_on:WrtStyle; styles_mask:WrtStyle) : Boolean

Function GetTextEffect(Mode:Integer) : Boolean

Function GetTextLanguage(Mode:Integer) : Boolean

Function GetUnderlineColor(Color:TColor) : Boolean

Function GetUnderlineColorNr(ColorNr:Integer) : Boolean

Function GetUnderlineMode(Mode:Integer) : Boolean

Function HasAStyle(Element:TOneWrtStyle) : Boolean

Function HasAttr(WPAT_Code:Integer) : Boolean

Function HasStyle(Element:TOneWrtStyle; yes:Boolean) : Boolean

Procedure IncludeStyle(Element:TOneWrtStyle)

Procedure IncludeStyles(Elements:WrtStyle)

Function RemoveRedundantProps(sty:TWPTextStyle) : Boolean

Procedure SetBGColor(Color:TColor)

Procedure SetBGColorNr(ColorNr:Integer)

Procedure SetBGColorString(ColorName:string)

Procedure SetCharEffect(Effect:Integer)

Procedure SetCharLevel(CharlevelPC:Integer)

Procedure SetCharSpacing(DistanceTW:Integer)

Procedure SetCharStyles(WPSTY_mask:Integer; WPSTY_on:Integer)

Procedure SetCharStyleSheet(StyleNr:Integer)

Procedure SetCharWidth(CharwidthPC:Integer)

Procedure SetColor(Color:TColor)

Procedure SetColorNr(ColorNr:Integer)

Procedure SetColorString(ColorName:string)

Procedure SetColorStringValue(Index:Integer; ColorName:string)

Procedure SetColorValue(Index:Integer; Value:TColor)

Procedure SetFont(FontNr:Integer)

Procedure SetFontCharSet(CharSet:Integer)

Procedure SetFontName(FontName:string)

Procedure SetFontSize(Size:Single)

Procedure SetFontStyle(FontStyle:TFontStyles)

Procedure SetHighlightMode(Mode:Integer)

Procedure SetIntValue(Index:Integer; Value:Integer)

Procedure SetStyles(Value:WrtStyle)

Procedure SetTextEffect(Mode:Integer)

Procedure SetTextLanguage(Mode:Integer)

Procedure SetUnderlineColor(Color:TColor)

Procedure SetUnderlineColorNr(ColorNr:Integer)

Procedure SetUnderlineMode(Mode:Integer)

Procedure UndefineStyle(Element:TOneWrtStyle; forced:Boolean)

Used or referenced by

-Procedure TWPTextStyle.Assign(Source:TWPAbstractCharAttrInterface)