]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPhantom.h
Dispay pre- and posttext widgets if non-empty also if unapplied
[lyx.git] / src / insets / InsetPhantom.h
index 9d959092092f49a4bb40551fb20da74cb717e5c0..46e8576678f5a1567ccefde72fcf441ecafeda21 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef INSET_PHANTOM_H
 #define INSET_PHANTOM_H
 
-#include "InsetCollapsable.h"
+#include "InsetCollapsible.h"
 
 
 namespace lyx {
@@ -43,11 +43,11 @@ public:
 /////////////////////////////////////////////////////////////////////////
 
 /// The phantom inset
-class InsetPhantom : public InsetCollapsable
+class InsetPhantom : public InsetCollapsible
 {
 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,13 +74,14 @@ 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;
-       /// Does nothing.
-       int xhtml(odocstream &, OutputParams const &) const;
+       /// Makes no sense fof XHTML.
+       docstring xhtml(XHTMLStream &, OutputParams const &) const;
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        ///
@@ -96,7 +93,7 @@ private:
        /// used by the constructors
        void init();
        ///
-       docstring contextMenu(BufferView const & bv, int x, int y) const;
+       std::string contextMenuName() const;
        ///
        friend class InsetPhantomParams;