]> git.lyx.org Git - lyx.git/blob - src/insets/InsetLine.h
Restore XHTML output for InsetLine.
[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() : Inset(0) {}
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         docstring xhtml(XHTMLStream &, OutputParams const &) const;
39         ///
40         void read(Lexer & lex);
41         ///
42         void write(std::ostream & os) const;
43         /// We don't need \begin_inset and \end_inset
44         bool directWrite() const { return true; }
45         ///
46         DisplayType display() const { return AlignCenter; }
47         ///
48         void validate(LaTeXFeatures & features) const;
49 private:
50         Inset * clone() const { return new InsetLine(*this); }
51 };
52
53
54 } // namespace lyx
55
56 #endif // INSET_NEWLINE_H