*
* \author André Pönitz
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#ifndef INSET_HFILL_H
#include "insetcommand.h"
+
+namespace lyx {
+
class InsetHFill : public InsetCommand {
public:
///
InsetHFill();
///
- virtual Inset * clone(Buffer const &, bool = false) const {
- return new InsetHFill();
- }
+ bool metrics(MetricsInfo &, Dimension &) const;
///
- string const getScreenLabel(Buffer const *) const { return getContents(); }
+ docstring const getScreenLabel(Buffer const &) const;
///
- Inset::Code lyxCode() const { return Inset::HFILL_CODE; }
+ InsetBase::Code lyxCode() const { return InsetBase::HFILL_CODE; }
///
- int latex(Buffer const *, std::ostream &, LatexRunParams const &,
- bool fragile, bool free_spc) const;
+ int plaintext(Buffer const &, odocstream &,
+ OutputParams const & runparams) const;
///
- int ascii(Buffer const *, std::ostream &, int linelen) const;
+ int docbook(Buffer const &, odocstream &,
+ OutputParams const & runparams) const;
///
- void write(Buffer const * buf, std::ostream & os) const;
+ void write(Buffer const & buf, std::ostream & os) const;
/// We don't need \begin_inset and \end_inset
bool directWrite() const { return true; }
+ /// is this equivalent to a space (which is BTW different from
+ // a line separator)?
+ bool isSpace() const;
+private:
+ virtual std::auto_ptr<InsetBase> doClone() const;
};
+
+} // namespace lyx
+
#endif