]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/html/htmldefs.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: constants for wxhtml library
4 // Author: Vaclav Slavik
5 // Copyright: (c) 1999 Vaclav Slavik
6 // Licence: wxWindows Licence
7 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __HTMLDEFS_H__
11 #define __HTMLDEFS_H__
17 //--------------------------------------------------------------------------------
19 // Describes alignment of text etc. in containers
20 //--------------------------------------------------------------------------------
22 #define HTML_ALIGN_LEFT 0x0000
23 #define HTML_ALIGN_RIGHT 0x0002
25 #define HTML_ALIGN_TOP 0x0004
26 #define HTML_ALIGN_BOTTOM 0x0008
28 #define HTML_ALIGN_CENTER 0x0001
32 //--------------------------------------------------------------------------------
34 // Used by wxHtmlColourCell to determine clr of what is changing
35 //--------------------------------------------------------------------------------
37 #define HTML_CLR_FOREGROUND 0x0001
38 #define HTML_CLR_BACKGROUND 0x0002
42 //--------------------------------------------------------------------------------
44 // Used to specify units
45 //--------------------------------------------------------------------------------
47 #define HTML_UNITS_PIXELS 0x0001
48 #define HTML_UNITS_PERCENT 0x0002
52 //--------------------------------------------------------------------------------
54 // Used to specify indetation relatives
55 //--------------------------------------------------------------------------------
57 #define HTML_INDENT_LEFT 0x0010
58 #define HTML_INDENT_RIGHT 0x0020
59 #define HTML_INDENT_TOP 0x0040
60 #define HTML_INDENT_BOTTOM 0x0080
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
69 //--------------------------------------------------------------------------------
71 // Identifiers of wxHtmlCell's Find() conditions
72 //--------------------------------------------------------------------------------
74 #define HTML_COND_ISANCHOR 1
75 // Finds the anchor of 'param' name (pointer to wxString).
77 #define HTML_COND_ISIMAGEMAP 2
78 // Finds imagemap of 'param' name (pointer to wxString).
79 // (used exclusively by mod_image.cpp)
81 #define HTML_COND_USER 10000
82 // User-defined conditions should start from this number
85 //--------------------------------------------------------------------------------
87 // wxHTML internal constants
88 //--------------------------------------------------------------------------------
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 */