home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / www / src / midaswww-1.0 / SGMLHyperP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-16  |  2.9 KB  |  84 lines

  1. /*==================================================================*/
  2. /*                                                                  */
  3. /* SGMLHyperWidget                                                  */
  4. /*                                                                  */
  5. /* B.Raoult (mab@ecmwf.co.uk)                              Oct.91   */
  6. /* T.Johnson - added SGML facilities                      June.92   */
  7. /*             (Tony Johnson)                                       */
  8. /*                                                                  */
  9. /* Hyper text like widget.                                          */
  10. /*                                                                  */
  11. /*==================================================================*/
  12.  
  13. #ifndef SGMLHYPERP_H
  14. #define SGMLHYPERP_H
  15. #include "SGMLHyper.h"
  16.  
  17. #ifdef MOTIF
  18. #include <Xm/XmP.h>
  19. #endif
  20.  
  21. /* SGMLHyper class : no new fields */
  22.  
  23. typedef struct _SGMLHyperClassPart{
  24.     int ignore;
  25. } SGMLHyperClassPart;
  26.  
  27. typedef struct _SGMLHyperClassRec{
  28.     CoreClassPart       core_class;
  29.     CompositeClassPart  composite_class; 
  30. #ifdef MOTIF
  31.     XmManagerClassPart  manager_class;
  32. #endif
  33.     SGMLHyperClassPart  sgml_hyper_class;
  34. } SGMLHyperClassRec, *SGMLHyperWidgetClass;
  35.  
  36. extern SGMLHyperClassRec sGMLHyperClassRec;
  37.  
  38.  
  39. typedef struct _SGMLHyperPart {
  40.  
  41.     Cursor    hand;                  /* Selecting cursor shape */
  42.     Boolean   zoom;                  /* zoom effect when selected */
  43.     int       speed;                 /* zoom speed                */
  44.     char      open_tag;              /* start of highlighted text mark */
  45.     char      close_tag;             /* end of highlighted text mark */
  46.     char      end_tag;               /* character used to hide text in highlight */
  47.     char      parameter_tag;         /* parameter tag */
  48.     Boolean   case_sensitive_tags;   /* Case sensitive tags */
  49.     Widget    managed;
  50.     int       cache_size;            /* maximum number of cached text segments */
  51.  
  52.     Dimension margin;                /* margins size */
  53.     Dimension natural_width;         /* size it tries to fit text into */
  54.     
  55. /*
  56.     text_segment         *grep_seg;  /* segment where found text is *
  57. */
  58.     char                 *grep_txt;  /* pointer to found text */
  59.     int                   grep_len;  /* length of found text */
  60.     int                   grep_off;  /* offset of found text */
  61.  
  62.     Position          grep_x;        /* rectangle of found text*/
  63.     Position          grep_y;
  64.     Dimension         grep_width;
  65.     Dimension         grep_height;
  66.  
  67.     SGMLTextObject    last_selected; /* last selected segment     */
  68.     SGMLTextObject    last_cursor;   /* last under cursor segment */
  69.  
  70.     XtCallbackList    activate;      /* callback list             */
  71.  
  72. } SGMLHyperPart;
  73.  
  74. typedef struct _SGMLHyperRec {
  75.     CorePart          core;
  76.     CompositePart     composite; 
  77. #ifdef MOTIF
  78.     XmManagerPart     manager;
  79. #endif
  80.     SGMLHyperPart     sgml_hyper;
  81. } SGMLHyperRec;
  82.  
  83. #endif SGMLHYPERP_H
  84.