Subversion Repositories Kolibri OS

Rev

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

Rev 7889 Rev 7893
Line 33... Line 33...
33
	dword draw_y, stolbec;
33
	dword draw_y, stolbec;
34
	int zoom;
34
	int zoom;
35
	dword o_bufpointer;
35
	dword o_bufpointer;
36
	int cur_encoding, custom_encoding;
36
	int cur_encoding, custom_encoding;
37
	bool link, t_html, t_body;
37
	bool link, t_html, t_body;
-
 
38
	dword link_bg;
38
	dword bufpointer;
39
	dword bufpointer;
39
	dword bufsize;
40
	dword bufsize;
Line 40... Line 41...
40
 
41
 
41
	void Paint();
42
	void Paint();
Line 119... Line 120...
119
	link = text_color_index = text_colors[0] = style.tag_title = false;
120
	link = text_color_index = text_colors[0] = style.tag_title = false;
120
	style.tag_list.reset();
121
	style.tag_list.reset();
121
	link_color_default = 0x0000FF;
122
	link_color_default = 0x0000FF;
122
	link_color_active = 0xFF0000;
123
	link_color_active = 0xFF0000;
123
	page_bg = 0xFFFFFF;
124
	page_bg = 0xFFFFFF;
-
 
125
	link_bg = 0xFFFFFF;
124
	style.bg_color = page_bg;
126
	style.bg_color = page_bg;
125
	DrawBuf.Fill(0, page_bg);
127
	DrawBuf.Fill(0, page_bg);
126
	PageLinks.Clear();
128
	PageLinks.Clear();
127
	anchors.clear();
129
	anchors.clear();
128
	header = NULL;
130
	header = NULL;
Line 331... Line 333...
331
	}
333
	}
332
	if (tag.is("body")) {
334
	if (tag.is("body")) {
333
		t_body = tag.opened;
335
		t_body = tag.opened;
334
		if (value = tag.get_value_of("link="))  link_color_default = GetColor(value);
336
		if (value = tag.get_value_of("link="))   link_color_default = GetColor(value);
335
		if (value = tag.get_value_of("alink=")) link_color_active = GetColor(value);
337
		if (value = tag.get_value_of("alink="))  link_color_active = GetColor(value);
-
 
338
		if (value = tag.get_value_of("bglink=")) link_bg=GetColor(value);
336
		if (value = tag.get_value_of("text="))  text_colors[0]=GetColor(value);
339
		if (value = tag.get_value_of("text="))   text_colors[0]=GetColor(value);
337
		if (value = tag.get_value_of("bgcolor=")) {
340
		if (value = tag.get_value_of("bgcolor=")) {
338
			style.bg_color = page_bg = GetColor(value);
341
			style.bg_color = page_bg = GetColor(value);
339
			DrawBuf.Fill(0, page_bg);
342
			DrawBuf.Fill(0, page_bg);
340
		}
343
		}
Line 356... Line 359...
356
		{
359
		{
357
			if (value = tag.get_value_of("href=")) && (!strstr(value,"javascript:"))
360
			if (value = tag.get_value_of("href=")) && (!strstr(value,"javascript:"))
358
			{
361
			{
359
				link = true;
362
				link = true;
360
				PageLinks.AddLink(value);
363
				PageLinks.AddLink(value);
-
 
364
				style.bg_color = link_bg;
361
			}
365
			}
362
		} else {
366
		} else {
363
			link = false;
367
			link = false;
-
 
368
			style.bg_color = page_bg;
364
		}
369
		}
365
		return;
370
		return;
366
	}
371
	}
367
	if (tag.is("iframe")) && (value = tag.get_value_of("src=")) {
372
	if (tag.is("iframe")) && (value = tag.get_value_of("src=")) {
368
		NewLine();
373
		NewLine();