1999-09-27 18:44:28 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "insettoc.h"
|
|
|
|
#include "buffer.h"
|
|
|
|
#include "bufferlist.h"
|
|
|
|
#include "commandtags.h"
|
|
|
|
#include "lyxfunc.h"
|
|
|
|
#include "LyXView.h"
|
|
|
|
|
1999-11-04 01:40:20 +00:00
|
|
|
extern BufferView * current_view;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
void InsetTOC::Edit(int, int)
|
|
|
|
{
|
1999-11-09 22:53:41 +00:00
|
|
|
current_view->owner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW);
|
1999-09-27 18:44:28 +00:00
|
|
|
}
|
|
|
|
|
2000-02-21 13:53:54 +00:00
|
|
|
int InsetTOC::Linuxdoc(string & file) const
|
1999-09-27 18:44:28 +00:00
|
|
|
{
|
|
|
|
file += "<toc>";
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-02-21 13:53:54 +00:00
|
|
|
int InsetTOC::DocBook(string & file) const
|
1999-09-27 18:44:28 +00:00
|
|
|
{
|
|
|
|
file += "<toc></toc>";
|
|
|
|
return 0;
|
|
|
|
}
|