2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000-2001 The LyX Team.
9 *======================================================
13 #ifndef INSETCAPTION_H
14 #define INSETCAPTION_H
20 #include "insettext.h"
24 class InsetCaption : public InsetText {
29 void Write(Buffer const * buf, std::ostream & os) const;
31 void Read(Buffer const * buf, LyXLex & lex);
37 bool needFullRow() const;
40 Inset::Code LyxCode() const;
43 string const EditMessage() const;
46 void draw(BufferView * bv, LyXFont const & f,
47 int baseline, float & x, bool cleared) const;
50 int Latex(Buffer const * buf, std::ostream & os,
51 bool fragile, bool free_spc) const;
54 int Ascii(Buffer const * buf, std::ostream & os, int linelen) const;
57 int DocBook(Buffer const * buf, std::ostream & os) const;
64 bool InsetCaption::display() const
71 bool InsetCaption::needFullRow() const
78 Inset::Code InsetCaption::LyxCode() const