Re: Design Techniques (was: Re: Inset Visitors...)

2001-12-26 Thread Allan Rae
On Fri, 21 Dec 2001, John Weiss wrote: > On Fri, Dec 14, 2001 at 11:34:30AM +0100, Lars Gullik Bjønnes wrote: > > Ben Stanley <[EMAIL PROTECTED]> writes: > > > > | When I did my extended error reporting modification to LyX, I added > > | Inset Visitors. I found them to be very useful... > > > > Y

Re: Inset Visitors...

2001-12-14 Thread Andre Poenitz
On Fri, Dec 14, 2001 at 11:02:51AM +1100, Ben Stanley wrote: > When I did my extended error reporting modification to LyX, I added > Inset Visitors. I found them to be very useful... They are... Sometimes. > This means that all the 'spellchecking' (or whatever) code related to a > single kind

Re: Inset Visitors...

2001-12-13 Thread Ben Stanley
John Levon wrote: >On Fri, Dec 14, 2001 at 02:07:05PM +1100, Ben Stanley wrote: > >>John Leveon asked me how you would specify that one kind of inset is >>searchable but not spell-checkable, and that another kind of inset is >>spell-checkable and not searchable. Here is a complete self-contain

Re: Inset Visitors...

2001-12-13 Thread John Levon
On Fri, Dec 14, 2001 at 02:07:05PM +1100, Ben Stanley wrote: > John Leveon asked me how you would specify that one kind of inset is > searchable but not spell-checkable, and that another kind of inset is > spell-checkable and not searchable. Here is a complete self-contained > example. OK, I

Re: Inset Visitors...

2001-12-13 Thread Ben Stanley
John Leveon asked me how you would specify that one kind of inset is searchable but not spell-checkable, and that another kind of inset is spell-checkable and not searchable. Here is a complete self-contained example. class InsetVisitor; class Inset { // blah blah virtual void Accept(Inse

Re: Inset Visitors...

2001-12-13 Thread Ben Stanley
John Levon wrote: >On Fri, Dec 14, 2001 at 12:48:23PM +1100, Ben Stanley wrote: > >>>what's the point in calling back like this ? This looks like it requires >>>an VisitInsetX for every class X ? And furthermore, one that must be >>>public. >>> >>The point of calling back is that it gives you the

Re: Inset Visitors...

2001-12-13 Thread John Levon
On Fri, Dec 14, 2001 at 12:48:23PM +1100, Ben Stanley wrote: > >what's the point in calling back like this ? This looks like it requires > >an VisitInsetX for every class X ? And furthermore, one that must be > >public. > > > The point of calling back is that it gives you the virtual dispatch. >

Re: Inset Visitors...

2001-12-13 Thread Ben Stanley
John Levon wrote: >On Fri, Dec 14, 2001 at 11:02:51AM +1100, Ben Stanley wrote: > >>class InsetA : public Inset { >>// blah blah >> virtual void Accept(InsetVisitor& iv ) { iv.VisitInsetA(*this); } >>}; >> >>class InsetVisitor { >>// blah blah >> virtual void VisitInsetA( InsetA& ) = 0; >>};

Re: Inset Visitors...

2001-12-13 Thread John Levon
On Fri, Dec 14, 2001 at 11:02:51AM +1100, Ben Stanley wrote: > class InsetA : public Inset { > // blah blah >virtual void Accept(InsetVisitor& iv ) { iv.VisitInsetA(*this); } > }; > > class InsetVisitor { > // blah blah >virtual void VisitInsetA( InsetA& ) = 0; > }; what's the point in