#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>";
os << "<toc></toc>";
return 0;
}
-#endif