X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetPhantom.cpp;h=d1a25f6a70bc32cfcce4f32712c6112e7e37ca97;hb=8124e6c02ea1fd6779bb6c47ffe2bca2c8bd2d97;hp=f8c3c3895568aaa9febc6a8ea022a62f6f66d7c7;hpb=0ef2c192c02dfb4578c189e68a0951280ebeea47;p=lyx.git diff --git a/src/insets/InsetPhantom.cpp b/src/insets/InsetPhantom.cpp index f8c3c38955..d1a25f6a70 100644 --- a/src/insets/InsetPhantom.cpp +++ b/src/insets/InsetPhantom.cpp @@ -15,18 +15,15 @@ #include "Buffer.h" #include "BufferParams.h" #include "BufferView.h" -#include "BufferParams.h" #include "Cursor.h" #include "Dimension.h" #include "DispatchResult.h" #include "Exporter.h" #include "FuncRequest.h" #include "FuncStatus.h" -#include "InsetIterator.h" #include "LaTeXFeatures.h" #include "Lexer.h" #include "MetricsInfo.h" -#include "OutputParams.h" #include "texstream.h" #include "TextClass.h" @@ -348,26 +345,13 @@ int InsetPhantom::plaintext(odocstringstream & os, } -int InsetPhantom::docbook(odocstream & os, OutputParams const & runparams) const +void InsetPhantom::docbook(XMLStream &, OutputParams const &) const { - docstring cmdname; - switch (params_.type) { - case InsetPhantomParams::Phantom: - case InsetPhantomParams::HPhantom: - case InsetPhantomParams::VPhantom: - default: - cmdname = from_ascii("phantom"); - break; - } - os << "<" + cmdname + ">"; - int const i = InsetCollapsible::docbook(os, runparams); - os << ""; - - return i; + return; } -docstring InsetPhantom::xhtml(XHTMLStream &, OutputParams const &) const +docstring InsetPhantom::xhtml(XMLStream &, OutputParams const &) const { return docstring(); }