Changeset 6020


Ignore:
Timestamp:
2003-11-28T14:26:24+13:00 (20 years ago)
Author:
sjboddie
Message:

Added a [DocOID] format statement option that returns the OID of the
section being displayed.

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/formattools.cpp

    r5788 r6020  
    597597  else if (meta == "DocumentButtonExpandText")
    598598     formatlistptr->command = comDocumentButtonExpandText;
     599
     600  else if (meta == "DocOID")
     601     formatlistptr->command = comOID;
    599602 
    600603  else {
     
    10701073
    10711074  switch (formatlistptr->command) {
     1075     case comOID:
     1076    return docinfo.OID;
    10721077     case comText:
    10731078    return formatlistptr->text;
  • trunk/gsdl/src/recpt/formattools.h

    r5787 r6020  
    3636        comDoc, comHighlight, comEndHighlight, comRel, comHref, comSummary,
    3737        comTOC, comImage, comDocumentButtonDetach, comDocumentButtonHighlight,
    38         comDocumentButtonExpandContents, comDocumentButtonExpandText};
     38        comDocumentButtonExpandContents, comDocumentButtonExpandText, comOID};
    3939enum pcommand_t {pNone, pImmediate, pTop, pAll};
    4040enum dcommand_t {dMeta, dText};
Note: See TracChangeset for help on using the changeset viewer.