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 const getScreenLabel(Buffer const &) const;
32 InsetCode lyxCode() const { return HFILL_CODE; }
34 int plaintext(Buffer const &, odocstream &,
35 OutputParams const &) const;
37 int docbook(Buffer const &, odocstream &,
38 OutputParams const &) const;
40 void write(Buffer const & buf, std::ostream & os) const;
41 /// We don't need \begin_inset and \end_inset
42 bool directWrite() const { return true; }
43 /// is this equivalent to a space (which is BTW different from
47 static CommandInfo const * findInfo(std::string const &);
49 static std::string defaultCommand() { return "hfill"; };
51 static bool isCompatibleCommand(std::string const & s)
52 { return s == "hfill"; }
54 virtual Inset * clone() const;