[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Global save method option
From: Nicolas Goutte <nicolasg () snafu ! de>
Date: 2004-02-14 1:00:44
Message-ID: 200402140156.55253.nicolasg () snafu ! de
[Download RAW message or body]
Is it possible to add KOffice-wide options that:
- can be used also in filters
- have a nice user interface in each KOffice application
My problem is about saving a UTF-8 XML file from QDomDocument. There are two
possibilities:
- by QCString (fast but uses rougly twice as much memory (or perhaps even more
as I have not checked what KZIp and lower do.))
- by QTextStream (roughly twice as slow but low need of memory)
(Yes, I know that QTextStream is used even in the case of QCString, but
QTextStream on a QString and then QString::utf8 are much faster than a direct
UTF-8 QTextStream.)
The QCString way is used by KoDocument while the QTextStream way is used by
some KWord filters. I would like to unify that but by giving the choice
between the 2 solutions.
I suppose that user would prefer the faster solution but the problem are very
long documents. If a user cannot save its document because the computer does
not have again the same memory amount, it is a big problem. So I would like
to allow the user to choose what method is used. (I do not think that an
automatical solution would exist and it would have probably annoying
border-cases.)
Have a nice day!
PS. 1: another candidate for global settings is the always-fast setting in
KoPicture that has no user interface.
PS. 2: what very long documents are is relative. Depending on the computer, it
might be already a document of 1MB lsize. But if I remember well, some users
wanted to load text files of 20MB or even more. In any case, there will
always be users that need to use documents that barely fit the memory and
computing power of their computer. I would like that such users fells more
welcome than now on KOffice (as much as possible.)
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic