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
16 #include "insettext.h"
20 class InsetCaption : public InsetText {
23 InsetCaption(BufferParams const &);
25 void write(Buffer const * buf, std::ostream & os) const;
27 void read(Buffer const * buf, LyXLex & lex);
33 bool needFullRow() const;
36 Inset::Code lyxCode() const;
39 string const editMessage() const;
42 void draw(BufferView * bv, LyXFont const & f,
43 int baseline, float & x) const;
46 int latex(Buffer const * buf, std::ostream & os,
47 bool fragile, bool free_spc) const;
50 int ascii(Buffer const * buf, std::ostream & os, int linelen) const;
53 int docbook(Buffer const * buf, std::ostream & os, bool mixcont) const;
60 bool InsetCaption::display() const
67 bool InsetCaption::needFullRow() const
74 Inset::Code InsetCaption::lyxCode() const