]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetEnvironment.h
Andre's s/getTextClass/textClass/ cleanup.
[lyx.git] / src / insets / InsetEnvironment.h
index ceefab862a455f97c127af06cfdc31775fd2e46c..69fc9c4507ee39410324bc0bdeeb09697f0278c2 100644 (file)
@@ -13,7 +13,7 @@
 #define INSETENVIRONMENT_H
 
 #include "InsetText.h"
-#include "lyxlayout_ptr_fwd.h"
+#include "LayoutPtr.h"
 
 
 namespace lyx {
@@ -21,7 +21,7 @@ namespace lyx {
 class InsetEnvironment : public InsetText {
 public:
        ///
-       InsetEnvironment(BufferParams const &, std::string const & name);
+       InsetEnvironment(BufferParams const &, docstring const & name);
        ///
        docstring name() const { return name_; }
        ///
@@ -29,19 +29,19 @@ public:
        ///
        void read(Buffer const & buf, Lexer & lex);
        ///
-       Inset::Code lyxCode() const { return Inset::ENVIRONMENT_CODE; }
+       InsetCode lyxCode() const { return ENVIRONMENT_CODE; }
        ///
        int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+                 OutputParams const &) const;
        ///
        int plaintext(Buffer const &, odocstream &,
-                     OutputParams const &) const;
+                     OutputParams const &) const;
        ///
        virtual docstring const editMessage() const;
        ///
        Inset::EDITABLE editable() const { return HIGHLY_EDITABLE; }
        ///
-       Layout_ptr const & layout() const;
+       LayoutPtr const & layout() const;
        /** returns true if, when outputing LaTeX, font changes should
            be closed before generating this inset. This is needed for
            insets that may contain several paragraphs */
@@ -49,9 +49,9 @@ public:
 protected:
        InsetEnvironment(InsetEnvironment const &);
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
        /// the layout
-       Layout_ptr layout_;
+       LayoutPtr layout_;
        ///
        docstring name_;
 };