X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetPhantom.h;h=d27721f098f2e06581db25b6316e2bffbaa08e92;hb=a3c84666b2dbfc75c9a80cf4f94612149cb2b570;hp=e1e976b8232aadbed559e20ede4f979849ee3a47;hpb=e900790be8e18d7a427f734b0a878ca2fe8f7428;p=lyx.git diff --git a/src/insets/InsetPhantom.h b/src/insets/InsetPhantom.h index e1e976b823..d27721f098 100644 --- a/src/insets/InsetPhantom.h +++ b/src/insets/InsetPhantom.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Uwe Stöhr + * \author Uwe Stöhr * * Full author contact details are available in file CREDITS. */ @@ -42,12 +42,12 @@ public: // ///////////////////////////////////////////////////////////////////////// -/// The PostIt phantom inset, and other annotations +/// The phantom inset class InsetPhantom : public InsetCollapsable { public: /// - InsetPhantom(Buffer const &, std::string const &); + InsetPhantom(Buffer *, std::string const &); /// ~InsetPhantom(); /// @@ -58,12 +58,10 @@ public: InsetPhantomParams const & params() const { return params_; } private: /// - docstring editMessage() const; + InsetCode lyxCode() const { return PHANTOM_CODE; } /// docstring name() const; /// - DisplayType display() const; - /// void metrics(MetricsInfo &, Dimension &) const; /// void draw(PainterInfo & pi, int x, int y) const; @@ -76,17 +74,23 @@ private: /// show the phantom dialog bool showInsetDialog(BufferView * bv) const; /// + bool neverIndent() const { return true; } + /// int latex(odocstream &, OutputParams const &) const; /// int plaintext(odocstream &, OutputParams const &) 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(); ///