X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetPhantom.cpp;h=8a6d2e68dbe59cb426499ea75384801dfb949906;hb=142caff8336c54627606c09d3ce5bb7de7a8adb6;hp=2f5daf07e33feb7ea9b8c1fbf61165869cbf3c63;hpb=5bf8df4fbc9a4117df3df957f83c23f6847ac185;p=lyx.git diff --git a/src/insets/InsetPhantom.cpp b/src/insets/InsetPhantom.cpp index 2f5daf07e3..8a6d2e68db 100644 --- a/src/insets/InsetPhantom.cpp +++ b/src/insets/InsetPhantom.cpp @@ -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,7 +256,7 @@ 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_); @@ -282,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") { @@ -364,7 +358,7 @@ int InsetPhantom::docbook(odocstream & os, OutputParams const & runparams) const } -docstring InsetPhantom::xhtml(odocstream &, OutputParams const &) const +docstring InsetPhantom::xhtml(XHTMLStream &, OutputParams const &) const { return docstring(); }