]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_gui_misc.C
Remove unused font variable which caused a warning.
[lyx.git] / src / lyx_gui_misc.C
index f87dd917a02804d33198c9f39892a7a0d45f16a2..479c2c394eb031678382bfcbfb8e6472e9e9f7e3 100644 (file)
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /* This file is part of
  * ====================================================== 
  * 
@@ -24,7 +23,6 @@
 #include "lyx_cb.h"
 #include "lyx_main.h"
 #include "print_form.h"
-#include "sp_form.h"
 #include "LyXView.h"
 #include "bufferview_funcs.h"
 #include "support/filetools.h"
@@ -38,8 +36,6 @@ extern BufferView * current_view;
 
 extern FD_form_figure * fd_form_figure;
 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 void HideFiguresPopups();
 
@@ -58,14 +54,6 @@ void RedrawAllBufferRelatedDialogs()
        if (fd_form_sendto->form_sendto->visible) {
                fl_redraw_form(fd_form_sendto->form_sendto);
        }
-       if (fd_form_spell_check &&
-           fd_form_spell_check->form_spell_check->visible) {
-               fl_redraw_form(fd_form_spell_check->form_spell_check);
-       }
-       if (fd_form_spell_options &&
-           fd_form_spell_options->form_spell_options->visible) {
-               fl_redraw_form(fd_form_spell_options->form_spell_options);
-       }
 }
 
 // Prevents LyX from crashing when no buffers available
@@ -84,11 +72,6 @@ void CloseAllBufferRelatedDialogs()
        if (fd_form_sendto->form_sendto->visible) {
                fl_hide_form(fd_form_sendto->form_sendto);
        }
-       if (fd_form_spell_check) {
-               if (fd_form_spell_check->form_spell_check->visible) {
-                       fl_trigger_object(fd_form_spell_check->done);
-               }
-       }
        HideFiguresPopups();
 }
 
@@ -143,12 +126,12 @@ void WriteAlert(string const & s1, string const & s2, string const & s3)
                lview = current_view->owner();
        if (lview) {
                /// Write to minibuffer
-               ProhibitInput(current_view);
+               lview->prohibitInput();
                string const msg = s1 + ' ' + s2 + ' ' + s3;
                lview->message(msg);
                fl_set_resource("flAlert.dismiss.label", _("Dismiss"));
                fl_show_alert(s1.c_str(), s2.c_str(), s3.c_str(), 0);
-               AllowInput(current_view);
+               lview->allowInput();
        } else {
                /// Write to lyxerr
                lyxerr << "----------------------------------------" << endl