]> git.lyx.org Git - lyx.git/blobdiff - src/converter.C
Collapse all those LFUN_XYZ_APPLY to a single LFUN_INSET_APPLY.
[lyx.git] / src / converter.C
index e7d0dacc2a86f26e8e84e8c80f6b4b4d6ec7a543..e1a96bc14471834f9a80038b6bbe012986bdbd29 100644 (file)
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "converter.h"
 #include "lyxrc.h"
 #include "buffer.h"
@@ -123,6 +119,8 @@ void Formats::add(string const & name)
 }
 
 
+// FIXME: horrednously mis-named, especially given the other ::add
+// function
 void Formats::add(string const & name, string const & extension,
                  string const & prettyname, string const & shortcut)
 {
@@ -832,7 +830,7 @@ bool Converters::scanLog(Buffer const * buffer, string const & command,
 
        BufferView * bv = buffer->getUser();
        if (bv) {
-               bv->owner()->prohibitInput();
+               bv->owner()->busy(true);
                // all error insets should have been removed by now
        }
 
@@ -847,7 +845,7 @@ bool Converters::scanLog(Buffer const * buffer, string const & command,
                        bv->repaint();
                        bv->fitCursor();
                }
-               bv->owner()->allowInput();
+               bv->owner()->busy(false);
        }
 
        if ((result & LaTeX::ERRORS)) {
@@ -890,7 +888,7 @@ bool Converters::runLaTeX(Buffer const * buffer, string const & command)
        BufferView * bv = buffer->getUser();
 
        if (bv) {
-               bv->owner()->prohibitInput();
+               bv->owner()->busy(true);
                bv->owner()->message(_("Running LaTeX..."));
                // all the autoinsets have already been removed
        }
@@ -937,7 +935,7 @@ bool Converters::runLaTeX(Buffer const * buffer, string const & command)
        }
 
        if (bv)
-               bv->owner()->allowInput();
+               bv->owner()->busy(false);
 
        int const ERROR_MASK =
                        LaTeX::NO_LOGFILE |