]> git.lyx.org Git - lyx.git/blob - src/insets/InsetLine.h
This optional argument to the InsetCollapsable constructor
[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
19 namespace lyx {
20
21 class InsetLine : public Inset {
22 public:
23
24         InsetLine() {}
25
26         InsetCode lyxCode() const { return LINE_CODE; }
27
28         void metrics(MetricsInfo &, Dimension &) const;
29
30         void draw(PainterInfo & pi, int x, int y) const;
31
32         int latex(odocstream &, OutputParams const &) const;
33
34         int plaintext(odocstream &, OutputParams const &) const;
35
36         int docbook(odocstream &, OutputParams const &) const;
37
38         void read(Lexer & lex);
39
40         void write(std::ostream & os) const;
41         /// We don't need \begin_inset and \end_inset
42         bool directWrite() const { return true; }
43
44         DisplayType display() const { return AlignCenter; }
45         ///
46         void validate(LaTeXFeatures & features) const;
47 private:
48         Inset * clone() const { return new InsetLine(*this); }
49 };
50
51
52 } // namespace lyx
53
54 #endif // INSET_NEWLINE_H