#include "commandtags.h"
#include "lyxfunc.h"
#include "LyXView.h"
+#include "BufferView.h"
-extern BufferView * current_view;
+using std::ostream;
-void InsetTOC::Edit(int, int)
+
+string InsetTOC::getScreenLabel() const
+{
+ return _("Table of Contents");
+}
+
+
+void InsetTOC::Edit(BufferView * bv, int, int, unsigned int)
{
- current_view->owner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW);
+ bv->owner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW);
}
-int InsetTOC::Linuxdoc(string & file)
+int InsetTOC::Linuxdoc(ostream & os) const
{
- file += "<toc>";
+ os << "<toc>";
return 0;
}
-int InsetTOC::DocBook(string & file)
+int InsetTOC::DocBook(ostream & os) const
{
- file += "<toc></toc>";
+ os << "<toc></toc>";
return 0;
}