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.
17 #include "InsetCommand.h"
24 class InsetLine : public InsetCommand {
27 InsetLine(Buffer * buf, InsetCommandParams const &);
29 int docbook(odocstream &, OutputParams const &) const;
30 /// Does nothing at the moment.
31 docstring xhtml(XHTMLStream &, OutputParams const &) const;
33 InsetCode lyxCode() const { return LINE_CODE; }
35 bool hasSettings() const { return true; }
37 docstring screenLabel() const;
39 static ParamInfo const & findInfo(std::string const &);
41 static std::string defaultCommand() { return "rule"; };
43 static bool isCompatibleCommand(std::string const & s)
44 { return s == "rule"; }
46 Dimension const dimension(BufferView const &) const;
50 void metrics(MetricsInfo &, Dimension &) const;
52 void draw(PainterInfo & pi, int x, int y) const;
54 int latex(odocstream &, OutputParams const &) const;
56 int plaintext(odocstream &, OutputParams const &) const;
58 void doDispatch(Cursor & cur, FuncRequest & cmd);
60 bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
62 Inset * clone() const { return new InsetLine(*this); }
68 #endif // INSET_NEWLINE_H