]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.cpp
Make listings dialog translatable (mostly strings from InsetListingsParams), fix...
[lyx.git] / src / insets / InsetTOC.cpp
index f583810ff0ad508f796f5e0b90479c4cbdb7c4e8..2c74aea5f2d190b5901609c0d3e7ea913d681e46 100644 (file)
@@ -34,25 +34,25 @@ InsetTOC::InsetTOC(InsetCommandParams const & p)
 {}
 
 
-std::auto_ptr<InsetBase> InsetTOC::doClone() const
+std::auto_ptr<Inset> InsetTOC::doClone() const
 {
-       return std::auto_ptr<InsetBase>(new InsetTOC(*this));
+       return std::auto_ptr<Inset>(new InsetTOC(*this));
 }
 
 
-docstring const InsetTOC::getScreenLabel(Buffer const &) const
+docstring const InsetTOC::getScreenLabel(Buffer const & buf) const
 {
        if (getCmdName() == "tableofcontents")
-               return _("Table of Contents");
-       return _("Unknown toc list");
+               return buf.B_("Table of Contents");
+       return _("Unknown TOC type");
 }
 
 
-InsetBase::Code InsetTOC::lyxCode() const
+Inset::Code InsetTOC::lyxCode() const
 {
        if (getCmdName() == "tableofcontents")
-               return InsetBase::TOC_CODE;
-       return InsetBase::NO_CODE;
+               return Inset::TOC_CODE;
+       return Inset::NO_CODE;
 }