X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetHFill.h;h=0364e6ecb1e76f19de6246ed34b37bca61b6581b;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=6461e8a3cff5f795b9eaee6f393276ae66138204;hpb=897436efbb9bd641b61467d185a2dfae9839e575;p=lyx.git diff --git a/src/insets/InsetHFill.h b/src/insets/InsetHFill.h index 6461e8a3cf..0364e6ecb1 100644 --- a/src/insets/InsetHFill.h +++ b/src/insets/InsetHFill.h @@ -23,11 +23,13 @@ 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; /// - Inset::Code lyxCode() const { return Inset::HFILL_CODE; } + InsetCode lyxCode() const { return HFILL_CODE; } /// int plaintext(Buffer const &, odocstream &, OutputParams const &) const; @@ -41,8 +43,16 @@ public: /// is this equivalent to a space (which is BTW different from // a line separator)? bool isSpace() const; + /// + static ParamInfo 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; };