Subversion Repositories Kolibri OS

Rev

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

Rev 4074 Rev 4190
Line 23... Line 23...
23
};	
23
};	
24
TWebBrowser WB1;
24
TWebBrowser WB1;
25
 
25
 
Line 26... Line 26...
26
byte rez, b_text, i_text, u_text, s_text, pre_text, blq_text, li_text,
26
byte rez, b_text, i_text, u_text, s_text, pre_text, blq_text, li_text,
27
	link, ignor_text, li_tab, cur_encoding;
27
	link, ignor_text, li_tab, cur_encoding, text_align;
-
 
28
 
-
 
29
enum { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT};
Line 28... Line 30...
28
 
30
 
29
dword text_colors[300],
31
dword text_colors[300],
30
	text_color_index,
32
	text_color_index,
31
	link_color,
33
	link_color,
Line 366... Line 368...
366
	
368
	
Line 367... Line 369...
367
	if (blink<400) blink=400; else for ( ; blink>400; blink--;) DeleteButton(blink);
369
	if (blink<400) blink=400; else for ( ; blink>400; blink--;) DeleteButton(blink);
368
	b_text = i_text = u_text = s_text = blq_text = 
370
	b_text = i_text = u_text = s_text = blq_text = 
369
	li_text = link = ignor_text = text_color_index = text_colors[0] = li_tab = 0; //îáíóëÿåì òåãè
371
	li_text = link = ignor_text = text_color_index = text_colors[0] = li_tab = 0; //îáíóëÿåì òåãè
-
 
372
	text_align = ALIGN_LEFT;
370
	link_color = 0x0000FF;
373
	link_color = 0x0000FF;
371
	bg_color = 0xFFFFFF;
374
	bg_color = 0xFFFFFF;
372
	DrawBufFill();
375
	DrawBufFill();
373
	strcpy(#page_links,"|");
376
	strcpy(#page_links,"|");
374
	strcpy(#header, #version);
377
	strcpy(#header, #version);
Line 425... Line 428...
425
			{
428
			{
426
				bukva = ESBYTE[bword];
429
				bukva = ESBYTE[bword];
427
				chrcat(#tag, bukva);
430
				chrcat(#tag, bukva);
428
			}
431
			}
429
			
432
			bukva = GetUnicodeSymbol();
430
			bukva = GetUnicodeSymbol();
-
 
431
			if (bukva) goto DEFAULT_MARK;
433
			if (bukva) goto DEFAULT_MARK;
432
			break;
434
			break;
433
		case '<':
435
		case '<':
434
			bword++; //ïðîìîòàåì ñèìâîë <
436
			bword++; //ïðîìîòàåì ñèìâîë <
435
			tag = parametr = tagparam = ignor_param = NULL;
437
			tag = parametr = tagparam = ignor_param = NULL;
Line 563... Line 565...
563
	if (ignor_text) return;
565
	if (ignor_text) return;
Line 564... Line 566...
564
 
566
 
Line 565... Line 567...
565
 
567
 
566
	
568
	
567
	IF(!chTag("q")) strcat(#line, "\"");
569
	IF(!chTag("q")) chrcat(#line, '\"');
568
 
570
 
Line 652... Line 654...
652
		TextGoDown(left1, top1, width1);
654
		TextGoDown(left1, top1, width1);
653
		IF(rez) TextGoDown(left1, top1 + 10, width1);
655
		IF(rez) TextGoDown(left1, top1 + 10, width1);
654
		return;
656
		return;
655
	}
657
	}
656
	if (!chTag("h1")) || (!chTag("h2")) || (!chTag("h3")) || (!chTag("h4")) {
658
	if (!chTag("center"))
-
 
659
	{
-
 
660
		if (rez) text_align = ALIGN_CENTER;
-
 
661
		if (!rez) text_align = ALIGN_LEFT;
-
 
662
	}
-
 
663
	if (!chTag("right"))
-
 
664
	{
-
 
665
		if (rez) text_align = ALIGN_RIGHT;
-
 
666
		if (!rez) text_align = ALIGN_LEFT;
-
 
667
	}
-
 
668
	if (!chTag("h1")) || (!chTag("h2")) || (!chTag("h3")) || (!chTag("h4")) {
657
		TextGoDown(left1, top1, width1);
669
		if (rez)
-
 
670
		{
-
 
671
			if (!strcmp(#parametr, "align=")) && (!strcmp(#options,"center")) text_align = ALIGN_CENTER;
-
 
672
			if (!strcmp(#parametr, "align=")) && (!strcmp(#options,"right")) text_align = ALIGN_RIGHT;
-
 
673
			b_text = 1;
-
 
674
		}
-
 
675
		if (!rez)
-
 
676
		{
-
 
677
			text_align = ALIGN_LEFT;
-
 
678
			b_text = 0;
-
 
679
		}
-
 
680
		TextGoDown(left1, top1, width1);
658
		IF(rez) TextGoDown(left1, top1 + 10, width1);
681
		IF(rez) TextGoDown(left1, top1 + 10, width1);
659
		b_text = rez;
682
		strcpy(#oldtag, #tag);
660
		strcpy(#oldtag, #tag);
-
 
661
		return;
683
		return;
662
	}
684
	}
663
	else
685
	else
664
		oldtag=NULL;
686
		oldtag=NULL;
665
		
687