> > Heh. I'll happily contribute wherever I can. I was going to take a
> > stab at seeing if I could add  "Import->Noweb File" to the Import
> > menu.
> 
> Ask Asger Alstrup Nielsen for help, since he implemented Import->LaTeX. It
> should be extremely easy, since the interface will be almost exactly the
> same, and the comand is the same, except with a -n in it. (In fact, I wonder
> if it should even have a separate window, or maybe you could combine the
> latex & noweb windows somehow? But "Import->Latex_or_Noweb" might be
> confusing.)

I suggest that we have Import->Noweb file.

Implementation is easy when you know how to.

Basically, it involves adding a new lyx function and write the
function that does the import.  Then, you need to add this lyx function
to the menu and short-cut key definition files.

The easiest way to see how this is done, is probably to use the
cvs commit log on www.devel.lyx.org (when it's up), and see if 
you can find the entry where the LaTeX import feature was implemented.

Alternatively, you can have a look at the time when the menu
separator was implemented (between 1.0.0 and 1.0.1), because
that's a nice demonstration of how to add a lyx function.
Then, the remaining job is just to hunt down the function
that does the LaTeX import now, and hack that to do the
noweb import in a new function.

So, have a look at files like menus.C, lyxfunc.C and family.

Just ask if you need more help,

Asger

Reply via email to