diff options
author | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2024-09-26 20:37:17 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2024-09-30 03:26:54 +0200 |
commit | 71c6897d9751f7255bf48536cd8302c0fcf35740 (patch) | |
tree | f402f70fdfc67c195a6dc3db61673c4e5cd53029 /android | |
parent | 43e6279e8f747b5e1c2d59a8794742c9843f05a8 (diff) |
tdf#163170 Add support for MS Visio Template format with .vstx extension
libvisio is already supporting .vstx template format.
With this patch the LibreOffice is recognizing such file types,
and successfully opening it.
More information about format:
https://learn.microsoft.com/en-us/office/client-developer/visio/introduction-to-the-visio-file-formatvsdx
Change-Id: Ibee01288cdb2cd6a0ac3f371a22604d7bb5b471c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173997
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
(cherry picked from commit 529dfc741a4ad6735937adaf10acdd567da4f84c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174013
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'android')
-rw-r--r-- | android/source/AndroidManifest.xml | 1 | ||||
-rw-r--r-- | android/source/src/java/org/libreoffice/ui/FileUtilities.java | 1 | ||||
-rw-r--r-- | android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/android/source/AndroidManifest.xml b/android/source/AndroidManifest.xml index ba71fdddb197..899a117f429d 100644 --- a/android/source/AndroidManifest.xml +++ b/android/source/AndroidManifest.xml @@ -60,6 +60,7 @@ <data android:mimeType="application/vnd.ms-powerpoint" /> <data android:mimeType="application/vnd.ms-excel"/> <data android:mimeType="application/vnd.visio" /> + <data android:mimeType="application/vnd.visio2013" /> <data android:mimeType="application/vnd.visio.xml" /> <data android:mimeType="application/x-mspublisher" /> diff --git a/android/source/src/java/org/libreoffice/ui/FileUtilities.java b/android/source/src/java/org/libreoffice/ui/FileUtilities.java index 7fc8c3c84eb1..f7fa856217fc 100644 --- a/android/source/src/java/org/libreoffice/ui/FileUtilities.java +++ b/android/source/src/java/org/libreoffice/ui/FileUtilities.java @@ -70,6 +70,7 @@ public class FileUtilities { mExtnMap.put(".dot", DOC); mExtnMap.put(".pot", IMPRESS); mExtnMap.put(".xlt", CALC); + mExtnMap.put(".vstx", DRAWING); // OOXML mExtnMap.put(".docx", DOC); diff --git a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java index 63eed9d37069..3f93d815af27 100644 --- a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java +++ b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java @@ -95,6 +95,7 @@ public class LibreOfficeUIActivity extends AppCompatActivity implements View.OnC "application/vnd.ms-powerpoint", "application/vnd.ms-excel", "application/vnd.visio", + "application/vnd.visio2013", "application/vnd.visio.xml", "application/x-mspublisher", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", |