lyx_mirror/src/UpdateInset.C

26 lines
452 B
C++
Raw Normal View History

#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include "UpdateInset.h"
#include "BufferView.h"
#include "support/LAssert.h"
void UpdateInset::push(Inset * inset) {
lyx::Assert(inset);
insetqueue.push(inset);
}
void UpdateInset::update(BufferView * bv)
{
while (!insetqueue.empty()) {
Inset * inset = insetqueue.front();
insetqueue.pop();
bv->updateInset(inset, false); // "false" because no document change
}
}