4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
16 #include "InsetCommand.h"
21 class InsetHFill : public InsetCommand {
26 void metrics(MetricsInfo &, Dimension &) const;
28 void draw(PainterInfo & pi, int x, int y) const;
30 docstring screenLabel() const;
32 InsetCode lyxCode() const { return HFILL_CODE; }
34 int plaintext(odocstream &, OutputParams const &) const;
36 int docbook(odocstream &, OutputParams const &) const;
38 void write(std::ostream & os) const;
39 /// We don't need \begin_inset and \end_inset
40 bool directWrite() const { return true; }
41 /// is this equivalent to a space (which is BTW different from
45 static ParamInfo const & findInfo(std::string const &);
47 static std::string defaultCommand() { return "hfill"; };
49 static bool isCompatibleCommand(std::string const & s)
50 { return s == "hfill"; }
53 Inset * clone() const { return new InsetHFill(*this); }