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"
18 class InsetHFill : public InsetCommand {
23 virtual std::auto_ptr<InsetBase> clone() const {
24 return std::auto_ptr<InsetBase>(new InsetHFill);
27 string const getScreenLabel(Buffer const &) const { return getContents(); }
29 InsetOld::Code lyxCode() const { return InsetOld::HFILL_CODE; }
31 int latex(Buffer const &, std::ostream &,
32 LatexRunParams const &) const;
34 int ascii(Buffer const &, std::ostream &, int linelen) const;
36 int linuxdoc(Buffer const &, std::ostream &) const;
38 int docbook(Buffer const &, std::ostream &, bool) 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; }