X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsethfill.h;h=51f5b59fa1ddc4103eceb1d7f2ea2f0258000c79;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=2d21203a12ea819fa7d61a5cacceea7c929b1bdb;hpb=56a3e2e1c0399c92e8461ee87f743b4dff7d2307;p=lyx.git diff --git a/src/insets/insethfill.h b/src/insets/insethfill.h index 2d21203a12..51f5b59fa1 100644 --- a/src/insets/insethfill.h +++ b/src/insets/insethfill.h @@ -15,29 +15,24 @@ #include "insetcommand.h" + +namespace lyx { + class InsetHFill : public InsetCommand { public: /// InsetHFill(); /// - void metrics(MetricsInfo &, Dimension &) const; - /// - std::auto_ptr clone() const; - /// - std::string const getScreenLabel(Buffer const &) const; + bool metrics(MetricsInfo &, Dimension &) const; /// - InsetOld::Code lyxCode() const { return InsetOld::HFILL_CODE; } + docstring const getScreenLabel(Buffer const &) const; /// - int latex(Buffer const &, std::ostream &, - OutputParams const &) const; + InsetBase::Code lyxCode() const { return InsetBase::HFILL_CODE; } /// - int plaintext(Buffer const &, std::ostream &, + int plaintext(Buffer const &, odocstream &, OutputParams const & runparams) const; /// - int linuxdoc(Buffer const &, std::ostream &, - OutputParams const &) const; - /// - int docbook(Buffer const &, std::ostream &, + int docbook(Buffer const &, odocstream &, OutputParams const & runparams) const; /// void write(Buffer const & buf, std::ostream & os) const; @@ -46,7 +41,11 @@ public: /// is this equivalent to a space (which is BTW different from // a line separator)? bool isSpace() const; - +private: + virtual std::auto_ptr doClone() const; }; + +} // namespace lyx + #endif