]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXLog.C
More fixes to insettabular/text (and some missing features added).
[lyx.git] / src / LaTeXLog.C
index e5b0d0e5610964e8668b88c86138c3250f27dbfb..349498dcf269347cf610ae718ac62f30d9e656ad 100644 (file)
@@ -3,7 +3,7 @@
 #include <cstdlib>
 #include FORMS_H_LOCATION
 #include "buffer.h"
-#include "latexoptions.h"
+#include "log_form.h"
 #include "lyx_main.h"
 #include "LString.h"
 #include "support/FileInfo.h"
@@ -12,6 +12,7 @@
 #include "lyxrc.h"
 #include "BufferView.h"
 #include "gettext.h"
+#include "converter.h"
 
 extern FD_LaTeXLog *fd_latex_log;
 extern BufferView *current_view;
@@ -24,10 +25,9 @@ void ShowLatexLog()
 
        filename = current_view->buffer()->getLatexName();
        if (!filename.empty()) {
-               fname = ChangeExtension(filename, ".log", true);
-               bname = ChangeExtension(filename,
-                                       lyxrc.literate_extension + ".out", 
-                                       true);
+               fname = OnlyFilename(ChangeExtension(filename, ".log"));
+               bname = OnlyFilename(ChangeExtension(filename,
+                                    formats.Extension("literate") + ".out"));
                path = OnlyPath(filename);
                if (lyxrc.use_tempdir || (IsDirWriteable(path) < 1)) {
                        path = current_view->buffer()->tmppath;
@@ -41,16 +41,16 @@ void ShowLatexLog()
                if (!fl_load_browser(fd_latex_log->browser_latexlog,
                                     use_build ? bname.c_str() : fname.c_str()))
                        fl_add_browser_line(fd_latex_log->browser_latexlog,
-                                           _("Unable to show log file!"));
+                                           _("No LaTeX log file found"));
        } else {
                fl_add_browser_line(fd_latex_log->browser_latexlog,
-                              _("NO LATEX LOG FILE!"));
+                              _("No LaTeX log file found"));
        }
        if (fd_latex_log->LaTeXLog->visible) {
                fl_raise_form(fd_latex_log->LaTeXLog);
        } else {
                fl_show_form(fd_latex_log->LaTeXLog,
-                            FL_PLACE_MOUSE | FL_FREE_SIZE, FL_FULLBORDER,
+                            FL_PLACE_MOUSE | FL_FREE_SIZE, FL_TRANSIENT,
                             use_build ? _("Build Program Log") : _("LaTeX Log"));
                if (ow < 0) {
                        ow = fd_latex_log->LaTeXLog->w;