#include "lyx_gui_misc.h"
#include "support/syscall.h"
#include "gettext.h"
-#include "lyx_cb.h"
+//#include "lyx_cb.h"
+#include "bufferview_funcs.h"
extern FD_form_sendto * fd_form_sendto;
extern BufferView * current_view;
Buffer * buffer = current_view->buffer();
if (fl_get_button(fd_form_sendto->radio_ftype_dvi) ||
fl_get_button(fd_form_sendto->radio_ftype_ps)) {
- ProhibitInput();
+ ProhibitInput(current_view);
// Generate dvi file and check if there are errors in the .lyx file
if (MakeLaTeXOutput(buffer) > 0) {
- AllowInput();
+ AllowInput(current_view);
return;
}
- AllowInput();
+ AllowInput(current_view);
}
string ftypeext;
if (fl_get_button(fd_form_sendto->radio_ftype_lyx))
}
}
- string fname = ChangeExtension(buffer->getLatexName(), ftypeext, true);
+ string fname = OnlyFilename(ChangeExtension(buffer->getLatexName(), ftypeext));
if (!contains(command, "$$FName"))
command = "( " + command + " ) <$$FName";
command = subst(command, "$$FName", fname);