Subversion Repositories Kolibri OS

Rev

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

Rev 6216 Rev 6370
Line 75... Line 75...
75
{
75
{
76
dword DOM_start, DOM_end, DOM_len, DOM_pos;
76
dword DOM_start, DOM_end, DOM_len, DOM_pos;
77
int stroka_x = HTML_PADDING_X;
77
int stroka_x = HTML_PADDING_X;
78
int stroka_y = HTML_PADDING_Y;
78
int stroka_y = HTML_PADDING_Y;
79
dword line_break;
79
int size_pt_change;
-
 
80
dword line_break;
80
byte ch, zeroch;
81
byte ch, zeroch;
81
_text text;
82
_text text;
82
_tag tag;
83
_tag tag;
83
 
84
 
Line 149... Line 150...
149
				stroka_y+= list.item_h;
150
				stroka_y+= list.item_h;
150
				stroka_x = HTML_PADDING_X;
151
				stroka_x = HTML_PADDING_X;
151
				continue;
152
				continue;
152
			}
153
			}
153
			if 	(tag.nameis("h1")) || (tag.nameis("/h1"))
154
			if 	(tag.nameis("h1")) || (tag.nameis("/h1")) ||
154
				|| (tag.nameis("h2")) || (tag.nameis("/h2")) {
155
				(tag.nameis("h2")) || (tag.nameis("/h2")) ||
155
					stroka_y+= list.item_h;
156
				(tag.nameis("h3")) || (tag.nameis("/h3")) {
-
 
157
				if (tag.nameis("h1")) {
-
 
158
					size_pt_change = 8;
-
 
159
				} else if (tag.nameis("/h1")) {
-
 
160
					size_pt_change = -8;
-
 
161
				} else if (tag.nameis("h2")) {
-
 
162
					size_pt_change = 6;
-
 
163
				} else if (tag.nameis("/h2")) {
-
 
164
					size_pt_change = -6;
-
 
165
				} else if (tag.nameis("h3")) {
-
 
166
					size_pt_change = 4;
-
 
167
				} else if (tag.nameis("/h3")) {
-
 
168
					size_pt_change = -4;
-
 
169
				}
-
 
170
				label.size.pt += size_pt_change;
-
 
171
				if (size_pt_change > 0) {
-
 
172
					stroka_y+= list.item_h;
156
					stroka_x = HTML_PADDING_X;
173
				} else {
-
 
174
					stroka_y+= list.item_h - size_pt_change;
-
 
175
				}
-
 
176
				stroka_x = HTML_PADDING_X;
157
					continue;					
177
				continue;					
158
				}
178
			}
159
			if (tag.nameis("script")) || (tag.nameis("style")) style.ignore = true;
179
			if (tag.nameis("script")) || (tag.nameis("style")) style.ignore = true;
160
			if (tag.nameis("/script")) || (tag.nameis("/style")) style.ignore = false;
180
			if (tag.nameis("/script")) || (tag.nameis("/style")) style.ignore = false;
161
			if (tag.nameis("a"))  { style.a = true;  style.color=0x0000FF; }
181
			if (tag.nameis("a"))  { style.a = true;  style.color=0x0000FF; }