summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--freedesktop.org.xml.in23
-rw-r--r--tests/list4
-rw-r--r--tests/sample.potbin0 -> 164352 bytes
-rwxr-xr-xtests/sample.pptbin0 -> 127488 bytes
-rw-r--r--tests/sample.xlsbin0 -> 5632 bytes
-rw-r--r--tests/sample.xltbin0 -> 5632 bytes
6 files changed, 22 insertions, 5 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 513298d..6ca20b9 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -593,21 +593,24 @@ command to generate the output files.
<mime-type type="application/vnd.ms-excel">
<_comment>Excel spreadsheet</_comment>
<generic-icon name="x-office-spreadsheet"/>
- <magic priority="50">
- <match type="string" value="Microsoft Excel 5.0 Worksheet" offset="2080"/>
- </magic>
<glob pattern="*.xls"/>
<glob pattern="*.xlc"/>
<glob pattern="*.xll"/>
<glob pattern="*.xlm"/>
<glob pattern="*.xlw"/>
<glob pattern="*.xla"/>
- <glob pattern="*.xlt"/>
<glob pattern="*.xld"/>
<alias type="application/msexcel"/>
<alias type="application/x-msexcel"/>
<alias type="zz-application/zz-winassoc-xls"/>
</mime-type>
+ <mime-type type="application/vnd.ms-excel-template">
+ <_comment>Excel template</_comment>
+ <sub-class-of type="application/vnd.ms-excel"/>
+ <generic-icon name="x-office-spreadsheet"/>
+ <glob pattern="*.xlt"/>
+ <alias type="application/msexcel-template"/>
+ </mime-type>
<mime-type type="application/vnd.ms-excel.addin.macroEnabled.12">
<_comment>Excel add-in</_comment>
<generic-icon name="x-office-spreadsheet"/>
@@ -638,11 +641,20 @@ command to generate the output files.
<glob pattern="*.ppz"/>
<glob pattern="*.ppt"/>
<glob pattern="*.pps"/>
- <glob pattern="*.pot"/>
<alias type="application/powerpoint"/>
<alias type="application/mspowerpoint"/>
<alias type="application/x-mspowerpoint"/>
</mime-type>
+ <mime-type type="application/vnd.ms-powerpoint-template">
+ <_comment>PowerPoint template</_comment>
+ <sub-class-of type="application/vnd.ms-powerpoint"/>
+ <generic-icon name="x-office-presentation"/>
+ <magic priority="50">
+ <match type="string" value="\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1" offset="0"/>
+ </magic>
+ <glob pattern="*.pot"/>
+ <alias type="application/mspowerpoint-template"/>
+ </mime-type>
<mime-type type="application/vnd.ms-powerpoint.addin.macroEnabled.12">
<_comment>PowerPoint add-in</_comment>
<generic-icon name="x-office-presentation"/>
@@ -774,6 +786,7 @@ command to generate the output files.
<sub-class-of type="application/msword"/>
<generic-icon name="x-office-document"/>
<glob pattern="*.dot"/>
+ <alias type="application/vnd.ms-word-template"/>
</mime-type>
<mime-type type="application/gml+xml">
<_comment>GML document</_comment>
diff --git a/tests/list b/tests/list
index 32313a5..f4f45f0 100644
--- a/tests/list
+++ b/tests/list
@@ -114,6 +114,10 @@ ooo-test.fodt application/vnd.oasis.opendocument.text-flat-xml ox
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=20604
foo.doc application/msword
# Copied from http://bugzilla.abisource.com/show_bug.cgi?id=6435
+sample.xls application/vnd.ms-excel ox
+sample.xlt application/vnd.ms-excel-template ox
+sample.pot application/vnd.ms-powerpoint-template
+sample.ppt application/vnd.ms-powerpoint ox
test-template.dot application/msword-template ox
test-template.dot application/msword xox
# Copied from http://www.ebooktechnologies.com/downloads/ocf10-20060911.epub
diff --git a/tests/sample.pot b/tests/sample.pot
new file mode 100644
index 0000000..8904d1d
--- /dev/null
+++ b/tests/sample.pot
Binary files differ
diff --git a/tests/sample.ppt b/tests/sample.ppt
new file mode 100755
index 0000000..42b657a
--- /dev/null
+++ b/tests/sample.ppt
Binary files differ
diff --git a/tests/sample.xls b/tests/sample.xls
new file mode 100644
index 0000000..92fae93
--- /dev/null
+++ b/tests/sample.xls
Binary files differ
diff --git a/tests/sample.xlt b/tests/sample.xlt
new file mode 100644
index 0000000..92fae93
--- /dev/null
+++ b/tests/sample.xlt
Binary files differ