]> git.lyx.org Git - features.git/blobdiff - src/insets/insetcaption.C
more changes to get insetfloat working + some other things. Read the ChangeLog
[features.git] / src / insets / insetcaption.C
index 8d89efaad5cc3acc71b824c5df66c76e8adb7501..cdc24d9faefb3acee65897926340518d6a65ef6f 100644 (file)
 #endif
 
 #include "insetcaption.h"
+#include "debug.h"
+
+void InsetCaption::Write(Buffer const * buf, ostream & os) const
+{
+       os << "Caption\n";
+       WriteParagraphData(buf, os);
+}
+
+
+
+void InsetCaption::Read(Buffer const * buf, LyXLex & lex)
+{
+       string token = lex.GetString();
+       if (token != "Caption") {
+               lyxerr << "InsetCaption::Read: consistency check failed."
+                      << endl;
+       }
+       InsetText::Read(buf, lex);
+}