From 71c6897d9751f7255bf48536cd8302c0fcf35740 Mon Sep 17 00:00:00 2001 From: Bartosz Kosiorek Date: Thu, 26 Sep 2024 20:37:17 +0200 Subject: 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 (cherry picked from commit 529dfc741a4ad6735937adaf10acdd567da4f84c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174013 Reviewed-by: Adolfo Jayme Barrientos --- android/source/AndroidManifest.xml | 1 + android/source/src/java/org/libreoffice/ui/FileUtilities.java | 1 + android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java | 1 + 3 files changed, 3 insertions(+) (limited to 'android') 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 @@ + 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", -- cgit