4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
12 #ifndef INSET_NEWLINE_H
13 #define INSET_NEWLINE_H
18 class InsetNewline : public Inset {
23 virtual Inset * clone(Buffer const &) const {
24 return new InsetNewline;
27 Inset::Code lyxCode() const { return Inset::NEWLINE_CODE; }
29 void dimension(BufferView *, LyXFont const &, Dimension &) const;
31 virtual void draw(BufferView *, LyXFont const &,
32 int baseline, float & x) const;
34 virtual int latex(Buffer const *, std::ostream &,
35 LatexRunParams const &) const;
37 virtual int ascii(Buffer const *, std::ostream &, int linelen) const;
39 virtual int linuxdoc(Buffer const *, std::ostream &) const;
41 virtual int docbook(Buffer const *, std::ostream &, bool) const;
43 virtual void read(Buffer const *, LyXLex & lex);
45 virtual void write(Buffer const * buf, std::ostream & os) const;
46 /// We don't need \begin_inset and \end_inset
47 virtual bool directWrite() const { return true; }
50 #endif // INSET_NEWLINE_H