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
21 class InsetNewline : public Inset {
26 Inset::Code lyxCode() const { return Inset::NEWLINE_CODE; }
28 bool metrics(MetricsInfo &, Dimension &) const;
30 virtual void draw(PainterInfo & pi, int x, int y) const;
32 int latex(Buffer const &, odocstream &, OutputParams const &) const;
34 int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
36 int docbook(Buffer const &, odocstream &, OutputParams const &) const;
38 virtual void read(Buffer const &, Lexer & lex);
40 virtual void write(Buffer const & buf, std::ostream & os) const;
41 /// We don't need \begin_inset and \end_inset
42 virtual bool directWrite() const { return true; }
43 /// is this equivalent to a space (which is BTW different from
47 virtual Inset * clone() const
49 return new InsetNewline;
56 #endif // INSET_NEWLINE_H