TGHtml.h File Reference

#include "TGView.h"
#include "TGHtmlTokens.h"

Go to the source code of this file.

Classes

struct  SHtmlStyle_t
class  TGHtmlElement
class  TGHtmlTextElement
class  TGHtmlSpaceElement
class  TGHtmlMarkupElement
class  TGHtmlTable
class  TGHtmlCell
class  TGHtmlRef
class  TGHtmlLi
class  TGHtmlListStart
class  TGHtmlMapArea
struct  SHtmlExtensions_t
class  TGHtmlImage
class  TGHtmlImageMarkup
class  TGHtmlInput
class  TGHtmlForm
class  TGHtmlHr
class  TGHtmlAnchor
class  TGHtmlScript
class  TGHtmlBlock
struct  SHtmlStyleStack_t
struct  SHtmlMargin_t
class  TGHtmlLayoutContext
struct  GcCache_t
struct  SHtmlIndex_t
struct  SHtmlTokenMap_t
class  TGHtml

Defines

#define HTML_RELIEF_FLAT   0
#define HTML_RELIEF_SUNKEN   1
#define HTML_RELIEF_RAISED   2
#define DEBUG
#define CANT_HAPPEN
#define UNTESTED
#define HtmlAssert(X)
#define HtmlCantHappen   fprintf(stderr,"Can't happen on line %d of %s\n",__LINE__,__FILE__);
#define HtmlTrace_Table1   0x00000001
#define HtmlTrace_Table2   0x00000002
#define HtmlTrace_Table3   0x00000004
#define HtmlTrace_Table4   0x00000008
#define HtmlTrace_Table5   0x00000010
#define HtmlTrace_Table6   0x00000020
#define HtmlTrace_GetLine   0x00000100
#define HtmlTrace_GetLine2   0x00000200
#define HtmlTrace_FixLine   0x00000400
#define HtmlTrace_BreakMarkup   0x00001000
#define HtmlTrace_Style   0x00002000
#define HtmlTrace_Input1   0x00004000
#define TRACE_INDENT   printf("%*s",HtmlDepth-3,"")
#define TRACE(Flag, Args)
#define TRACE_PUSH(Flag)   if( (Flag)&HtmlTraceMask ){ HtmlDepth+=3; }
#define TRACE_POP(Flag)   if( (Flag)&HtmlTraceMask ){ HtmlDepth-=3; }
#define N_FONT_FAMILY   8
#define N_FONT_SIZE   7
#define N_FONT   71
#define NormalFont(X)   (X)
#define BoldFont(X)   ((X) | 8)
#define ItalicFont(X)   ((X) | 16)
#define CWFont(X)   ((X) | 32)
#define FontSize(X)   ((X) & 007)
#define FontFamily(X)   ((X) & 070)
#define FONT_Any   -1
#define FONT_Default   3
#define FontSwitch(Size, Bold, Italic, Cw)   ((Size) | ((Bold+(Italic)*2+(Cw)*4) << 3))
#define FontIsValid(I)   ((fFontValid[(I)>>3] & (1<<((I)&3)))!=0)
#define FontSetValid(I)   (fFontValid[(I)>>3] |= (1<<((I)&3)))
#define FontClearValid(I)   (fFontValid[(I)>>3] &= ~(1<<((I)&3)))
#define N_COLOR   32
#define COLOR_Normal   0
#define COLOR_Unvisited   1
#define COLOR_Visited   2
#define COLOR_Selection   3
#define COLOR_Background   4
#define N_PREDEFINED_COLOR   5
#define ALIGN_Left   1
#define ALIGN_Right   2
#define ALIGN_Center   3
#define ALIGN_None   0
#define STY_Preformatted   0x001
#define STY_StrikeThru   0x002
#define STY_Underline   0x004
#define STY_NoBreak   0x008
#define STY_Anchor   0x010
#define STY_DT   0x020
#define STY_Invisible   0x040
#define STY_FontMask   (STY_StrikeThru|STY_Underline)
#define HTML_Visible   0x01
#define HTML_NewLine   0x02
#define HTML_Selected   0x04
#define HTML_MAX_COLUMNS   40
#define LI_TYPE_Undefined   0
#define LI_TYPE_Bullet1   1
#define LI_TYPE_Bullet2   2
#define LI_TYPE_Bullet3   3
#define LI_TYPE_Enum_1   4
#define LI_TYPE_Enum_A   5
#define LI_TYPE_Enum_a   6
#define LI_TYPE_Enum_I   7
#define LI_TYPE_Enum_i   8
#define HTML_MAP_RECT   1
#define HTML_MAP_CIRCLE   2
#define HTML_MAP_POLY   3
#define IMAGE_ALIGN_Bottom   0
#define IMAGE_ALIGN_Middle   1
#define IMAGE_ALIGN_Top   2
#define IMAGE_ALIGN_TextTop   3
#define IMAGE_ALIGN_AbsMiddle   4
#define IMAGE_ALIGN_AbsBottom   5
#define IMAGE_ALIGN_Left   6
#define IMAGE_ALIGN_Right   7
#define INPUT_TYPE_Unknown   0
#define INPUT_TYPE_Checkbox   1
#define INPUT_TYPE_File   2
#define INPUT_TYPE_Hidden   3
#define INPUT_TYPE_Image   4
#define INPUT_TYPE_Password   5
#define INPUT_TYPE_Radio   6
#define INPUT_TYPE_Reset   7
#define INPUT_TYPE_Select   8
#define INPUT_TYPE_Submit   9
#define INPUT_TYPE_Text   10
#define INPUT_TYPE_TextArea   11
#define INPUT_TYPE_Applet   12
#define INPUT_TYPE_Button   13
#define HTML_INDENT   36
#define N_CACHE_GC   32
#define O_HtmlMarkupElement   0
#define O_HtmlCell   1
#define O_HtmlTable   2
#define O_HtmlRef   3
#define O_HtmlLi   4
#define O_HtmlListStart   5
#define O_HtmlImageMarkup   6
#define O_HtmlInput   7
#define O_HtmlForm   8
#define O_HtmlHr   9
#define O_HtmlAnchor   10
#define O_HtmlScript   11
#define O_HtmlMapArea   12
#define REDRAW_PENDING   0x000001
#define GOT_FOCUS   0x000002
#define HSCROLL   0x000004
#define VSCROLL   0x000008
#define RELAYOUT   0x000010
#define RESIZE_ELEMENTS   0x000020
#define REDRAW_FOCUS   0x000040
#define REDRAW_TEXT   0x000080
#define EXTEND_LAYOUT   0x000100
#define STYLER_RUNNING   0x000200
#define INSERT_FLASHING   0x000400
#define REDRAW_IMAGES   0x000800
#define ANIMATE_IMAGES   0x001000
#define HtmlHasFlag(A, F)   (((A)->flags&(F))==(F))
#define HtmlHasAnyFlag(A, F)   (((A)->flags&(F))!=0)
#define HtmlSetFlag(A, F)   ((A)->flags|=(F))
#define HtmlClearFlag(A, F)   ((A)->flags&=~(F))
#define LARGE_NUMBER   100000000
#define DEF_HTML_BG_COLOR   DEF_FRAME_BG_COLOR
#define DEF_HTML_BG_MONO   DEF_FRAME_BG_MONO
#define DEF_HTML_EXPORT_SEL   1
#define DEF_HTML_FG   DEF_BUTTON_FG
#define DEF_HTML_HIGHLIGHT_BG   DEF_BUTTON_HIGHLIGHT_BG
#define DEF_HTML_HIGHLIGHT   DEF_BUTTON_HIGHLIGHT
#define DEF_HTML_HIGHLIGHT_WIDTH   "0"
#define DEF_HTML_INSERT_OFF_TIME   300
#define DEF_HTML_INSERT_ON_TIME   600
#define DEF_HTML_PADX   (HTML_INDENT / 4)
#define DEF_HTML_PADY   (HTML_INDENT / 4)
#define DEF_HTML_RELIEF   "raised"
#define DEF_HTML_SELECTION_COLOR   "skyblue"
#define DEF_HTML_TAKE_FOCUS   "0"
#define DEF_HTML_UNVISITED   "blue2"
#define DEF_HTML_VISITED   "purple4"

Typedefs

typedef unsigned char Html_u8_t
typedef short Html_16_t
typedef unsigned short Html_u16_t
typedef int Html_32_t

Variables

int HtmlTraceMask
int HtmlDepth


Define Documentation

#define ALIGN_Center   3

Definition at line 217 of file TGHtml.h.

#define ALIGN_Left   1

Definition at line 215 of file TGHtml.h.

#define ALIGN_None   0

Definition at line 218 of file TGHtml.h.

#define ALIGN_Right   2

Definition at line 216 of file TGHtml.h.

#define ANIMATE_IMAGES   0x001000

Definition at line 1331 of file TGHtml.h.

#define BoldFont (  )     ((X) | 8)

Definition at line 174 of file TGHtml.h.

#define CANT_HAPPEN

Value:

fprintf(stderr, \
          "Unplanned behavior in the HTML Widget in file %s line %d\n", \
          __FILE__, __LINE__)

Definition at line 65 of file TGHtml.h.

#define COLOR_Background   4

Definition at line 207 of file TGHtml.h.

#define COLOR_Normal   0

Definition at line 203 of file TGHtml.h.

#define COLOR_Selection   3

Definition at line 206 of file TGHtml.h.

#define COLOR_Unvisited   1

Definition at line 204 of file TGHtml.h.

#define COLOR_Visited   2

Definition at line 205 of file TGHtml.h.

#define CWFont (  )     ((X) | 32)

Definition at line 176 of file TGHtml.h.

#define DEBUG

Definition at line 63 of file TGHtml.h.

#define DEF_HTML_BG_COLOR   DEF_FRAME_BG_COLOR

Definition at line 1349 of file TGHtml.h.

#define DEF_HTML_BG_MONO   DEF_FRAME_BG_MONO

Definition at line 1350 of file TGHtml.h.

#define DEF_HTML_EXPORT_SEL   1

Definition at line 1351 of file TGHtml.h.

#define DEF_HTML_FG   DEF_BUTTON_FG

Definition at line 1352 of file TGHtml.h.

#define DEF_HTML_HIGHLIGHT   DEF_BUTTON_HIGHLIGHT

Definition at line 1354 of file TGHtml.h.

#define DEF_HTML_HIGHLIGHT_BG   DEF_BUTTON_HIGHLIGHT_BG

Definition at line 1353 of file TGHtml.h.

#define DEF_HTML_HIGHLIGHT_WIDTH   "0"

Definition at line 1355 of file TGHtml.h.

#define DEF_HTML_INSERT_OFF_TIME   300

Definition at line 1356 of file TGHtml.h.

#define DEF_HTML_INSERT_ON_TIME   600

Definition at line 1357 of file TGHtml.h.

#define DEF_HTML_PADX   (HTML_INDENT / 4)

Definition at line 1358 of file TGHtml.h.

#define DEF_HTML_PADY   (HTML_INDENT / 4)

Definition at line 1359 of file TGHtml.h.

#define DEF_HTML_RELIEF   "raised"

Definition at line 1360 of file TGHtml.h.

#define DEF_HTML_SELECTION_COLOR   "skyblue"

Definition at line 1361 of file TGHtml.h.

#define DEF_HTML_TAKE_FOCUS   "0"

Definition at line 1362 of file TGHtml.h.

#define DEF_HTML_UNVISITED   "blue2"

Definition at line 1363 of file TGHtml.h.

#define DEF_HTML_VISITED   "purple4"

Definition at line 1364 of file TGHtml.h.

#define EXTEND_LAYOUT   0x000100

Definition at line 1327 of file TGHtml.h.

#define FONT_Any   -1

Definition at line 179 of file TGHtml.h.

#define FONT_Default   3

Definition at line 180 of file TGHtml.h.

#define FontClearValid (  )     (fFontValid[(I)>>3] &= ~(1<<((I)&3)))

Definition at line 188 of file TGHtml.h.

#define FontFamily (  )     ((X) & 070)

Definition at line 178 of file TGHtml.h.

#define FontIsValid (  )     ((fFontValid[(I)>>3] & (1<<((I)&3)))!=0)

Definition at line 186 of file TGHtml.h.

#define FontSetValid (  )     (fFontValid[(I)>>3] |= (1<<((I)&3)))

Definition at line 187 of file TGHtml.h.

#define FontSize (  )     ((X) & 007)

Definition at line 177 of file TGHtml.h.

#define FontSwitch ( Size,
Bold,
Italic,
Cw   )     ((Size) | ((Bold+(Italic)*2+(Cw)*4) << 3))

Definition at line 181 of file TGHtml.h.

#define GOT_FOCUS   0x000002

Definition at line 1320 of file TGHtml.h.

#define HSCROLL   0x000004

Definition at line 1321 of file TGHtml.h.

#define HTML_INDENT   36

Definition at line 752 of file TGHtml.h.

#define HTML_MAP_CIRCLE   2

Definition at line 467 of file TGHtml.h.

#define HTML_MAP_POLY   3

Definition at line 468 of file TGHtml.h.

#define HTML_MAP_RECT   1

Definition at line 466 of file TGHtml.h.

#define HTML_MAX_COLUMNS   40

Definition at line 345 of file TGHtml.h.

#define HTML_NewLine   0x02

Definition at line 282 of file TGHtml.h.

#define HTML_RELIEF_FLAT   0

Definition at line 54 of file TGHtml.h.

#define HTML_RELIEF_RAISED   2

Definition at line 56 of file TGHtml.h.

#define HTML_RELIEF_SUNKEN   1

Definition at line 55 of file TGHtml.h.

#define HTML_Selected   0x04

Definition at line 283 of file TGHtml.h.

#define HTML_Visible   0x01

Definition at line 281 of file TGHtml.h.

#define HtmlAssert (  ) 

Value:

if(!(X)){ \
    fprintf(stderr,"Assertion failed on line %d of %s\n",__LINE__,__FILE__); \
  }

Definition at line 79 of file TGHtml.h.

#define HtmlCantHappen   fprintf(stderr,"Can't happen on line %d of %s\n",__LINE__,__FILE__);

Definition at line 83 of file TGHtml.h.

#define HtmlClearFlag ( A,
 )     ((A)->flags&=~(F))

Definition at line 1339 of file TGHtml.h.

#define HtmlHasAnyFlag ( A,
 )     (((A)->flags&(F))!=0)

Definition at line 1337 of file TGHtml.h.

#define HtmlHasFlag ( A,
 )     (((A)->flags&(F))==(F))

Definition at line 1336 of file TGHtml.h.

#define HtmlSetFlag ( A,
 )     ((A)->flags|=(F))

Definition at line 1338 of file TGHtml.h.

#define HtmlTrace_BreakMarkup   0x00001000

Definition at line 101 of file TGHtml.h.

#define HtmlTrace_FixLine   0x00000400

Definition at line 100 of file TGHtml.h.

#define HtmlTrace_GetLine   0x00000100

Definition at line 98 of file TGHtml.h.

#define HtmlTrace_GetLine2   0x00000200

Definition at line 99 of file TGHtml.h.

#define HtmlTrace_Input1   0x00004000

Definition at line 103 of file TGHtml.h.

#define HtmlTrace_Style   0x00002000

Definition at line 102 of file TGHtml.h.

#define HtmlTrace_Table1   0x00000001

Definition at line 92 of file TGHtml.h.

#define HtmlTrace_Table2   0x00000002

Definition at line 93 of file TGHtml.h.

#define HtmlTrace_Table3   0x00000004

Definition at line 94 of file TGHtml.h.

#define HtmlTrace_Table4   0x00000008

Definition at line 95 of file TGHtml.h.

#define HtmlTrace_Table5   0x00000010

Definition at line 96 of file TGHtml.h.

#define HtmlTrace_Table6   0x00000020

Definition at line 97 of file TGHtml.h.

#define IMAGE_ALIGN_AbsBottom   5

Definition at line 564 of file TGHtml.h.

#define IMAGE_ALIGN_AbsMiddle   4

Definition at line 563 of file TGHtml.h.

#define IMAGE_ALIGN_Bottom   0

Definition at line 559 of file TGHtml.h.

#define IMAGE_ALIGN_Left   6

Definition at line 565 of file TGHtml.h.

#define IMAGE_ALIGN_Middle   1

Definition at line 560 of file TGHtml.h.

#define IMAGE_ALIGN_Right   7

Definition at line 566 of file TGHtml.h.

#define IMAGE_ALIGN_TextTop   3

Definition at line 562 of file TGHtml.h.

#define IMAGE_ALIGN_Top   2

Definition at line 561 of file TGHtml.h.

#define INPUT_TYPE_Applet   12

Definition at line 623 of file TGHtml.h.

#define INPUT_TYPE_Button   13

Definition at line 624 of file TGHtml.h.

#define INPUT_TYPE_Checkbox   1

Definition at line 612 of file TGHtml.h.

#define INPUT_TYPE_File   2

Definition at line 613 of file TGHtml.h.

#define INPUT_TYPE_Hidden   3

Definition at line 614 of file TGHtml.h.

#define INPUT_TYPE_Image   4

Definition at line 615 of file TGHtml.h.

#define INPUT_TYPE_Password   5

Definition at line 616 of file TGHtml.h.

#define INPUT_TYPE_Radio   6

Definition at line 617 of file TGHtml.h.

#define INPUT_TYPE_Reset   7

Definition at line 618 of file TGHtml.h.

#define INPUT_TYPE_Select   8

Definition at line 619 of file TGHtml.h.

#define INPUT_TYPE_Submit   9

Definition at line 620 of file TGHtml.h.

#define INPUT_TYPE_Text   10

Definition at line 621 of file TGHtml.h.

#define INPUT_TYPE_TextArea   11

Definition at line 622 of file TGHtml.h.

#define INPUT_TYPE_Unknown   0

Definition at line 611 of file TGHtml.h.

#define INSERT_FLASHING   0x000400

Definition at line 1329 of file TGHtml.h.

#define ItalicFont (  )     ((X) | 16)

Definition at line 175 of file TGHtml.h.

#define LARGE_NUMBER   100000000

Definition at line 1344 of file TGHtml.h.

#define LI_TYPE_Bullet1   1

Definition at line 441 of file TGHtml.h.

#define LI_TYPE_Bullet2   2

Definition at line 442 of file TGHtml.h.

#define LI_TYPE_Bullet3   3

Definition at line 443 of file TGHtml.h.

#define LI_TYPE_Enum_1   4

Definition at line 444 of file TGHtml.h.

#define LI_TYPE_Enum_a   6

Definition at line 446 of file TGHtml.h.

#define LI_TYPE_Enum_A   5

Definition at line 445 of file TGHtml.h.

#define LI_TYPE_Enum_i   8

Definition at line 448 of file TGHtml.h.

#define LI_TYPE_Enum_I   7

Definition at line 447 of file TGHtml.h.

#define LI_TYPE_Undefined   0

Definition at line 440 of file TGHtml.h.

#define N_CACHE_GC   32

Definition at line 817 of file TGHtml.h.

#define N_COLOR   32

Definition at line 201 of file TGHtml.h.

#define N_FONT   71

Definition at line 172 of file TGHtml.h.

#define N_FONT_FAMILY   8

Definition at line 170 of file TGHtml.h.

#define N_FONT_SIZE   7

Definition at line 171 of file TGHtml.h.

#define N_PREDEFINED_COLOR   5

Definition at line 208 of file TGHtml.h.

#define NormalFont (  )     (X)

Definition at line 173 of file TGHtml.h.

#define O_HtmlAnchor   10

Definition at line 859 of file TGHtml.h.

#define O_HtmlCell   1

Definition at line 850 of file TGHtml.h.

#define O_HtmlForm   8

Definition at line 857 of file TGHtml.h.

#define O_HtmlHr   9

Definition at line 858 of file TGHtml.h.

#define O_HtmlImageMarkup   6

Definition at line 855 of file TGHtml.h.

#define O_HtmlInput   7

Definition at line 856 of file TGHtml.h.

#define O_HtmlLi   4

Definition at line 853 of file TGHtml.h.

#define O_HtmlListStart   5

Definition at line 854 of file TGHtml.h.

#define O_HtmlMapArea   12

Definition at line 861 of file TGHtml.h.

#define O_HtmlMarkupElement   0

Definition at line 849 of file TGHtml.h.

#define O_HtmlRef   3

Definition at line 852 of file TGHtml.h.

#define O_HtmlScript   11

Definition at line 860 of file TGHtml.h.

#define O_HtmlTable   2

Definition at line 851 of file TGHtml.h.

#define REDRAW_FOCUS   0x000040

Definition at line 1325 of file TGHtml.h.

#define REDRAW_IMAGES   0x000800

Definition at line 1330 of file TGHtml.h.

#define REDRAW_PENDING   0x000001

Definition at line 1319 of file TGHtml.h.

#define REDRAW_TEXT   0x000080

Definition at line 1326 of file TGHtml.h.

#define RELAYOUT   0x000010

Definition at line 1323 of file TGHtml.h.

#define RESIZE_ELEMENTS   0x000020

Definition at line 1324 of file TGHtml.h.

#define STY_Anchor   0x010

Definition at line 244 of file TGHtml.h.

#define STY_DT   0x020

Definition at line 245 of file TGHtml.h.

#define STY_FontMask   (STY_StrikeThru|STY_Underline)

Definition at line 247 of file TGHtml.h.

#define STY_Invisible   0x040

Definition at line 246 of file TGHtml.h.

#define STY_NoBreak   0x008

Definition at line 243 of file TGHtml.h.

#define STY_Preformatted   0x001

Definition at line 240 of file TGHtml.h.

#define STY_StrikeThru   0x002

Definition at line 241 of file TGHtml.h.

#define STY_Underline   0x004

Definition at line 242 of file TGHtml.h.

#define STYLER_RUNNING   0x000200

Definition at line 1328 of file TGHtml.h.

#define TRACE ( Flag,
Args   ) 

Value:

if( (Flag)&HtmlTraceMask ){ \
       TRACE_INDENT; printf Args; fflush(stdout); \
    }

Definition at line 119 of file TGHtml.h.

#define TRACE_INDENT   printf("%*s",HtmlDepth-3,"")

Definition at line 118 of file TGHtml.h.

#define TRACE_POP ( Flag   )     if( (Flag)&HtmlTraceMask ){ HtmlDepth-=3; }

Definition at line 124 of file TGHtml.h.

#define TRACE_PUSH ( Flag   )     if( (Flag)&HtmlTraceMask ){ HtmlDepth+=3; }

Definition at line 123 of file TGHtml.h.

#define UNTESTED

Value:

fprintf(stderr, \
          "Untested code executed in the HTML Widget in file %s line %d\n", \
          __FILE__, __LINE__)

Definition at line 70 of file TGHtml.h.

#define VSCROLL   0x000008

Definition at line 1322 of file TGHtml.h.


Typedef Documentation

typedef short Html_16_t

Definition at line 143 of file TGHtml.h.

typedef int Html_32_t

Definition at line 145 of file TGHtml.h.

typedef unsigned short Html_u16_t

Definition at line 144 of file TGHtml.h.

typedef unsigned char Html_u8_t

Definition at line 142 of file TGHtml.h.


Variable Documentation

int HtmlDepth

Definition at line 61 of file TGHtml.cxx.

int HtmlTraceMask


Generated on Tue Jul 5 16:00:59 2011 for ROOT_528-00b_version by  doxygen 1.5.1