]> git.saurik.com Git - wxWidgets.git/blame - include/wx/html/htmldefs.h
Blind bug fix to bug reported by Angel Kry.
[wxWidgets.git] / include / wx / html / htmldefs.h
CommitLineData
5526e819
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: htmldefs.h
3// Purpose: constants for wxhtml library
4// Author: Vaclav Slavik
69941f05 5// RCS-ID: $Id$
5526e819 6// Copyright: (c) 1999 Vaclav Slavik
65571936 7// Licence: wxWindows licence
5526e819
VS
8/////////////////////////////////////////////////////////////////////////////
9
10
69941f05
VS
11#ifndef _WX_HTMLDEFS_H_
12#define _WX_HTMLDEFS_H_
5526e819
VS
13
14#include "wx/defs.h"
5526e819 15
4dcaf11a 16#if wxUSE_HTML
5526e819
VS
17
18//--------------------------------------------------------------------------------
19// ALIGNMENTS
20// Describes alignment of text etc. in containers
21//--------------------------------------------------------------------------------
22
efba2b89
VS
23#define wxHTML_ALIGN_LEFT 0x0000
24#define wxHTML_ALIGN_RIGHT 0x0002
8eda3cb8 25#define wxHTML_ALIGN_JUSTIFY 0x0010
5526e819 26
efba2b89
VS
27#define wxHTML_ALIGN_TOP 0x0004
28#define wxHTML_ALIGN_BOTTOM 0x0008
5526e819 29
efba2b89 30#define wxHTML_ALIGN_CENTER 0x0001
5526e819
VS
31
32
33
34//--------------------------------------------------------------------------------
35// COLOR MODES
36// Used by wxHtmlColourCell to determine clr of what is changing
37//--------------------------------------------------------------------------------
38
efba2b89
VS
39#define wxHTML_CLR_FOREGROUND 0x0001
40#define wxHTML_CLR_BACKGROUND 0x0002
5526e819
VS
41
42
43
44//--------------------------------------------------------------------------------
45// UNITS
46// Used to specify units
47//--------------------------------------------------------------------------------
48
efba2b89
VS
49#define wxHTML_UNITS_PIXELS 0x0001
50#define wxHTML_UNITS_PERCENT 0x0002
5526e819
VS
51
52
53
54//--------------------------------------------------------------------------------
55// INDENTS
56// Used to specify indetation relatives
57//--------------------------------------------------------------------------------
58
efba2b89
VS
59#define wxHTML_INDENT_LEFT 0x0010
60#define wxHTML_INDENT_RIGHT 0x0020
61#define wxHTML_INDENT_TOP 0x0040
62#define wxHTML_INDENT_BOTTOM 0x0080
5526e819 63
efba2b89
VS
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
5526e819
VS
67
68
69
70
71//--------------------------------------------------------------------------------
72// FIND CONDITIONS
73// Identifiers of wxHtmlCell's Find() conditions
74//--------------------------------------------------------------------------------
75
efba2b89 76#define wxHTML_COND_ISANCHOR 1
5526e819 77 // Finds the anchor of 'param' name (pointer to wxString).
6953da00 78
efba2b89 79#define wxHTML_COND_ISIMAGEMAP 2
25082126 80 // Finds imagemap of 'param' name (pointer to wxString).
4eecf115 81 // (used exclusively by m_image.cpp)
6953da00 82
efba2b89 83#define wxHTML_COND_USER 10000
5526e819
VS
84 // User-defined conditions should start from this number
85
86
87//--------------------------------------------------------------------------------
88// INTERNALS
89// wxHTML internal constants
90//--------------------------------------------------------------------------------
91
efba2b89 92#define wxHTML_SCROLL_STEP 16
5526e819 93 /* size of one scroll step of wxHtmlWindow in pixels */
efba2b89 94#define wxHTML_BUFLEN 1024
5526e819 95 /* size of temporary buffer used during parsing */
efba2b89 96#define wxHTML_PRINT_MAX_PAGES 999
db98870d 97 /* maximum number of pages printable via html printing */
5526e819 98
efba2b89 99
4eecf115
VS
100 /* default font sizes */
101#ifdef __WXMSW__
102 #define wxHTML_FONT_SIZE_1 7
103 #define wxHTML_FONT_SIZE_2 8
104 #define wxHTML_FONT_SIZE_3 10
105 #define wxHTML_FONT_SIZE_4 12
106 #define wxHTML_FONT_SIZE_5 16
107 #define wxHTML_FONT_SIZE_6 22
108 #define wxHTML_FONT_SIZE_7 30
109#elif defined(__WXMAC__)
110 #define wxHTML_FONT_SIZE_1 9
111 #define wxHTML_FONT_SIZE_2 12
112 #define wxHTML_FONT_SIZE_3 14
113 #define wxHTML_FONT_SIZE_4 18
114 #define wxHTML_FONT_SIZE_5 24
115 #define wxHTML_FONT_SIZE_6 30
116 #define wxHTML_FONT_SIZE_7 36
117#else
118 #define wxHTML_FONT_SIZE_1 10
119 #define wxHTML_FONT_SIZE_2 12
120 #define wxHTML_FONT_SIZE_3 14
121 #define wxHTML_FONT_SIZE_4 16
122 #define wxHTML_FONT_SIZE_5 19
123 #define wxHTML_FONT_SIZE_6 24
124 #define wxHTML_FONT_SIZE_7 32
125#endif
efba2b89 126
5526e819 127#endif
69941f05 128#endif