On Sun, Sep 17, 2006 at 12:04:20AM +0200, [EMAIL PROTECTED] wrote:
> On Sat, 16 Sep 2006, Andre Poenitz wrote:
> 
> > On Sat, Sep 16, 2006 at 05:34:37PM +0200, [EMAIL PROTECTED] wrote:
> > > The function InsetERT:getStatus() suppress (disable) accents within ERT 
> > > insets, which makes sense.
> > > 
> > > But MathNestInset::doDispatch() contains the equivalent of this:
> > > 
> > >         case LFUN_ACCENT_ACUTE:
> > >                 break;
> > > 
> > > Does this mean that 'accent-acute' works in math insets or not?
> > 
> > That's the idiom for silently ignoring things.
> > 
> > I'd guess saying so in the corresponding getStatus() method
> > would be better.
> 
> Ok, I understand about it being ignored silently. 
> 
> I know 'accent-acute' works LyXText::dispatch() and not in ERT insets. And 
> now I know it is ignored in MathNestInset's. But... how do I know if 
> 'accent-acute' works anywhere else?  The other dispatchers related to math 
> insets don't mention it for instance.

Most math insets derive from InsetMathNest (aka MathNestInset) and
use its doDispatch() in most cases.
 
> If an LFUN isn't mentioned in any of the other dispatch methods, can I 
> assume it does not work there?  Or will being handled by the the 
> LyXText::dispatch() imply that it works everywhere that it is not 
> explicitly ignored or disabled?

Most text insets use LyXText's doDispatch().

So from what you've described I'd say all text with exception of ERT
handle it, math doesn't handle it.

Andre'

Reply via email to