]> git.lyx.org Git - lyx.git/blob - src/insets/insetcaption.C
prepare for 1.1.6pre2
[lyx.git] / src / insets / insetcaption.C
1 /* This file is part of
2  * ======================================================
3  * 
4  *           LyX, The Document Processor
5  *       
6  *          Copyright 2000 The LyX Team.
7  *
8  * ======================================================
9  */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "insetcaption.h"
18 #include "debug.h"
19
20 using std::ostream;
21 using std::endl;
22
23 void InsetCaption::Write(Buffer const * buf, ostream & os) const
24 {
25         os << "Caption\n";
26         WriteParagraphData(buf, os);
27 }
28
29
30
31 void InsetCaption::Read(Buffer const * buf, LyXLex & lex)
32 {
33         string token = lex.GetString();
34         if (token != "Caption") {
35                 lyxerr << "InsetCaption::Read: consistency check failed."
36                        << endl;
37         }
38         InsetText::Read(buf, lex);
39 }