home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lynx2.8.1dev.10.tar.gz / lynx2.8.1dev.10.tar / lynx2-8 / src / AttrList.h next >
C/C++ Source or Header  |  1998-03-25  |  1KB  |  69 lines

  1. #if !defined(__ATTRLIST_H)
  2. #define __ATTRLIST_H
  3.  
  4. #include <HText.h>
  5. #include <HTMLDTD.h>
  6.  
  7. #define TEMPSTRINGSIZE 256
  8.  
  9. enum {
  10.  ABS_OFF = 0,
  11.  STACK_OFF = 0,
  12.  STACK_ON,
  13.  ABS_ON
  14. };
  15.  
  16. #define STARTAT 8
  17.  
  18. enum {
  19.  DSTYLE_LINK = HTML_A+STARTAT,
  20.  DSTYLE_STATUS = HTML_ELEMENTS+STARTAT,
  21.  DSTYLE_ALINK, /* active link */
  22.  DSTYLE_NORMAL, /* default attributes */
  23.     DSTYLE_OPTION,         /* option on the option screen */
  24.     DSTYLE_VALUE,         /* value on the option screen */
  25.     DSTYLE_HIGH,
  26.  DSTYLE_CANDY, /* possibly going to vanish */
  27.  DSTYLE_ELEMENTS
  28. };
  29.  
  30. enum {
  31.  MSTYLE_NORMAL = 0,
  32.  MSTYLE_EM = 1,
  33.  MSTYLE_STRONG = 2,
  34.  MSTYLE_PHYSICAL = 3,
  35.  MSTYLE_A = 4,
  36.  MSTYLE_A_OFF = 4, 
  37.  MSTYLE_A_ON,
  38.  MSTYLE_BOLD,
  39.  MSTYLE_UL,
  40.  MSTYLE_STATUS,
  41.  MSTYLE_CANDY,
  42.  MSTYLE_NOMORE
  43. };
  44.  
  45. typedef struct {
  46.  int color; /* color highlighting to be done */
  47.  int mono; /* mono highlighting to be done */
  48.  int cattr; /* attributes to go with the color */
  49. } HTCharStyle;
  50.  
  51. #ifdef NOT_USED
  52.  
  53. typedef struct _linkedlist {
  54.  char name[64];
  55.  struct _linkedlist *next;
  56. } linked_list;
  57. #endif
  58.  
  59. #define HText_characterStyle if(TRACE)fprintf(stderr,"HTC called from %s/%d\n",__FILE__,__LINE__);_internal_HTC
  60.  
  61. #undef HText_characterStyle
  62. #define HText_characterStyle _internal_HTC
  63.  
  64. #if defined(USE_COLOR_STYLE)
  65. extern void _internal_HTC PARAMS((HText * text, int style, int dir));
  66. #endif
  67.  
  68. #endif
  69.