2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 1996 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team
10 * ====================================================== */
12 // Misc. GUI specific routines
14 #ifndef LYX_GUI_MISC_H
15 #define LYX_GUI_MISC_H
21 #include FORMS_H_LOCATION
23 /// Prevents LyX from being killed when the close box is pressed in a popup.
25 int CancelCloseBoxCB(FL_FORM *, void *);
27 /** Redraw the form (on receipt of a Signal indicating, for example,
28 that the xform colors have been re-mapped). */
29 void RedrawAllBufferRelatedDialogs();
31 /// Prevents LyX from crashing when no buffers available
32 void CloseAllBufferRelatedDialogs();
34 /// Ensures info in visible popups are always correct.
35 void updateAllVisibleBufferRelatedDialogs(bool switched = false);