]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetenv.h
changelogs
[lyx.git] / src / insets / insetenv.h
index 58c50bfeded0830a5ebd7feba2047257bb53626c..3385a4cda0ed9e28c59998dd26ec039e2f3be900 100644 (file)
 #include "insettext.h"
 #include "lyxlayout_ptr_fwd.h"
 
+
 class InsetEnvironment : public InsetText {
 public:
        ///
-       InsetEnvironment(BufferParams const &, string const & name);
-       ///
-       InsetEnvironment(InsetEnvironment const &);
-       ///
-       void write(Buffer const * buf, std::ostream & os) const;
+       InsetEnvironment(BufferParams const &, std::string const & name);
        ///
-       void read(Buffer const * buf, LyXLex & lex);
+       void write(Buffer const & buf, std::ostream & os) const;
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
+       void read(Buffer const & buf, LyXLex & lex);
        ///
        InsetOld::Code lyxCode() const { return InsetOld::ENVIRONMENT_CODE; }
        ///
-       int latex(Buffer const *, std::ostream &,
-                 LatexRunParams const &) const;
+       int latex(Buffer const &, std::ostream &,
+                 OutputParams const &) const;
        ///
-       string const editMessage() const;
+       std::string const editMessage() const;
        ///
        InsetOld::EDITABLE editable() const { return HIGHLY_EDITABLE; }
        ///
@@ -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_;
 };