]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetenv.h
changelogs
[lyx.git] / src / insets / insetenv.h
index a53126d97af8c86926b07aa6ebef43428e41001d..3385a4cda0ed9e28c59998dd26ec039e2f3be900 100644 (file)
 #include "insettext.h"
 #include "lyxlayout_ptr_fwd.h"
 
+
 class InsetEnvironment : public InsetText {
 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 &,
-                 LatexRunParams const &) const;
+                 OutputParams const &) const;
        ///
        std::string const editMessage() const;
        ///
@@ -44,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_;
 };