]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetVSpace.cpp
Remove all BufferParam arguments in InsetXXX methods (since insets know about their...
[lyx.git] / src / insets / InsetVSpace.cpp
index 0042f981d1792e86e4bb95c104638a51949adfec..8c84b8ae3dcfb96cef222e40f7ee240821b3a837 100644 (file)
@@ -66,12 +66,6 @@ void InsetVSpace::doDispatch(Cursor & cur, FuncRequest & cmd)
                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;
@@ -93,22 +87,12 @@ bool InsetVSpace::getStatus(Cursor & cur, FuncRequest const & cmd,
                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()),
@@ -249,6 +233,18 @@ int InsetVSpace::docbook(odocstream & os, OutputParams const &) const
 }
 
 
+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");