]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPhantom.h
* ANNOUNCE
[lyx.git] / src / insets / InsetPhantom.h
index fa90988c25bc48bb7c56fda61b2a2f742259620d..d27721f098f2e06581db25b6316e2bffbaa08e92 100644 (file)
@@ -47,7 +47,7 @@ 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,10 +74,6 @@ private:
        /// show the phantom dialog
        bool showInsetDialog(BufferView * bv) const;
        ///
-       bool allowParagraphCustomization(idx_type = 0) const { return false; }
-       ///
-       bool forcePlainLayout(idx_type = 0) const { return true; }
-       ///
        bool neverIndent() const { return true; }
        ///
        int latex(odocstream &, OutputParams const &) const;
@@ -87,12 +81,16 @@ private:
        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();
        ///