]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetEnvironment.h
* src/insets/InsetListingsParams.cpp: fix user message
[lyx.git] / src / insets / InsetEnvironment.h
index 5564f3ab6d1fd130d30e5345f4977c4c787e617e..bdb6b71625abd68f8dd2cb7baa30b1afa4f52365 100644 (file)
@@ -23,23 +23,25 @@ public:
        ///
        InsetEnvironment(BufferParams const &, std::string const & name);
        ///
+       docstring name() const { return name_; }
+       ///
        void write(Buffer const & buf, std::ostream & os) const;
        ///
        void read(Buffer const & buf, Lexer & lex);
        ///
-       InsetBase::Code lyxCode() const { return InsetBase::ENVIRONMENT_CODE; }
+       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;
        ///
-       InsetBase::EDITABLE editable() const { return HIGHLY_EDITABLE; }
+       Inset::EDITABLE editable() const { return HIGHLY_EDITABLE; }
        ///
-       LyXLayout_ptr const & layout() const;
+       Layout_ptr 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 */
@@ -47,9 +49,11 @@ public:
 protected:
        InsetEnvironment(InsetEnvironment const &);
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
        /// the layout
-       LyXLayout_ptr layout_;
+       Layout_ptr layout_;
+       ///
+       docstring name_;
 };