2000-02-23 16:39:03 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
|
|
|
|
#ifndef UPDATE_INSET_H
|
|
|
|
#define UPDATE_INSET_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <queue>
|
|
|
|
#include "support/LAssert.h"
|
|
|
|
|
|
|
|
class Inset;
|
|
|
|
class BufferView;
|
|
|
|
|
|
|
|
///
|
|
|
|
class UpdateInset {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
void push(Inset * inset) {
|
2001-04-24 15:25:26 +00:00
|
|
|
lyx::Assert(inset);
|
2000-02-23 16:39:03 +00:00
|
|
|
insetqueue.push(inset);
|
|
|
|
}
|
|
|
|
///
|
|
|
|
void update(BufferView *);
|
|
|
|
private:
|
|
|
|
///
|
2000-04-04 00:19:15 +00:00
|
|
|
typedef std::queue<Inset*> InsetQueue;
|
2000-02-23 16:39:03 +00:00
|
|
|
///
|
|
|
|
InsetQueue insetqueue;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // UPDATE_INSET_H
|