X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetIndex.h;h=44ada403d37eca2e4bb637d60ce6679d0acb156f;hb=06254d11dfdf670fab3548dc2a2674e7a261262c;hp=7281758a67567834c728d6c07c60ac3c83a67181;hpb=13d7df639b4d237ffac43a8926a0f8ceb0410557;p=lyx.git diff --git a/src/insets/InsetIndex.h b/src/insets/InsetIndex.h index 7281758a67..44ada403d3 100644 --- a/src/insets/InsetIndex.h +++ b/src/insets/InsetIndex.h @@ -34,25 +34,15 @@ public: /// InsetCode lyxCode() const { return INDEX_CODE; } /// - /// - void metrics(MetricsInfo &, Dimension &) const; - /// - void draw(PainterInfo &, int, int) const; - /// docstring name() const { return from_ascii("Index"); } /// - void getDrawFont(Font &) const; - /// void write(Buffer const & buf, std::ostream & os) const; /// int docbook(Buffer const &, odocstream &, OutputParams const &) const; /// should paragraph indendation be omitted in any case? bool neverIndent(Buffer const &) const { return true; } - private: - /// - bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const; /// virtual Inset * clone() const; }; @@ -72,6 +62,13 @@ public: DisplayType display() const { return AlignCenter; } /// docstring const getScreenLabel(Buffer const &) const; + /// + static CommandInfo const * findInfo(std::string const & cmdName = ""); + /// + static std::string defaultCommand() { return "printindex"; }; + /// + static bool isCompatibleCommand(std::string const & s) + { return s == "printindex"; } private: virtual Inset * clone() const { return new InsetPrintIndex(params());