TWPTextObjType Type

Unit
WPRTEDefs

Declaration

TWPTextObjType = (
    wpobjCustom, // can be anything - use 'is' operator
    // This objects are usually used pairwise
    wpobjMergeField, // Name=fieldname, Source=Command A field (used to be Insertpoint - now always use Start/End !
    wpobjHyperlink, // Name=Title, Source = HREF, StyleName=class
    wpobjBookmark, // Name=bookmarkname, Source = Title, StyleName=class
    wpobjTextProtection, // Text cannot be edited within
    wpobjSPANStyle, // Special texts styles , StyleName=class (=parstyle = name), Source=style as read from file
    wpobjCode, // Custom Codes
    // This objects are usually used sigular
    wpobjTextObject, // A text object field (one char text, such as PAGE), Source=FieldMask, IParam= min length in chars
    wpobjReference, // A text object field (Name=Bookmark, Source=Default Text) CParam = -1 or the page number last used
    wpobjPageSize, // - not used. We use the sections to define page sizes
    wpobjPageProps, // - not used. We use the sections to define page sizes
    wpobjFootnote,
    // Standard: Name='', Params=C, Source=text.
    // Premium: Name<>'', Source=''
    wpobjImage, // a TWPObject, for HTML images the 'name=ALT tag, Source = file', StyleName=class
    wpobjHorizontalLine // CParam=MarginOffsets in twips, IParam=Color, Width=width in twips or 0, Height=Height in twips or 0
    );

Description
This type is used to differentiate between different TWPTextObj reference classes. Such a comparison is quicker then usint the 'as' operator


Copyright (C) by WPCUBED GmbH - Munich
http://www.wpcubed.com