]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettoc.C
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insettoc.C
index 32d9560d6b9b54e2399b5a994e81794f4688224b..c93c62e26acb11e63787d4aa6b65eab0022a139d 100644 (file)
 #include "debug.h"
 #include "buffer.h"
 
+
 using std::vector;
+using std::ostream;
+
 
-string const InsetTOC::getScreenLabel() const 
+string const InsetTOC::getScreenLabel(Buffer const *) const 
 {
        string const cmdname(getCmdName());
        
@@ -45,9 +48,9 @@ void InsetTOC::edit(BufferView * bv, bool)
 }
 
 
-int InsetTOC::ascii(Buffer const * buffer, std::ostream & os, int) const
+int InsetTOC::ascii(Buffer const * buffer, ostream & os, int) const
 {
-       os << getScreenLabel() << "\n\n";
+       os << getScreenLabel(buffer) << "\n\n";
 
        string type;
        string const cmdname = getCmdName();
@@ -69,7 +72,7 @@ int InsetTOC::ascii(Buffer const * buffer, std::ostream & os, int) const
 }
 
 
-int InsetTOC::linuxdoc(Buffer const *, std::ostream & os) const
+int InsetTOC::linuxdoc(Buffer const *, ostream & os) const
 {
        if (getCmdName() == "tableofcontents")
                os << "<toc>";
@@ -77,7 +80,7 @@ int InsetTOC::linuxdoc(Buffer const *, std::ostream & os) const
 }
 
 
-int InsetTOC::DocBook(Buffer const *, std::ostream & os) const
+int InsetTOC::docbook(Buffer const *, ostream & os) const
 {
        if (getCmdName() == "tableofcontents")
                os << "<toc></toc>";