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 InsetOld::Code lyxCode() const;
33 virtual string const editMessage() const;
35 virtual void draw(PainterInfo & pi, int x, int y) const;
37 virtual int latex(Buffer const & buf, std::ostream & os,
38 LatexRunParams const &) const;
40 int ascii(Buffer const & buf, std::ostream & os, int linelen) const;
42 int docbook(Buffer const & buf, std::ostream & os, bool mixcont) const;
47 bool InsetCaption::display() const
54 InsetOld::Code InsetCaption::lyxCode() const