#include "funcrequest.h"
#include "frontends/Painter.h"
#include "debug.h"
+#include "Lsstream.h"
#include "insets/mailinset.h"
///
virtual string const inset2string() const
{
- lyxerr << "inset2string called" << std::endl;
- return "whatever"; //(inset_);
+ ostringstream data;
+ //data << name() << " active_cell " << inset.getActCell() << '\n';
+ data << name() << " active_cell " << 0 << '\n';
+ WriteStream ws(data);
+ inset_.write(ws);
+ return data.str();
}
protected:
{
switch (cmd.action) {
- case LFUN_MOUSE_RELEASE: {
- if (cmd.button() == mouse_button::button3) {
- WriteStream ws(lyxerr);
- write(ws);
- GridInsetMailer mailer(*this);
- lyxerr << "mailer " << mailer.name() << " active\n";
- mailer.showDialog(cmd.view());
- return DISPATCHED;
- }
+ case LFUN_MOUSE_RELEASE:
+ //if (cmd.button() == mouse_button::button3) {
+ // GridInsetMailer mailer(*this);
+ // mailer.showDialog();
+ // return DISPATCHED;
+ //}
break;
- }
case LFUN_INSET_DIALOG_UPDATE: {
GridInsetMailer mailer(*this);
case LFUN_TABINSERT:
//bv->lockedInsetStoreUndo(Undo::EDIT);
splitCell(idx, pos);
- //updateLocal(bv, true);
return DISPATCHED_POP;
case LFUN_BREAKLINE: {
pos = cell(idx).size();
//mathcursor->normalize();
- //updateLocal(bv, true);
return DISPATCHED_POP;
}