2000-07-17 18:27:53 +00:00
|
|
|
/* 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"
|
2000-07-18 17:45:27 +00:00
|
|
|
#include "debug.h"
|
|
|
|
|
2000-07-19 10:22:12 +00:00
|
|
|
using std::ostream;
|
|
|
|
using std::endl;
|
|
|
|
|
2000-07-18 17:45:27 +00:00
|
|
|
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);
|
|
|
|
}
|