]> git.lyx.org Git - lyx.git/blob - src/lyx_gui_misc.C
Yet another tweak from J�rgen.
[lyx.git] / src / lyx_gui_misc.C
1 /* This file is part of
2  * ====================================================== 
3  * 
4  *           LyX, The Document Processor
5  *        
6  *           Copyright 1995 Matthias Ettrich
7  *           Copyright 1995-2001 The LyX Team.
8  *
9  * ====================================================== */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include FORMS_H_LOCATION
18  
19 #include "lyx_gui_misc.h"
20 #include "figure_form.h"
21 #include "print_form.h"
22
23 extern FD_form_figure * fd_form_figure;
24 extern FD_form_sendto * fd_form_sendto;
25
26 extern void HideFiguresPopups();
27
28 // The code below is just waiting to go away really ...
29  
30 extern "C"
31 int CancelCloseBoxCB(FL_FORM *, void *)
32 {
33         return FL_CANCEL;
34 }
35
36 void RedrawAllBufferRelatedDialogs()
37 {
38         if (fd_form_figure->form_figure->visible) {
39                 fl_redraw_form(fd_form_figure->form_figure);
40         }
41         if (fd_form_sendto->form_sendto->visible) {
42                 fl_redraw_form(fd_form_sendto->form_sendto);
43         }
44 }
45
46 void CloseAllBufferRelatedDialogs()
47 {
48         if (fd_form_figure->form_figure->visible) {
49                 fl_hide_form(fd_form_figure->form_figure);
50         }
51         if (fd_form_sendto->form_sendto->visible) {
52                 fl_hide_form(fd_form_sendto->form_sendto);
53         }
54         HideFiguresPopups();
55 }
56
57 void updateAllVisibleBufferRelatedDialogs(bool)
58 {
59         HideFiguresPopups();
60 }