mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
get rid of LyXView::errors(). This was redundant with GuiBufferDelegate::errors().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21740 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f745a9c3c5
commit
47f54dd68b
@ -185,7 +185,7 @@ bool import(LyXView * lv, FileName const & filename,
|
||||
}
|
||||
updateLabels(*buf);
|
||||
lv->setBuffer(buf);
|
||||
lv->errors("Parse");
|
||||
buf->errors("Parse");
|
||||
} else {
|
||||
Buffer * const b = newFile(lyxfile.absFilename(), string(), true);
|
||||
if (b)
|
||||
@ -1215,7 +1215,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
||||
if (buf) {
|
||||
updateLabels(*buf);
|
||||
lyx_view_->setBuffer(buf);
|
||||
lyx_view_->errors("Parse");
|
||||
buf->errors("Parse");
|
||||
}
|
||||
updateFlags = Update::None;
|
||||
break;
|
||||
@ -1350,7 +1350,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
||||
lyx_view_->setBuffer(buf);
|
||||
view()->setCursorFromRow(row);
|
||||
if (loaded)
|
||||
lyx_view_->errors("Parse");
|
||||
buf->errors("Parse");
|
||||
updateFlags = Update::FitCursor;
|
||||
break;
|
||||
}
|
||||
@ -1501,7 +1501,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
||||
updateLabels(*child->masterBuffer());
|
||||
lyx_view_->setBuffer(child);
|
||||
if (parsed)
|
||||
lyx_view_->errors("Parse");
|
||||
child->errors("Parse");
|
||||
}
|
||||
|
||||
// If a screen update is required (in case where auto_open is false),
|
||||
@ -2102,7 +2102,7 @@ void LyXFunc::open(string const & fname)
|
||||
if (buf) {
|
||||
updateLabels(*buf);
|
||||
lyx_view_->setBuffer(buf);
|
||||
lyx_view_->errors("Parse");
|
||||
buf->errors("Parse");
|
||||
str2 = bformat(_("Document %1$s opened."), disp_fn);
|
||||
} else {
|
||||
str2 = bformat(_("Could not open document %1$s"), disp_fn);
|
||||
@ -2217,7 +2217,7 @@ void LyXFunc::reloadBuffer()
|
||||
if (buf) {
|
||||
updateLabels(*buf);
|
||||
lyx_view_->setBuffer(buf);
|
||||
lyx_view_->errors("Parse");
|
||||
buf->errors("Parse");
|
||||
str = bformat(_("Document %1$s reloaded."), disp_fn);
|
||||
} else {
|
||||
str = bformat(_("Could not reload document %1$s"), disp_fn);
|
||||
|
@ -79,11 +79,6 @@ public:
|
||||
|
||||
///
|
||||
virtual void restartCursor() = 0;
|
||||
|
||||
//
|
||||
// GuiBufferDelegate
|
||||
//
|
||||
virtual void errors(std::string const &) = 0;
|
||||
|
||||
private:
|
||||
/// noncopyable
|
||||
|
Loading…
x
Reference in New Issue
Block a user