mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
85e30074c2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3074 a592a061-630c-0410-9148-cb99ea01b6c8
61 lines
1.2 KiB
C
61 lines
1.2 KiB
C
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 1995 Matthias Ettrich
|
|
* Copyright 1995-2001 The LyX Team.
|
|
*
|
|
* ====================================================== */
|
|
|
|
#include <config.h>
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include FORMS_H_LOCATION
|
|
|
|
#include "lyx_gui_misc.h"
|
|
#include "figure_form.h"
|
|
#include "print_form.h"
|
|
|
|
extern FD_form_figure * fd_form_figure;
|
|
extern FD_form_sendto * fd_form_sendto;
|
|
|
|
extern void HideFiguresPopups();
|
|
|
|
// The code below is just waiting to go away really ...
|
|
|
|
extern "C"
|
|
int CancelCloseBoxCB(FL_FORM *, void *)
|
|
{
|
|
return FL_CANCEL;
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
|
|
void CloseAllBufferRelatedDialogs()
|
|
{
|
|
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();
|
|
}
|
|
|
|
void updateAllVisibleBufferRelatedDialogs(bool)
|
|
{
|
|
HideFiguresPopups();
|
|
}
|