mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[all] support "keynotes" "pages" "numbers" formats for open
This commit is contained in:
@ -70,15 +70,15 @@
|
|||||||
+ (NSArray *)documents {
|
+ (NSArray *)documents {
|
||||||
return @[@"docx", @"doc", @"odt", @"ott", @"rtf", @"docm", @"dot", @"dotx", @"dotm", @"docxf", @"fodt", @"wps", @"wpt",
|
return @[@"docx", @"doc", @"odt", @"ott", @"rtf", @"docm", @"dot", @"dotx", @"dotm", @"docxf", @"fodt", @"wps", @"wpt",
|
||||||
@"xml", @"pdf", @"epub", @"djv", @"djvu", @"txt", @"html", @"htm", @"mht", @"mhtml", @"xps", @"doctx",
|
@"xml", @"pdf", @"epub", @"djv", @"djvu", @"txt", @"html", @"htm", @"mht", @"mhtml", @"xps", @"doctx",
|
||||||
@"fb2", @"oform", @"sxw", @"stw", @"md"];
|
@"fb2", @"oform", @"sxw", @"stw", @"md", @"pages"];
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSArray *)spreadsheets {
|
+ (NSArray *)spreadsheets {
|
||||||
return @[@"xls", @"xlsx", @"xlsm", @"xlsb", @"csv", @"ods", @"xltx", @"ots", @"xltm", @"xml", @"fods", @"et", @"ett", @"sxc"];
|
return @[@"xls", @"xlsx", @"xlsm", @"xlsb", @"csv", @"ods", @"xltx", @"ots", @"xltm", @"xml", @"fods", @"et", @"ett", @"sxc",@"numbers"];
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSArray *)presentations {
|
+ (NSArray *)presentations {
|
||||||
return @[@"ppt", @"pptx", @"pptm", @"ppsx", @"odp", @"potx", @"otp", @"pps", @"ppsm", @"potm", @"fodp", @"dps", @"dpt", @"sxi"];
|
return @[@"ppt", @"pptx", @"pptm", @"ppsx", @"odp", @"potx", @"otp", @"pps", @"ppsm", @"potm", @"fodp", @"dps", @"dpt", @"sxi",@"key"];
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSArray *)cancryptformats {
|
+ (NSArray *)cancryptformats {
|
||||||
|
|||||||
@ -243,12 +243,13 @@ QStringList CFileDialogWrapper::modalOpen(const QString& path, const QString& fi
|
|||||||
// _filter_ = joinFilters();
|
// _filter_ = joinFilters();
|
||||||
_filter_ = tr("Text documents") +
|
_filter_ = tr("Text documents") +
|
||||||
#ifndef __LOCK_OFORM_FORMATS
|
#ifndef __LOCK_OFORM_FORMATS
|
||||||
" (*.docx *.doc *.odt *.ott *.rtf *.docm *.dot *.dotx *.dotm *.fb2 *.fodt *.wps *.wpt *.xml *.pdf *.djv *.djvu *.docxf *.oform *.sxw *.stw *.xps *.oxps);;" +
|
" (*.docx *.doc *.odt *.ott *.rtf *.docm *.dot *.dotx *.dotm *.fb2 *.fodt *.wps *.wpt *.xml *.pdf *.djv *.djvu *.docxf *.oform *.sxw *.stw *.xps *.oxps *.pages);;" +
|
||||||
#else
|
#else
|
||||||
" (*.docx *.doc *.odt *.ott *.rtf *.docm *.dot *.dotx *.dotm *.fb2 *.fodt *.wps *.wpt *.xml *.pdf *.djv *.djvu *.sxw *.stw *.xps *.oxps);;" +
|
" (*.docx *.doc *.odt *.ott *.rtf *.docm *.dot *.dotx *.dotm *.fb2 *.fodt *.wps *.wpt *.xml *.pdf *.djv *.djvu *.sxw *.stw *.xps *.oxps);;" +
|
||||||
#endif
|
#endif
|
||||||
tr("Spreadsheets") + " (*.xlsx *.xls *.xlsm *.xlsb *.ods *.ots *.xltx *.xltm *.xml *.fods *.et *.ett *.sxc);;" +
|
tr("Spreadsheets") + " (*.xlsx *.xls *.xlsm *.xlsb *.ods *.ots *.xltx *.xltm *.xml *.fods *.et *.ett *.sxc *.numbers);;" +
|
||||||
tr("Presentations") + " (*.pptx *.ppt *.odp *.otp *.ppsm *.pptm *.ppsx *.pps *.potx *.pot *.potm *.fodp *.dps *.dpt *.sxi);;" +
|
tr("Presentations") + " (*.pptx *.ppt *.odp *.otp *.ppsm *.pptm *.ppsx *.pps *.potx *.pot *.potm *.fodp *.dps *.dpt *.sxi *.key);;" +
|
||||||
|
tr("Visio diagram") + " (*.vsdx *.vssx *.vstx *.vsdm *.vssm *.vstm);;" +
|
||||||
tr("Web Page") + " (*.html *.htm *.mht *.mhtml *.epub);;" +
|
tr("Web Page") + " (*.html *.htm *.mht *.mhtml *.epub);;" +
|
||||||
tr("Text files") + " (*.txt *.csv)";
|
tr("Text files") + " (*.txt *.csv)";
|
||||||
//#ifdef __linux__
|
//#ifdef __linux__
|
||||||
|
|||||||
Reference in New Issue
Block a user