]> git.lyx.org Git - lyx.git/blob - src/insets/insettoc.C
Various fixes look at ChangeLog
[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 void InsetTOC::Edit(BufferView * bv, int, int, unsigned int)
16 {
17         bv->owner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW);
18 }
19
20 #ifndef USE_OSTREAM_ONLY
21 int InsetTOC::Linuxdoc(string & file) const
22 {
23         file += "<toc>";
24         return 0;
25 }
26
27
28 int InsetTOC::DocBook(string & file) const
29 {
30         file += "<toc></toc>";
31         return 0;
32 }
33
34 #else
35
36 int InsetTOC::Linuxdoc(ostream & os) const
37 {
38         os << "<toc>";
39         return 0;
40 }
41
42
43 int InsetTOC::DocBook(ostream & os) const
44 {
45         os << "<toc></toc>";
46         return 0;
47 }
48 #endif