]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/html/htmldefs.h
using Run of base class
[wxWidgets.git] / include / wx / html / htmldefs.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/html/htmldefs.h
3// Purpose: constants for wxhtml library
4// Author: Vaclav Slavik
5// Copyright: (c) 1999 Vaclav Slavik
6// Licence: wxWindows licence
7/////////////////////////////////////////////////////////////////////////////
8
9
10#ifndef _WX_HTMLDEFS_H_
11#define _WX_HTMLDEFS_H_
12
13#include "wx/defs.h"
14
15#if wxUSE_HTML
16
17//--------------------------------------------------------------------------------
18// ALIGNMENTS
19// Describes alignment of text etc. in containers
20//--------------------------------------------------------------------------------
21
22#define wxHTML_ALIGN_LEFT 0x0000
23#define wxHTML_ALIGN_RIGHT 0x0002
24#define wxHTML_ALIGN_JUSTIFY 0x0010
25
26#define wxHTML_ALIGN_TOP 0x0004
27#define wxHTML_ALIGN_BOTTOM 0x0008
28
29#define wxHTML_ALIGN_CENTER 0x0001
30
31
32
33//--------------------------------------------------------------------------------
34// COLOR MODES
35// Used by wxHtmlColourCell to determine clr of what is changing
36//--------------------------------------------------------------------------------
37
38#define wxHTML_CLR_FOREGROUND 0x0001
39#define wxHTML_CLR_BACKGROUND 0x0002
40#define wxHTML_CLR_TRANSPARENT_BACKGROUND 0x0004
41
42
43
44//--------------------------------------------------------------------------------
45// UNITS
46// Used to specify units
47//--------------------------------------------------------------------------------
48
49#define wxHTML_UNITS_PIXELS 0x0001
50#define wxHTML_UNITS_PERCENT 0x0002
51
52
53
54//--------------------------------------------------------------------------------
55// INDENTS
56// Used to specify indetation relatives
57//--------------------------------------------------------------------------------
58
59#define wxHTML_INDENT_LEFT 0x0010
60#define wxHTML_INDENT_RIGHT 0x0020
61#define wxHTML_INDENT_TOP 0x0040
62#define wxHTML_INDENT_BOTTOM 0x0080
63
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)
67
68
69
70
71//--------------------------------------------------------------------------------
72// FIND CONDITIONS
73// Identifiers of wxHtmlCell's Find() conditions
74//--------------------------------------------------------------------------------
75
76#define wxHTML_COND_ISANCHOR 1
77 // Finds the anchor of 'param' name (pointer to wxString).
78
79#define wxHTML_COND_ISIMAGEMAP 2
80 // Finds imagemap of 'param' name (pointer to wxString).
81 // (used exclusively by m_image.cpp)
82
83#define wxHTML_COND_USER 10000
84 // User-defined conditions should start from this number
85
86
87//--------------------------------------------------------------------------------
88// INTERNALS
89// wxHTML internal constants
90//--------------------------------------------------------------------------------
91
92 /* size of one scroll step of wxHtmlWindow in pixels */
93#define wxHTML_SCROLL_STEP 16
94
95 /* size of temporary buffer used during parsing */
96#define wxHTML_BUFLEN 1024
97
98#endif // wxUSE_HTML
99
100#endif // _WX_HTMLDEFS_H_
101