#ifndef INSETTABULAR_H
#define INSETTABULAR_H
-
#include "inset.h"
#include "tabular.h"
#include "LString.h"
#include "lyxcursor.h"
#include "FuncStatus.h"
+#include "frontends/mouse_state.h"
#include <boost/scoped_ptr.hpp>
#include <boost/weak_ptr.hpp>
///
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;
///
- int ascent(BufferView *, LyXFont const &) const;
- ///
- int descent(BufferView *, LyXFont const &) const;
+ void metrics(MetricsInfo &, Dimension &) const;
///
- int width(BufferView *, LyXFont const & f) const;
- ///
- void draw(BufferView *, const LyXFont &, int , float &) const;
+ void draw(PainterInfo & pi, int x, int y) const;
///
void update(BufferView *, bool = false);
///
string const editMessage() const;
- ///
- void edit(BufferView *, int x, int y, mouse_button::state);
- ///
- void edit(BufferView * bv, bool front = true);
//
void insetUnlock(BufferView *);
///
///
RESULT localDispatch(FuncRequest const &);
///
- int latex(Buffer const *, std::ostream &, bool, bool) const;
+ int latex(Buffer const *, std::ostream &,
+ LatexRunParams const &) const;
///
int ascii(Buffer const *, std::ostream &, int linelen) const;
///
///
int getMaxWidth(BufferView *, UpdatableInset const *) const;
///
- Buffer * bufferOwner() const { return const_cast<Buffer *>(buffer); }
- ///
LyXText * getLyXText(BufferView const *,
bool const recursive = false) const;
///
///
Inset * getInsetFromID(int id) const;
///
- Paragraph * getFirstParagraph(int) const;
+ ParagraphList * getParagraphs(int) const;
///
LyXCursor const & cursor(BufferView *) 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_;
///