X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetHFill.h;h=3c4683cc2de5562daf3736a0abf526b6290e8548;hb=2c357c1d23b7b83839a9beb8225d4f1ae4f793b4;hp=a72b66cf7b2a8c9b625bde8556d754908f27b415;hpb=ed858d73e57ce7aa89e38c1bc4d799362edb0227;p=lyx.git diff --git a/src/insets/InsetHFill.h b/src/insets/InsetHFill.h index a72b66cf7b..3c4683cc2d 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,6 +43,13 @@ 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 Inset * clone() const; };