On 15-Mar-2002 Asger K. Alstrup Nielsen wrote: > On Fri, 15 Mar 2002, Andre Poenitz wrote: > >> How does the undo architecture look like? Maybe even one that does not >> work on the outer paragraph level only, but on smaller scopes if possible? > > Conceptually, you can handle undo by having a stack of documents. > > Now, you want smaller scope. I presume this is because you want local > undo. (You can still do this, just with stacks of paragraphs, but > ignore that for now.)
I don't understand the whole discussion. We HAVE local undo! The only thing you have to do is encapsulate your undo data in a paragraph and then pass this paragraph data to undo. What we are missing is undo on an abstract data type. That means we should give the undo function a "void *" pointer with the ALREADY duplicated data, with a datatype to specify where undo should resend the data in a undo/redo event. IMO this shouldn't be too hard to realize. Jug -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED] Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-0471-450253 I-39100 Bozen Web: http://www.sad.it/~jug -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ There are times when truth is stranger than fiction and lunch time is one of them.