]> git.lyx.org Git - lyx.git/commitdiff
missing bit
authorAlfredo Braunstein <abraunst@lyx.org>
Tue, 20 May 2003 16:56:07 +0000 (16:56 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Tue, 20 May 2003 16:56:07 +0000 (16:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6987 a592a061-630c-0410-9148-cb99ea01b6c8

src/converter.C
src/frontends/xforms/FormErrorList.h

index 3577adb9c401cf6f433bff354323879827d83df3..46de668a931d5a926e9809e8bfb01edb467866da 100644 (file)
@@ -16,6 +16,7 @@
 #include "lyxrc.h"
 #include "buffer.h"
 #include "bufferview_funcs.h"
 #include "lyxrc.h"
 #include "buffer.h"
 #include "bufferview_funcs.h"
+#include "errorlist.h"
 #include "LaTeX.h"
 #include "lyx_cb.h" // ShowMessage()
 #include "gettext.h"
 #include "LaTeX.h"
 #include "lyx_cb.h" // ShowMessage()
 #include "gettext.h"
@@ -469,8 +470,12 @@ bool Converters::scanLog(Buffer const * buffer, string const & command,
        LaTeX latex("", filename, "");
        TeXErrors terr;
        int result = latex.scanLogFile(terr);
        LaTeX latex("", filename, "");
        TeXErrors terr;
        int result = latex.scanLogFile(terr);
-       if (bv && (result & LaTeX::ERRORS))
-               bv->showErrorList();
+
+       if (bv && (result & LaTeX::ERRORS)) {
+               ErrorList el(*buffer, terr);
+               bv->setErrorList(el);
+               bv->showErrorList(_("LaTeX"));
+       }
 
        return true;
 }
 
        return true;
 }
@@ -498,7 +503,9 @@ bool Converters::runLaTeX(Buffer const * buffer, string const & command)
 
        if (bv && (result & LaTeX::ERRORS)) {
                //show errors
 
        if (bv && (result & LaTeX::ERRORS)) {
                //show errors
-               bv->showErrorList();
+               ErrorList el(*buffer, terr);
+               bv->setErrorList(el);
+               bv->showErrorList(_("LaTeX"));
        }
 
        // check return value from latex.run().
        }
 
        // check return value from latex.run().
index 9a544fbac0d3f6f1d63d2f21d476ff47169eaeec..fe1c060235d741f508621255884c001742e3d14b 100644 (file)
@@ -33,7 +33,8 @@ private:
        virtual void update();
        /// Filter the inputs on callback from xforms
        virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
        virtual void update();
        /// Filter the inputs on callback from xforms
        virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
-
+       /// Goto to this error
+       void goTo(int);
        ///
        void updateContents();
 };
        ///
        void updateContents();
 };