]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.C
Remove a whole heap of redundant functions from classes derived from
[lyx.git] / src / insets / insetindex.C
index 1572347ac16c67b7a9e861b2730cd6634db3da4f..fa27b2440b5076d7bf40a13efa82e3e22aaf35c7 100644 (file)
@@ -24,7 +24,7 @@ using std::ostream;
 
 
 InsetIndex::InsetIndex(InsetCommandParams const & p)
-       : InsetCommand(p)
+       : InsetCommand(p, "index")
 {}
 
 
@@ -33,47 +33,12 @@ InsetIndex::InsetIndex(InsetCommandParams const & p)
 // {}
 
 
-InsetIndex::~InsetIndex()
-{
-       InsetCommandMailer("index", *this).hideDialog();
-}
-
-
 string const InsetIndex::getScreenLabel(Buffer const &) const
 {
        return _("Idx");
 }
 
 
-void InsetPrintIndex::metrics(MetricsInfo & mi, Dimension & dim) const
-{
-       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_MOUSE_RELEASE:
-                       InsetCommandMailer("index", *this).showDialog(cmd.view());
-                       return DispatchResult(true, true);
-
-               default:
-                       return InsetCommand::priv_dispatch(cmd, idx, pos);
-       }
-}
-
-
 int InsetIndex::docbook(Buffer const &, ostream & os,
                        OutputParams const &) const
 {
@@ -91,7 +56,7 @@ InsetOld::Code InsetIndex::lyxCode() const
 
 
 InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p)
-       : InsetCommand(p)
+       : InsetCommand(p, string())
 {}
 
 
@@ -100,10 +65,6 @@ InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p)
 // {}
 
 
-InsetPrintIndex::~InsetPrintIndex()
-{}
-
-
 string const InsetPrintIndex::getScreenLabel(Buffer const &) const
 {
        return _("Index");