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(PainterInfo & pi, int x, int y) const;
39 virtual int latex(Buffer const * buf, std::ostream & os,
40 LatexRunParams const &) const;
42 int ascii(Buffer const * buf, std::ostream & os, int linelen) const;
44 int docbook(Buffer const * buf, std::ostream & os, bool mixcont) const;
49 bool InsetCaption::display() const
56 bool InsetCaption::needFullRow() const
63 Inset::Code InsetCaption::lyxCode() const