87c6375
From 4564f9c207ab53c70a199a2dbcc0d8f155211256 Mon Sep 17 00:00:00 2001
87c6375
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
87c6375
Date: Tue, 6 Mar 2012 12:39:07 +0000
87c6375
Subject: [PATCH] Resolves: rhbz#799525 put flat odf mimetypes in
87c6375
 xsltfilter.desktop
87c6375
87c6375
---
87c6375
 scp2/source/ooo/common_brand.scp                 |   10 ++++++++++
87c6375
 sysui/desktop/freedesktop/freedesktop-menus.spec |    1 +
87c6375
 sysui/desktop/menus/calc.desktop                 |    2 +-
87c6375
 sysui/desktop/menus/draw.desktop                 |    2 +-
87c6375
 sysui/desktop/menus/impress.desktop              |    2 +-
87c6375
 sysui/desktop/menus/writer.desktop               |    2 +-
87c6375
 sysui/desktop/menus/xsltfilter.desktop           |    9 +++++++++
87c6375
 sysui/desktop/share/launcher_genericname.ulf     |    3 +++
87c6375
 sysui/desktop/share/makefile.mk                  |    2 +-
87c6375
 sysui/desktop/suse/suse-menus.spec               |    1 +
87c6375
 10 files changed, 29 insertions(+), 5 deletions(-)
87c6375
 create mode 100644 sysui/desktop/menus/xsltfilter.desktop
87c6375
87c6375
diff --git a/scp2/source/ooo/common_brand.scp b/scp2/source/ooo/common_brand.scp
87c6375
index 69c0a71..4c594df 100644
87c6375
--- a/scp2/source/ooo/common_brand.scp
87c6375
+++ b/scp2/source/ooo/common_brand.scp
87c6375
@@ -98,6 +98,7 @@ Module gid_Module_Root_Brand
87c6375
              gid_Brand_File_Share_Xdg_QStart,
87c6375
              gid_Brand_File_Share_Xdg_StartCenter,
87c6375
              gid_Brand_File_Share_Xdg_Writer,
87c6375
+             gid_Brand_File_Share_Xdg_XsltFilter,
87c6375
              gid_Brand_File_Txt_Package,
87c6375
 	     gid_License_Txt,
87c6375
 	     git_License_Odt,
87c6375
@@ -791,6 +792,15 @@ File gid_Brand_File_Share_Xdg_BinFilter
87c6375
 End
87c6375
 #endif
87c6375
 
87c6375
+#if defined UNX && ! defined MACOSX
87c6375
+File gid_Brand_File_Share_Xdg_XsltFilter
87c6375
+    TXT_FILE_BODY;
87c6375
+    Dir = gid_Brand_Dir_Share_Xdg;
87c6375
+    Name = "xsltfilter.desktop";
87c6375
+    Styles = (PACKED,SCPZIP_REPLACE);
87c6375
+End
87c6375
+#endif
87c6375
+
87c6375
 // Profiles
87c6375
 
87c6375
 Profile gid_Brand_Profile_Bootstrap_Ini
87c6375
diff --git a/sysui/desktop/freedesktop/freedesktop-menus.spec b/sysui/desktop/freedesktop/freedesktop-menus.spec
87c6375
index 78a33ae..039bdc2 100755
87c6375
--- a/sysui/desktop/freedesktop/freedesktop-menus.spec
87c6375
+++ b/sysui/desktop/freedesktop/freedesktop-menus.spec
87c6375
@@ -387,6 +387,7 @@ done
87c6375
 /usr/share/applications/%unixfilename-startcenter.desktop
87c6375
 /usr/share/applications/%unixfilename-javafilter.desktop
87c6375
 /usr/share/applications/%unixfilename-binfilter.desktop
87c6375
+/usr/share/applications/%unixfilename-xsltfilter.desktop
87c6375
 /usr/share/icons/gnome/*/apps/*png
87c6375
 /usr/share/icons/gnome/*/mimetypes/*png
87c6375
 /usr/share/icons/hicolor/*/apps/*png
87c6375
diff --git a/sysui/desktop/menus/calc.desktop b/sysui/desktop/menus/calc.desktop
87c6375
index c8899cd..b4c0385 100755
87c6375
--- a/sysui/desktop/menus/calc.desktop
87c6375
+++ b/sysui/desktop/menus/calc.desktop
87c6375
@@ -5,7 +5,7 @@ Icon=calc
87c6375
 Type=Application
87c6375
 Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Spreadsheets;
87c6375
 Exec=${UNIXBASISROOTNAME} --calc %U
87c6375
-MimeType=application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.spreadsheet-flat-xml;application/vnd.oasis.opendocument.spreadsheet-template;application/vnd.sun.xml.calc;application/vnd.sun.xml.calc.template;application/msexcel;application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-excel.sheet.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.template.macroenabled.12;application/vnd.ms-excel.sheet.binary.macroenabled.12;text/csv;application/x-dbf;text/spreadsheet;
87c6375
+MimeType=application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.spreadsheet-template;application/vnd.sun.xml.calc;application/vnd.sun.xml.calc.template;application/msexcel;application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-excel.sheet.macroenabled.12;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.template.macroenabled.12;application/vnd.ms-excel.sheet.binary.macroenabled.12;text/csv;application/x-dbf;text/spreadsheet;
87c6375
 Name=%PRODUCTNAME Calc
87c6375
 GenericName=Spreadsheet
87c6375
 Comment=Perform calculations, analyze information and manage lists in spreadsheets by using Calc.
87c6375
diff --git a/sysui/desktop/menus/draw.desktop b/sysui/desktop/menus/draw.desktop
87c6375
index 67ad422..231f320 100755
87c6375
--- a/sysui/desktop/menus/draw.desktop
87c6375
+++ b/sysui/desktop/menus/draw.desktop
87c6375
@@ -5,7 +5,7 @@ Icon=draw
87c6375
 Type=Application
87c6375
 Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Drawing;
87c6375
 Exec=${UNIXBASISROOTNAME} --draw %U
87c6375
-MimeType=application/vnd.oasis.opendocument.graphics;application/vnd.oasis.opendocument.graphics-flat-xml;application/vnd.oasis.opendocument.graphics-template;application/vnd.sun.xml.draw;application/vnd.sun.xml.draw.template;
87c6375
+MimeType=application/vnd.oasis.opendocument.graphics;application/vnd.oasis.opendocument.graphics-template;application/vnd.sun.xml.draw;application/vnd.sun.xml.draw.template;
87c6375
 Name=%PRODUCTNAME Draw
87c6375
 GenericName=Drawing Program
87c6375
 Comment=Create and edit drawings, flow charts, and logos by using Draw.
87c6375
diff --git a/sysui/desktop/menus/impress.desktop b/sysui/desktop/menus/impress.desktop
87c6375
index 91c937a..22d130d 100755
87c6375
--- a/sysui/desktop/menus/impress.desktop
87c6375
+++ b/sysui/desktop/menus/impress.desktop
87c6375
@@ -5,7 +5,7 @@ Icon=impress
87c6375
 Type=Application
87c6375
 Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Presentations;
87c6375
 Exec=${UNIXBASISROOTNAME} --impress %U
87c6375
-MimeType=application/vnd.oasis.opendocument.presentation;application/vnd.oasis.opendocument.presentation-flat-xml;application/vnd.oasis.opendocument.presentation-template;application/vnd.sun.xml.impress;application/vnd.sun.xml.impress.template;application/mspowerpoint;application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.ms-powerpoint.presentation.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.ms-powerpoint.template.macroenabled.12;
87c6375
+MimeType=application/vnd.oasis.opendocument.presentation;application/vnd.oasis.opendocument.presentation-template;application/vnd.sun.xml.impress;application/vnd.sun.xml.impress.template;application/mspowerpoint;application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.ms-powerpoint.presentation.macroenabled.12;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.ms-powerpoint.template.macroenabled.12;
87c6375
 Name=%PRODUCTNAME Impress
87c6375
 GenericName=Presentation
87c6375
 Comment=Create and edit presentations for slideshows, meeting and Web pages by using Impress.
87c6375
diff --git a/sysui/desktop/menus/writer.desktop b/sysui/desktop/menus/writer.desktop
87c6375
index 0db0d05..845b6d2 100755
87c6375
--- a/sysui/desktop/menus/writer.desktop
87c6375
+++ b/sysui/desktop/menus/writer.desktop
87c6375
@@ -5,7 +5,7 @@ Icon=writer
87c6375
 Type=Application
87c6375
 Categories=Office;X-Red-Hat-Base;X-SuSE-Core-Office;X-MandrivaLinux-Office-Wordprocessors;
87c6375
 Exec=${UNIXBASISROOTNAME} --writer %U
87c6375
-MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-flat-xml;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/msword;application/vnd.ms-word;application/x-doc;application/x-hwp;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.lotus-wordpro;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;
87c6375
+MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/msword;application/vnd.ms-word;application/x-doc;application/x-hwp;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.lotus-wordpro;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;
87c6375
 Name=%PRODUCTNAME Writer
87c6375
 GenericName=Word Processor
87c6375
 Comment=Create and edit text and graphics in letters, reports, documents and Web pages by using Writer.
87c6375
diff --git a/sysui/desktop/menus/xsltfilter.desktop b/sysui/desktop/menus/xsltfilter.desktop
87c6375
new file mode 100644
87c6375
index 0000000..a6c3b1b
87c6375
--- /dev/null
87c6375
+++ b/sysui/desktop/menus/xsltfilter.desktop
87c6375
@@ -0,0 +1,9 @@
87c6375
+[Desktop Entry]
87c6375
+Version=1.0
87c6375
+Terminal=false
87c6375
+Type=Application
87c6375
+Exec=${UNIXBASISROOTNAME} %U
87c6375
+MimeType=application/vnd.oasis.opendocument.text-flat-xml;application/vnd.oasis.opendocument.spreadsheet-flat-xml;application/vnd.oasis.opendocument.graphics-flat-xml;application/vnd.oasis.opendocument.presentation-flat-xml;
87c6375
+Name=%PRODUCTNAME XSLT based filters
87c6375
+GenericName=XSLT based filters
87c6375
+NoDisplay=true
87c6375
diff --git a/sysui/desktop/share/launcher_genericname.ulf b/sysui/desktop/share/launcher_genericname.ulf
87c6375
index 6130e0b..09ccf8d 100755
87c6375
--- a/sysui/desktop/share/launcher_genericname.ulf
87c6375
+++ b/sysui/desktop/share/launcher_genericname.ulf
87c6375
@@ -24,3 +24,6 @@ en-US = "Small Device Format Importer"
87c6375
 
87c6375
 [binfilter]
87c6375
 en-US = "Legacy StarOffice 5 Binary Format Importer"
87c6375
+
87c6375
+[xsltfilter]
87c6375
+en-US = "XSLT based filters"
87c6375
diff --git a/sysui/desktop/share/makefile.mk b/sysui/desktop/share/makefile.mk
87c6375
index f6b4dfa..1d99c84 100755
87c6375
--- a/sysui/desktop/share/makefile.mk
87c6375
+++ b/sysui/desktop/share/makefile.mk
87c6375
@@ -53,7 +53,7 @@ ULFFILES= \
87c6375
     launcher_name.ulf
87c6375
 
87c6375
 LAUNCHERLIST_APPS = writer calc draw impress math base printeradmin startcenter
87c6375
-LAUNCHERLIST = $(LAUNCHERLIST_APPS) qstart javafilter binfilter
87c6375
+LAUNCHERLIST = $(LAUNCHERLIST_APPS) qstart javafilter binfilter xsltfilter
87c6375
 LAUNCHERDEPN = ../menus/{$(LAUNCHERLIST)}.desktop
87c6375
 
87c6375
 LAUNCHERFLAGFILE = $(COMMONMISC)/$(TARGET)/xdg.flag
87c6375
diff --git a/sysui/desktop/suse/suse-menus.spec b/sysui/desktop/suse/suse-menus.spec
87c6375
index 74b67e6..ab053ec 100755
87c6375
--- a/sysui/desktop/suse/suse-menus.spec
87c6375
+++ b/sysui/desktop/suse/suse-menus.spec
87c6375
@@ -358,6 +358,7 @@ done
87c6375
 /usr/share/applications/%unixfilename-startcenter.desktop
87c6375
 /usr/share/applications/%unixfilename-javafilter.desktop
87c6375
 /usr/share/applications/%unixfilename-binfilter.desktop
87c6375
+/usr/share/applications/%unixfilename-xsltfilter.desktop
87c6375
 /opt/gnome/share/mime-info/*.keys
87c6375
 /opt/gnome/share/mime-info/*.mime
87c6375
 /opt/kde3/share/mimelnk/application/*.desktop
87c6375
-- 
87c6375
1.7.7.6
87c6375