2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * This file copyright 1999-2000
12 *======================================================*/
14 * FormPrint Interface Class
20 #include "DialogBase.h"
21 #include "support/utility.hpp"
31 #ifdef SIGC_CXX_NAMESPACES
32 using SigC::Connection;
35 /** This class provides an XForms implementation of the FormPrint Dialog.
36 The print dialog allows users to print their documents.
38 class FormPrint : public DialogBase, public noncopyable {
40 /// #FormPrint x(LyXFunc ..., Dialogs ...);#
41 FormPrint(LyXView *, Dialogs *);
46 static int WMHideCB(FL_FORM *, void *);
48 static void OKCB(FL_OBJECT *, long);
50 static void ApplyCB(FL_OBJECT *, long);
52 static void CancelCB(FL_OBJECT *, long);
54 static void InputCB(FL_OBJECT *, long);
56 /// Create the dialog if necessary, update it and display it.
60 /// Update the dialog.
70 FD_form_print * build_print();
72 /// Real GUI implementation.
73 FD_form_print * dialog_;
74 /// Which LyXView do we belong to?
78 /// Update connection.