+bool InsetVSpace::getStatus(Cursor & cur, FuncRequest const & cmd,
+ FuncStatus & status) const
+{
+ switch (cmd.action()) {
+ // we handle these
+ case LFUN_INSET_MODIFY:
+ if (cmd.getArg(0) == "vspace") {
+ VSpace vspace;
+ string arg = to_utf8(cmd.argument());
+ if (arg == "vspace custom")
+ arg = (space_.kind() == VSpace::LENGTH)
+ ? "vspace " + space_.length().asString()
+ : "vspace 1" + string(stringFromUnit(Length::defaultUnit()));
+ InsetVSpace::string2params(arg, vspace);
+ status.setOnOff(vspace == space_);
+ }
+ status.setEnabled(true);
+ return true;
+
+ default:
+ return Inset::getStatus(cur, cmd, status);
+ }
+}
+
+
+void InsetVSpace::read(Lexer & lex)