mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
2bf37e842e
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@899 a592a061-630c-0410-9148-cb99ea01b6c8
40 lines
745 B
C
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);
|
|
}
|