Bug 60050 - sort mimetypes list if the mimetype is not recognized automatically
Summary: sort mimetypes list if the mimetype is not recognized automatically
Status: RESOLVED UNMAINTAINED
Alias: None
Product: koffice
Classification: Applications
Component: general (show other bugs)
Version: 1.3-beta
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KOffice Bug Wranglers
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2003-06-19 12:37 UTC by Ferdinand Gassauer
Modified: 2015-02-06 13:07 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ferdinand Gassauer 2003-06-19 12:37:03 UTC
Version:           1.2.91 (using KDE 3.1.9)
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB

Hi!
For some reason (not KDE related ?) MS-Word docoments are associated with Plugger 4.0.
Opening them with Kword shows a list of unsorted mimetypes. IMHO they should be sorted alphabetically.
cu
ferdinand
Comment 1 Nicolas Goutte 2003-06-19 17:39:48 UTC
No, you cannot sort the mime types alphabetically. (It has already be committed 
and then removed from CVS.)

They are in order of directness. First all the KWord ones, then KPresenter (if 
I remember well) and so on.

Sorting them means that you would have non-native (for example KPresenter) 
filters mixed up in between native ones (for example KWord.)

Sure, you could tell that the filter system should be improved, including in 
usability.

Have a nice day!
Comment 2 Ferdinand Gassauer 2003-06-19 18:24:04 UTC
Subject: Re:  sort mimetypes list if the mimetype is not recognized automatically

On Thursday 19 June 2003 17:39, you wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=60050
> nicolasg@snafu.de changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- Status|NEW                         |RESOLVED
>          Resolution|                            |WONTFIX
>             Summary|sort mimetypes list if the  |sort mimetypes list if the
>
>                    |mimetype is not recognized  |mimetype is not recognized
>                    |automatically               |automatically
>
> ------- Additional Comments From nicolasg@snafu.de  2003-06-19 17:39
> ------- No, you cannot sort the mime types alphabetically. (It has already
> be committed and then removed from CVS.)
>
> They are in order of directness. First all the KWord ones, then KPresenter
> (if I remember well) and so on.
>
> Sorting them means that you would have non-native (for example KPresenter)
> filters mixed up in between native ones (for example KWord.)
>
> Sure, you could tell that the filter system should be improved, including
> in usability.
>
> Have a nice day!
I do not understand your reasoning - 
If I try to open a file with kword I hope that only filters which can be used 
by  kword are displayed and IMHO these could/should  be sorted without having 
the problem youe mentioned.
Comment 3 Nicolas Goutte 2003-10-27 15:00:26 UTC
Sure, it would be better if the problems would not exist and would be fixed.

Again some works for future version. (Sigh!)

Good: I am re-opening this report (as bug this time), so that this problem does not get forgotten. And I am switching it to KOffice/General.

Have a nice day!
Comment 4 David Faure 2003-10-27 15:43:27 UTC
Subject: Re:  sort mimetypes list if the mimetype is not recognized automatically

I believe Ferdinand is talking about the mimetype chooser dialog,
and Nicolas (in #1 at least) was talking about the file dialog filter combobox.

No time to test right now, but this patch might fix the ordering of the mimetype list 
in the mimetype chooser dialog:


Index: koFilterManager.cc
===================================================================
RCS file: /home/kde/koffice/lib/kofficecore/koFilterManager.cc,v
retrieving revision 1.130
diff -u -p -r1.130 koFilterManager.cc
--- koFilterManager.cc  19 Aug 2003 15:26:10 -0000      1.130
+++ koFilterManager.cc  27 Oct 2003 14:42:23 -0000
@@ -79,6 +79,7 @@ KoFilterChooser::KoFilterChooser (QWidge
     if (m_filterList->currentItem () == -1)
         m_filterList->setCurrentItem (0);

+    m_filterList->sort ();
     m_filterList->centerCurrentItem ();
     m_filterList->setFocus ();


Comment 5 Nicolas Goutte 2003-10-27 17:57:10 UTC
Well, you still get the problems that you have mimetypes that are not usable.
So when you sort it, the user has not even a chance anymore to know which ones are not usable, as those are not anymore after another KOffice application.

The whole problem must be fixed much more below in the filter system to disallow that something like plain text will be used between KWord and KSpread.

Nobody had the time to fix that for KOffice 1.3, so it is for 1.4. (I thought that the problem was well known, that is why I had selected WONTFIX. Now I see that I had made an error and should have done earlier what I have done now.)

Have a nice day!

PS.: Sigh^2: there is even an unknown mime type in this dialog!
Comment 6 Nicolas Goutte 2004-08-14 21:01:53 UTC
*** Bug 87185 has been marked as a duplicate of this bug. ***
Comment 7 Nicolas Goutte 2004-10-26 19:37:43 UTC
Absurd filter chain problems are now moved to bug #44256.

Bug #87185 has been changed to be now a duplicate of bug #44256.

This bug (#60050) depends on bug #44256 too. It must be solved first before the list can be sorted alphabetically.

Have a nice day!
Comment 8 Nicolas Goutte 2004-11-02 12:18:31 UTC
I am realizing that fixing bug #44256 is not enough.

In KPresenter, you could have filters from KWord. The user should know that those filters are from KWord. (If the would be all sorted, nothing would differ
a filter form another.)

Have a nice day!
Comment 9 Michael Leupold 2008-10-26 14:53:44 UTC
As far as I can tell this bug is still there (trunk r875799).
On opening a file the filters are still unsorted. I only see filters suitable to the application I'm using though.
Comment 10 Christoph Feck 2015-02-06 13:07:36 UTC
Thank you for your bug report or feature suggestion.

The "KOffice" application suite is no longer maintained, and all tickets are now closed.

We recommend to switch to the "Calligra" application suite, which has replacements for all unmaintained KOffice applications:

- KWord was replaced with Calligra Words
- KPlato was replaced with Calligra Plan

For more information, see http://en.wikipedia.org/wiki/Calligra_Suite

(This is an automatic message from the KDE bug triaging team)