///
InsetTabular(Buffer const &, int rows = 1, int columns = 1);
///
- InsetTabular(InsetTabular const &, Buffer const &, bool same_id = false);
+ InsetTabular(InsetTabular const &);
///
~InsetTabular();
///
- Inset * clone(Buffer const &, bool same_id = false) const;
+ Inset * clone() const;
///
void read(Buffer const *, LyXLex &);
///
void write(Buffer const *, std::ostream &) const;
///
- void dimension(BufferView *, LyXFont const &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const;
///
- void draw(BufferView *, const LyXFont &, int , float &) const;
+ void draw(PainterInfo & pi, int x, int y) const;
///
void update(BufferView *, bool = false);
///
///
int getMaxWidth(BufferView *, UpdatableInset const *) const;
///
- Buffer * bufferOwner() const { return const_cast<Buffer *>(buffer); }
- ///
LyXText * getLyXText(BufferView const *,
bool const recursive = false) const;
///
///
virtual BufferView * view() const;
+
+ /// set the owning buffer
+ void buffer(Buffer * b);
+
private:
///
void lfunMousePress(FuncRequest const &);
///
InsetText * old_locking_inset;
///
- Buffer const * buffer;
+ Buffer const * buffer_;
///
mutable LyXCursor cursor_;
///