summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2018-08-01 12:42:52 -0400
committerVictor Kareh <[email protected]>2018-08-01 12:42:52 -0400
commit10e665ff9b410553582f3764674fabe8d6a3e246 (patch)
tree00fd59082a4038d41640a421137be9bbd8f5df30 /src
parent7c0038aac0f4fdfca4c940fbce9aad433d953c1e (diff)
downloadengrampa-10e665ff9b410553582f3764674fabe8d6a3e246.tar.bz2
engrampa-10e665ff9b410553582f3764674fabe8d6a3e246.tar.xz
Add support for OpenDocument formats
Diffstat (limited to 'src')
-rw-r--r--src/fr-command-zip.c9
-rw-r--r--src/fr-init.c12
2 files changed, 20 insertions, 1 deletions
diff --git a/src/fr-command-zip.c b/src/fr-command-zip.c
index eaee1d8..a5326ba 100644
--- a/src/fr-command-zip.c
+++ b/src/fr-command-zip.c
@@ -381,7 +381,14 @@ fr_command_zip_handle_error (FrCommand *comm,
}
-const char *zip_mime_type[] = { "application/x-cbz",
+const char *zip_mime_type[] = {
+ "application/vnd.oasis.opendocument.presentation",
+ "application/vnd.oasis.opendocument.spreadsheet",
+ "application/vnd.oasis.opendocument.text",
+ "application/vnd.oasis.opendocument.presentation-template",
+ "application/vnd.oasis.opendocument.spreadsheet-template",
+ "application/vnd.oasis.opendocument.text-template",
+ "application/x-cbz",
"application/x-ear",
"application/x-ms-dos-executable",
"application/x-war",
diff --git a/src/fr-init.c b/src/fr-init.c
index 6aed80d..751cdcd 100644
--- a/src/fr-init.c
+++ b/src/fr-init.c
@@ -70,6 +70,12 @@ FrMimeTypeDescription mime_type_desc[] = {
{ "application/x-bzip1", ".bz", NULL, 0 },
{ "application/x-bzip1-compressed-tar", ".tar.bz", N_("Tar compressed with bzip (.tar.bz)"), 0 },
{ "application/vnd.ms-cab-compressed", ".cab", N_("Cabinet (.cab)"), 0 },
+ { "application/vnd.oasis.opendocument.presentation", ".odp", N_("OpenDocument Presentation"), 0 },
+ { "application/vnd.oasis.opendocument.spreadsheet", ".ods", N_("OpenDocument Spreadsheet"), 0 },
+ { "application/vnd.oasis.opendocument.text", ".odt", N_("OpenDocument Text"), 0 },
+ { "application/vnd.oasis.opendocument.presentation-template", ".otp", N_("OpenDocument Presentation Template"), 0 },
+ { "application/vnd.oasis.opendocument.spreadsheet-template", ".ots", N_("OpenDocument Spreadsheet Template"), 0 },
+ { "application/vnd.oasis.opendocument.text-template", ".ott", N_("OpenDocument Text Template"), 0 },
{ "application/x-cbr", ".cbr", N_("Rar Archived Comic Book (.cbr)"), 0 },
{ "application/x-cbz", ".cbz", N_("Zip Archived Comic Book (.cbz)"), 0 },
{ "application/x-cd-image", ".iso", NULL, 0 },
@@ -131,6 +137,12 @@ FrExtensionType file_ext_type[] = {
{ ".lz", "application/x-lzip" },
{ ".lzma", "application/x-lzma" },
{ ".lzo", "application/x-lzop" },
+ { ".odp", "application/vnd.oasis.opendocument.presentation" },
+ { ".ods", "application/vnd.oasis.opendocument.spreadsheet" },
+ { ".odt", "application/vnd.oasis.opendocument.text" },
+ { ".otp", "application/vnd.oasis.opendocument.presentation-template" },
+ { ".ots", "application/vnd.oasis.opendocument.spreadsheet-template" },
+ { ".ott", "application/vnd.oasis.opendocument.text-template" },
{ ".rar", "application/x-rar" },
{ ".rpm", "application/x-rpm" },
{ ".rz", "application/x-rzip" },