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.
18 class InsetLine : public InsetOld {
23 std::auto_ptr<InsetBase> clone() const {
24 return std::auto_ptr<InsetBase>(new InsetLine);
27 InsetOld::Code lyxCode() const { return InsetOld::LINE_CODE; }
29 void metrics(MetricsInfo &, Dimension &) const;
31 void draw(PainterInfo & pi, int x, int y) const;
33 int latex(Buffer const &, std::ostream &,
34 LatexRunParams const &) const;
36 int ascii(Buffer const &, std::ostream &, int linelen) const;
38 int linuxdoc(Buffer const &, std::ostream &) const;
40 int docbook(Buffer const &, std::ostream &, bool) const;
42 void read(Buffer const &, LyXLex & lex);
44 void write(Buffer const & buf, std::ostream & os) const;
45 /// We don't need \begin_inset and \end_inset
46 bool directWrite() const { return true; }
48 bool display() const { return true; }
50 void validate(LaTeXFeatures & features) const;
53 #endif // INSET_NEWLINE_H