2005-05-13 14:43:38 -04:00
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
%% Name: htcontnr.tex
|
|
|
|
%% Purpose: wxHtmlContainerCell documentation
|
|
|
|
%% Author: wxWidgets Team
|
|
|
|
%% Modified by:
|
|
|
|
%% Created: 21/Mar/99 22:45:23
|
|
|
|
%% RCS-ID: $Id$
|
|
|
|
%% Copyright: (c) wxWidgets Team
|
|
|
|
%% License: wxWindows license
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
1999-07-10 17:17:24 -04:00
|
|
|
|
|
|
|
\section{\class{wxHtmlContainerCell}}\label{wxhtmlcontainercell}
|
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
The wxHtmlContainerCell class is an implementation of a cell that may
|
1999-08-05 18:05:15 -04:00
|
|
|
contain more cells in it. It is heavily used in the wxHTML layout algorithm.
|
1999-07-10 17:17:24 -04:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxHtmlCell}{wxhtmlcell}
|
|
|
|
|
2000-02-27 16:06:58 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/html/htmlcell.h>
|
|
|
|
|
1999-07-10 17:17:24 -04:00
|
|
|
\wxheading{See Also}
|
|
|
|
|
|
|
|
\helpref{Cells Overview}{cells}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::wxHtmlContainerCell}\label{wxhtmlcontainercellwxhtmlcontainercell}
|
|
|
|
|
|
|
|
\func{}{wxHtmlContainerCell}{\param{wxHtmlContainerCell }{*parent}}
|
|
|
|
|
|
|
|
Constructor. {\it parent} is pointer to parent container or NULL.
|
|
|
|
|
|
|
|
|
1999-10-16 11:38:26 -04:00
|
|
|
\membersection{wxHtmlContainerCell::GetAlignHor}\label{wxhtmlcontainercellgetalignhor}
|
|
|
|
|
|
|
|
\constfunc{int}{GetAlignHor}{\void}
|
|
|
|
|
|
|
|
Returns container's horizontal alignment.
|
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::GetAlignVer}\label{wxhtmlcontainercellgetalignver}
|
|
|
|
|
|
|
|
\constfunc{int}{GetAlignVer}{\void}
|
|
|
|
|
|
|
|
Returns container's vertical alignment.
|
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
\membersection{wxHtmlContainerCell::GetBackgroundColour}\label{wxhtmlcontainercellgetbackgroundcolour}
|
|
|
|
|
|
|
|
\func{wxColour}{GetBackgroundColour}{\void}
|
|
|
|
|
|
|
|
Returns the background colour of the container or {\tt wxNullColour} if no background
|
|
|
|
colour is set.
|
|
|
|
|
1999-10-16 11:38:26 -04:00
|
|
|
\membersection{wxHtmlContainerCell::GetIndent}\label{wxhtmlcontainercellgetindent}
|
|
|
|
|
|
|
|
\constfunc{int}{GetIndent}{\param{int }{ind}}
|
|
|
|
|
2000-01-18 04:17:21 -05:00
|
|
|
Returns the indentation. {\it ind} is one of the {\bf wxHTML\_INDENT\_*} constants.
|
1999-10-16 11:38:26 -04:00
|
|
|
|
2000-03-14 19:21:49 -05:00
|
|
|
{\bf Note:} You must call \helpref{GetIndentUnits}{wxhtmlcontainercellgetindentunits}
|
1999-10-16 11:38:26 -04:00
|
|
|
with same {\it ind} parameter in order to correctly interpret the returned integer value.
|
|
|
|
It is NOT always in pixels!
|
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::GetIndentUnits}\label{wxhtmlcontainercellgetindentunits}
|
|
|
|
|
|
|
|
\constfunc{int}{GetIndentUnits}{\param{int }{ind}}
|
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
Returns the units of indentation for {\it ind} where {\it ind} is one
|
2000-01-18 04:17:21 -05:00
|
|
|
of the {\bf wxHTML\_INDENT\_*} constants.
|
1999-10-16 11:38:26 -04:00
|
|
|
|
1999-07-10 17:17:24 -04:00
|
|
|
\membersection{wxHtmlContainerCell::InsertCell}\label{wxhtmlcontainercellinsertcell}
|
|
|
|
|
|
|
|
\func{void}{InsertCell}{\param{wxHtmlCell }{*cell}}
|
|
|
|
|
|
|
|
Inserts new cell into the container.
|
|
|
|
|
1999-10-16 11:38:26 -04:00
|
|
|
\membersection{wxHtmlContainerCell::SetAlign}\label{wxhtmlcontainercellsetalign}
|
|
|
|
|
|
|
|
\func{void}{SetAlign}{\param{const wxHtmlTag\& }{tag}}
|
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
Sets the container's alignment (both horizontal and vertical) according to
|
1999-10-16 11:38:26 -04:00
|
|
|
the values stored in {\it tag}. (Tags {\tt ALIGN} parameter is extracted.) In fact
|
2000-03-14 19:21:49 -05:00
|
|
|
it is only a front-end to \helpref{SetAlignHor}{wxhtmlcontainercellsetalignhor}
|
1999-10-16 11:38:26 -04:00
|
|
|
and \helpref{SetAlignVer}{wxhtmlcontainercellsetalignver}.
|
|
|
|
|
1999-07-10 17:17:24 -04:00
|
|
|
\membersection{wxHtmlContainerCell::SetAlignHor}\label{wxhtmlcontainercellsetalignhor}
|
|
|
|
|
|
|
|
\func{void}{SetAlignHor}{\param{int }{al}}
|
|
|
|
|
2000-03-14 19:21:49 -05:00
|
|
|
Sets the container's {\it horizontal alignment}. During \helpref{Layout}{wxhtmlcelllayout}
|
1999-07-10 17:17:24 -04:00
|
|
|
each line is aligned according to {\it al} value.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{al}{new horizontal alignment. May be one of these values:
|
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
\begin{twocollist}\itemsep=0pt
|
2000-01-18 04:17:21 -05:00
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_LEFT}}{lines are left-aligned (default)}
|
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_JUSTIFY}}{lines are justified}
|
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_CENTER}}{lines are centered}
|
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_RIGHT}}{lines are right-aligned}
|
1999-07-10 17:17:24 -04:00
|
|
|
\end{twocollist}
|
|
|
|
}
|
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::SetAlignVer}\label{wxhtmlcontainercellsetalignver}
|
|
|
|
|
|
|
|
\func{void}{SetAlignVer}{\param{int }{al}}
|
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
Sets the container's {\it vertical alignment}. This is per-line alignment!
|
1999-07-10 17:17:24 -04:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{al}{new vertical alignment. May be one of these values:
|
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
\begin{twocollist}\itemsep=0pt
|
2000-01-18 04:17:21 -05:00
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_BOTTOM}}{cells are over the line (default)}
|
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_CENTER}}{cells are centered on line}
|
|
|
|
\twocolitem{{\bf wxHTML\_ALIGN\_TOP}}{cells are under the line}
|
1999-07-10 17:17:24 -04:00
|
|
|
\end{twocollist}
|
|
|
|
|
1999-12-24 18:40:13 -05:00
|
|
|
\helponly{\image{}{alignv.bmp}}
|
1999-07-10 17:17:24 -04:00
|
|
|
}
|
|
|
|
|
1999-10-16 11:38:26 -04:00
|
|
|
\membersection{wxHtmlContainerCell::SetBackgroundColour}\label{wxhtmlcontainercellsetbackgroundcolour}
|
1999-07-10 17:17:24 -04:00
|
|
|
|
1999-10-16 11:38:26 -04:00
|
|
|
\func{void}{SetBackgroundColour}{\param{const wxColour\& }{clr}}
|
1999-07-10 17:17:24 -04:00
|
|
|
|
2000-03-14 19:21:49 -05:00
|
|
|
Sets the background colour for this container.
|
1999-10-16 11:38:26 -04:00
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::SetBorder}\label{wxhtmlcontainercellsetborder}
|
|
|
|
|
|
|
|
\func{void}{SetBorder}{\param{const wxColour\& }{clr1}, \param{const wxColour\& }{clr2}}
|
|
|
|
|
2000-03-14 19:21:49 -05:00
|
|
|
Sets the border (frame) colours. A border is a rectangle around the container.
|
1999-10-16 11:38:26 -04:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
2000-03-14 19:21:49 -05:00
|
|
|
\docparam{clr1}{Colour of top and left lines}
|
1999-10-16 11:38:26 -04:00
|
|
|
|
2000-03-14 19:21:49 -05:00
|
|
|
\docparam{clr2}{Colour of bottom and right lines}
|
1999-07-10 17:17:24 -04:00
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::SetIndent}\label{wxhtmlcontainercellsetindent}
|
|
|
|
|
2000-01-18 04:17:21 -05:00
|
|
|
\func{void}{SetIndent}{\param{int }{i}, \param{int }{what}, \param{int }{units = wxHTML\_UNITS\_PIXELS}}
|
1999-07-10 17:17:24 -04:00
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
Sets the indentation (free space between borders of container and subcells).
|
1999-07-10 17:17:24 -04:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{i}{Indentation value.}
|
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
\docparam{what}{Determines which of the four borders we're setting. It is OR
|
1999-07-10 17:17:24 -04:00
|
|
|
combination of following constants:
|
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
\begin{twocollist}\itemsep=0pt
|
2000-01-18 04:17:21 -05:00
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_TOP}}{top border}
|
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_BOTTOM}}{bottom}
|
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_LEFT}}{left}
|
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_RIGHT}}{right}
|
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_HORIZONTAL}}{left and right}
|
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_VERTICAL}}{top and bottom}
|
|
|
|
\twocolitem{{\bf wxHTML\_INDENT\_ALL}}{all 4 borders}
|
1999-07-10 17:17:24 -04:00
|
|
|
\end{twocollist}
|
|
|
|
|
1999-12-24 18:40:13 -05:00
|
|
|
\helponly{\image{}{indent.bmp}}
|
1999-07-10 17:17:24 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
\docparam{units}{Units of {\it i}. This parameter affects interpretation of {\it} value.
|
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
\begin{twocollist}\itemsep=0pt
|
2000-01-18 04:17:21 -05:00
|
|
|
\twocolitem{{\bf wxHTML\_UNITS\_PIXELS}}{{\it i} is number of pixels}
|
|
|
|
\twocolitem{{\bf wxHTML\_UNITS\_PERCENT}}{{\it i} is interpreted as percents of width
|
1999-07-10 17:17:24 -04:00
|
|
|
of parent container}
|
|
|
|
\end{twocollist}
|
|
|
|
}
|
|
|
|
|
1999-10-16 11:38:26 -04:00
|
|
|
\membersection{wxHtmlContainerCell::SetMinHeight}\label{wxhtmlcontainercellsetminheight}
|
1999-07-10 17:17:24 -04:00
|
|
|
|
2000-01-18 04:17:21 -05:00
|
|
|
\func{void}{SetMinHeight}{\param{int }{h}, \param{int }{align = wxHTML\_ALIGN\_TOP}}
|
1999-07-10 17:17:24 -04:00
|
|
|
|
1999-10-29 18:16:53 -04:00
|
|
|
Sets minimal height of the container.
|
1999-07-10 17:17:24 -04:00
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
When container's \helpref{Layout}{wxhtmlcelllayout} is called, m\_Height
|
1999-10-16 11:38:26 -04:00
|
|
|
is set depending on layout of subcells to the height of area covered
|
1999-10-25 09:46:48 -04:00
|
|
|
by layed-out subcells. Calling this method guarantees you that the height
|
1999-10-16 11:38:26 -04:00
|
|
|
of container is never smaller than {\it h} - even if the subcells cover
|
1999-10-25 09:46:48 -04:00
|
|
|
much smaller area.
|
1999-07-10 17:17:24 -04:00
|
|
|
|
1999-10-16 11:38:26 -04:00
|
|
|
\wxheading{Parameters}
|
1999-07-10 17:17:24 -04:00
|
|
|
|
1999-10-16 11:38:26 -04:00
|
|
|
\docparam{h}{The minimal height.}
|
1999-07-10 17:17:24 -04:00
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
\docparam{align}{If height of the container is lower than the minimum height, empty space must be inserted
|
2000-01-18 04:17:21 -05:00
|
|
|
somewhere in order to ensure minimal height. This parameter is one of {\bf wxHTML\_ALIGN\_TOP,
|
2000-03-14 19:21:49 -05:00
|
|
|
wxHTML\_ALIGN\_BOTTOM, wxHTML\_ALIGN\_CENTER}. It refers to the {\it contents}, not to the
|
|
|
|
empty place.}
|
1999-07-10 17:17:24 -04:00
|
|
|
|
|
|
|
\membersection{wxHtmlContainerCell::SetWidthFloat}\label{wxhtmlcontainercellsetwidthfloat}
|
|
|
|
|
|
|
|
\func{void}{SetWidthFloat}{\param{int }{w}, \param{int }{units}}
|
|
|
|
|
1999-12-24 18:40:13 -05:00
|
|
|
\func{void}{SetWidthFloat}{\param{const wxHtmlTag\& }{tag}, \param{double }{pixel\_scale = 1.0}}
|
1999-07-10 17:17:24 -04:00
|
|
|
|
1999-10-29 18:16:53 -04:00
|
|
|
Sets floating width adjustment.
|
1999-07-10 17:17:24 -04:00
|
|
|
|
1999-10-29 18:16:53 -04:00
|
|
|
The normal behaviour of container is that its width is the same as the width of
|
1999-07-10 17:17:24 -04:00
|
|
|
parent container (and thus you can have only one sub-container per line).
|
|
|
|
You can change this by setting FWA.
|
|
|
|
|
1999-12-24 18:40:13 -05:00
|
|
|
{\it pixel\_scale} is number of real pixels that equals to 1 HTML pixel.
|
1999-12-11 16:50:44 -05:00
|
|
|
|
1999-07-10 17:17:24 -04:00
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{w}{Width of the container. If the value is negative it means
|
1999-10-29 18:16:53 -04:00
|
|
|
complement to full width of parent container (e.g.
|
2000-01-18 04:17:21 -05:00
|
|
|
{\tt SetWidthFloat(-50, wxHTML\_UNITS\_PIXELS)} sets the width
|
1999-07-10 17:17:24 -04:00
|
|
|
of container to parent's width minus 50 pixels. This is useful when
|
|
|
|
creating tables - you can call SetWidthFloat(50) and SetWidthFloat(-50))}
|
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
\docparam{units}{Units of {\it w} This parameter affects the interpretation of {\it} value.
|
1999-07-10 17:17:24 -04:00
|
|
|
|
1999-10-25 09:46:48 -04:00
|
|
|
\begin{twocollist}\itemsep=0pt
|
2000-01-18 04:17:21 -05:00
|
|
|
\twocolitem{{\bf wxHTML\_UNITS\_PIXELS}}{{\it w} is number of pixels}
|
|
|
|
\twocolitem{{\bf wxHTML\_UNITS\_PERCENT}}{{\it w} is interpreted as percents of width
|
1999-07-10 17:17:24 -04:00
|
|
|
of parent container}
|
|
|
|
\end{twocollist}
|
|
|
|
}
|
|
|
|
|
|
|
|
\docparam{tag}{In the second version of method, {\it w} and {\it units}
|
|
|
|
info is extracted from tag's {\tt WIDTH} parameter.}
|
|
|
|
|
1999-10-29 18:16:53 -04:00
|
|
|
\pythonnote{The second form of this method is named
|
|
|
|
SetWidthFloatFromTag in wxPython.}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|