]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
added a parseError signal to Buffer and use it
[lyx.git] / src / BufferView.C
index 7b8a4cfa33a8e5cacf7ba0301b4e22ff404566e7..5b0a7330e7748a99c0eb310966b5b2e9b6f0b084 100644 (file)
@@ -36,7 +36,6 @@
 #include "frontends/screen.h"
 
 #include "insets/insetcommand.h" // ChangeRefs
-#include "insets/inseterror.h"
 #include "insets/updatableinset.h"
 
 #include "support/FileInfo.h"
@@ -104,11 +103,17 @@ void BufferView::buffer(Buffer * b)
 }
 
 
+bool BufferView::loadLyXFile(string const & fn, bool tl)
+{
+       return pimpl_->loadLyXFile(fn, tl);
+}
+
+
 void BufferView::reload()
 {
        string const fn = buffer()->fileName();
        if (bufferlist.close(buffer(), false))
-               buffer(bufferlist.loadLyXFile(fn));
+               loadLyXFile(fn);
 }
 
 
@@ -343,13 +348,6 @@ void BufferView::setErrorList(ErrorList const & el)
 }
 
 
-void BufferView::addError(ErrorItem const & ei)
-{
-       pimpl_->errorlist_.push_back(ei);
-
-}
-
-
 void BufferView::showErrorList(string const & action) const
 {
        if (getErrorList().size()) {