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