]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetERT.h
this feels good...
[lyx.git] / src / insets / InsetERT.h
index 6004792859d1489bb87af0e7a5287fceef9a358d..c8ab5e18a3cd484c1d09814f01cc551ffa44209b 100644 (file)
@@ -14,7 +14,6 @@
 #define INSETERT_H
 
 #include "InsetCollapsable.h"
-#include "MailInset.h"
 
 
 namespace lyx {
@@ -36,6 +35,10 @@ public:
        InsetERT(Buffer const &, CollapseStatus status = Open);
        ///
        ~InsetERT();
+       ///
+       static void string2params(std::string const &, CollapseStatus &);
+       ///
+       static std::string params2string(CollapseStatus);
 private:
        ///
        InsetCode lyxCode() const { return ERT_CODE; }
@@ -60,9 +63,9 @@ private:
        ///
        bool showInsetDialog(BufferView *) const;
        ///
-       bool forceEmptyLayout() const { return true; }
+       virtual bool forceEmptyLayout(idx_type = 0) const { return true; }
        ///
-       bool allowParagraphCustomization(idx_type) const { return false; }
+       virtual bool allowParagraphCustomization(idx_type = 0) const { return false; }
        /// should paragraph indendation be omitted in any case?
        bool neverIndent() const { return true; }
        ///
@@ -78,29 +81,6 @@ private:
 };
 
 
-class InsetERTMailer : public MailInset {
-public:
-       ///
-       InsetERTMailer(InsetERT & inset);
-       ///
-       virtual Inset & inset() const { return inset_; }
-       ///
-       virtual std::string const & name() const { return name_; }
-       ///
-       virtual std::string const inset2string(Buffer const &) const;
-       ///
-       static void string2params(std::string const &,
-               InsetCollapsable::CollapseStatus &);
-       ///
-       static std::string const params2string(InsetCollapsable::CollapseStatus);
-private:
-       ///
-       static std::string const name_;
-       ///
-       InsetERT & inset_;
-};
-
-
 } // namespace lyx
 
 #endif