]> 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 5936bfc9f409a93920792b3be2f59270926fab6a..88a46f1ea52b7545d63eb9359a5471cf9e329dfa 100644 (file)
 #include "LyXView.h"
 #include "BufferView.h"
 
-void InsetTOC::Edit(BufferView * bv, int, int, unsigned int)
-{
-       bv->owner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW);
-}
+using std::ostream;
+
 
-#ifndef USE_OSTREAM_ONLY
-int InsetTOC::Linuxdoc(string & file) const
+string InsetTOC::getScreenLabel() const 
 {
-       file += "<toc>";
-       return 0;
+       return _("Table of Contents");
 }
 
 
-int InsetTOC::DocBook(string & file) const
+void InsetTOC::Edit(BufferView * bv, int, int, unsigned int)
 {
-       file += "<toc></toc>";
-       return 0;
+       bv->owner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW);
 }
 
-#else
-
 int InsetTOC::Linuxdoc(ostream & os) const
 {
        os << "<toc>";
@@ -45,4 +38,3 @@ int InsetTOC::DocBook(ostream & os) const
        os << "<toc></toc>";
        return 0;
 }
-#endif