diff --git a/cbconvert_func.go b/cbconvert_func.go index e2b412a..f8676c3 100644 --- a/cbconvert_func.go +++ b/cbconvert_func.go @@ -102,7 +102,7 @@ func isArchive(f string) bool { // isDocument checks if file is document. func isDocument(f string) bool { - var types = []string{".pdf", ".xps", ".epub", ".mobi"} + var types = []string{".pdf", ".xps", ".epub", ".mobi", ".docx", ".pptx"} for _, t := range types { if strings.ToLower(filepath.Ext(f)) == t { return true diff --git a/cmd/cbconvert-gui/main_filedlg.go b/cmd/cbconvert-gui/main_filedlg.go index 064b007..5961d98 100644 --- a/cmd/cbconvert-gui/main_filedlg.go +++ b/cmd/cbconvert-gui/main_filedlg.go @@ -24,7 +24,7 @@ func fileDlg(title string, multiple, directory bool) ([]string, error) { dlg.SetAttributes(map[string]string{ "DIALOGTYPE": "OPEN", "MULTIPLEFILES": mf, - "EXTFILTER": "Comic Files|*.rar;*.zip;*.7z;*.tar;*.cbr;*.cbz;*.cb7;*.cbt;*.pdf;*.epub;*.mobi;*.xps|", + "EXTFILTER": "Comic Files|*.rar;*.zip;*.7z;*.tar;*.cbr;*.cbz;*.cb7;*.cbt;*.pdf;*.epub;*.mobi;*.docx;*.pptx|", "FILTER": "*.cb*", // for Motif "TITLE": title, }) diff --git a/cmd/cbconvert-gui/main_filedlg_portal.go b/cmd/cbconvert-gui/main_filedlg_portal.go index 2dea3b3..3a5c301 100644 --- a/cmd/cbconvert-gui/main_filedlg_portal.go +++ b/cmd/cbconvert-gui/main_filedlg_portal.go @@ -57,7 +57,8 @@ func fileDlg(title string, multiple, directory bool) ([]string, error) { Item{0, "*.pdf"}, Item{0, "*.epub"}, Item{0, "*.mobi"}, - Item{0, "*.xps"}, + Item{0, "*.docx"}, + Item{0, "*.pptx"}, }, }, }