List Info

Thread: Re: loading of raw xml




Re: loading of raw xml
country flaguser name
Denmark
2007-04-02 04:19:19
Sorry, got the commit totally wrong, the test has been there
a loooong time.
(But I still think the code is wrong)

The actual code is in KoDcument.cpp line 1750 in
loadNativeFormat():

if ( d->m_specialOutputFlag != SaveAsDirectoryStore ) //
Don't try to open a 
directory ;)
    {
        in.setFileName(file);
        if ( !in.open( QIODevice::ReadOnly ) )
...

I don't see why the check for SaveAsDirectoryStore when we
are actually 
loading. And as I say below it seems to me it will *always*
end up trying to 
load oasis format, so "old" format will not work.

Anyone?

Mandag 02 april 2007 09:16 skrev Dag Andersen:
> Hi, David
> I found this commit:
> http://lists.kde.org/?l=kde-commits&m=11692
1539415804&w=2
> I don't think this works if the raw xml is in the
"old" format
> (maindoc.xml) the test:
> if ( d->m_specialOutputFlag != SaveAsDirectoryStore
)
> seems wrong to me. AFAICS it will *always* try to load
oasis format.
> If I remove the test, I can load "old" format
just fine.
> Have I missed something, or is it ok to remove the
test?

-- 
Mvh
Dag Andersen
_______________________________________________
koffice-devel mailing list
koffice-develkde.org
h
ttps://mail.kde.org/mailman/listinfo/koffice-devel

Re: loading of raw xml
country flaguser name
Denmark
2007-04-03 06:07:03
Sigh, yesterday wasn't the best of days...
Can't reproduce this, today things works as expected, so
just disregard these 
mails, please.
Mandag 02 april 2007 11:19 skrev Dag Andersen:
> Sorry, got the commit totally wrong, the test has been
there a loooong
> time. (But I still think the code is wrong)
>
> The actual code is in KoDcument.cpp line 1750 in
loadNativeFormat():
>
> if ( d->m_specialOutputFlag != SaveAsDirectoryStore
) // Don't try to open
> a directory ;)
>     {
>         in.setFileName(file);
>         if ( !in.open( QIODevice::ReadOnly ) )
> ...
>
> I don't see why the check for SaveAsDirectoryStore when
we are actually
> loading. And as I say below it seems to me it will
*always* end up trying
> to load oasis format, so "old" format will
not work.
>
> Anyone?
>
> Mandag 02 april 2007 09:16 skrev Dag Andersen:
> > Hi, David
> > I found this commit:
> > http://lists.kde.org/?l=kde-commits&m=11692
1539415804&w=2
> > I don't think this works if the raw xml is in the
"old" format
> > (maindoc.xml) the test:
> > if ( d->m_specialOutputFlag !=
SaveAsDirectoryStore )
> > seems wrong to me. AFAICS it will *always* try to
load oasis format.
> > If I remove the test, I can load "old"
format just fine.
> > Have I missed something, or is it ok to remove the
test?

-- 
Mvh
Dag Andersen
_______________________________________________
koffice-devel mailing list
koffice-develkde.org
h
ttps://mail.kde.org/mailman/listinfo/koffice-devel

Re: loading of raw xml
country flaguser name
France
2007-04-04 16:40:17
On Monday 02 April 2007, Dag Andersen wrote:
> I don't see why the check for SaveAsDirectoryStore when
we are actually loading.
Feel free to remove the "SaveAs" from the name,
it's about the file format "Directory Store" ;)

-- 
David Faure, faurekde.org, sponsored by Trolltech to work on
KDE,
Konqueror (http://www.konqueror.org
), and KOffice (http://www.koffice.org).
_______________________________________________
koffice-devel mailing list
koffice-develkde.org
h
ttps://mail.kde.org/mailman/listinfo/koffice-devel

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )