1999-09-27 18:44:28 +00:00
|
|
|
/* This file is part of
|
1999-11-15 12:01:38 +00:00
|
|
|
* ======================================================
|
1999-10-02 16:21:10 +00:00
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
2001-05-30 13:53:44 +00:00
|
|
|
* Copyright 1995-2001 The LyX Team.
|
1999-10-02 16:21:10 +00:00
|
|
|
*
|
1999-11-15 12:01:38 +00:00
|
|
|
* ====================================================== */
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
2000-07-24 13:53:19 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
2001-11-26 10:19:58 +00:00
|
|
|
#include FORMS_H_LOCATION
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
#include "lyx_gui_misc.h"
|
2001-03-28 14:51:25 +00:00
|
|
|
#include "figure_form.h"
|
1999-09-27 18:44:28 +00:00
|
|
|
#include "print_form.h"
|
|
|
|
|
2000-11-28 06:46:06 +00:00
|
|
|
extern FD_form_figure * fd_form_figure;
|
1999-09-27 18:44:28 +00:00
|
|
|
extern FD_form_sendto * fd_form_sendto;
|
|
|
|
|
|
|
|
extern void HideFiguresPopups();
|
|
|
|
|
2001-11-26 10:19:58 +00:00
|
|
|
// The code below is just waiting to go away really ...
|
|
|
|
|
2001-09-09 22:02:19 +00:00
|
|
|
extern "C"
|
|
|
|
int CancelCloseBoxCB(FL_FORM *, void *)
|
1999-09-27 18:44:28 +00:00
|
|
|
{
|
|
|
|
return FL_CANCEL;
|
|
|
|
}
|
2001-09-09 22:02:19 +00:00
|
|
|
|
2000-11-28 06:46:06 +00:00
|
|
|
void RedrawAllBufferRelatedDialogs()
|
|
|
|
{
|
|
|
|
if (fd_form_figure->form_figure->visible) {
|
|
|
|
fl_redraw_form(fd_form_figure->form_figure);
|
|
|
|
}
|
|
|
|
if (fd_form_sendto->form_sendto->visible) {
|
|
|
|
fl_redraw_form(fd_form_sendto->form_sendto);
|
|
|
|
}
|
|
|
|
}
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2000-06-12 11:27:15 +00:00
|
|
|
void CloseAllBufferRelatedDialogs()
|
1999-09-27 18:44:28 +00:00
|
|
|
{
|
|
|
|
if (fd_form_figure->form_figure->visible) {
|
|
|
|
fl_hide_form(fd_form_figure->form_figure);
|
|
|
|
}
|
|
|
|
if (fd_form_sendto->form_sendto->visible) {
|
|
|
|
fl_hide_form(fd_form_sendto->form_sendto);
|
|
|
|
}
|
|
|
|
HideFiguresPopups();
|
|
|
|
}
|
|
|
|
|
2000-10-13 05:57:05 +00:00
|
|
|
void updateAllVisibleBufferRelatedDialogs(bool)
|
1999-09-27 18:44:28 +00:00
|
|
|
{
|
|
|
|
HideFiguresPopups();
|
|
|
|
}
|