]> git.lyx.org Git - lyx.git/blob - src/insets/insettoc.C
continue the crusade to get rid of current_view
[lyx.git] / src / insets / insettoc.C
1 #include <config.h>
2
3 #ifdef __GNUG__
4 #pragma implementation
5 #endif
6
7 #include "insettoc.h"
8 #include "buffer.h"
9 #include "bufferlist.h"
10 #include "commandtags.h"
11 #include "lyxfunc.h"
12 #include "LyXView.h"
13
14 void InsetTOC::Edit(BufferView * bv, int, int)
15 {
16         bv->owner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW);
17 }
18
19 int InsetTOC::Linuxdoc(string & file) const
20 {
21         file += "<toc>";
22         return 0;
23 }
24
25
26 int InsetTOC::DocBook(string & file) const
27 {
28         file += "<toc></toc>";
29         return 0;
30 }