1 /* 2 * $LynxId: AttrList.h,v 1.17 2013/05/03 20:54:09 tom Exp $ 3 */ 4 #if !defined(__ATTRLIST_H) 5 #define __ATTRLIST_H 6 7 #include <HText.h> 8 #include <HTMLDTD.h> 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 enum { 14 ABS_OFF = 0, 15 STACK_OFF = 0, 16 STACK_ON, 17 ABS_ON 18 }; 19 20 #define STARTAT 8 21 22 enum { 23 DSTYLE_LINK = HTML_A + STARTAT, 24 DSTYLE_STATUS = HTML_ELEMENTS + STARTAT, 25 DSTYLE_ALINK, /* active link */ 26 DSTYLE_NORMAL, /* default attributes */ 27 DSTYLE_OPTION, /* option on the option screen */ 28 DSTYLE_VALUE, /* value on the option screen */ 29 DSTYLE_CANDY, /* possibly going to vanish */ 30 DSTYLE_WHEREIS, /* whereis search target */ 31 DSTYLE_ELEMENTS 32 }; 33 34 typedef struct { 35 int color; /* color highlighting to be done */ 36 int mono; /* mono highlighting to be done */ 37 int cattr; /* attributes to go with the color */ 38 } HTCharStyle; 39 40 #if 0 41 #define HText_characterStyle CTRACE((tfp,"HTC called from %s/%d\n",__FILE__,__LINE__));_internal_HTC 42 #else 43 #define HText_characterStyle _internal_HTC 44 #endif 45 46 #if defined(USE_COLOR_STYLE) 47 extern void _internal_HTC(HText *text, int style, int dir); 48 49 #define TEMPSTRINGSIZE 256 50 extern char class_string[TEMPSTRINGSIZE + 1]; 51 52 /* stack of attributes during page rendering */ 53 #define MAX_LAST_STYLES 128 54 extern int last_styles[MAX_LAST_STYLES + 1]; 55 extern int last_colorattr_ptr; 56 57 #endif 58 59 #ifdef __cplusplus 60 } 61 #endif 62 #endif 63