X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetHFill.h;h=0364e6ecb1e76f19de6246ed34b37bca61b6581b;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=ec1eac81186f7d377032a416283f52ab76753739;hpb=32871c1284f15265f652ff01c438e539a7c8181f;p=lyx.git diff --git a/src/insets/InsetHFill.h b/src/insets/InsetHFill.h index ec1eac8118..0364e6ecb1 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; /// - Inset::Code lyxCode() const { return Inset::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,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; };