* Copyright 1995-2002 the LyX Team
* Read the file COPYING
*
- * \author unknown
+ * \author Lars Gullik Bjønnes
* \author John Levon <moz@compsoc.man.ac.uk>
*/
#include "frontends/screen.h"
#include "insets/insetcommand.h" // ChangeRefs
-#include "insets/inseterror.h"
#include "insets/updatableinset.h"
#include "support/FileInfo.h"
extern BufferList bufferlist;
using lyx::pos_type;
+using namespace lyx::support;
using std::pair;
using std::endl;
}
+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);
}
}
-void BufferView::resetErrorList()
-{
- pimpl_->errorlist_.clear();
-}
-
-
-void BufferView::setErrorList(ErrorList const & el)
-{
- pimpl_->errorlist_ = el;
-}
-
-
-void BufferView::addError(ErrorItem const & ei)
-{
- pimpl_->errorlist_.push_back(ei);
-
-}
-
-
void BufferView::showErrorList(string const & action) const
{
if (getErrorList().size()) {
string const title = bformat(_("LyX: %1$s errors (%2$s)"), action, buffer()->fileName());
owner()->getDialogs().show("errorlist", title);
+ pimpl_->errorlist_.clear();
}
}
text->setCursorIntern(it.pit(), 0);
text->redoParagraphs(text->cursor,
boost::next(text->cursor.par()));
- text->fullRebreak();
+ text->partialRebreak();
}
}
}