- InsetCommand::metrics(mi, dim);
- center_indent_ = (mi.base.textwidth - dim.wid) / 2;
- dim.wid = mi.base.textwidth;
- dim_ = dim;
-}
-
-
-void InsetPrintIndex::draw(PainterInfo & pi, int x, int y) const
-{
- InsetCommand::draw(pi, x + center_indent_, y);
-}
-
-
-DispatchResult
-InsetIndex::priv_dispatch(FuncRequest const & cmd,
- idx_type & idx, pos_type & pos)
-{
- switch (cmd.action) {
- case LFUN_INSET_EDIT:
- InsetCommandMailer("index", *this).showDialog(cmd.view());
- return DispatchResult(DISPATCHED);
-
- default:
- return InsetCommand::priv_dispatch(cmd, idx, pos);
- }
-}
-
-
-int InsetIndex::docbook(Buffer const &, ostream & os,
- LatexRunParams const &) const
-{
- os << "<indexterm><primary>" << getContents()