]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.cpp
Fix text frame drawing.
[lyx.git] / src / insets / InsetTOC.cpp
index 801e5aa5653ebded2e66eeb0921f877ff902f582..bc4b6201d70f59720dcdd2edf06f62e411c1a9f4 100644 (file)
@@ -34,17 +34,17 @@ InsetTOC::InsetTOC(InsetCommandParams const & p)
 {}
 
 
-std::auto_ptr<Inset> InsetTOC::doClone() const
+Inset * InsetTOC::clone() const
 {
-       return std::auto_ptr<Inset>(new InsetTOC(*this));
+       return 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");
 }
 
 
@@ -57,7 +57,7 @@ Inset::Code InsetTOC::lyxCode() const
 
 
 int InsetTOC::plaintext(Buffer const & buffer, odocstream & os,
-                        OutputParams const &) const
+                       OutputParams const &) const
 {
        os << getScreenLabel(buffer) << "\n\n";
 
@@ -68,7 +68,7 @@ int InsetTOC::plaintext(Buffer const & buffer, odocstream & os,
 
 
 int InsetTOC::docbook(Buffer const &, odocstream & os,
-                      OutputParams const &) const
+                     OutputParams const &) const
 {
        if (getCmdName() == "tableofcontents")
                os << "<toc></toc>";