]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcaption.C
prepare for 1.1.6pre2
[lyx.git] / src / insets / insetcaption.C
index 8d89efaad5cc3acc71b824c5df66c76e8adb7501..7632ba8150dcd3214a0507f76dd4fd09262e328e 100644 (file)
 #endif
 
 #include "insetcaption.h"
+#include "debug.h"
+
+using std::ostream;
+using std::endl;
+
+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);
+}