]> git.saurik.com Git - wxWidgets.git/blame - include/wx/html/htmldefs.h
Since wxPanel is now AutoLayout aware, removed indirect auto layouting
[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
VS
6// Copyright: (c) 1999 Vaclav Slavik
7// Licence: wxWindows Licence
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
5526e819 25
efba2b89
VS
26#define wxHTML_ALIGN_TOP 0x0004
27#define wxHTML_ALIGN_BOTTOM 0x0008
5526e819 28
efba2b89 29#define wxHTML_ALIGN_CENTER 0x0001
5526e819
VS
30
31
32
33//--------------------------------------------------------------------------------
34// COLOR MODES
35// Used by wxHtmlColourCell to determine clr of what is changing
36//--------------------------------------------------------------------------------
37
efba2b89
VS
38#define wxHTML_CLR_FOREGROUND 0x0001
39#define wxHTML_CLR_BACKGROUND 0x0002
5526e819
VS
40
41
42
43//--------------------------------------------------------------------------------
44// UNITS
45// Used to specify units
46//--------------------------------------------------------------------------------
47
efba2b89
VS
48#define wxHTML_UNITS_PIXELS 0x0001
49#define wxHTML_UNITS_PERCENT 0x0002
5526e819
VS
50
51
52
53//--------------------------------------------------------------------------------
54// INDENTS
55// Used to specify indetation relatives
56//--------------------------------------------------------------------------------
57
efba2b89
VS
58#define wxHTML_INDENT_LEFT 0x0010
59#define wxHTML_INDENT_RIGHT 0x0020
60#define wxHTML_INDENT_TOP 0x0040
61#define wxHTML_INDENT_BOTTOM 0x0080
5526e819 62
efba2b89
VS
63#define wxHTML_INDENT_HORIZONTAL wxHTML_INDENT_LEFT | wxHTML_INDENT_RIGHT
64#define wxHTML_INDENT_VERTICAL wxHTML_INDENT_TOP | wxHTML_INDENT_BOTTOM
65#define wxHTML_INDENT_ALL wxHTML_INDENT_VERTICAL | wxHTML_INDENT_HORIZONTAL
5526e819
VS
66
67
68
69
70//--------------------------------------------------------------------------------
71// FIND CONDITIONS
72// Identifiers of wxHtmlCell's Find() conditions
73//--------------------------------------------------------------------------------
74
efba2b89 75#define wxHTML_COND_ISANCHOR 1
5526e819 76 // Finds the anchor of 'param' name (pointer to wxString).
25082126 77
efba2b89 78#define wxHTML_COND_ISIMAGEMAP 2
25082126 79 // Finds imagemap of 'param' name (pointer to wxString).
db98870d
VS
80 // (used exclusively by m_image.cpp)
81
efba2b89 82#define wxHTML_COND_USER 10000
5526e819
VS
83 // User-defined conditions should start from this number
84
85
86//--------------------------------------------------------------------------------
87// INTERNALS
88// wxHTML internal constants
89//--------------------------------------------------------------------------------
90
efba2b89 91#define wxHTML_SCROLL_STEP 16
5526e819 92 /* size of one scroll step of wxHtmlWindow in pixels */
efba2b89 93#define wxHTML_BUFLEN 1024
5526e819 94 /* size of temporary buffer used during parsing */
efba2b89 95#define wxHTML_REALLOC_STEP 32
5526e819 96 /* steps of array reallocation */
efba2b89 97#define wxHTML_PRINT_MAX_PAGES 999
db98870d 98 /* maximum number of pages printable via html printing */
5526e819 99
efba2b89
VS
100
101
102
103
104
105
106
107#if WXWIN_COMPATIBILITY_2
108
109#define HTML_ALIGN_LEFT wxHTML_ALIGN_LEFT
110#define HTML_ALIGN_RIGHT wxHTML_ALIGN_RIGHT
111#define HTML_ALIGN_TOP wxHTML_ALIGN_TOP
112#define HTML_ALIGN_BOTTOM wxHTML_ALIGN_BOTTOM
113#define HTML_ALIGN_CENTER wxHTML_ALIGN_CENTER
114#define HTML_CLR_FOREGROUND wxHTML_CLR_FOREGROUND
115#define HTML_CLR_BACKGROUND wxHTML_CLR_BACKGROUND
116#define HTML_UNITS_PIXELS wxHTML_UNITS_PIXELS
117#define HTML_UNITS_PERCENT wxHTML_UNITS_PERCENT
118#define HTML_INDENT_LEFT wxHTML_INDENT_LEFT
119#define HTML_INDENT_RIGHT wxHTML_INDENT_RIGHT
120#define HTML_INDENT_TOP wxHTML_INDENT_TOP
121#define HTML_INDENT_BOTTOM wxHTML_INDENT_BOTTOM
122#define HTML_INDENT_HORIZONTAL wxHTML_INDENT_HORIZONTAL
123#define HTML_INDENT_VERTICAL wxHTML_INDENT_VERTICAL
124#define HTML_INDENT_ALL wxHTML_INDENT_ALL
125#define HTML_COND_ISANCHOR wxHTML_COND_ISANCHOR
126#define HTML_COND_ISIMAGEMAP wxHTML_COND_ISIMAGEMAP
127#define HTML_COND_USER wxHTML_COND_USER
128
129#endif
130
131
132
5526e819 133#endif
69941f05 134#endif