mirror of
https://github.com/gen2brain/cbconvert
synced 2025-10-13 18:18:52 +02:00
Add docx and pptx
This commit is contained in:
@@ -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
|
||||
|
@@ -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,
|
||||
})
|
||||
|
@@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user