Angus Leeming <[EMAIL PROTECTED]> writes:
| 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
Yes, we should not use the print form when exporting at all, that is a
hack. I got a patch that did the export stuff correct, but I had some
comments to that patch and asked that it be corrected before I'd
commit it... this was never done.
(not long ago 1month?)
Lgb