break;
}
- case LFUN_MOUSE_RELEASE:
- if (!cur.selection() && cmd.button() == mouse_button::button1)
- cur.bv().showDialog("vspace", params2string(space()),
- const_cast<InsetVSpace *>(this));
- break;
-
default:
Inset::doDispatch(cur, cmd);
break;
status.setEnabled(true);
return true;
- case LFUN_INSET_SETTINGS:
- status.setEnabled(true);
- return true;
-
default:
return Inset::getStatus(cur, cmd, status);
}
}
-void InsetVSpace::edit(Cursor & cur, bool, EntryDirection)
-{
- showInsetDialog(&cur.bv());
-}
-
-
bool InsetVSpace::showInsetDialog(BufferView * bv) const
{
bv->showDialog("vspace", params2string(space()),
}
+docstring InsetVSpace::xhtml(odocstream & os, OutputParams const &) const
+{
+ string len = space_.asHTMLLength();
+ if (len.empty())
+ // we didn't understand it
+ os << "<br />\n";
+ else
+ os << "<div style='height:" << from_ascii(len) << "'></div>\n";
+ return docstring();
+}
+
+
docstring InsetVSpace::contextMenu(BufferView const &, int, int) const
{
return from_ascii("context-vspace");