Skip to content

SIG CD xxx

Symbolic Value : Composite Data
SIG_CD_xxx - Signatures for Composite Records in items of type TYPE_COMPOSITE.

#include <ods.h>

Symbolic Values :

SIG_CD_xxx    -  see Description

Description :


    Signature Structure
    SIG_CD_TABLECELL_DATAFLAGS CDTABLECELLDATAFLAGS
    SIG_CD_EMBEDDEDCONTACTLIST CDEMBEDDEDCONTACTLIST
    SIG_CD_IGNORE CDIGNORE
    SIG_CD_TABLECELL_HREF2 CDRESOURCE
    SIG_CD_HREFBORDER CDRESOURCE
    SIG_CD_HREF2 CDRESOURCE
    SIG_CD_TABLEDATAEXTENSION CDTABLEDATAEXTENSION
    SIG_CD_EMBEDDEDCALCTL CDEMBEDDEDCALCTL
    SIG_CD_ACTIONEXT CDACTIONEXT
    SIG_CD_EVENT_LANGUAGE_ENTRY CDEVENTENTRY
    SIG_CD_FILESEGMENT CDFILESEGMENT
    SIG_CD_FILEHEADER CDFILEHEADER
    SIG_CD_DATAFLAGS CDDATAFLAGS

    SIG_CD_BACKGROUNDPROPERTIES CDBACKGROUNDPROPERTIES
    SIG_CD_EMBEDEXTRA_INFO CDEMBEDEXTRA_INFO
    SIG_CD_CLIENT_BLOBPART CDBLOBPART
    SIG_CD_CLIENT_EVENT CDEVENT

    SIG_CD_BORDERINFO_HS CDBORDERINFO
    SIG_CD_LARGE_PARAGRAPH CDLARGEPARAGRAPH
    SIG_CD_EXT_EMBEDDEDSCHED CDEMBEDDEDSCHEDCTLEXTRA
    SIG_CD_BOXSIZE CDBOXSIZE
    SIG_CD_POSITIONING CDPOSITIONING
    SIG_CD_LAYER CDLAYER
    SIG_CD_DECSFIELD CDDECSFIELD
    SIG_CD_SPAN_END CDSPANRECORD
    SIG_CD_SPAN_BEGIN CDSPANRECORD
    SIG_CD_TEXTPROPERTIESTABLE CDTEXTPROPERTIESTABLE
    SIG_CD_BACKGROUNDCOLOR CDCOLOR
    SIG_CD_INLINE CDINLINE
    SIG_CD_V6HOTSPOTBEGIN_CONTINUATION CDHOTSPOTBEGIN
    SIG_CD_TARGET_DBLCLK CDTARGET
    SIG_CD_CAPTION CDCAPTION
    SIG_CD_LINKCOLORS CDLINKCOLORS
    SIG_CD_TABLECELL_HREF CDRESOURCE
    SIG_CD_ACTIONBAREXT CDACTIONBAREXT
    SIG_CD_IDNAME CDIDNAME
    SIG_CD_TABLECELL_IDNAME CDIDNAME
    SIG_CD_IMAGESEGMENT CDIMAGESEGMENT
    SIG_CD_IMAGEHEADER CDIMAGEHEADER
    SIG_CD_V5HOTSPOTBEGIN CDHOTSPOTBEGIN
    SIG_CD_V5HOTSPOTEND CDHOTSPOTEND
    SIG_CD_TEXTPROPERTY CDTEXTPROPERTY
    SIG_CD_PARAGRAPH CDPARAGRAPH
    SIG_CD_PABDEFINITION CDPABDEFINITION
    SIG_CD_PABREFERENCE CDPABREFERENCE
    SIG_CD_TEXT CDTEXT
    SIG_CD_HEADER CDHEADER
    SIG_CD_LINKEXPORT2 CDLINKEXPORT2
    SIG_CD_BITMAPHEADER CDBITMAPHEADER
    SIG_CD_BITMAPSEGMENT CDBITMAPSEGMENT
    SIG_CD_COLORTABLE CDCOLORTABLE
    SIG_CD_GRAPHIC CDGRAPHIC
    SIG_CD_PMMETASEG CDPMMETASEG
    SIG_CD_WINMETASEG CDWINMETASEG
    SIG_CD_MACMETASEG CDMACMETASEG
    SIG_CD_CGMMETA CDCGMMETA
    SIG_CD_PMMETAHEADER CDPMMETAHEADER
    SIG_CD_WINMETAHEADER CDWINMETAHEADER
    SIG_CD_MACMETAHEADER CDMACMETAHEADER
    SIG_CD_TABLEBEGIN CDTABLEBEGIN
    SIG_CD_TABLECELL CDTABLECELL
    SIG_CD_TABLEEND CDTABLEEND
    SIG_CD_STYLENAME CDSTYLENAME
    SIG_CD_STORAGELINK CDSTORAGELINK
    SIG_CD_TRANSPARENTTABLE CDTRANSPARENTTABLE
    SIG_CD_HORIZONTALRULE CDHRULE
    SIG_CD_ALTTEXT CDALTTEXT
    SIG_CD_ANCHOR CDANCHOR
    SIG_CD_HTMLBEGIN CDHTMLBEGIN
    SIG_CD_HTMLEND CDHTMLEND
    SIG_CD_HTMLFORMULA CDHTMLFORMULA
    SIG_CD_NESTEDTABLEBEGIN CDTABLEBEGIN
    SIG_CD_NESTEDTABLECELL CDTABLECELL
    SIG_CD_NESTEDTABLEEND CDTABLEEND
    SIG_CD_COLOR CDCOLOR
    SIG_CD_TABLECELL_COLOR CDCOLOR
    SIG_CD_BLOBPART CDBLOBPART
    SIG_CD_BEGIN CDBEGINRECORD
    SIG_CD_END CDENDRECORD
    SIG_CD_VERTICALALIGN CDVERTICALALIGN
    SIG_CD_FLOATPOSITION CDFLOAT
    SIG_CD_TIMERINFO CDTIMERINFO
    SIG_CD_TABLEROWHEIGHT CDTABLEROWHEIGHT
    SIG_CD_TABLELABEL CDTABLELABEL
    SIG_CD_BIDI_TEXT CDTEXT
    SIG_CD_BIDI_TEXTEFFECT CDTEXTEFFECT
    SIG_CD_REGIONBEGIN CDREGIONBEGIN
    SIG_CD_REGIONEND CDREGIONEND
    SIG_CD_TRANSITION CDTRANSITION
    SIG_CD_FIELDHINT CDFIELDHINT
    SIG_CD_PLACEHOLDER CDPLACEHOLDER
    SIG_CD_EMBEDDEDOUTLINE CDEMBEDDEDOUTLINE
    SIG_CD_EMBEDDEDVIEW CDEMBEDDEDVIEW
    SIG_CD_CELLBACKGROUNDDATA CDCELLBACKGROUNDDATA
    SIG_CD_FRAMESETHEADER CDFRAMESETHEADER
    SIG_CD_FRAMESET CDFRAMESET
    SIG_CD_FRAME CDFRAME
    SIG_CD_TARGET CDTARGET
    SIG_CD_MAPELEMENT CDMAPELEMENT
    SIG_CD_AREAELEMENT CDAREAELEMENT
    SIG_CD_HREF CDRESOURCE
    SIG_CD_EMBEDDEDCTL CDEMBEDDEDCTL
    SIG_CD_HTML_ALTTEXT CDALTTEXT
    SIG_CD_EVENT CDEVENT
    SIG_CD_PRETABLEBEGIN CDPRETABLEBEGIN
    SIG_CD_BORDERINFO CDBORDERINFO
    SIG_CD_EMBEDDEDSCHEDCTL CDEMBEDDEDSCHEDCTL
    SIG_CD_EXT2_FIELD CDEXT2FIELD
    SIG_CD_EMBEDDEDEDITCTL CDEMBEDDEDEDITCTL
    SIG_CD_DOCUMENT_PRE_26 CDDOCUMENT
    SIG_CD_FIELD_PRE_36 CDFIELD_PRE_36
    SIG_CD_FIELD CDFIELD
    SIG_CD_DOCUMENT CDDOCUMENT
    SIG_CD_METAFILE CDMETAFILE
    SIG_CD_BITMAP CDBITMAP
    SIG_CD_FONTTABLE CDFONTTABLE
    SIG_CD_LINK CDLINK
    SIG_CD_LINKEXPORT CDLINKEXPORT
    SIG_CD_KEYWORD CDKEYWORD
    SIG_CD_LINK2 CDLINK2
    SIG_CD_CGM CDCGM
    SIG_CD_TIFF CDTIFF
    SIG_CD_PATTERNTABLE CDPATTERNTABLE
    SIG_CD_DDEBEGIN CDDDEBEGIN
    SIG_CD_DDEEND CDDDEEND
    SIG_CD_OLEBEGIN CDOLEBEGIN
    SIG_CD_OLEEND CDOLEEND
    SIG_CD_HOTSPOTBEGIN CDHOTSPOTBEGIN
    SIG_CD_HOTSPOTEND CDHOTSPOTEND
    SIG_CD_BUTTON CDBUTTON
    SIG_CD_BAR CDBAR
    SIG_CD_V4HOTSPOTBEGIN CDHOTSPOTBEGIN
    SIG_CD_V4HOTSPOTEND CDHOTSPOTEND
    SIG_CD_EXT_FIELD CDEXTFIELD
    SIG_CD_LSOBJECT CDLSOBJECT
    SIG_CD_HTMLHEADER CDHTMLHEADER
    SIG_CD_HTMLSEGMENT CDHTMLSEGMENT
    SIG_CD_LAYOUT CDLAYOUT
    SIG_CD_LAYOUTTEXT CDLAYOUTTEXT
    SIG_CD_LAYOUTEND CDLAYOUTEND
    SIG_CD_LAYOUTFIELD CDLAYOUTFIELD
    SIG_CD_PABHIDE CDPABHIDE
    SIG_CD_PABFORMREF CDPABFORMULAREF
    SIG_CD_ACTIONBAR CDACTIONBAR
    SIG_CD_ACTION CDACTION
    SIG_CD_DOCAUTOLAUNCH CDDOCAUTOLAUNCH
    SIG_CD_LAYOUTGRAPHIC CDLAYOUTGRAPHIC
    SIG_CD_OLEOBJINFO CDOLEOBJ_INFO
    SIG_CD_LAYOUTBUTTON CDLAYOUTBUTTON
    SIG_CD_TEXTEFFECT CDTEXTEFFECT
    SIG_CD_ALTERNATEBEGIN CDALTERNATEBEGIN
    SIG_CD_ALTERNATEEND CDALTERNATEEND
    SIG_CD_OLERTMARKER CDOLERTMARKER

    These values identify the type of a composite data (CD) record. For example, a CD record identified by SIG_CD_PARAGRAPH contains a data structure of type CDPARAGRAPH.

    An item of TYPE_COMPOSITE consists of a series of CD records. Each CD record begins with a header. The signature is treated as a WORD value; it consists of two byte fields. The low-order byte contains the actual signature value, and is a value from the SIG_CD_xxx, SIG_QUERY_xxx, or SIG_ACTION_xxx sets. The high-order byte is one of the following:

    1) 0x00: Inidicates that the signature word is followed by a DWORD (32-bit) length. The header may be accessed using the LSIG structure.

    2) 0xFF: Indicates that the signature word is followed by a WORD (16-bit) length. The header may be accessed using the WSIG structure.

    3) 0x01-0xFE: The high-order byte contains an 8-bit length. The header may be accessed using the BSIG structure.

    The length specified in the header of a CD record includes the length of the header itself.

    Note: CD record headers must be word aligned (CD records always begin on even byte boundaries). This guarantees that distinct signature bytes always align on word boundaries.

    API programs normally use the routine EnumCompositeBuffer() to parse the CD records in an item of TYPE_COMPOSITE.

Sample Usage :

//************************************************************************
//
//
//   CDParse
//
//      called by EnumCompositeBuffer to dump contents of each chunk
//      of a compound document (Rich text) item
//
//      Inputs:
//         char     *RecordPtr    - pointer to start of data
//         WORD      RecordType   - type of CD chunk
//         DWORD     RecordLength - length of returned chunk
//         void far *Unused
//
//************************************************************************

STATUS LNPUBLIC CDParse(
   char *RecordPtr,
   WORD RecordType,
   DWORD RecordLength,
   void * Unused)
{
   fprintf( dumpfile,"  CD RECORD. Size = %ld bytes.\n",RecordLength);
   fprintf( dumpfile,"  Record Type =\n");

   switch (RecordType) {      
      case SIG_CD_PARAGRAPH:
         fprintf( dumpfile,"  PARAGRAPH\n");
         break;

      case SIG_CD_PABDEFINITION:
         fprintf( dumpfile,"  PABDEFINITION\n");
         break;

      case SIG_CD_PABREFERENCE:
         fprintf( dumpfile,"  PABREFERENCE\n");
         break;

      case SIG_CD_TEXT:
         fprintf( dumpfile,"  TEXT");
         break;

      case SIG_CD_LINKEXPORT2:
         fprintf( dumpfile,"  LINKEXPORT2\n");
         break;

      case SIG_CD_HEADER:
         fprintf( dumpfile,"  HEADER\n");
         break;

      case SIG_CD_FONTTABLE:
         fprintf( dumpfile,"  FONTTABLE\n");
         break;

      default:
         fprintf( dumpfile,"Unidentified CD Record.\n");
         break;
   }
   return NOERROR;
}

See Also : BSIG EnumCompositeBuffer FONTID LSIG WSIG