/* This file was automatically generated. Do not edit! */ #define DLL_EXPORT DLL_EXPORT int Tkhtml1_Init(Tcl_Interp *interp); #define INTERFACE 0 /*#define HtmlAlloc(A) ((void*)Tcl_Alloc(A))*/ void* HtmlAlloc(size_t); typedef struct HtmlWidget HtmlWidget; #define DEBUG 1 #if defined(DEBUG) int HtmlDebugTestPtCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlDebugDumpCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); #endif int HtmlYviewCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlXviewCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlTokenListCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlTokenHandlerCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlTextAsciiCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlSelectionSetCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlSelectionClearCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlResolveCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlParseCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlNamesCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlInsertCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlIndexCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlHrefCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlConfigCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlClearCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); int HtmlCgetCmd(HtmlWidget *htmlPtr,Tcl_Interp *interp,int argc,const char **argv); void HtmlHorizontalScroll(HtmlWidget *htmlPtr,int xOffset); void HtmlVerticalScroll(HtmlWidget *htmlPtr,int yOffset); typedef union HtmlElement HtmlElement; char *HtmlMarkupArg(HtmlElement *p,const char *tag,char *zDefault); #define Html_A 5 #define Html_IMG 76 #define Html_Space 2 #define Html_Text 1 #define STY_Anchor 0x010 char *HtmlGetHref(HtmlWidget *htmlPtr,int x,int y); #define LOCAL static int HtmlGetLightShadowColor(HtmlWidget *htmlPtr,int iBgColor); int HtmlGetDarkShadowColor(HtmlWidget *htmlPtr,int iBgColor); #define MAX(A,B) ((A)<(B)?(B):(A)) LOCAL int GetColorByValue(HtmlWidget *htmlPtr,XColor *pRef); int HtmlGetColorByName(HtmlWidget *htmlPtr,char *zColor); #define FontSetValid(H,I) ((H)->fontValid[(I)>>3] |= (1<<((I)&3))) #define N_FONT_SIZE 7 #define FontSize(X) ((X)%N_FONT_SIZE) #define FontIsValid(H,I) (((H)->fontValid[(I)>>3] & (1<<((I)&3)))!=0) void HtmlTPCantHappen(const char *zFile,int line); #if defined(COVERAGE_TEST) # define CANT_HAPPEN HtmlTPCantHappen(__FILE__,__LINE__) #endif #if !(defined(COVERAGE_TEST)) # define CANT_HAPPEN #endif GC HtmlGetAnyGC(HtmlWidget *htmlPtr); Tk_Font HtmlGetFont(HtmlWidget *htmlPtr,int iFont); #define FONT_Default 3 typedef struct GcCache GcCache; typedef unsigned char Html_u8; struct GcCache { GC gc; /* The graphics context */ Html_u8 font; /* Font used for this context */ Html_u8 color; /* Color used for this context */ Html_u8 index; /* Index used for LRU replacement */ }; void HtmlFlashCursor(ClientData clientData); int HtmlIsDead(HtmlWidget *htmlPtr); #define Html_TypeCount 151 #define N_FONT_FAMILY 8 #define N_FONT (N_FONT_FAMILY*N_FONT_SIZE) #define ALIGN_None 0 typedef struct HtmlStyleStack HtmlStyleStack; typedef struct HtmlStyle HtmlStyle; struct HtmlStyle { unsigned int font : 6; /* Font to use for display */ unsigned int color : 4; /* Foreground color */ signed int subscript : 4; /* Positive for , negative for */ unsigned int align : 2; /* Horizontal alignment */ unsigned int bgcolor : 4; /* Background color */ unsigned int flags : 12; /* the STY_ flags below */ }; struct HtmlStyleStack { HtmlStyleStack *pNext; /* Next style on the stack */ int type; /* A markup that ends this style. Ex: Html_EndEM */ HtmlStyle style; /* The currently active style. */ }; #define N_COLOR 16 /* Total number of colors */ #define N_PREDEFINED_COLOR 5 /* Number of predefined colors */ void HtmlDeleteControls(HtmlWidget *htmlPtr); void HtmlClear(HtmlWidget *htmlPtr); #define HtmlFree(A) Tcl_Free((char*)(A)) #define Html_Block 4 void HtmlDeleteElement(HtmlElement *p); #define COLOR_Selection 3 /* Background color for the selection */ #define COLOR_Unvisited 1 /* Index for unvisited hyperlinks */ #define COLOR_Visited 2 /* Color for visited hyperlinks */ #define COLOR_Normal 0 /* Index for normal color (black) */ int ConfigureHtmlWidget(Tcl_Interp *interp,HtmlWidget *htmlPtr,int argc,const char **argv,int flags,int realign); void HtmlRedrawText(HtmlWidget *htmlPtr,int y); void HtmlRedrawEverything(HtmlWidget *htmlPtr); typedef struct HtmlBlock HtmlBlock; void HtmlRedrawBlock(HtmlWidget *htmlPtr,HtmlBlock *p); void HtmlRedrawArea(HtmlWidget *htmlPtr,int left,int top,int right,int bottom); void HtmlScheduleRedraw(HtmlWidget *htmlPtr); #define LARGE_NUMBER 100000000 void HtmlDrawImage(HtmlElement *pElem,Drawable drawable,int drawableLeft,int drawableTop,int drawableRight,int drawableBottom); typedef struct HtmlBaseElement HtmlBaseElement; typedef short Html_16; struct HtmlBaseElement { HtmlElement *pNext; /* Next input token in a list of them all */ HtmlElement *pPrev; /* Previous token in a list of them all */ HtmlStyle style; /* The rendering style for this token */ Html_u8 type; /* The token type. */ Html_u8 flags; /* The HTML_ flags below */ Html_16 count; /* Various uses, depending on "type" */ }; typedef struct HtmlTextElement HtmlTextElement; typedef int Html_32; struct HtmlTextElement { HtmlBaseElement base; /* All the base information */ Html_32 y; /* y coordinate where text should be rendered */ Html_16 x; /* x coordinate where text should be rendered */ Html_16 w; /* width of this token in pixels */ Html_u8 ascent; /* height above the baseline */ Html_u8 descent; /* depth below the baseline */ Html_u8 spaceWidth; /* Width of one space in the current font */ char zText[1]; /* Text for this element. Null terminated */ }; typedef struct HtmlSpaceElement HtmlSpaceElement; struct HtmlSpaceElement { HtmlBaseElement base; /* All the base information */ Html_16 w; /* Width of a single space in current font */ Html_u8 ascent; /* height above the baseline */ Html_u8 descent; /* depth below the baseline */ }; typedef struct HtmlMarkupElement HtmlMarkupElement; struct HtmlMarkupElement { HtmlBaseElement base; char **argv; }; typedef struct HtmlCell HtmlCell; struct HtmlCell { HtmlMarkupElement markup; Html_16 rowspan; /* Number of rows spanned by this cell */ Html_16 colspan; /* Number of columns spanned by this cell */ Html_16 x; /* X coordinate of left edge of border */ Html_16 w; /* Width of the border */ Html_32 y; /* Y coordinate of top of border indentation */ Html_32 h; /* Height of the border */ HtmlElement *pTable; /* Pointer back to the */ HtmlElement *pEnd; /* Element that ends this cell */ }; typedef struct HtmlTable HtmlTable; typedef unsigned short Html_u16; #define HTML_MAX_COLUMNS 40 struct HtmlTable { HtmlMarkupElement markup; Html_u8 borderWidth; /* Width of the border */ Html_u8 nCol; /* Number of columns */ Html_u16 nRow; /* Number of rows */ Html_32 y; /* top edge of table border */ Html_32 h; /* height of the table border */ Html_16 x; /* left edge of table border */ Html_16 w; /* width of the table border */ int minW[HTML_MAX_COLUMNS+1]; /* minimum width of each column */ int maxW[HTML_MAX_COLUMNS+1]; /* maximum width of each column */ }; typedef struct HtmlRef HtmlRef; struct HtmlRef { HtmlMarkupElement markup; HtmlElement *pOther; /* Pointer to some other Html element */ }; typedef struct HtmlLi HtmlLi; struct HtmlLi { HtmlMarkupElement markup; Html_u8 type; /* What type of list is this? */ Html_u8 ascent; /* height above the baseline */ Html_u8 descent; /* depth below the baseline */ Html_16 cnt; /* Value for this element (if inside
    ) */ Html_16 x; /* X coordinate of the bullet */ Html_32 y; /* Y coordinate of the bullet */ }; typedef struct HtmlListStart HtmlListStart; struct HtmlListStart { HtmlMarkupElement markup; Html_u8 type; /* One of the LI_TYPE_ defines above */ Html_u8 compact; /* True if the COMPACT flag is present */ Html_u16 cnt; /* Next value for
      */ Html_u16 width; /* How much space to allow for indentation */ HtmlElement *pPrev; /* Next higher level list, or NULL */ }; typedef struct HtmlImageMarkup HtmlImageMarkup; typedef struct HtmlImage HtmlImage; struct HtmlImageMarkup { HtmlMarkupElement markup; Html_u8 align; /* Alignment. See IMAGE_ALIGN_ defines below */ Html_u8 textAscent; /* Ascent of text font in force at the */ Html_u8 textDescent; /* Descent of text font in force at the */ Html_u8 redrawNeeded; /* Need to redraw this image because the image ** content changed. */ Html_16 h; /* Actual height of the image */ Html_16 w; /* Actual width of the image */ Html_16 ascent; /* How far image extends above "y" */ Html_16 descent; /* How far image extends below "y" */ Html_16 x; /* X coordinate of left edge of the image */ Html_32 y; /* Y coordinate of image baseline */ char *zAlt; /* Alternative text */ HtmlImage *pImage; /* Corresponding HtmlImage structure */ HtmlElement *pNext; /* Next markup using the same HtmlImage structure */ }; typedef struct HtmlInput HtmlInput; struct HtmlInput { HtmlMarkupElement markup; HtmlElement *pForm; /* The
      to which this belongs */ HtmlElement *pNext; /* Next element in a list of all input elements */ Tk_Window tkwin; /* The window that implements this control */ HtmlWidget *htmlPtr; /* The whole widget. Needed by geometry callbacks */ HtmlElement *pEnd; /* End tag for