* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
+ * Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
#include "lyxrc.h"
#include "PrinterParams.h"
#include "lyx_gui_misc.h"
+#include "support/LAssert.h"
#include "support/lstrings.h"
#include "support/filetools.h"
#include "support/path.h"
#include "exporter.h"
#include "converter.h"
-#include "minibuffer.h"
#include "support/syscall.h"
using std::endl;
extern LyXRC lyxrc;
-#ifdef CXX_WORKING_NAMESPACES
-namespace Liason
-{
-#endif
+namespace Liason {
PrinterParams getPrinterParams(Buffer * buffer)
{
return false;
// Push directory path.
- string path = OnlyPath(buffer->fileName());
- if (lyxrc.use_tempdir || (IsDirWriteable(path) < 1)) {
+ string path = buffer->filePath();
+ if (lyxrc.use_tempdir || !IsDirWriteable(path)) {
path = buffer->tmppath;
}
Path p(path);
command2);
} else
// case 2
- res = one.startscript(Systemcalls::SystemDontWait, command);
+ res = one.startscript(Systemcalls::SystemDontWait,
+ command + QuoteName(dviname));
break;
case PrinterParams::FILE:
return res == 0;
}
-void setMinibuffer(LyXView * lv, char const * msg)
-{
- lv->getMiniBuffer()->Set(msg);
-}
-#ifdef CXX_WORKING_NAMESPACES
+void setMinibuffer(LyXView * lv, string const & msg)
+{
+ lyx::Assert(lv);
+ lv->message(msg);
}
-#endif
+} // namespace Liason