X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetPhantom.h;h=fad50637b23f3206bfe6b277bb91b31df0aa15b8;hb=245c2b3c45dce1f5f385665e932ee19c9a904081;hp=0f3ceaa9077f4f6f7201892d2c2c1ed27fc07803;hpb=289600e4136cd0884c62c276569e94e74f01899e;p=lyx.git diff --git a/src/insets/InsetPhantom.h b/src/insets/InsetPhantom.h index 0f3ceaa907..fad50637b2 100644 --- a/src/insets/InsetPhantom.h +++ b/src/insets/InsetPhantom.h @@ -47,7 +47,7 @@ class InsetPhantom : public InsetCollapsable { public: /// - InsetPhantom(Buffer const &, std::string const &); + InsetPhantom(Buffer *, std::string const &); /// ~InsetPhantom(); /// @@ -57,12 +57,10 @@ public: /// InsetPhantomParams const & params() const { return params_; } private: - /// - docstring editMessage() const; /// InsetCode lyxCode() const { return PHANTOM_CODE; } /// - docstring name() const; + docstring layoutName() const; /// void metrics(MetricsInfo &, Dimension &) const; /// @@ -78,21 +76,26 @@ private: /// bool neverIndent() const { return true; } /// - int latex(odocstream &, OutputParams const &) const; + void latex(otexstream &, OutputParams const &) const; /// - int plaintext(odocstream &, OutputParams const &) const; + int plaintext(odocstringstream & ods, OutputParams const & op, + size_t max_length = INT_MAX) const; /// int docbook(odocstream &, OutputParams const &) const; + /// Makes no sense fof XHTML. + docstring xhtml(XHTMLStream &, OutputParams const &) const; /// bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const; /// void doDispatch(Cursor & cur, FuncRequest & cmd); /// docstring toolTip(BufferView const & bv, int x, int y) const; + /// + Inset * clone() const { return new InsetPhantom(*this); } /// used by the constructors void init(); /// - docstring contextMenu(BufferView const & bv, int x, int y) const; + std::string contextMenuName() const; /// friend class InsetPhantomParams;