]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPhantom.h
Cocoa based Qt-4.6 needs to paint every character separately to match metrics computa...
[lyx.git] / src / insets / InsetPhantom.h
index e1e976b8232aadbed559e20ede4f979849ee3a47..548bdb0b9cde7c7cbecf76d940aa128d82c8b38e 100644 (file)
@@ -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,11 +58,9 @@ public:
        InsetPhantomParams const & params() const { return params_; }
 private:
        ///
-       docstring editMessage() const;
+       InsetCode lyxCode() const { return PHANTOM_CODE; }
        ///
-       docstring name() const;
-       ///
-       DisplayType display() const;
+       docstring layoutName() const;
        ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
@@ -76,21 +74,27 @@ private:
        /// show the phantom dialog
        bool showInsetDialog(BufferView * bv) const;
        ///
-       int latex(odocstream &, OutputParams const &) const;
+       bool neverIndent() const { return true; }
+       ///
+       void latex(otexstream &, 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();
        ///
-       docstring contextMenu(BufferView const & bv, int x, int y) const;
+       docstring contextMenuName() const;
        ///
        friend class InsetPhantomParams;