[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Changes to koffice/lib/store
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-11-16 23:11:06
[Download RAW message or body]

On Thursday 16 November 2000 22:44, Shaheed Haque wrote:
> OK, I'm being thick again. I cannot understand how to make the idea of 
> relative URLs (which we all agree *seems* like a nice solution) work.
> 
> Basically, a koStore can know the current working directory when it is first 
> created, and so reading the top level document is fine. But from then on in, 
> it cannot guess (and should not depend on) the order in which the 
> application will read child documents. So, it cannot know when to go up or 
> down levels in the part hierarchy (e.g. think of depth-first or 
> breadth-first traversal).

Hmm, why that ? What you want is a shell-like structure. I mean,
koDocument does "cd /", loads the xml, and then calls loadChildren.
In loadChildren, the app has to cd into the subdirectory of each
part before loading it - or maybe this can be done in the libs depending
on the API (I guess this is an API change anyway). After each part is loaded,
the app (or the libs) does "cd .." to restore the current directory.

What you want is a relative movement in the current dir... doesn't that work ?

A full-path setCwd() obviously doesn't help anyone, IMHO.

[snip]
> So, unless someone can point out where I am going wrong, I'm going to 
> implement the solution using the filters side of things.

Not sure what you mean here....
Yes, I'm being thick too, it's late and my brain is burnt due to re-designing
the KServiceTypeProfile stuff for many hours.... :)

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://www.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2

_______________________________________________
Koffice-devel mailing list
Koffice-devel@master.kde.org
http://master.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