]> git.lyx.org Git - lyx.git/blob - src/lyx_gui_misc.C
forgot these
[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 "print_form.h"
21
22 extern FD_form_sendto * fd_form_sendto;
23
24 // The code below is just waiting to go away really ...
25 // I think it is Juergen's responsibility to port print_form,
26 // since he wants it :) 
27  
28 extern "C"
29 int CancelCloseBoxCB(FL_FORM *, void *)
30 {
31         return FL_CANCEL;
32 }
33
34 void RedrawAllBufferRelatedDialogs()
35 {
36         if (fd_form_sendto->form_sendto->visible) {
37                 fl_redraw_form(fd_form_sendto->form_sendto);
38         }
39 }
40
41 void CloseAllBufferRelatedDialogs()
42 {
43         if (fd_form_sendto->form_sendto->visible) {
44                 fl_hide_form(fd_form_sendto->form_sendto);
45         }
46 }