4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Abdelrazak Younes
11 * Full author contact details are available in file CREDITS.
18 #include "InsetCommand.h"
25 class InsetLine : public InsetCommand
28 InsetLine(Buffer * buf, InsetCommandParams const &);
30 /// InsetCommand inherited methods.
32 docstring screenLabel() const;
33 static ParamInfo const & findInfo(std::string const &);
34 static std::string defaultCommand() { return "rule"; };
35 static bool isCompatibleCommand(std::string const & s)
36 { return s == "rule"; }
41 /// Inset inherited methods.
43 InsetCode lyxCode() const { return LINE_CODE; }
44 Dimension const dimension(BufferView const &) const;
45 int docbook(odocstream &, OutputParams const &) const;
46 /// Does nothing at the moment.
47 docstring xhtml(XHTMLStream &, OutputParams const &) const;
48 bool hasSettings() const { return true; }
49 void metrics(MetricsInfo &, Dimension &) const;
50 void draw(PainterInfo & pi, int x, int y) const;
51 int latex(odocstream &, OutputParams const &) const;
52 int plaintext(odocstream &, OutputParams const &) const;
53 void doDispatch(Cursor & cur, FuncRequest & cmd);
54 bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
55 Inset * clone() const { return new InsetLine(*this); }
58 /// cached line height and offset.
59 /// These value are independent of the BufferView size and thus
60 /// can be shared between views.
70 #endif // INSET_NEWLINE_H