about summary refs log tree commit diff stats
path: root/src/AttrList.h
blob: b58456ff11df4a6b06b9c9e14896c375334a5e84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#if !defined(__ATTRLIST_H)
#define __ATTRLIST_H

#include <HText.h>
#include <HTMLDTD.h>

#define TEMPSTRINGSIZE 256

enum {
 ABS_OFF = 0,
 STACK_OFF = 0,
 STACK_ON,
 ABS_ON
};

#define STARTAT 8

enum {
 DSTYLE_LINK = HTML_A+STARTAT,
 DSTYLE_STATUS = HTML_ELEMENTS+STARTAT,
 DSTYLE_ALINK, /* active link */
 DSTYLE_NORMAL, /* default attributes */
	DSTYLE_OPTION, 		/* option on the option screen */
	DSTYLE_VALUE, 		/* value on the option screen */
	DSTYLE_HIGH,
 DSTYLE_CANDY, /* possibly going to vanish */
 DSTYLE_ELEMENTS
};

enum {
 MSTYLE_NORMAL = 0,
 MSTYLE_EM = 1,
 MSTYLE_STRONG = 2,
 MSTYLE_PHYSICAL = 3,
 MSTYLE_A = 4,
 MSTYLE_A_OFF = 4, 
 MSTYLE_A_ON,
 MSTYLE_BOLD,
 MSTYLE_UL,
 MSTYLE_STATUS,
 MSTYLE_CANDY,
 MSTYLE_NOMORE
};

typedef struct {
 int color; /* color highlighting to be done */
 int mono; /* mono highlighting to be done */
 int cattr; /* attributes to go with the color */
} HTCharStyle;

#ifdef NOT_USED

typedef struct _linkedlist {
 char name[64];
 struct _linkedlist *next;
} linked_list;
#endif

#define HText_characterStyle CTRACE(tfp,"HTC called from %s/%d\n",__FILE__,__LINE__);_internal_HTC

#undef HText_characterStyle
#define HText_characterStyle _internal_HTC

#if defined(USE_COLOR_STYLE)
extern void _internal_HTC PARAMS((HText * text, int style, int dir));
#endif

#endif