]> git.lyx.org Git - lyx.git/blob - src/insets/InsetLine.h
Squash warning
[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  * \author Uwe Stöhr
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef INSET_LINE_H
14 #define INSET_LINE_H
15
16
17 #include "Inset.h"
18 #include "InsetCommand.h"
19
20
21 namespace lyx {
22
23 class LaTeXFeatures;
24
25 class InsetLine : public InsetCommand {
26 public:
27         ///
28         InsetLine(Buffer * buf, InsetCommandParams const &);
29         ///
30         int docbook(odocstream &, OutputParams const &) const;
31         /// Does nothing at the moment.
32         docstring xhtml(XHTMLStream &, OutputParams const &) const;
33         ///
34         InsetCode lyxCode() const { return LINE_CODE; }
35         ///
36         bool hasSettings() const { return true; }
37         ///
38         docstring screenLabel() const;
39         ///
40         static ParamInfo const & findInfo(std::string const &);
41         ///
42         static std::string defaultCommand() { return "rule"; };
43         ///
44         static bool isCompatibleCommand(std::string const & s) 
45                 { return s == "rule"; }
46         
47 private:
48         ///
49         void metrics(MetricsInfo &, Dimension &) const;
50         ///
51         void draw(PainterInfo & pi, int x, int y) const;
52         ///
53         int latex(odocstream &, OutputParams const &) const;
54         ///
55         int plaintext(odocstream &, OutputParams const &) const;
56         ///
57         void doDispatch(Cursor & cur, FuncRequest & cmd);
58         ///
59         bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
60         ///
61         Inset * clone() const { return new InsetLine(*this); }
62 };
63
64
65 } // namespace lyx
66
67 #endif // INSET_NEWLINE_H