]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPhantom.h
Another (IMHO false) fall-through warning silenced
[lyx.git] / src / insets / InsetPhantom.h
index 0f3ceaa9077f4f6f7201892d2c2c1ed27fc07803..42c3da1f26cebc94216ca86d857ceae44e9b4c7d 100644 (file)
@@ -47,7 +47,7 @@ class InsetPhantom : public InsetCollapsable
 {
 public:
        ///
-       InsetPhantom(Buffer const &, std::string const &);
+       InsetPhantom(Buffer *, std::string const &);
        ///
        ~InsetPhantom();
        ///
@@ -57,14 +57,10 @@ public:
        ///
        InsetPhantomParams const & params() const { return params_; }
 private:
-       ///
-       docstring editMessage() const;
        ///
        InsetCode lyxCode() const { return PHANTOM_CODE; }
        ///
-       docstring name() const;
-       ///
-       void metrics(MetricsInfo &, Dimension &) const;
+       docstring layoutName() const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -78,21 +74,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;