Annotation of researchv9/X11/src/X.V11R1/clients/xmh/tocintrnl.h, revision 1.1

1.1     ! root        1: /* $Header: tocintrnl.h,v 1.1 87/09/11 08:19:22 toddb Exp $ */
        !             2: /*
        !             3:  *                       COPYRIGHT 1987
        !             4:  *                DIGITAL EQUIPMENT CORPORATION
        !             5:  *                    MAYNARD, MASSACHUSETTS
        !             6:  *                     ALL RIGHTS RESERVED.
        !             7:  *
        !             8:  * THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND
        !             9:  * SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION.
        !            10:  * DIGITAL MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR
        !            11:  * ANY PURPOSE.  IT IS SUPPLIED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
        !            12:  *
        !            13:  * IF THE SOFTWARE IS MODIFIED IN A MANNER CREATING DERIVATIVE COPYRIGHT RIGHTS,
        !            14:  * APPROPRIATE LEGENDS MAY BE PLACED ON THE DERIVATIVE WORK IN ADDITION TO THAT
        !            15:  * SET FORTH ABOVE.
        !            16:  *
        !            17:  *
        !            18:  * Permission to use, copy, modify, and distribute this software and its
        !            19:  * documentation for any purpose and without fee is hereby granted, provided
        !            20:  * that the above copyright notice appear in all copies and that both that
        !            21:  * copyright notice and this permission notice appear in supporting documentation,
        !            22:  * and that the name of Digital Equipment Corporation not be used in advertising
        !            23:  * or publicity pertaining to distribution of the software without specific,
        !            24:  * written prior permission.
        !            25:  */
        !            26: 
        !            27: /* Includes for modules implementing toc stuff. */
        !            28: 
        !            29: #ifndef _tocinternal_h
        !            30: #define _tocinternal_h
        !            31: 
        !            32: typedef enum {
        !            33:     unknown, valid, invalid
        !            34: } ValidType;
        !            35: 
        !            36: typedef struct _MsgRec {
        !            37:     Toc                toc;            /* Which toc this message is in. */
        !            38:     Toc                desttoc;        /* Folder to copy or move to (NULL if none) */
        !            39:     FateType   fate;           /* What will be done to this message */
        !            40:     XtTextPosition position;   /* Position in the scanfile for this msg. */
        !            41:     int                length;         /* #/chars for this msg's entry in scanfile. */
        !            42:     char       *buf;           /* The scanline for this message. */
        !            43:     int                msgid;          /* Message id for this message. */
        !            44:     short      changed;        /* True iff this entry needs to be saved. */
        !            45:     short      visible;        /* Whether we should show this message. */
        !            46:     short      temporary;      /* Whether we should delete this message when
        !            47:                                   it is no longer visible. */
        !            48:     Scrn       scrn;           /* Scrn showing this message (if any) */
        !            49:     XtTextSource *source;      /* Source (if any) containing this msg. */
        !            50:     short      reapable;       /* True iff we don't need to keep this
        !            51:                                   composition around. */
        !            52:     XtTextPosition startPos;   /* Where to start the insertion point. */
        !            53: } MsgRec;
        !            54: 
        !            55: typedef struct _TocRec {
        !            56:    Scrn        scrn;                   /* Scrn containing this table of contents */
        !            57:    char        *foldername;    /* Folder name for this toc */
        !            58:    char                *path;          /* Full path to folder's directory. */
        !            59:    char                *scanfile;      /* Full path to file containing scan. */
        !            60:    Msg         curmsg;         /* Current msgid for this toc. */
        !            61:    int         nummsgs;        /* How many info entries we currently have. */
        !            62:    Msg         *msgs;          /* Array of pointers to info about each msg. */
        !            63:    int         numsequences;   /* #/sequences defined for this folder. */
        !            64:    Sequence *seqlist;  /* Array of pointers to sequences. */
        !            65:    Sequence viewedseq; /* Seq currently shown (NULL == all msgs) */
        !            66:    XtTextSource        *source;        /* Source for the file containing info. */
        !            67:    int         length;         /* #/chars in the scanfile. */
        !            68:    int         origlength;     /* Original #/chars in the scanfile. */
        !            69:    int         lastPos;        /* Last legal position */
        !            70:    ValidType   validity;       /* Whether the scan file for this toc is */
        !            71:                                /* up to date. */
        !            72:    int         needsrepaint;   /* TRUE if we should repaint this toc. */
        !            73:    int         needscachesave; /* TRUE if the cache needs saving. */
        !            74:    int         needslabelupdate;/* TRUE if the toclabel needs repainting. */
        !            75:    int         stopupdate;     /* Zero if refreshing; nonzero if refreshing is
        !            76:                                   currently inhibited. */
        !            77:    char                *incfile;       /* Which file to incorporate from (if any). */
        !            78:    int         mailpending;    /* True if we're currently displaying
        !            79:                                   mail-pending info for this folder. */
        !            80:    long                lastreaddate;   /* Last time we read or wrote the cache. */
        !            81: } TocRec;
        !            82: 
        !            83: #endif _tocinternal_h

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.