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 {
24 InsetLine() : Inset(0) {}
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 docstring xhtml(XHTMLStream &, OutputParams const &) const;
40 void read(Lexer & lex);
42 void write(std::ostream & os) const;
43 /// We don't need \begin_inset and \end_inset
44 bool directWrite() const { return true; }
46 DisplayType display() const { return AlignCenter; }
48 void validate(LaTeXFeatures & features) const;
50 Inset * clone() const { return new InsetLine(*this); }
56 #endif // INSET_NEWLINE_H