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.
21 class InsetLine : public Inset {
26 InsetCode lyxCode() const { return LINE_CODE; }
28 void metrics(MetricsInfo &, Dimension &) const;
30 void draw(PainterInfo & pi, int x, int y) const;
32 int latex(odocstream &, OutputParams const &) const;
34 int plaintext(odocstream &, OutputParams const &) const;
36 int docbook(odocstream &, OutputParams const &) const;
38 void read(Lexer & lex);
40 void write(std::ostream & os) const;
41 /// We don't need \begin_inset and \end_inset
42 bool directWrite() const { return true; }
44 DisplayType display() const { return AlignCenter; }
46 void validate(LaTeXFeatures & features) const;
48 Inset * clone() const { return new InsetLine(*this); }
54 #endif // INSET_NEWLINE_H