Re: InsetInclude::clone()

2003-06-02 Thread Andre Poenitz
On Sun, Jun 01, 2003 at 01:17:09AM +0100, John Levon wrote: > On Fri, May 30, 2003 at 08:42:17AM +0200, Andre Poenitz wrote: > > > > Is Inset::clone() used anywhere else than undo and copy/paste ? > > > > Paragraph copy c'tor and =? > > But what uses that ? undo and copy/paste, right ? We need

Re: InsetInclude::clone()

2003-06-02 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Sun, Jun 01, 2003 at 11:17:56AM +0200, Lars Gullik Bj?nnes wrote: | | > | > Paragraph copy c'tor and =? | > | | > | But what uses that ? undo and copy/paste, right ? | > | > No, not only. When using std::list the objects you store is copied in, | > so

Re: InsetInclude::clone()

2003-06-02 Thread John Levon
On Sun, Jun 01, 2003 at 11:17:56AM +0200, Lars Gullik Bj?nnes wrote: > | > Paragraph copy c'tor and =? > | > | But what uses that ? undo and copy/paste, right ? > > No, not only. When using std::list the objects you store is copied in, > so on all insertions into std::list either the copy c'tor

Re: InsetInclude::clone()

2003-06-01 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Fri, May 30, 2003 at 08:42:17AM +0200, Andre Poenitz wrote: | | > > Is Inset::clone() used anywhere else than undo and copy/paste ? | > | > Paragraph copy c'tor and =? | | But what uses that ? undo and copy/paste, right ? No, not only. When using st

Re: InsetInclude::clone()

2003-06-01 Thread John Levon
On Fri, May 30, 2003 at 08:42:17AM +0200, Andre Poenitz wrote: > > Is Inset::clone() used anywhere else than undo and copy/paste ? > > Paragraph copy c'tor and =? But what uses that ? undo and copy/paste, right ? john

Re: InsetInclude::clone()

2003-05-30 Thread Andre Poenitz
On Fri, May 30, 2003 at 02:31:57AM +0100, John Levon wrote: > > Lars, this one is tricky for cross-buffer copy. > > You need to add some code to iterate across all inset includes > in the buffer and replace masterFilename I think. Does this sound > sensible ? > > Should InsetInclude store a Buff

InsetInclude::clone()

2003-05-30 Thread John Levon
Lars, this one is tricky for cross-buffer copy. You need to add some code to iterate across all inset includes in the buffer and replace masterFilename I think. Does this sound sensible ? Should InsetInclude store a Buffer * ? Is Inset::clone() used anywhere else than undo and copy/paste ? re