]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: html/htmldefs.h | |
3 | // Purpose: constants for wxhtml library | |
4 | // Author: wxWidgets team | |
5 | // Licence: wxWindows licence | |
6 | ///////////////////////////////////////////////////////////////////////////// | |
7 | ||
8 | ||
9 | //-------------------------------------------------------------------------------- | |
10 | // ALIGNMENTS | |
11 | // Describes alignment of text etc. in containers | |
12 | //-------------------------------------------------------------------------------- | |
13 | ||
14 | #define wxHTML_ALIGN_LEFT 0x0000 | |
15 | #define wxHTML_ALIGN_RIGHT 0x0002 | |
16 | #define wxHTML_ALIGN_JUSTIFY 0x0010 | |
17 | ||
18 | #define wxHTML_ALIGN_TOP 0x0004 | |
19 | #define wxHTML_ALIGN_BOTTOM 0x0008 | |
20 | ||
21 | #define wxHTML_ALIGN_CENTER 0x0001 | |
22 | ||
23 | ||
24 | ||
25 | //-------------------------------------------------------------------------------- | |
26 | // COLOR MODES | |
27 | // Used by wxHtmlColourCell to determine clr of what is changing | |
28 | //-------------------------------------------------------------------------------- | |
29 | ||
30 | #define wxHTML_CLR_FOREGROUND 0x0001 | |
31 | #define wxHTML_CLR_BACKGROUND 0x0002 | |
32 | #define wxHTML_CLR_TRANSPARENT_BACKGROUND 0x0004 | |
33 | ||
34 | ||
35 | ||
36 | //-------------------------------------------------------------------------------- | |
37 | // UNITS | |
38 | // Used to specify units | |
39 | //-------------------------------------------------------------------------------- | |
40 | ||
41 | #define wxHTML_UNITS_PIXELS 0x0001 | |
42 | #define wxHTML_UNITS_PERCENT 0x0002 | |
43 | ||
44 | ||
45 | ||
46 | //-------------------------------------------------------------------------------- | |
47 | // INDENTS | |
48 | // Used to specify indetation relatives | |
49 | //-------------------------------------------------------------------------------- | |
50 | ||
51 | #define wxHTML_INDENT_LEFT 0x0010 | |
52 | #define wxHTML_INDENT_RIGHT 0x0020 | |
53 | #define wxHTML_INDENT_TOP 0x0040 | |
54 | #define wxHTML_INDENT_BOTTOM 0x0080 | |
55 | ||
56 | #define wxHTML_INDENT_HORIZONTAL (wxHTML_INDENT_LEFT | wxHTML_INDENT_RIGHT) | |
57 | #define wxHTML_INDENT_VERTICAL (wxHTML_INDENT_TOP | wxHTML_INDENT_BOTTOM) | |
58 | #define wxHTML_INDENT_ALL (wxHTML_INDENT_VERTICAL | wxHTML_INDENT_HORIZONTAL) | |
59 | ||
60 | ||
61 | ||
62 | ||
63 | //-------------------------------------------------------------------------------- | |
64 | // FIND CONDITIONS | |
65 | // Identifiers of wxHtmlCell's Find() conditions | |
66 | //-------------------------------------------------------------------------------- | |
67 | ||
68 | #define wxHTML_COND_ISANCHOR 1 | |
69 | // Finds the anchor of 'param' name (pointer to wxString). | |
70 | ||
71 | #define wxHTML_COND_ISIMAGEMAP 2 | |
72 | // Finds imagemap of 'param' name (pointer to wxString). | |
73 | // (used exclusively by m_image.cpp) | |
74 | ||
75 | #define wxHTML_COND_USER 10000 | |
76 | // User-defined conditions should start from this number | |
77 | ||
78 |