]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/html/htmldefs.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: html/htmldefs.h
3 // Purpose: constants for wxhtml library
4 // Author: wxWidgets team
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
10 //--------------------------------------------------------------------------------
12 // Describes alignment of text etc. in containers
13 //--------------------------------------------------------------------------------
15 #define wxHTML_ALIGN_LEFT 0x0000
16 #define wxHTML_ALIGN_RIGHT 0x0002
17 #define wxHTML_ALIGN_JUSTIFY 0x0010
19 #define wxHTML_ALIGN_TOP 0x0004
20 #define wxHTML_ALIGN_BOTTOM 0x0008
22 #define wxHTML_ALIGN_CENTER 0x0001
26 //--------------------------------------------------------------------------------
28 // Used by wxHtmlColourCell to determine clr of what is changing
29 //--------------------------------------------------------------------------------
31 #define wxHTML_CLR_FOREGROUND 0x0001
32 #define wxHTML_CLR_BACKGROUND 0x0002
33 #define wxHTML_CLR_TRANSPARENT_BACKGROUND 0x0004
37 //--------------------------------------------------------------------------------
39 // Used to specify units
40 //--------------------------------------------------------------------------------
42 #define wxHTML_UNITS_PIXELS 0x0001
43 #define wxHTML_UNITS_PERCENT 0x0002
47 //--------------------------------------------------------------------------------
49 // Used to specify indetation relatives
50 //--------------------------------------------------------------------------------
52 #define wxHTML_INDENT_LEFT 0x0010
53 #define wxHTML_INDENT_RIGHT 0x0020
54 #define wxHTML_INDENT_TOP 0x0040
55 #define wxHTML_INDENT_BOTTOM 0x0080
57 #define wxHTML_INDENT_HORIZONTAL (wxHTML_INDENT_LEFT | wxHTML_INDENT_RIGHT)
58 #define wxHTML_INDENT_VERTICAL (wxHTML_INDENT_TOP | wxHTML_INDENT_BOTTOM)
59 #define wxHTML_INDENT_ALL (wxHTML_INDENT_VERTICAL | wxHTML_INDENT_HORIZONTAL)
64 //--------------------------------------------------------------------------------
66 // Identifiers of wxHtmlCell's Find() conditions
67 //--------------------------------------------------------------------------------
69 #define wxHTML_COND_ISANCHOR 1
70 // Finds the anchor of 'param' name (pointer to wxString).
72 #define wxHTML_COND_ISIMAGEMAP 2
73 // Finds imagemap of 'param' name (pointer to wxString).
74 // (used exclusively by m_image.cpp)
76 #define wxHTML_COND_USER 10000
77 // User-defined conditions should start from this number