lyx_mirror/src/insets/insetcaption.C
Jean-Marc Lasgouttes 2bf37e842e Toolbar icons and banner are now read when needed from disk. Read ChangeLog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@899 a592a061-630c-0410-9148-cb99ea01b6c8
2000-07-19 10:22:12 +00:00

40 lines
745 B
C

/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 2000 The LyX Team.
*
* ======================================================
*/
#include <config.h>
#ifdef __GNUG__
#pragma implementation
#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);
}