]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettoc.C
clear()->erase() ; lots of using directives for cxx
[lyx.git] / src / insets / insettoc.C
index 9aca608ac78c201509451311df3ba4524383dbaa..88a46f1ea52b7545d63eb9359a5471cf9e329dfa 100644 (file)
 #include "commandtags.h"
 #include "lyxfunc.h"
 #include "LyXView.h"
+#include "BufferView.h"
 
-void InsetTOC::Edit(BufferView * bv, int, int)
+using std::ostream;
+
+
+string InsetTOC::getScreenLabel() const 
+{
+       return _("Table of Contents");
+}
+
+
+void InsetTOC::Edit(BufferView * bv, int, int, unsigned int)
 {
        bv->owner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW);
 }
 
-int InsetTOC::Linuxdoc(string & file) const
+int InsetTOC::Linuxdoc(ostream & os) const
 {
-       file += "<toc>";
+       os << "<toc>";
        return 0;
 }
 
 
-int InsetTOC::DocBook(string & file) const
+int InsetTOC::DocBook(ostream & os) const
 {
-       file += "<toc></toc>";
+       os << "<toc></toc>";
        return 0;
 }