2000-07-17 18:27:53 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2000 The LyX Team.
|
|
|
|
*
|
|
|
|
*======================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef INSETCAPTION_H
|
|
|
|
#define INSETCAPTION_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "insettext.h"
|
|
|
|
|
|
|
|
/** A caption inset
|
|
|
|
*/
|
|
|
|
class InsetCaption : public InsetText {
|
|
|
|
public:
|
2000-07-18 17:45:27 +00:00
|
|
|
///
|
|
|
|
void Write(Buffer const * buf, std::ostream & os) const;
|
|
|
|
///
|
|
|
|
void Read(Buffer const * buf, LyXLex & lex);
|
|
|
|
///
|
|
|
|
Inset::Code LyxCode() const {
|
|
|
|
return CAPTION_CODE;
|
|
|
|
}
|
2000-07-17 18:27:53 +00:00
|
|
|
protected:
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|