22#include <glib/gstdio.h>
33#include "navigation-window-interface.h"
44
5- //#include "libpeony-private/peony-window-info.h"
6-
7- //get the office file's of pdf one's name.
8- //char* office2pdf(char* filename);
9- //char* excel2html(char* filename);
10-
11- //when previewing an office type, we must do a delay op to ensure that the office trans op is not busy when changing the selection quickly.
12- GPid child_prog_sleep_and_preview_office (char * second , PeonyWindowInfo * window , char * filename , char * filename2 );
135char * get_pending_preview_filename (char * filename );
146gboolean is_office_busy ();
157
@@ -18,17 +10,6 @@ void office_utils_disconnect_window_info (PeonyWindowInfo *window_info);
1810
1911void clean_cache_files_anyway ();
2012
21- /*
22- void peony_navigation_window_set_current_preview_file_by_window_info (PeonyWindowInfo *window_info, char* filename);
23- char* peony_navigation_window_get_current_preview_file_by_window_info (PeonyWindowInfo *window_info);
24- void peony_navigation_window_set_current_previewing_office_file_by_window_info (PeonyWindowInfo *window_info, char* filename);
25- char* peony_navigation_window_get_current_previewing_office_file_by_window_info (PeonyWindowInfo *window_info);
26- void peony_navigation_window_set_pending_preview_file_by_window_info (PeonyWindowInfo *window_info, char* filename);
27- char* peony_navigation_window_get_pending_preview_file_by_window_info (PeonyWindowInfo *window_info);
28- void peony_navigation_window_set_loading_office_file_by_window_info (PeonyWindowInfo *window_info, char* filename);
29- char* peony_navigation_window_get_loading_office_file_by_window_info (PeonyWindowInfo *window_info);
30- */
31-
3213static char * office_mime_types [] = {
3314 "application/wps-office.doc" ,
3415 "application/msword" ,
@@ -45,7 +26,6 @@ static char* office_mime_types[] = {
4526 "application/wps-office.wps" ,
4627 "application/vnd.ms-works" ,
4728 "application/vnd.oasis.opendocument.text" ,
48- "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ,
4929
5030 "application/wps-office.wpt" ,
5131 "application/wps-office.ppt" ,
@@ -77,6 +57,7 @@ static char* office_mime_types[] = {
7757 "application/wps-office.xltx" ,
7858 "application/vnd.openxmlformats-officedocument.spreadsheetml.template" ,
7959 "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ,
60+ "application/vnd.oasis.opendocument.spreadsheet" ,
8061 "application/wps-office.et" ,
8162 "application/wps-office.ett"
8263};
@@ -95,52 +76,5 @@ static char* excel_mime_types[] = {
9576 "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ,
9677 "application/wps-office.et" ,
9778 "application/wps-office.ett" ,
98- "application/vnd.oasis.opendocument.spreadsheet" ,
99- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
79+ "application/vnd.oasis.opendocument.spreadsheet"
10080};
101- /*
102- office_mime_types[0] = "application/wps-office.doc";
103- office_mime_types[1] = "application/msword";
104- office_mime_types[2] = "application/vnd.ms-word";
105- office_mime_types[3] = "application/x-msword";
106- office_mime_types[4] = "application/vnd.ms-word.document.macroenabled.12";
107- office_mime_types[5] = "application/wps-office.dot";
108- office_mime_types[6] = "application/msword-template";
109- office_mime_types[7] = "application/vnd.ms-word.template.macroenabled.12";
110- office_mime_types[8] = "application/wps-office.dotx";
111- office_mime_types[9] = "application/vnd.openxmlformats-officedocument.wordprocessingml.template";
112- office_mime_types[10] = "application/wps-office.docx";
113- office_mime_types[11] = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
114- office_mime_types[12] = "application/wps-office.wps";
115- office_mime_types[13] = "application/vnd.ms-works";
116- //ppt
117- office_mime_types[14] = "application/wps-office.wpt";
118- office_mime_types[15] = "application/wps-office.ppt";
119- office_mime_types[16] = "application/vnd.ms-powerpoint";
120- office_mime_types[17] = "application/powerpoint";
121- office_mime_types[18] = "application/mspowerpoint";
122- office_mime_types[19] = "application/x-mspowerpoint";
123- office_mime_types[20] = "application/vnd.ms-powerpoint.presentation.macroenabled.12";
124- office_mime_types[21] = "application/wps-office.pot";
125- office_mime_types[22] = "application/vnd.ms-powerpoint.template.macroenabled.12";
126- office_mime_types[23] = "application/wps-office.potx";
127- office_mime_types[25] = "application/vnd.openxmlformats-officedocument.presentationml.template";
128- office_mime_types[26] = "application/wps-office.pptx";
129- office_mime_types[27] = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
130- office_mime_types[28] = "application/vnd.openxmlformats-officedocument.presentationml.slideshow";
131- office_mime_types[29] = "application/wps-office.dps";
132- office_mime_types[30] = "application/wps-office.dpt";
133- //excel
134- office_mime_types[31] = "application/wps-office.xls";
135- office_mime_types[32] = "application/vnd.ms-excel";
136- office_mime_types[33] = "application/msexcel";
137- office_mime_types[34] = "application/x-msexcel";
138- office_mime_types[35] = "application/vnd.ms-excel.sheet.macroenabled.12";
139- office_mime_types[36] = "application/vnd.ms-excel.template.macroenabled.12";
140- office_mime_types[37] = "application/wps-office.xlt";
141- office_mime_types[38] = "application/wps-office.xltx";
142- office_mime_types[39] = "application/vnd.openxmlformats-officedocument.spreadsheetml.template";
143- office_mime_types[40] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
144- office_mime_types[41] = "application/wps-office.et";
145- office_mime_types[42] = "application/wps-office.ett";
146- */
0 commit comments