On Wed, 19 Sep 2007 11:19:55 +0200 Abdelrazak Younes <[EMAIL PROTECTED]> wrote:
> Martin Vermeer wrote: > > On Wed, 19 Sep 2007 00:28:27 +0300 > > Martin Vermeer <[EMAIL PROTECTED]> wrote: > > > >> The attached does this experimentally. It looks good... what we lose is > >> the possibility to get the previous word automatically into the index > >> inset. But I suspect there's a trick even for that if we go this way. > >> > >> The question is, do we? > >> > >> - Martin > >> > >> (Some other rough edges still. It's the idea that counts) > > > > > > Looking at this some more, I have been trying to find the code (for the > > existing index inset) that does 1) the copying of the word the cursor is > > in to inside the inset, and 2) the copying of the selection, if there is > > any. > > > > I don't see it. Am I dumb (no, don't answer that) > > My guess is: look at InsetCommandMailer and ControlCommand... > > Abdel. Found it! The method is called getStringToIndex() and is called from factory.cpp. - Martin