]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPhantom.h
Remove all BufferParam arguments in InsetXXX methods (since insets know about their...
[lyx.git] / src / insets / InsetPhantom.h
index fa90988c25bc48bb7c56fda61b2a2f742259620d..41fba8fb42868c64aa5de5d8a5da2f726995502f 100644 (file)
@@ -60,9 +60,9 @@ private:
        ///
        docstring editMessage() const;
        ///
-       docstring name() const;
+       InsetCode lyxCode() const { return PHANTOM_CODE; }
        ///
-       DisplayType display() const;
+       docstring name() const;
        ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
@@ -76,10 +76,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 +83,16 @@ private:
        int plaintext(odocstream &, OutputParams const &) const;
        ///
        int docbook(odocstream &, OutputParams const &) const;
+       /// Makes no sense fof XHTML.
+       docstring xhtml(odocstream &, 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();
        ///