]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloatlist.C
parlist-a-1.diff
[lyx.git] / src / insets / insetfloatlist.C
index e3d1b9401b6cb086e41a260221283a7d311dd567..3df488deb3ada0c903675a2581c34040081b0d90 100644 (file)
@@ -9,9 +9,6 @@
  */
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "insetfloatlist.h"
 #include "FloatList.h"
@@ -25,7 +22,7 @@
 #include "gettext.h"
 #include "debug.h"
 
-#include "BoostFormat.h"
+#include "support/BoostFormat.h"
 
 using std::ostream;
 using std::endl;
@@ -44,6 +41,13 @@ InsetFloatList::InsetFloatList(string const & type)
 }
 
 
+InsetFloatList::~InsetFloatList()
+{
+       InsetCommandMailer mailer("toc", *this);
+       mailer.hideDialog();
+}
+
+
 string const InsetFloatList::getScreenLabel(Buffer const * buf) const
 {
        FloatList const & floats = buf->params.getLyXTextClass().floats();
@@ -94,7 +98,8 @@ void InsetFloatList::read(Buffer const * buf, LyXLex & lex)
 
 void InsetFloatList::edit(BufferView * bv, int, int, mouse_button::state)
 {
-       bv->owner()->getDialogs().showTOC(this);
+       InsetCommandMailer mailer("toc", *this);
+       mailer.showDialog(bv);
 }