Bug 82335

Summary: Register LibreOffice for Kingsoft Office file types
Product: LibreOffice Reporter: Daniel <danielyunus06>
Component: LibreofficeAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: medium CC: dtardon, serval2412
Version: 4.3.0.4 release   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard: EasyHack DifficultyBeginner TopicUI
i915 platform: i915 features:
Attachments: Presentation file
Writer file
Unknown file format

Description Daniel 2014-08-08 08:10:24 UTC
I've got them in kingsoftstore.com/download-office/Select PPT or Writer templates.

1. .dpt files is for KingSoft Presentation
2. .wpt files is for KingSoft Writer

Unfortunately, these Kingsoft's files format does not support LibreOffice. Can anyone fix this problem?
Comment 1 Algot Runeman 2014-08-08 11:34:42 UTC
According to this article:
http://www.techrepublic.com/blog/10-things/10-reasons-why-kingsoft-office-is-better-than-the-competition/

Kingsoft Office is relatively new and should be able to interact with LibreOffice through the supported MSOffice formats.

This sounds more like a feature request than a bug.

--Algot
Comment 2 Julien Nabet 2014-08-08 11:54:58 UTC
(In reply to comment #1)
> According to this article:
> http://www.techrepublic.com/blog/10-things/10-reasons-why-kingsoft-office-is-
> better-than-the-competition/
> 
> Kingsoft Office is relatively new and should be able to interact with
> LibreOffice through the supported MSOffice formats.
> ...
Or rather with ODF formats which are open formats, see http://en.wikipedia.org/wiki/OpenDocument
Comment 3 David Tardon 2014-08-08 13:46:25 UTC
I downloaded a few samples from http://kingsoftstore.com/download-office/word-template and libreoffice 4.2 opens them just fine. Anyway, as far as I can see, they are normal DOC files with a different extension. Could you attach a few sample files that you were unable to open?
Comment 4 Daniel 2014-08-08 15:12:21 UTC
Created attachment 104289 [details]
Presentation file
Comment 5 Daniel 2014-08-08 15:13:11 UTC
Created attachment 104290 [details]
Writer file
Comment 6 ign_christian 2014-08-08 15:24:00 UTC
I can open both files without problem in LO 4.2.6.2 and 4.3.1.1 under Ubuntu 12.04 x86
Comment 7 Daniel 2014-08-08 15:26:40 UTC
Please test both attachment above...
No problems with PPT, XLS, DOC. I've just found that new file types that I never heard in another page in other categories in that same webpage. But I'm sure that they are part of office file-format, too.
Comment 8 Daniel 2014-08-08 15:29:00 UTC
@ign_christian: But, not like me, why I cannot open both that file? Is there any problems?
Comment 9 Daniel 2014-08-08 15:30:36 UTC
Created attachment 104293 [details]
Unknown file format
Comment 10 ign_christian 2014-08-08 16:15:39 UTC
(In reply to comment #7)
> Please test both attachment above...
Yup..with those attachment I did testing

(In reply to comment #8)
> @ign_christian: But, not like me, why I cannot open both that file? Is there
> any problems?
Right-click > Open with > LibreOffice

(In reply to comment #9)
> Created attachment 104293 [details]
> Unknown file format
It's because those extensions not associated by default with LO. 

@Daniel, no need to set your own report as NEEDINFO :)
Comment 11 Daniel 2014-08-08 18:01:00 UTC
@ign_christian: Who set report as needinfo? I'm not to set it. Except, just waiting your decision to make sure you can fix this bug.
Comment 12 Daniel 2014-08-08 18:01:12 UTC
@ign_christian: Who set report as needinfo? I'm not to set it. Except, just waiting your decision to make sure you can fix this bug.
Comment 13 Daniel 2014-08-08 18:13:39 UTC
Can anyone fix this file directly to this app? So people are not confused to open this file type or do not need to Right-click => Open with. So, I select each this file directly via file manager and open associated by default with LO.
Comment 14 David Tardon 2014-08-09 07:18:24 UTC
So, what should be done here (this is for wpt; I am leaving dpt as an excercise for the reader):
* add the extension to filter/source/config/fragments/types/writer_MS_Word_97.xcu (separated by a space);
* add new pattern to sysui/desktop/mimetypes/ms-word-document.desktop and sysui/desktop/mimetypes/ms-word-document2.desktop;
* add the extension to sysui/desktop/macosx/Info.plist.in to the same array 'doc' is in;
* add the extension to array g_Extensions in setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx .

(The Kingsoft Office types could also be added as separate types, but I do not think it is worth it.)
Comment 15 Siddu 2014-09-09 04:48:16 UTC
Hi, I am new and I feel I can start working from here.
@Daniel,Algot: Both of the above mentioned files work just fine, I am using 4.4 build version of LO, I just have to manually open it using Open-with option.
Comment 16 Siddu 2014-09-09 05:19:50 UTC
@David Tardon: I added the ".dpt"(In its correct place (alphabetically)) extension to reg4allmsi.cxx. Its the same thing for the ".dwt" extension as well I guess. What do I do next ? Thank You.
Comment 17 Siddu 2014-09-09 09:09:22 UTC
(In reply to comment #14)
> So, what should be done here (this is for wpt; I am leaving dpt as an
> excercise for the reader):
> * add the extension to
> filter/source/config/fragments/types/writer_MS_Word_97.xcu (separated by a
> space);
> * add new pattern to sysui/desktop/mimetypes/ms-word-document.desktop and
> sysui/desktop/mimetypes/ms-word-document2.desktop;
> * add the extension to sysui/desktop/macosx/Info.plist.in to the same array
> 'doc' is in;
> * add the extension to array g_Extensions in
> setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx .
> 
> (The Kingsoft Office types could also be added as separate types, but I do
> not think it is worth it.)

I will also have to add the MIMETypes as well for both the extensions ? Correct ?
Comment 18 Siddu 2014-09-20 12:22:46 UTC
(In reply to comment #14)
> So, what should be done here (this is for wpt; I am leaving dpt as an
> excercise for the reader):
> * add the extension to
> filter/source/config/fragments/types/writer_MS_Word_97.xcu (separated by a
> space);
> * add new pattern to sysui/desktop/mimetypes/ms-word-document.desktop and
> sysui/desktop/mimetypes/ms-word-document2.desktop;
> * add the extension to sysui/desktop/macosx/Info.plist.in to the same array
> 'doc' is in;
> * add the extension to array g_Extensions in
> setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx .
> 
> (The Kingsoft Office types could also be added as separate types, but I do
> not think it is worth it.)

Sudarshan Rao proposed a change to core: Bug no. 82335.  https://gerrit.libreoffice.org/11555
Comment 19 Siddu 2014-09-20 12:26:31 UTC
(In reply to comment #14)
> So, what should be done here (this is for wpt; I am leaving dpt as an
> excercise for the reader):
> * add the extension to
> filter/source/config/fragments/types/writer_MS_Word_97.xcu (separated by a
> space);
> * add new pattern to sysui/desktop/mimetypes/ms-word-document.desktop and
> sysui/desktop/mimetypes/ms-word-document2.desktop;
> * add the extension to sysui/desktop/macosx/Info.plist.in to the same array
> 'doc' is in;
> * add the extension to array g_Extensions in
> setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx .
> 
> (The Kingsoft Office types could also be added as separate types, but I do
> not think it is worth it.)

Sudarshan Rao proposed a change to core: Bug no. 82335.  https://gerrit.libreoffice.org/11555

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.