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
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
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
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
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
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
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.
>
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;
>>};
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