]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/html/htmldefs.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: constants for wxhtml library
4 // Author: Vaclav Slavik
6 // Copyright: (c) 1999 Vaclav Slavik
7 // Licence: wxWindows Licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_HTMLDEFS_H_
12 #define _WX_HTMLDEFS_H_
18 //--------------------------------------------------------------------------------
20 // Describes alignment of text etc. in containers
21 //--------------------------------------------------------------------------------
23 #define wxHTML_ALIGN_LEFT 0x0000
24 #define wxHTML_ALIGN_RIGHT 0x0002
25 #define wxHTML_ALIGN_JUSTIFY 0x0010
27 #define wxHTML_ALIGN_TOP 0x0004
28 #define wxHTML_ALIGN_BOTTOM 0x0008
30 #define wxHTML_ALIGN_CENTER 0x0001
34 //--------------------------------------------------------------------------------
36 // Used by wxHtmlColourCell to determine clr of what is changing
37 //--------------------------------------------------------------------------------
39 #define wxHTML_CLR_FOREGROUND 0x0001
40 #define wxHTML_CLR_BACKGROUND 0x0002
44 //--------------------------------------------------------------------------------
46 // Used to specify units
47 //--------------------------------------------------------------------------------
49 #define wxHTML_UNITS_PIXELS 0x0001
50 #define wxHTML_UNITS_PERCENT 0x0002
54 //--------------------------------------------------------------------------------
56 // Used to specify indetation relatives
57 //--------------------------------------------------------------------------------
59 #define wxHTML_INDENT_LEFT 0x0010
60 #define wxHTML_INDENT_RIGHT 0x0020
61 #define wxHTML_INDENT_TOP 0x0040
62 #define wxHTML_INDENT_BOTTOM 0x0080
64 #define wxHTML_INDENT_HORIZONTAL wxHTML_INDENT_LEFT | wxHTML_INDENT_RIGHT
65 #define wxHTML_INDENT_VERTICAL wxHTML_INDENT_TOP | wxHTML_INDENT_BOTTOM
66 #define wxHTML_INDENT_ALL wxHTML_INDENT_VERTICAL | wxHTML_INDENT_HORIZONTAL
71 //--------------------------------------------------------------------------------
73 // Identifiers of wxHtmlCell's Find() conditions
74 //--------------------------------------------------------------------------------
76 #define wxHTML_COND_ISANCHOR 1
77 // Finds the anchor of 'param' name (pointer to wxString).
79 #define wxHTML_COND_ISIMAGEMAP 2
80 // Finds imagemap of 'param' name (pointer to wxString).
81 // (used exclusively by m_image.cpp)
83 #define wxHTML_COND_USER 10000
84 // User-defined conditions should start from this number
87 //--------------------------------------------------------------------------------
89 // wxHTML internal constants
90 //--------------------------------------------------------------------------------
92 #define wxHTML_SCROLL_STEP 16
93 /* size of one scroll step of wxHtmlWindow in pixels */
94 #define wxHTML_BUFLEN 1024
95 /* size of temporary buffer used during parsing */
96 #define wxHTML_REALLOC_STEP 32
97 /* steps of array reallocation */
98 #define wxHTML_PRINT_MAX_PAGES 999
99 /* maximum number of pages printable via html printing */
102 /* default font sizes */
104 #define wxHTML_FONT_SIZE_1 7
105 #define wxHTML_FONT_SIZE_2 8
106 #define wxHTML_FONT_SIZE_3 10
107 #define wxHTML_FONT_SIZE_4 12
108 #define wxHTML_FONT_SIZE_5 16
109 #define wxHTML_FONT_SIZE_6 22
110 #define wxHTML_FONT_SIZE_7 30
111 #elif defined(__WXMAC__)
112 #define wxHTML_FONT_SIZE_1 9
113 #define wxHTML_FONT_SIZE_2 12
114 #define wxHTML_FONT_SIZE_3 14
115 #define wxHTML_FONT_SIZE_4 18
116 #define wxHTML_FONT_SIZE_5 24
117 #define wxHTML_FONT_SIZE_6 30
118 #define wxHTML_FONT_SIZE_7 36
120 #define wxHTML_FONT_SIZE_1 10
121 #define wxHTML_FONT_SIZE_2 12
122 #define wxHTML_FONT_SIZE_3 14
123 #define wxHTML_FONT_SIZE_4 16
124 #define wxHTML_FONT_SIZE_5 19
125 #define wxHTML_FONT_SIZE_6 24
126 #define wxHTML_FONT_SIZE_7 32
130 #if WXWIN_COMPATIBILITY_2
132 #define HTML_ALIGN_LEFT wxHTML_ALIGN_LEFT
133 #define HTML_ALIGN_RIGHT wxHTML_ALIGN_RIGHT
134 #define HTML_ALIGN_TOP wxHTML_ALIGN_TOP
135 #define HTML_ALIGN_BOTTOM wxHTML_ALIGN_BOTTOM
136 #define HTML_ALIGN_CENTER wxHTML_ALIGN_CENTER
137 #define HTML_CLR_FOREGROUND wxHTML_CLR_FOREGROUND
138 #define HTML_CLR_BACKGROUND wxHTML_CLR_BACKGROUND
139 #define HTML_UNITS_PIXELS wxHTML_UNITS_PIXELS
140 #define HTML_UNITS_PERCENT wxHTML_UNITS_PERCENT
141 #define HTML_INDENT_LEFT wxHTML_INDENT_LEFT
142 #define HTML_INDENT_RIGHT wxHTML_INDENT_RIGHT
143 #define HTML_INDENT_TOP wxHTML_INDENT_TOP
144 #define HTML_INDENT_BOTTOM wxHTML_INDENT_BOTTOM
145 #define HTML_INDENT_HORIZONTAL wxHTML_INDENT_HORIZONTAL
146 #define HTML_INDENT_VERTICAL wxHTML_INDENT_VERTICAL
147 #define HTML_INDENT_ALL wxHTML_INDENT_ALL
148 #define HTML_COND_ISANCHOR wxHTML_COND_ISANCHOR
149 #define HTML_COND_ISIMAGEMAP wxHTML_COND_ISIMAGEMAP
150 #define HTML_COND_USER wxHTML_COND_USER