X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetPhantom.h;h=72281df2ae26e7181c54927187275063ad9945d4;hb=eeb36e808c9726fd3689926a3c20457e3b801341;hp=41fba8fb42868c64aa5de5d8a5da2f726995502f;hpb=67e70c6c022fa445cd654937faeb87955e3bca7a;p=lyx.git diff --git a/src/insets/InsetPhantom.h b/src/insets/InsetPhantom.h index 41fba8fb42..72281df2ae 100644 --- a/src/insets/InsetPhantom.h +++ b/src/insets/InsetPhantom.h @@ -12,7 +12,7 @@ #ifndef INSET_PHANTOM_H #define INSET_PHANTOM_H -#include "InsetCollapsable.h" +#include "InsetCollapsible.h" namespace lyx { @@ -43,11 +43,11 @@ public: ///////////////////////////////////////////////////////////////////////// /// The phantom inset -class InsetPhantom : public InsetCollapsable +class InsetPhantom : public InsetCollapsible { public: /// - InsetPhantom(Buffer const &, std::string const &); + InsetPhantom(Buffer *, std::string const &); /// ~InsetPhantom(); /// @@ -58,45 +58,42 @@ public: InsetPhantomParams const & params() const { return params_; } private: /// - docstring editMessage() const; + InsetCode lyxCode() const override { return PHANTOM_CODE; } /// - InsetCode lyxCode() const { return PHANTOM_CODE; } + docstring layoutName() const override; /// - docstring name() const; + void draw(PainterInfo & pi, int x, int y) const override; /// - void metrics(MetricsInfo &, Dimension &) const; + void write(std::ostream &) const override; /// - void draw(PainterInfo & pi, int x, int y) const; + void read(Lexer & lex) override; /// - void write(std::ostream &) const; - /// - void read(Lexer & lex); - /// - void setButtonLabel(); + void setButtonLabel() override; /// show the phantom dialog - bool showInsetDialog(BufferView * bv) const; + bool showInsetDialog(BufferView * bv) const override; /// - bool neverIndent() const { return true; } + bool neverIndent() const override { return true; } /// - int latex(odocstream &, OutputParams const &) const; + void latex(otexstream &, OutputParams const &) const override; /// - int plaintext(odocstream &, OutputParams const &) const; + int plaintext(odocstringstream & ods, OutputParams const & op, + size_t max_length = INT_MAX) const override; /// - int docbook(odocstream &, OutputParams const &) const; - /// Makes no sense fof XHTML. - docstring xhtml(odocstream &, OutputParams const &) const; + void docbook(XMLStream &, OutputParams const &) const override; + /// Makes no sense for XHTML. + docstring xhtml(XMLStream &, OutputParams const &) const override; /// - bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const; + bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override; /// - void doDispatch(Cursor & cur, FuncRequest & cmd); + void doDispatch(Cursor & cur, FuncRequest & cmd) override; /// - docstring toolTip(BufferView const & bv, int x, int y) const; + docstring toolTip(BufferView const & bv, int x, int y) const override; /// - Inset * clone() const { return new InsetPhantom(*this); } + Inset * clone() const override { return new InsetPhantom(*this); } /// used by the constructors void init(); /// - docstring contextMenu(BufferView const & bv, int x, int y) const; + std::string contextMenuName() const override; /// friend class InsetPhantomParams;