I'm attempting to move the print dialog over to the SigC++
stuff. My interest is in the print form, rather than how
it's called, but if anyone out there can answer my
question...
Calling the print dialog from lyxfunc.C is easy:
string LyXFunc::Dispatch(int ac, char const * do_not_use_this_arg)
{
switch(action)
{
...
case LFUN_MENUPRINT:
- MenuPrint(owner->buffer());
+ owner->getDialogs()->showPrint();
break;
...
}
}
It is not so obvious in lyx_cb.C:
void MenuExport(Buffer * buffer, string const & extyp)
{
...
else if (extyp == "postscript")
{
// Start Print-dialog. Not as good as dvi... Bernhard.
? MenuPrint(buffer);
// Since the MenuPrint is a pop-up, we can't use
// the same trick as above. (Asger)
// MISSING: Move of ps-file :-(
// And MenuPrint should not be used for this at all...
}
...
}
For the time being, I've just commented this out. Can we do
better?
Angus