#include "buffer.h"
#include "lyx_gui_misc.h"
#include "support/syscall.h"
+#include "support/lstrings.h"
#include "gettext.h"
#include "bufferview_funcs.h"
#include "exporter.h"
+#include "BufferView.h"
extern FD_form_sendto * fd_form_sendto;
extern BufferView * current_view;
fl_raise_form(fd_form_sendto->form_sendto);
} else {
fl_show_form(fd_form_sendto->form_sendto,
- FL_PLACE_MOUSE | FL_FREE_SIZE, FL_FULLBORDER,
+ FL_PLACE_MOUSE | FL_FREE_SIZE, FL_TRANSIENT,
_("Send Document to Command"));
if (ow < 0) {
ow = fd_form_sendto->form_sendto->w;
command += " &"; // execute in background
// push directorypath, if necessary
string path = OnlyPath(buffer->fileName());
- if (lyxrc.use_tempdir || (IsDirWriteable(path) < 1)){
+ if (lyxrc.use_tempdir || !IsDirWriteable(path)){
path = buffer->tmppath;
}
Path p(path);