]>
Commit | Line | Data |
---|---|---|
5526e819 VS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: htmldefs.h | |
3 | // Purpose: constants for wxhtml library | |
4 | // Author: Vaclav Slavik | |
5 | // Copyright: (c) 1999 Vaclav Slavik | |
6 | // Licence: wxWindows Licence | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | ||
10 | #ifndef __HTMLDEFS_H__ | |
11 | #define __HTMLDEFS_H__ | |
12 | ||
13 | #include "wx/defs.h" | |
5526e819 | 14 | |
4dcaf11a | 15 | #if wxUSE_HTML |
5526e819 VS |
16 | |
17 | //-------------------------------------------------------------------------------- | |
18 | // ALIGNMENTS | |
19 | // Describes alignment of text etc. in containers | |
20 | //-------------------------------------------------------------------------------- | |
21 | ||
22 | #define HTML_ALIGN_LEFT 0x0000 | |
23 | #define HTML_ALIGN_RIGHT 0x0002 | |
24 | ||
25 | #define HTML_ALIGN_TOP 0x0004 | |
26 | #define HTML_ALIGN_BOTTOM 0x0008 | |
27 | ||
28 | #define HTML_ALIGN_CENTER 0x0001 | |
29 | ||
30 | ||
31 | ||
32 | //-------------------------------------------------------------------------------- | |
33 | // COLOR MODES | |
34 | // Used by wxHtmlColourCell to determine clr of what is changing | |
35 | //-------------------------------------------------------------------------------- | |
36 | ||
37 | #define HTML_CLR_FOREGROUND 0x0001 | |
38 | #define HTML_CLR_BACKGROUND 0x0002 | |
39 | ||
40 | ||
41 | ||
42 | //-------------------------------------------------------------------------------- | |
43 | // UNITS | |
44 | // Used to specify units | |
45 | //-------------------------------------------------------------------------------- | |
46 | ||
47 | #define HTML_UNITS_PIXELS 0x0001 | |
48 | #define HTML_UNITS_PERCENT 0x0002 | |
49 | ||
50 | ||
51 | ||
52 | //-------------------------------------------------------------------------------- | |
53 | // INDENTS | |
54 | // Used to specify indetation relatives | |
55 | //-------------------------------------------------------------------------------- | |
56 | ||
57 | #define HTML_INDENT_LEFT 0x0010 | |
58 | #define HTML_INDENT_RIGHT 0x0020 | |
59 | #define HTML_INDENT_TOP 0x0040 | |
60 | #define HTML_INDENT_BOTTOM 0x0080 | |
61 | ||
62 | #define HTML_INDENT_HORIZONTAL HTML_INDENT_LEFT | HTML_INDENT_RIGHT | |
63 | #define HTML_INDENT_VERTICAL HTML_INDENT_TOP | HTML_INDENT_BOTTOM | |
64 | #define HTML_INDENT_ALL HTML_INDENT_VERTICAL | HTML_INDENT_HORIZONTAL | |
65 | ||
66 | ||
67 | ||
68 | ||
69 | //-------------------------------------------------------------------------------- | |
70 | // FIND CONDITIONS | |
71 | // Identifiers of wxHtmlCell's Find() conditions | |
72 | //-------------------------------------------------------------------------------- | |
73 | ||
74 | #define HTML_COND_ISANCHOR 1 | |
75 | // Finds the anchor of 'param' name (pointer to wxString). | |
25082126 VS |
76 | |
77 | #define HTML_COND_ISIMAGEMAP 2 | |
78 | // Finds imagemap of 'param' name (pointer to wxString). | |
79 | // (used exclusively by mod_image.cpp) | |
5526e819 VS |
80 | |
81 | #define HTML_COND_USER 10000 | |
82 | // User-defined conditions should start from this number | |
83 | ||
84 | ||
85 | //-------------------------------------------------------------------------------- | |
86 | // INTERNALS | |
87 | // wxHTML internal constants | |
88 | //-------------------------------------------------------------------------------- | |
89 | ||
90 | #define HTML_SCROLL_STEP 16 | |
91 | /* size of one scroll step of wxHtmlWindow in pixels */ | |
92 | #define HTML_BUFLEN 1024 | |
93 | /* size of temporary buffer used during parsing */ | |
94 | #define HTML_REALLOC_STEP 32 | |
95 | /* steps of array reallocation */ | |
96 | ||
97 | #endif | |
98 | #endif |