]> git.lyx.org Git - lyx.git/blob - src/insets/insettoc.C
15414fb8f854f287d079bc5475a17069a3153fad
[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 "commandtags.h"
9 #include "lyxfunc.h"
10 #include "LyXView.h"
11 #include "BufferView.h"
12
13 using std::ostream;
14
15
16 string InsetTOC::getScreenLabel() const 
17 {
18         return _("Table of Contents");
19 }
20
21
22 void InsetTOC::Edit(BufferView * bv, int, int, unsigned int)
23 {
24         bv->owner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW);
25 }
26
27 int InsetTOC::Linuxdoc(Buffer const *, ostream & os) const
28 {
29         os << "<toc>";
30         return 0;
31 }
32
33
34 int InsetTOC::DocBook(Buffer const *, ostream & os) const
35 {
36         os << "<toc></toc>";
37         return 0;
38 }