]>
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
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
9 //--------------------------------------------------------------------------------
11 // Describes alignment of text etc. in containers
12 //--------------------------------------------------------------------------------
14 #define wxHTML_ALIGN_LEFT 0x0000
15 #define wxHTML_ALIGN_RIGHT 0x0002
16 #define wxHTML_ALIGN_JUSTIFY 0x0010
18 #define wxHTML_ALIGN_TOP 0x0004
19 #define wxHTML_ALIGN_BOTTOM 0x0008
21 #define wxHTML_ALIGN_CENTER 0x0001
25 //--------------------------------------------------------------------------------
27 // Used by wxHtmlColourCell to determine clr of what is changing
28 //--------------------------------------------------------------------------------
30 #define wxHTML_CLR_FOREGROUND 0x0001
31 #define wxHTML_CLR_BACKGROUND 0x0002
32 #define wxHTML_CLR_TRANSPARENT_BACKGROUND 0x0004
36 //--------------------------------------------------------------------------------
38 // Used to specify units
39 //--------------------------------------------------------------------------------
41 #define wxHTML_UNITS_PIXELS 0x0001
42 #define wxHTML_UNITS_PERCENT 0x0002
46 //--------------------------------------------------------------------------------
48 // Used to specify indetation relatives
49 //--------------------------------------------------------------------------------
51 #define wxHTML_INDENT_LEFT 0x0010
52 #define wxHTML_INDENT_RIGHT 0x0020
53 #define wxHTML_INDENT_TOP 0x0040
54 #define wxHTML_INDENT_BOTTOM 0x0080
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)
63 //--------------------------------------------------------------------------------
65 // Identifiers of wxHtmlCell's Find() conditions
66 //--------------------------------------------------------------------------------
68 #define wxHTML_COND_ISANCHOR 1
69 // Finds the anchor of 'param' name (pointer to wxString).
71 #define wxHTML_COND_ISIMAGEMAP 2
72 // Finds imagemap of 'param' name (pointer to wxString).
73 // (used exclusively by m_image.cpp)
75 #define wxHTML_COND_USER 10000
76 // User-defined conditions should start from this number