]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPhantom.cpp
This is just a giant renaming of member variables in FuncRequest,
[lyx.git] / src / insets / InsetPhantom.cpp
index c20217c1b444029f0849f933eb8335f8b6171e8c..fa59fab62007c1d80d544052fe536386eb08b967 100644 (file)
@@ -112,7 +112,7 @@ void InsetPhantomParams::read(Lexer & lex)
 //
 /////////////////////////////////////////////////////////////////////
 
-InsetPhantom::InsetPhantom(Buffer const & buf, string const & label)
+InsetPhantom::InsetPhantom(Buffer * buf, string const & label)
        : InsetCollapsable(buf)
 {
        setDrawFrame(false);
@@ -126,12 +126,6 @@ InsetPhantom::~InsetPhantom()
 }
 
 
-docstring InsetPhantom::editMessage() const
-{
-       return _("Opened Phantom Inset");
-}
-
-
 docstring InsetPhantom::name() const 
 {
        return from_ascii("Phantom:" + phantomtranslator().find(params_.type));
@@ -262,11 +256,10 @@ bool InsetPhantom::showInsetDialog(BufferView * bv) const
 
 void InsetPhantom::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
-       switch (cmd.action) {
+       switch (cmd.action_) {
 
        case LFUN_INSET_MODIFY:
                string2params(to_utf8(cmd.argument()), params_);
-               setLayout(buffer().params());
                break;
 
        case LFUN_INSET_DIALOG_UPDATE:
@@ -283,7 +276,7 @@ void InsetPhantom::doDispatch(Cursor & cur, FuncRequest & cmd)
 bool InsetPhantom::getStatus(Cursor & cur, FuncRequest const & cmd,
                FuncStatus & flag) const
 {
-       switch (cmd.action) {
+       switch (cmd.action_) {
 
        case LFUN_INSET_MODIFY:
                if (cmd.getArg(0) == "phantom") {
@@ -365,6 +358,11 @@ int InsetPhantom::docbook(odocstream & os, OutputParams const & runparams) const
 }
 
 
+docstring InsetPhantom::xhtml(XHTMLStream &, OutputParams const &) const
+{
+       return docstring();
+}
+
 docstring InsetPhantom::contextMenu(BufferView const &, int, int) const
 {
        return from_ascii("context-phantom");