]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/html/htmldefs.h
ec7348f85af48e080c0b023239b1789972804b9e
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/html/htmldefs.h
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
41 #define wxHTML_CLR_TRANSPARENT_BACKGROUND 0x0004
45 //--------------------------------------------------------------------------------
47 // Used to specify units
48 //--------------------------------------------------------------------------------
50 #define wxHTML_UNITS_PIXELS 0x0001
51 #define wxHTML_UNITS_PERCENT 0x0002
55 //--------------------------------------------------------------------------------
57 // Used to specify indetation relatives
58 //--------------------------------------------------------------------------------
60 #define wxHTML_INDENT_LEFT 0x0010
61 #define wxHTML_INDENT_RIGHT 0x0020
62 #define wxHTML_INDENT_TOP 0x0040
63 #define wxHTML_INDENT_BOTTOM 0x0080
65 #define wxHTML_INDENT_HORIZONTAL (wxHTML_INDENT_LEFT | wxHTML_INDENT_RIGHT)
66 #define wxHTML_INDENT_VERTICAL (wxHTML_INDENT_TOP | wxHTML_INDENT_BOTTOM)
67 #define wxHTML_INDENT_ALL (wxHTML_INDENT_VERTICAL | wxHTML_INDENT_HORIZONTAL)
72 //--------------------------------------------------------------------------------
74 // Identifiers of wxHtmlCell's Find() conditions
75 //--------------------------------------------------------------------------------
77 #define wxHTML_COND_ISANCHOR 1
78 // Finds the anchor of 'param' name (pointer to wxString).
80 #define wxHTML_COND_ISIMAGEMAP 2
81 // Finds imagemap of 'param' name (pointer to wxString).
82 // (used exclusively by m_image.cpp)
84 #define wxHTML_COND_USER 10000
85 // User-defined conditions should start from this number
88 //--------------------------------------------------------------------------------
90 // wxHTML internal constants
91 //--------------------------------------------------------------------------------
93 /* size of one scroll step of wxHtmlWindow in pixels */
94 #define wxHTML_SCROLL_STEP 16
96 /* size of temporary buffer used during parsing */
97 #define wxHTML_BUFLEN 1024
101 #endif // _WX_HTMLDEFS_H_