4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * 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 int docbook(odocstream &, OutputParams const &) const;
31 /// Does nothing at the moment.
32 docstring xhtml(XHTMLStream &, OutputParams const &) const;
34 InsetCode lyxCode() const { return LINE_CODE; }
36 bool hasSettings() const { return true; }
38 docstring screenLabel() const;
40 static ParamInfo const & findInfo(std::string const &);
42 static std::string defaultCommand() { return "rule"; };
44 static bool isCompatibleCommand(std::string const & s)
45 { return s == "rule"; }
49 void metrics(MetricsInfo &, Dimension &) const;
51 void draw(PainterInfo & pi, int x, int y) const;
53 int latex(odocstream &, OutputParams const &) const;
55 int plaintext(odocstream &, OutputParams const &) const;
57 void doDispatch(Cursor & cur, FuncRequest & cmd);
59 bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
61 Inset * clone() const { return new InsetLine(*this); }
67 #endif // INSET_NEWLINE_H