lyx_mirror/src/insets/insettoc.C

39 lines
556 B
C++
Raw Normal View History

#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include "insettoc.h"
#include "commandtags.h"
#include "lyxfunc.h"
#include "LyXView.h"
#include "BufferView.h"
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(ostream & os) const
{
os << "<toc>";
return 0;
}
int InsetTOC::DocBook(ostream & os) const
{
os << "<toc></toc>";
return 0;
}