]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetERT.h
Change string
[lyx.git] / src / insets / InsetERT.h
index f6a3497f59ea494986e8930957221f8203fde1f1..52542beb01ecdfa23964c7fab126f1d412cdeff0 100644 (file)
@@ -34,13 +34,9 @@ class InsetERT : public InsetCollapsable {
 public:
        ///
        InsetERT(Buffer const &, CollapseStatus status = Open);
-#if 0
-       ///
-       InsetERT(BufferParams const &,
-                Language const *, std::string const & contents, CollapseStatus status);
-#endif
        ///
        ~InsetERT();
+private:
        ///
        InsetCode lyxCode() const { return ERT_CODE; }
        ///
@@ -64,20 +60,17 @@ public:
        ///
        bool showInsetDialog(BufferView *) const;
        ///
-       virtual bool forceEmptyLayout() const { return true; }
+       virtual bool forceEmptyLayout(idx_type = 0) const { return true; }
        ///
-       virtual 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; }
-protected:
-       InsetERT(InsetERT const &);
        ///
-       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+       void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
        bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
-
-private:
-       virtual Inset * clone() const;
+       ///
+       Inset * clone() const { return new InsetERT(*this); }
        ///
        void setButtonLabel();
        ///