]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_gui_misc.C
Angus insetindex patch + protect patch from Dekel
[lyx.git] / src / lyx_gui_misc.C
index 1262e486a474886fbc8a5ae04fbf1ff42cbeaa05..7954c722214211645c20ddc97ed21df839616e4d 100644 (file)
 
 #include <config.h>
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include <cerrno>
 #include "lyx_gui_misc.h"
 #include "BufferView.h"
@@ -20,7 +24,7 @@
 #include "form1.h"
 #include "gettext.h"
 #include "include_form.h"
-#include "latexoptions.h"
+#include "log_form.h"
 #include "layout_forms.h"
 #include "lyx.h"
 #include "lyx_cb.h"
@@ -29,7 +33,6 @@
 #include "minibuffer.h"
 #include "print_form.h"
 #include "sp_form.h"
-#include "insets/insetindex.h"
 #include "LyXView.h"
 #include "bufferview_funcs.h"
 #include "support/filetools.h"
@@ -50,7 +53,6 @@ extern FD_form_preamble * fd_form_preamble;
 extern FD_form_table * fd_form_table;
 extern FD_form_sendto * fd_form_sendto;
 extern FD_form_figure * fd_form_figure;
-extern FD_form_toc * fd_form_toc;
 extern FD_form_ref * fd_form_ref;
 extern FD_form_paragraph_extra * fd_form_paragraph_extra;
 extern FD_LaTeXLog * fd_latex_log;
@@ -61,12 +63,9 @@ extern FD_delim  * fd_delim;
 extern FD_deco   * fd_deco;
 extern FD_space  * fd_space;
 extern FD_matrix * fd_matrix;
-extern FD_citation_form * citation_form;
 extern FD_bibitem_form * bibitem_form;
 extern FD_include * form;
-extern FD_index_form * index_form;
 
-extern void TocUpdateCB();
 extern void HideFiguresPopups();
 
 // Prevents LyX from being killed when the close box is pressed in a popup.
@@ -117,9 +116,6 @@ void CloseAllBufferRelatedDialogs()
        if (fd_form_figure->form_figure->visible) {
                fl_hide_form(fd_form_figure->form_figure);
        }
-       if (fd_form_toc->form_toc->visible) {
-               fl_hide_form(fd_form_toc->form_toc);
-       }
        if (fd_form_ref->form_ref->visible) {
                fl_hide_form(fd_form_ref->form_ref);
        }
@@ -170,11 +166,6 @@ void CloseAllBufferRelatedDialogs()
                        fl_hide_form(fd_matrix->matrix);
                }
        }
-       if (citation_form) {
-               if (citation_form->form->visible) {
-                       fl_hide_form(citation_form->form);
-               }
-       }
        if (bibitem_form) {
                if (bibitem_form->bibitem_form->visible) {
                        fl_hide_form(bibitem_form->bibitem_form);
@@ -185,11 +176,6 @@ void CloseAllBufferRelatedDialogs()
                        fl_hide_form(form->include);
                }
        }
-       if (index_form) {
-               if (index_form->index_form->visible) {
-                       fl_hide_form(index_form->index_form);
-               }
-       }
        HideFiguresPopups();
 }
 
@@ -223,9 +209,6 @@ void updateAllVisibleBufferRelatedDialogs()
                        updateBulletForm();
                }
        }
-       if (fd_form_toc->browser_toc->visible) {
-               TocUpdateCB(0, 0);
-       }
        if (fd_latex_log->LaTeXLog->visible) {
                LatexLogUpdate(0,0);
        }
@@ -321,11 +304,6 @@ void updateAllVisibleBufferRelatedDialogs()
                }
        }
 #endif
-       if (citation_form) {
-               if (citation_form->form->visible) {
-                       fl_hide_form(citation_form->form);
-               }
-       }
        if (bibitem_form) {
                if (bibitem_form->bibitem_form->visible) {
                        fl_hide_form(bibitem_form->bibitem_form);
@@ -336,11 +314,6 @@ void updateAllVisibleBufferRelatedDialogs()
                        fl_hide_form(form->include);
                }
        }
-       if (index_form) {
-               if (index_form->index_form->visible) {
-                       fl_hide_form(index_form->index_form);
-               }
-       }
        HideFiguresPopups();
 }