Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5746 → Rev 5747

/programs/cmm/TWB/TWB.c
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; }
/programs/cmm/browser/WebView.c
588,7 → 588,7
if (!strncmp(#URL,"WebView:",8))
{
SetPageDefaults();
if (!strcmp(#URL, URL_SERVICE_HOME)) LoadInternalPage(#homepage, sizeof(homepage));
if (!strcmp(#URL, URL_SERVICE_HOME)) WB1.LoadInternalPage(#homepage, sizeof(homepage));
else if (!strcmp(#URL, URL_SERVICE_HISTORY)) ShowHistory();
return;
}
638,10 → 638,10
PageLinks.Clear();
if (http_transfer)
{
LoadInternalPage(#loading, sizeof(loading));
WB1.LoadInternalPage(#loading, sizeof(loading));
}
else
LoadInternalPage(#page_not_found, sizeof(page_not_found));
WB1.LoadInternalPage(#page_not_found, sizeof(page_not_found));
}
else
WB1.Parse();
656,13 → 656,7
return false;
}
 
void LoadInternalPage(dword bufpos, in_filesize){
bufsize = in_filesize;
bufpointer = bufpos;
WB1.Parse();
}
 
 
 
char downloader_stak[4096];
stop:
/programs/cmm/browser/history.h
27,5 → 27,5
strcat(history_pointer, #pics[i].path);
}
strcat(history_pointer, "</body></html>");
LoadInternalPage(history_pointer, strlen(history_pointer));
WB1.LoadInternalPage(history_pointer, strlen(history_pointer));
}
/programs/cmm/liza/mail_box.c
355,14 → 355,12
WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, WB1.list.h);
 
strcpy(#header, #version);
pre_text = 0;
WB1.list.first = WB1.list.count = 0;
}
 
void DrawLetter() {
pre_text = 2;
bufsize = strlen(mdata);
WB1.Prepare(bufsize, mdata);
WB1.LoadInternalPage(bufsize, mdata);
if (bufsize) WB1.Parse();
DrawRectangle(scroll_wv.start_x, scroll_wv.start_y, scroll_wv.size_x, scroll_wv.size_y-1, 0xFFFfff);
}