4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS
12 #ifndef INSETCAPTION_H
13 #define INSETCAPTION_H
19 #include "insettext.h"
23 class InsetCaption : public InsetText {
26 InsetCaption(BufferParams const &);
28 void write(Buffer const * buf, std::ostream & os) const;
30 void read(Buffer const * buf, LyXLex & lex);
36 bool needFullRow() const;
39 Inset::Code lyxCode() const;
42 string const editMessage() const;
45 void draw(BufferView * bv, LyXFont const & f,
46 int baseline, float & x, bool cleared) const;
49 int latex(Buffer const * buf, std::ostream & os,
50 bool fragile, bool free_spc) const;
53 int ascii(Buffer const * buf, std::ostream & os, int linelen) const;
56 int docbook(Buffer const * buf, std::ostream & os, bool mixcont) const;
63 bool InsetCaption::display() const
70 bool InsetCaption::needFullRow() const
77 Inset::Code InsetCaption::lyxCode() const