Re: Re-drawing a document after changes

From: Dr William Bland (wjb@abstractnonsense.com)
Date: Mon Nov 11 2002 - 05:50:48 EST

  • Next message: ericzen: "Re: AbiWord Weekly News #117 (2002, week 45) released"

    On Mon, Nov 11, 2002 at 08:31:19PM +1100, Martin Sevior wrote:
    >
    > On Mon, 2002-11-11 at 20:33, Dr William Bland wrote:
    > > Hi all,
    > > Ok, I've got the hang of stepping through a document, and now I've
    > > successfully made changes to its piecetable. The missing link is
    > > re-displaying the document.
    > >
    > > The following code works, but I can only see the changes if I save and
    > > re-load the document. Otherwise the display doesn't get updated.
    > > Any hints gratefully received.
    > >
    > > Best wishes,
    > > Bill.
    > >
    > > PS: Note that I added PT_BufIndex::changeBufIndex(), but it just does
    > > what you would expect.
    > >
    >
    > Please don't expect abiword to work like this. We go to great lengths
    > stop this sort of direct manipulations of the piecetable.
    >
    > Use the accessor functions in Pd_Document.

    Ok, I changed it to do everything using the Pd_Document functions and now
    it works fine. I'm learning (slowly).

    Thanks for your help.
    Best wishes,
                    Bill.



    This archive was generated by hypermail 2.1.4 : Mon Nov 11 2002 - 05:46:51 EST