X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetIndex.h;h=44ada403d37eca2e4bb637d60ce6679d0acb156f;hb=06254d11dfdf670fab3548dc2a2674e7a261262c;hp=3e60130d0df55745258c5ceb77d3f12211a01b62;hpb=d21a3bb445759348c19ab03c7c012065194274b5;p=lyx.git diff --git a/src/insets/InsetIndex.h b/src/insets/InsetIndex.h index 3e60130d0d..44ada403d3 100644 --- a/src/insets/InsetIndex.h +++ b/src/insets/InsetIndex.h @@ -32,27 +32,17 @@ public: /// EDITABLE editable() const { return IS_EDITABLE; } /// - Inset::Code lyxCode() const; - /// - /// - void metrics(MetricsInfo &, Dimension &) const; - /// - void draw(PainterInfo &, int, int) const; + InsetCode lyxCode() const { return INDEX_CODE; } /// 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; }; @@ -67,11 +57,18 @@ public: /// EDITABLE editable() const { return NOT_EDITABLE; } /// - Inset::Code lyxCode() const; + InsetCode lyxCode() const; /// 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());