]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetEnvironment.h
Fix text frame drawing.
[lyx.git] / src / insets / InsetEnvironment.h
index 14d944126abaa1b90d8d1d2ba3f59bf941d4e580..b71543f2c5f0c1bb17f2b396bb5966fdafffb792 100644 (file)
@@ -21,9 +21,9 @@ namespace lyx {
 class InsetEnvironment : public InsetText {
 public:
        ///
-       InsetEnvironment(BufferParams const &, std::string const & name);
+       InsetEnvironment(BufferParams const &, docstring const & name);
        ///
-       docstring insetName() const { return name_; }
+       docstring name() const { return name_; }
        ///
        void write(Buffer const & buf, std::ostream & os) const;
        ///
@@ -32,16 +32,16 @@ public:
        Inset::Code lyxCode() const { return Inset::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; }
        ///
-       LyXLayout_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
-       LyXLayout_ptr layout_;
+       LayoutPtr layout_;
        ///
        docstring name_;
 };