]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetenv.h
changelogs
[lyx.git] / src / insets / insetenv.h
index ae5b231862a2cb30114b17428d93288d3679350b..3385a4cda0ed9e28c59998dd26ec039e2f3be900 100644 (file)
@@ -21,14 +21,10 @@ public:
        ///
        InsetEnvironment(BufferParams const &, std::string const & name);
        ///
-       InsetEnvironment(InsetEnvironment const &);
-       ///
        void write(Buffer const & buf, std::ostream & os) const;
        ///
        void read(Buffer const & buf, LyXLex & lex);
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
-       ///
        InsetOld::Code lyxCode() const { return InsetOld::ENVIRONMENT_CODE; }
        ///
        int latex(Buffer const &, std::ostream &,
@@ -45,8 +41,10 @@ public:
             be closed before generating this inset. This is needed for
             insets that may contain several paragraphs */
        bool noFontChange() const { return true; }
-
+protected:
+       InsetEnvironment(InsetEnvironment const &);
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        /// the layout
        LyXLayout_ptr layout_;
 };