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