]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettoc.C
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / insettoc.C
index 5b5f3ec4367b67c0710e700d15c9af3b8d4bb36b..fa91fa2855a4c72efbe7d4cd3b2eaaa4fd9d0932 100644 (file)
@@ -26,16 +26,10 @@ using std::ostream;
 
 
 InsetTOC::InsetTOC(InsetCommandParams const & p)
-       : InsetCommand(p)
+       : InsetCommand(p, "toc")
 {}
 
 
-InsetTOC::~InsetTOC()
-{
-       InsetCommandMailer("toc", *this).hideDialog();
-}
-
-
 std::auto_ptr<InsetBase> InsetTOC::clone() const
 {
        return std::auto_ptr<InsetBase>(new InsetTOC(*this));
@@ -58,22 +52,6 @@ InsetOld::Code InsetTOC::lyxCode() const
 }
 
 
-DispatchResult
-InsetTOC::priv_dispatch(FuncRequest const & cmd,
-                       idx_type & idx, pos_type & pos)
-{
-       switch (cmd.action) {
-       case LFUN_MOUSE_RELEASE:
-       case LFUN_INSET_DIALOG_SHOW:
-               InsetCommandMailer("toc", *this).showDialog(cmd.view());
-               return DispatchResult(true, true);
-
-       default:
-               return InsetCommand::priv_dispatch(cmd, idx, pos);
-       }
-}
-
-
 int InsetTOC::plaintext(Buffer const & buffer, ostream & os,
                    OutputParams const &) const
 {