]> git.lyx.org Git - lyx.git/blob - src/insets/insetcaption.C
more changes to get insetfloat working + some other things. Read the ChangeLog
[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 void InsetCaption::Write(Buffer const * buf, ostream & os) const
21 {
22         os << "Caption\n";
23         WriteParagraphData(buf, os);
24 }
25
26
27
28 void InsetCaption::Read(Buffer const * buf, LyXLex & lex)
29 {
30         string token = lex.GetString();
31         if (token != "Caption") {
32                 lyxerr << "InsetCaption::Read: consistency check failed."
33                        << endl;
34         }
35         InsetText::Read(buf, lex);
36 }