Subversion Repositories Kolibri OS

Rev

Rev 4636 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4636 Rev 4637
Line 8... Line 8...
8
 
8
 
Line 9... Line 9...
9
scroll_bar scroll_wv = { 18,200,398, 44,18,0,115,15,0,0xeeeeee,0xD2CED0,0x555555,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1};
9
scroll_bar scroll_wv = { 18,200,398, 44,18,0,115,15,0,0xeeeeee,0xD2CED0,0x555555,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1};
Line 10... Line -...
10
 
-
 
11
char header[2048];
-
 
12
 
10
 
13
char download_path[]="/rd/1/.download";
11
char header[2048];
14
 
12
 
15
struct TWebBrowser {
13
struct TWebBrowser {
16
	llist list;
14
	llist list;
Line 25... Line 23...
25
};
23
};
Line 26... Line 24...
26
 
24
 
Line 27... Line 25...
27
TWebBrowser WB1;
25
TWebBrowser WB1;
28
 
26
 
29
byte b_text, i_text, u_text, s_text, pre_text, blq_text, li_text, li_tab, 
27
byte b_text, i_text, u_text, s_text, pre_text, blq_text, li_text, li_tab, 
Line 30... Line 28...
30
	link, ignor_text, cur_encoding, text_align;
28
	link, ignor_text, cur_encoding, text_align, t_html, t_body;
Line 31... Line 29...
31
byte condition_text_active, condition_text_val, condition_href, condition_max;
29
byte condition_text_active, condition_text_val, condition_href, condition_max;
Line 74... Line 72...
74
		strcat(#header, " -");
72
		strcat(#header, " -");
75
		strcat(#header, #version);
73
		strcat(#header, #version);
76
		line = 0;
74
		line = 0;
77
		return;
75
		return;
78
	}
76
	}
-
 
77
	if (t_html) && (!t_body) return;
Line 79... Line 78...
79
	
78
	
80
	if (stroka >= 0) && (stroka - 2 < list.visible) && (line) && (!anchor)
79
	if (stroka >= 0) && (stroka - 2 < list.visible) && (line) && (!anchor)
81
	{
80
	{
82
		start_x = stolbec * 6 + list.x + magrin_left;
81
		start_x = stolbec * 6 + list.x + magrin_left;
Line 173... Line 172...
173
	int j, perenos_num;
172
	int j, perenos_num;
174
	byte ignor_param;
173
	byte ignor_param;
175
	char temp[768];
174
	char temp[768];
176
	dword bufpos = bufpointer;
175
	dword bufpos = bufpointer;
Line 177... Line 176...
177
	
176
	
178
	b_text = i_text = u_text = s_text = blq_text = 
177
	b_text = i_text = u_text = s_text = blq_text = t_html = t_body =
179
	li_text = link = ignor_text = text_color_index = text_colors[0] = li_tab = 
178
	li_text = link = ignor_text = text_color_index = text_colors[0] = li_tab = 
180
	condition_text_val = condition_text_active = 0; //îáíóëÿåì òåãè
179
	condition_text_val = condition_text_active = 0; //îáíóëÿåì òåãè
181
	condition_max = 255;
180
	condition_max = 255;
182
	text_align = ALIGN_LEFT;
181
	text_align = ALIGN_LEFT;
Line 363... Line 362...
363
	else opened = 1;
362
	else opened = 1;
Line 364... Line 363...
364
		
363
		
365
	if (isTag("html"))
364
	if (isTag("html"))
366
	{
365
	{
-
 
366
		IF(!strcmp(#URL + strlen(#URL) - 4, ".mht")) IF (opened==0) ignor_text = 1; ELSE ignor_text = 0;
367
		IF(!strcmp(#URL + strlen(#URL) - 4, ".mht")) IF (opened==0) ignor_text = 1; ELSE ignor_text = 0;
367
		t_html = opened;
368
		return;
368
		return;
Line 369... Line 369...
369
	}
369
	}
Line 398... Line 398...
398
		if (!strcmp(#anchor, #options))	anchor_line_num=list.first+stroka;
398
		if (!strcmp(#anchor, #options))	anchor_line_num=list.first+stroka;
399
	}
399
	}
Line 400... Line 400...
400
	
400
	
401
	if (isTag("body"))
401
	if (isTag("body"))
-
 
402
	{
402
	{
403
		t_body = opened;
403
		do{
404
		do{
404
			if (!strcmp(#parametr, "condition_max=")) condition_max = atoi(#options);
405
			if (!strcmp(#parametr, "condition_max=")) condition_max = atoi(#options);
405
			if (!strcmp(#parametr, "link=")) link_color_inactive = GetColor(#options);
406
			if (!strcmp(#parametr, "link=")) link_color_inactive = GetColor(#options);
406
			if (!strcmp(#parametr, "alink=")) link_color_active = GetColor(#options);
407
			if (!strcmp(#parametr, "alink=")) link_color_active = GetColor(#options);
Line 653... Line 654...
653
 
654
 
654
 
655
 
655
void TWebBrowser::TextGoDown(int left1, top1, width1)
656
void TWebBrowser::TextGoDown(int left1, top1, width1)
-
 
657
{
656
{
658
	if (!stroka) DrawBar(list.x, list.y, list.w, 5, bg_color); //çàêðàøèâàåì ôîí íàä ïåðâîé ñòðîêîé
657
	if (!stroka) DrawBar(list.x, list.y, list.w, 5, bg_color); //çàêðàøèâàåì ôîí íàä ïåðâîé ñòðîêîé
659
	if (t_html) && (!t_body) return;
658
	if (top1>=list.y) && ( top1 < list.h+list.y-10)  && (!anchor)
660
	if (top1>=list.y) && ( top1 < list.h+list.y-10)  && (!anchor)
659
	{
661
	{
660
		if (text_align == ALIGN_CENTER) DrawBuf.AlignCenter(left1,top1,list.w,list.line_h,stolbec * 6);
662
		if (text_align == ALIGN_CENTER) DrawBuf.AlignCenter(left1,top1,list.w,list.line_h,stolbec * 6);