X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetHFill.h;h=3c4683cc2de5562daf3736a0abf526b6290e8548;hb=2c357c1d23b7b83839a9beb8225d4f1ae4f793b4;hp=a1d777b70685857c739410fd9ceb71648d38bad7;hpb=c8d00ed1272cd489041bed2115081008b6a26489;p=lyx.git diff --git a/src/insets/InsetHFill.h b/src/insets/InsetHFill.h index a1d777b706..3c4683cc2d 100644 --- a/src/insets/InsetHFill.h +++ b/src/insets/InsetHFill.h @@ -23,14 +23,16 @@ public: /// InsetHFill(); /// - bool metrics(MetricsInfo &, Dimension &) const; + void metrics(MetricsInfo &, Dimension &) const; + /// + void draw(PainterInfo & pi, int x, int y) const; /// docstring const getScreenLabel(Buffer const &) const; /// - InsetBase::Code lyxCode() const { return InsetBase::HFILL_CODE; } + InsetCode lyxCode() const { return HFILL_CODE; } /// int plaintext(Buffer const &, odocstream &, - OutputParams const &) const; + OutputParams const &) const; /// int docbook(Buffer const &, odocstream &, OutputParams const &) const; @@ -41,8 +43,15 @@ public: /// is this equivalent to a space (which is BTW different from // a line separator)? bool isSpace() const; + /// + static CommandInfo const * findInfo(std::string const &); + /// + static std::string defaultCommand() { return "hfill"; }; + /// + static bool isCompatibleCommand(std::string const & s) + { return s == "hfill"; } private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; };