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);
29 virtual bool display() const;
31 virtual bool needFullRow() const;
33 virtual Inset::Code lyxCode() const;
35 virtual string const editMessage() const;
37 virtual void draw(BufferView * bv, LyXFont const & f,
38 int baseline, float & x) const;
40 virtual int latex(Buffer const * buf, std::ostream & os,
41 LatexRunParams const &,
44 int ascii(Buffer const * buf, std::ostream & os, int linelen) const;
46 int docbook(Buffer const * buf, std::ostream & os, bool mixcont) const;
51 bool InsetCaption::display() const
58 bool InsetCaption::needFullRow() const
65 Inset::Code InsetCaption::lyxCode() const