- int docbook(Buffer const &, odocstream &,
- OutputParams const &) const;
-private:
- virtual std::auto_ptr<Inset> doClone() const {
- return std::auto_ptr<Inset>(new InsetIndex(params()));
- }
+ InsetCode lyxCode() const { return INDEX_CODE; }
+ ///
+ docstring layoutName() const { return from_ascii("Index"); }
+ ///
+ ColorCode labelColor() const;
+ ///
+ void write(std::ostream & os) const;
+ ///
+ void read(Lexer & lex);
+ ///
+ int docbook(odocstream &, OutputParams const &) const;
+ ///
+ docstring xhtml(XHTMLStream &, OutputParams const &) const;
+ ///
+ void latex(otexstream &, OutputParams const &) const;
+ ///
+ bool showInsetDialog(BufferView *) const;
+ ///
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ ///
+ void doDispatch(Cursor & cur, FuncRequest & cmd);
+ /// should paragraph indendation be omitted in any case?
+ bool neverIndent() const { return true; }
+ ///
+ void addToToc(DocIterator const & di, bool output_active,
+ UpdateType utype) const;
+ ///
+ docstring toolTip(BufferView const & bv, int x, int y) const;
+ ///
+ docstring const buttonLabel(BufferView const & bv) const;
+ /// Updates needed features for this inset.
+ void validate(LaTeXFeatures & features) const;
+ ///
+ std::string contextMenuName() const;
+ ///
+ Inset * clone() const { return new InsetIndex(*this); }
+
+ ///
+ friend class InsetIndexParams;
+ ///
+ InsetIndexParams params_;