]> git.lyx.org Git - lyx.git/blob - src/insets/insetline.h
Rename ascii to plaintext and LatexRunParams to OutputParams.
[lyx.git] / src / insets / insetline.h
1 // -*- C++ -*-
2 /**
3  * \file insetline.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef INSET_LINE_H
13 #define INSET_LINE_H
14
15
16 #include "inset.h"
17
18 class InsetLine : public InsetOld {
19 public:
20
21         InsetLine() {}
22
23         std::auto_ptr<InsetBase> clone() const {
24                 return std::auto_ptr<InsetBase>(new InsetLine);
25         }
26
27         InsetOld::Code lyxCode() const { return InsetOld::LINE_CODE; }
28
29         void metrics(MetricsInfo &, Dimension &) const;
30
31         void draw(PainterInfo & pi, int x, int y) const;
32
33         int latex(Buffer const &, std::ostream &,
34                           OutputParams const &) const;
35
36         int plaintext(Buffer const &, std::ostream &,
37                   OutputParams const &) const;
38
39         int linuxdoc(Buffer const &, std::ostream &,
40                      OutputParams const &) const;
41
42         int docbook(Buffer const &, std::ostream &,
43                     OutputParams const &) const;
44
45         void read(Buffer const &, LyXLex & lex);
46
47         void write(Buffer const & buf, std::ostream & os) const;
48         /// We don't need \begin_inset and \end_inset
49         bool directWrite() const { return true; }
50
51         bool display() const { return true; }
52         ///
53         void validate(LaTeXFeatures & features) const;
54 };
55
56 #endif // INSET_NEWLINE_H