mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 06:20:28 +00:00
36 lines
454 B
C
36 lines
454 B
C
|
// -*- C++ -*-
|
||
|
|
||
|
#ifndef UPDATE_INSET_H
|
||
|
#define UPDATE_INSET_H
|
||
|
|
||
|
#ifdef __GNUG__
|
||
|
#pragma interface
|
||
|
#endif
|
||
|
|
||
|
#include <queue>
|
||
|
#include "support/LAssert.h"
|
||
|
|
||
|
using std::queue;
|
||
|
|
||
|
class Inset;
|
||
|
class BufferView;
|
||
|
|
||
|
///
|
||
|
class UpdateInset {
|
||
|
public:
|
||
|
///
|
||
|
void push(Inset * inset) {
|
||
|
Assert(inset);
|
||
|
insetqueue.push(inset);
|
||
|
}
|
||
|
///
|
||
|
void update(BufferView *);
|
||
|
private:
|
||
|
///
|
||
|
typedef queue<Inset*> InsetQueue;
|
||
|
///
|
||
|
InsetQueue insetqueue;
|
||
|
};
|
||
|
|
||
|
#endif // UPDATE_INSET_H
|