]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_gui_misc.C
mathed31.diff
[lyx.git] / src / lyx_gui_misc.C
index bb067c0e02fd9b8a810d876b9fffb673bdd168e3..99ea77f214fe3f29d36c5f7d4040dc9305ba9338 100644 (file)
 #include <cerrno>
 #include "lyx_gui_misc.h"
 #include "BufferView.h"
-#include "bibforms.h"
 #include "buffer.h"
 #include "credits_form.h"
 #include "form1.h"
 #include "gettext.h"
-#include "include_form.h"
-#include "log_form.h"
 #include "layout_forms.h"
 #include "lyx.h"
 #include "lyx_cb.h"
@@ -51,14 +48,11 @@ extern FD_form_preamble * fd_form_preamble;
 extern FD_form_sendto * fd_form_sendto;
 extern FD_form_spell_check * fd_form_spell_check;
 extern FD_form_spell_options * fd_form_spell_options;
-extern FD_LaTeXLog * fd_latex_log;
 extern FD_panel  * fd_panel;
 extern FD_delim  * fd_delim;
 extern FD_deco   * fd_deco;
 extern FD_space  * fd_space;
 extern FD_matrix * fd_matrix;
-extern FD_bibitem_form * bibitem_form;
-extern FD_include * form;
 
 extern void HideFiguresPopups();
 
@@ -71,9 +65,6 @@ extern "C" int CancelCloseBoxCB(FL_FORM *, void *)
 // that the xform colors have been re-mapped).
 void RedrawAllBufferRelatedDialogs()
 {
-       if (bibitem_form && bibitem_form->bibitem_form->visible) {
-               fl_redraw_form(bibitem_form->bibitem_form);
-       }
        if (fd_deco && fd_deco->deco->visible) {
                fl_redraw_form(fd_deco->deco);
        }
@@ -103,9 +94,6 @@ void RedrawAllBufferRelatedDialogs()
            fd_form_spell_options->form_spell_options->visible) {
                fl_redraw_form(fd_form_spell_options->form_spell_options);
        }
-       if (fd_latex_log->LaTeXLog->visible) {
-               fl_redraw_form(fd_latex_log->LaTeXLog);
-       }
        if (fd_matrix && fd_matrix->matrix->visible) {
                fl_redraw_form(fd_matrix->matrix);
        }
@@ -115,9 +103,6 @@ void RedrawAllBufferRelatedDialogs()
        if (fd_space && fd_space->space->visible) {
                fl_redraw_form(fd_space->space);
        }
-       if (form && form->include->visible) {
-               fl_redraw_form(form->include);
-       }
 }
 
 // Prevents LyX from crashing when no buffers available
@@ -142,9 +127,6 @@ void CloseAllBufferRelatedDialogs()
        if (fd_form_sendto->form_sendto->visible) {
                fl_hide_form(fd_form_sendto->form_sendto);
        }
-       if (fd_latex_log->LaTeXLog->visible) {
-               fl_hide_form(fd_latex_log->LaTeXLog);
-       }
        if (fd_form_spell_check) {
                if (fd_form_spell_check->form_spell_check->visible) {
                        fl_trigger_object(fd_form_spell_check->done);
@@ -175,16 +157,6 @@ void CloseAllBufferRelatedDialogs()
                        fl_hide_form(fd_matrix->matrix);
                }
        }
-       if (bibitem_form) {
-               if (bibitem_form->bibitem_form->visible) {
-                       fl_hide_form(bibitem_form->bibitem_form);
-               }
-       }
-       if (form) {
-               if (form->include->visible) {
-                       fl_hide_form(form->include);
-               }
-       }
        HideFiguresPopups();
 }
 
@@ -195,9 +167,6 @@ void updateAllVisibleBufferRelatedDialogs(bool)
        if (fd_form_preamble->form_preamble->visible) {
                UpdateLayoutPreamble(current_view);
        }
-       if (fd_latex_log->LaTeXLog->visible) {
-               LatexLogUpdate(0,0);
-       }
        if (current_view->buffer() &&  current_view->buffer()->isReadonly()) {
                // a little crude perhaps but it works. ARRae
                if (fd_form_character->form_character->visible) {
@@ -265,16 +234,6 @@ void updateAllVisibleBufferRelatedDialogs(bool)
                }
        }
 #endif
-       if (bibitem_form) {
-               if (bibitem_form->bibitem_form->visible) {
-                       fl_hide_form(bibitem_form->bibitem_form);
-               }
-       }
-       if (form) {
-               if (form->include->visible) {
-                       fl_hide_form(form->include);
-               }
-       }
        HideFiguresPopups();
 }