]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetEnvironment.cpp
Forgot to restore this before committing 18494. This fixes bug 3725.
[lyx.git] / src / insets / InsetEnvironment.cpp
index 318c8992c2db21d9cb66ea48e3e5270a8fe771d0..b576573b5c785c3f448f3fa6079e13242c9f5fcd 100644 (file)
@@ -29,7 +29,7 @@ using std::ostream;
 
 InsetEnvironment::InsetEnvironment
                (BufferParams const & bp, string const & name)
-       : InsetText(bp), layout_(bp.getLyXTextClass()[name]), name_(from_utf8(name))
+       : InsetText(bp), layout_(bp.getTextClass()[name]), name_(from_utf8(name))
 {
        setAutoBreakRows(true);
        setDrawFrame(true);
@@ -41,15 +41,15 @@ InsetEnvironment::InsetEnvironment(InsetEnvironment const & in)
 {}
 
 
-auto_ptr<InsetBase> InsetEnvironment::doClone() const
+auto_ptr<Inset> InsetEnvironment::doClone() const
 {
-       return auto_ptr<InsetBase>(new InsetEnvironment(*this));
+       return auto_ptr<Inset>(new InsetEnvironment(*this));
 }
 
 
 void InsetEnvironment::write(Buffer const & buf, ostream & os) const
 {
-       os << "Environment " << to_utf8(getInsetName()) << "\n";
+       os << "Environment " << to_utf8(name()) << "\n";
        InsetText::write(buf, os);
 }
 
@@ -62,7 +62,7 @@ void InsetEnvironment::read(Buffer const & buf, Lexer & lex)
 
 docstring const InsetEnvironment::editMessage() const
 {
-       return _("Opened Environment Inset: ") + getInsetName();
+       return _("Opened Environment Inset: ") + name();
 }
 
 
@@ -83,7 +83,7 @@ int InsetEnvironment::latex(Buffer const & buf, odocstream & os,
 int InsetEnvironment::plaintext(Buffer const & buf, odocstream & os,
                                 OutputParams const & runparams) const
 {
-       os << '[' << to_utf8(getInsetName()) << ":\n";
+       os << '[' << to_utf8(name()) << ":\n";
        InsetText::plaintext(buf, os, runparams);
        os << "\n]";
 
@@ -91,7 +91,7 @@ int InsetEnvironment::plaintext(Buffer const & buf, odocstream & os,
 }
 
 
-LyXLayout_ptr const & InsetEnvironment::layout() const
+Layout_ptr const & InsetEnvironment::layout() const
 {
        return layout_;
 }