25,6 → 25,7 |
void SetTextStyle(); |
void DrawPage(); |
void DrawScroller(); |
void LoadInternalPage(); |
void NewLine(); |
void Perenos(); |
byte end_parsing; |
80,9 → 81,7 |
#include "..\TWB\table.h" |
|
|
//======================================================================= |
|
|
//============================================================================================ |
void TWebBrowser::DrawPage() |
{ |
int start_x, start_y, line_length, stolbec_len, magrin_left=5; |
118,9 → 117,13 |
stolbec += stolbec_len; |
} |
} |
//======================================================================= |
|
|
//============================================================================================ |
void TWebBrowser::LoadInternalPage(dword bufpos, in_filesize){ |
bufsize = in_filesize; |
bufpointer = bufpos; |
Parse(); |
} |
//============================================================================================ |
void TWebBrowser::Parse(){ |
word bukva[2]; |
int j; |
262,7 → 265,7 |
} |
DrawScroller(); |
} |
|
//============================================================================================ |
void TWebBrowser::Perenos() |
{ |
int perenos_num; |
276,8 → 279,7 |
strcpy(#line, #new_line_text); |
NewLine(); |
} |
|
|
//============================================================================================ |
char oldtag[100]; |
void TWebBrowser::SetTextStyle(int left1, top1) { |
dword hr_color; |
527,7 → 529,8 |
{ |
NewLine(); |
if (stroka > -1) && (stroka - 2 < list.visible) |
DrawBuf.DrawBar(style.li_tab * 5 * list.font_w * DrawBuf.zoom + list.x, list.line_h / 2 - DrawBuf.zoom - DrawBuf.zoom, DrawBuf.zoom*2, DrawBuf.zoom*2, 0x555555); |
DrawBuf.DrawBar(style.li_tab * 5 * list.font_w * DrawBuf.zoom + list.x, list.line_h |
/ 2 - DrawBuf.zoom - DrawBuf.zoom, DrawBuf.zoom*2, DrawBuf.zoom*2, 0x555555); |
} |
return; |
} |
599,8 → 602,7 |
bufpointer = ChangeCharset("CP1251", "UTF-8", bufpointer); |
} |
} |
|
|
//============================================================================================ |
void TWebBrowser::DrawScroller() |
{ |
scroll_wv.max_area = list.count; |
616,8 → 618,7 |
|
scrollbar_v_draw(#scroll_wv); |
} |
|
|
//============================================================================================ |
void TWebBrowser::NewLine() |
{ |
int onleft, ontop; |
638,9 → 639,7 |
if (style.blq) stolbec = 6; else stolbec = 0; |
if (style.li) stolbec = style.li_tab * 5; |
} |
|
|
|
//============================================================================================ |
int istag(dword text) { if (!strcmp(#tag,text)) return 1; else return 0; } |
int isattr(dword text) { if (!strcmp(#attr,text)) return 1; else return 0; } |
int isval(dword text) { if (!strcmp(#val,text)) return 1; else return 0; } |