]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_gui_misc.C
Fix small bug in reading \set_color in lyxrc
[lyx.git] / src / lyx_gui_misc.C
index 42b694b6e12d75aa461bf0406013fe9c8f7e0827..9b849b6c5eb763b844e3598698606d1533ad7183 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"
@@ -48,7 +52,6 @@ extern FD_form_table_options * fd_form_table_options;
 extern FD_form_quotes * fd_form_quotes;
 extern FD_form_preamble * fd_form_preamble;
 extern FD_form_table * fd_form_table;
-extern FD_form_print * fd_form_print;
 extern FD_form_sendto * fd_form_sendto;
 extern FD_form_figure * fd_form_figure;
 extern FD_form_toc * fd_form_toc;
@@ -62,7 +65,6 @@ 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;
@@ -88,7 +90,7 @@ extern "C" int IgnoreCloseBoxCB(FL_FORM *, void *)
 // This is also one of the functions that we _really_ dont want
 // we should try to finds way to help us with that.
 // The signal/slot mechanism can probably help. 
-void CloseAllBufferRelatedPopups()
+void CloseAllBufferRelatedDialogs()
 {
        // don't forget to check that dynamically created forms
        // have been created otherwise hiding one could cause a crash
@@ -115,9 +117,6 @@ void CloseAllBufferRelatedPopups()
        if (fd_form_table->form_table->visible) {
                fl_hide_form(fd_form_table->form_table);
        }
-       if (fd_form_print->form_print->visible) {
-               fl_hide_form(fd_form_print->form_print);
-       }
        if (fd_form_figure->form_figure->visible) {
                fl_hide_form(fd_form_figure->form_figure);
        }
@@ -174,11 +173,6 @@ void CloseAllBufferRelatedPopups()
                        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);
@@ -199,7 +193,7 @@ void CloseAllBufferRelatedPopups()
 
 // This is another function we really don't want.
 // Again the Signal/Slot mechanism is tailor made for this task.
-void updateAllVisibleBufferRelatedPopups()
+void updateAllVisibleBufferRelatedDialogs()
 {
        if (fd_form_document->form_document->visible) {
                UpdateLayoutDocument();
@@ -230,6 +224,9 @@ void updateAllVisibleBufferRelatedPopups()
        if (fd_form_toc->browser_toc->visible) {
                TocUpdateCB(0, 0);
        }
+       if (fd_latex_log->LaTeXLog->visible) {
+               LatexLogUpdate(0,0);
+       }
 #ifdef ALWAYS_UPDATE_REF
        // Ideally, the RefUpdateCB should be modified so that if the
        // current document is a subdocument the reference list should come
@@ -322,11 +319,6 @@ void updateAllVisibleBufferRelatedPopups()
                }
        }
 #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);