Subversion Repositories Kolibri OS

Rev

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

Rev 7784 Rev 7788
Line 87... Line 87...
87
};
87
};
Line 88... Line 88...
88
 
88
 
Line 89... Line 89...
89
#include "tabs.h"
89
#include "tabs.h"
90
 
90
 
Line 91... Line 91...
91
char default_dir[] = "/rd/1";
91
char default_dir[] = "/rd/1";
92
od_filter filter2 = { 16, "TXT\0HTM\0HTML\0\0" };
92
od_filter filter2 = { 22, "TXT\0HTM\0HTML\0DOCX\0\0" };
93
 
93
 
Line 517... Line 517...
517
}
517
}
Line 518... Line 518...
518
 
518
 
519
void OpenPage(dword _open_URL)
519
void OpenPage(dword _open_URL)
520
{
520
{
-
 
521
	char new_url[URL_SIZE+1];
Line 521... Line 522...
521
	char new_url[URL_SIZE+1];
522
	int unz_id;
Line 522... Line 523...
522
 
523
 
523
	StopLoading();
524
	StopLoading();
Line 569... Line 570...
569
			StopLoading();
570
			StopLoading();
570
			LoadInternalPage(#page_not_found, sizeof(page_not_found));
571
			LoadInternalPage(#page_not_found, sizeof(page_not_found));
571
		}
572
		}
572
	} else {
573
	} else {
573
		//LOCAL PAGE
574
		//LOCAL PAGE
-
 
575
		if (UrlExtIs(#new_url,".docx")) {
-
 
576
			DeleteFile("/tmp0/1/temp/word/document.xml");
-
 
577
			CreateDir("/tmp0/1/temp");
-
 
578
			unz_id = RunProgram("/sys/unz", sprintf(#param, "-o \"/tmp0/1/temp\" -h \"%s\"", #new_url));
-
 
579
			while (GetProcessSlot(unz_id)) pause(2);
-
 
580
			strcpy(#new_url, "/tmp0/1/temp/word/document.xml");
-
 
581
		} 
574
		if (!GetLocalFileData(#new_url)) {
582
		if (!GetLocalFileData(#new_url)) {
575
			LoadInternalPage(#page_not_found, sizeof(page_not_found));
583
			LoadInternalPage(#page_not_found, sizeof(page_not_found));
576
		}
584
		}
577
	}
585
	}
578
}
586
}