tdf#82335 Register Libreoffice for Kingsoft file types

Registered LO for Kingsoft document , spreadsheet, presentation
and their template types.

Change-Id: If2b9f428b22f6d104c5ffe699f5264a22b814a0e
Reviewed-on: https://gerrit.libreoffice.org/23037
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Jaskaran 2016-03-09 00:24:08 +05:30 committed by Caolán McNamara
parent 345d5b172c
commit a1a63373f9
13 changed files with 22 additions and 10 deletions

View File

@ -18,7 +18,7 @@
<node oor:name="calc_MS_Excel_97" oor:op="replace" >
<prop oor:name="DetectService"><value>com.sun.star.comp.calc.ExcelBiffFormatDetector</value></prop>
<prop oor:name="URLPattern"/>
<prop oor:name="Extensions"><value>xls xlc xlm xlw xlk</value></prop>
<prop oor:name="Extensions"><value>xls xlc xlm xlw xlk et</value></prop>
<prop oor:name="MediaType"><value>application/vnd.ms-excel</value></prop>
<prop oor:name="Preferred"><value>true</value></prop>
<prop oor:name="PreferredFilter"><value>MS Excel 97</value></prop>

View File

@ -18,7 +18,7 @@
<node oor:name="calc_MS_Excel_97_VorlageTemplate" oor:op="replace" >
<prop oor:name="DetectService"><value>com.sun.star.comp.calc.ExcelBiffFormatDetector</value></prop>
<prop oor:name="URLPattern"/>
<prop oor:name="Extensions"><value>xlt</value></prop>
<prop oor:name="Extensions"><value>xlt ett</value></prop>
<prop oor:name="MediaType"><value>application/vnd.ms-excel</value></prop>
<prop oor:name="Preferred"><value>false</value></prop>
<prop oor:name="PreferredFilter"><value>MS Excel 97 Vorlage/Template</value></prop>

View File

@ -18,7 +18,7 @@
<node oor:name="impress_MS_PowerPoint_97" oor:op="replace" >
<prop oor:name="DetectService"><value>com.sun.star.comp.draw.FormatDetector</value></prop>
<prop oor:name="URLPattern"/>
<prop oor:name="Extensions"><value>ppt</value></prop>
<prop oor:name="Extensions"><value>ppt dps</value></prop>
<prop oor:name="MediaType"><value>application/vnd.ms-powerpoint</value></prop>
<prop oor:name="Preferred"><value>false</value></prop>
<prop oor:name="PreferredFilter"><value>MS PowerPoint 97</value></prop>

View File

@ -18,7 +18,7 @@
<node oor:name="impress_MS_PowerPoint_97_Vorlage" oor:op="replace" >
<prop oor:name="DetectService"><value>com.sun.star.comp.draw.FormatDetector</value></prop>
<prop oor:name="URLPattern"/>
<prop oor:name="Extensions"><value>pot</value></prop>
<prop oor:name="Extensions"><value>pot dpt</value></prop>
<prop oor:name="MediaType"><value>application/vnd.ms-powerpoint</value></prop>
<prop oor:name="Preferred"><value>false</value></prop>
<prop oor:name="PreferredFilter"><value>MS PowerPoint 97 Vorlage</value></prop>

View File

@ -18,7 +18,7 @@
<node oor:name="writer_MS_Word_97" oor:op="replace" >
<prop oor:name="DetectService"><value>com.sun.star.text.FormatDetector</value></prop>
<prop oor:name="URLPattern"/>
<prop oor:name="Extensions"><value>doc</value></prop>
<prop oor:name="Extensions"><value>doc wps</value></prop>
<prop oor:name="MediaType"><value>application/msword</value></prop>
<prop oor:name="Preferred"><value>true</value></prop>
<prop oor:name="PreferredFilter"><value>MS Word 97</value></prop>

View File

@ -18,7 +18,7 @@
<node oor:name="writer_MS_Word_97_Vorlage" oor:op="replace" >
<prop oor:name="DetectService"><value>com.sun.star.text.FormatDetector</value></prop>
<prop oor:name="URLPattern"/>
<prop oor:name="Extensions"><value>dot</value></prop>
<prop oor:name="Extensions"><value>dot wpt</value></prop>
<prop oor:name="MediaType"><value>application/msword</value></prop>
<prop oor:name="Preferred"><value>true</value></prop>
<prop oor:name="PreferredFilter"><value>MS Word 97 Vorlage</value></prop>

View File

@ -35,6 +35,8 @@ static const CHAR* g_Extensions[] =
{
".doc", // Microsoft Word Text [0]
".dot", // Microsoft Word Template
".wps", // Kingsoft Writer Document
".wpt", // Kingsoft Writer Template
".rtf", // rtf text
".docx", // Office Word 2007 XML document
".docm", // Office Word 2007 XML macro-enabled document
@ -48,6 +50,8 @@ static const CHAR* g_Extensions[] =
".xltx", // Office Excel 2007 XML template
".xltm", // Office Excel 2007 XML macro-enabled template
".xlsb", // Office Excel 2007 binary workbook (BIFF12)
".et", // Kingsoft Spreadsheet
".ett", // Kingsoft SpreadSheet Template
".ppt", // Microsoft Powerpoint
".pps", // Microsoft Powerpoint
".pot", // Microsoft Powerpoint Template
@ -56,16 +60,18 @@ static const CHAR* g_Extensions[] =
".potx", // Office PowerPoint 2007 XML template
".potm", // Office PowerPoint 2007 macro-enabled XML template
".ppsx", // Office PowerPoint 2007 XML show
".dps", // Kingsoft Presentation
".dpt", // Kingsoft Presentation Template
".vsd", // Visio 2000/XP/2003 document
".vst", // Visio 2000/XP/2003 template
0
};
static const int WORD_START = 0;
static const int EXCEL_START = 7;
static const int POWERPOINT_START = 15;
static const int VISIO_START = 23;
static const int VISIO_END = 25;
static const int EXCEL_START = 9;
static const int POWERPOINT_START = 19;
static const int VISIO_START = 29;
static const int VISIO_END = 31;
// ".xlam", // Office Excel 2007 XML macro-enabled add-in
// ".ppam", // Office PowerPoint 2007 macro-enabled XML add-in

View File

@ -22,5 +22,6 @@ Hidden=false
Icon=
Type=MimeType
Patterns=*.xls
Patterns=*.et
MimeType=application/vnd.ms-excel
Comment=Microsoft Excel Worksheet

View File

@ -22,5 +22,6 @@ Hidden=false
Icon=
Type=MimeType
Patterns=*.xltm
Patterns=*.ett
MimeType=application/vnd.ms-excel.template.macroenabled.12
Comment=Microsoft Excel Worksheet Template

View File

@ -22,5 +22,6 @@ Hidden=false
Icon=
Type=MimeType
Patterns=*.ppt
Patterns=*.dps
MimeType=application/vnd.ms-powerpoint
Comment=Microsoft PowerPoint Presentation

View File

@ -22,5 +22,6 @@ Hidden=false
Icon=
Type=MimeType
Patterns=*.potm
Patterns=*.dpt
MimeType=application/vnd.ms-powerpoint.template.macroenabled.12
Comment=Microsoft PowerPoint Presentation Template

View File

@ -22,5 +22,6 @@ Hidden=false
Icon=
Type=MimeType
Patterns=*.doc
Patterns=*.wps
MimeType=application/msword
Comment=Microsoft Word Document

View File

@ -22,5 +22,6 @@ Hidden=false
Icon=
Type=MimeType
Patterns=*.dotm
Patterns=*.wpt
MimeType=application/vnd.ms-word.template.macroenabled.12
Comment=Microsoft Word Document Template