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 #ifdef SIGC_CXX_NAMESPACES
22 using SigC::Connection;
29 /** This class provides an XForms implementation of the FormPrint Dialog.
30 The print dialog allows users to print their documents.
32 class FormPrint : public DialogBase {
34 /**@name Constructors and Destructors */
36 /// #FormPrint x(LyXFunc ..., Dialogs ...);#
37 FormPrint(LyXView *, Dialogs *);
42 /**@name Real per-instance Callback Methods */
44 static int WMHideCB(FL_FORM *, void *);
45 static void OKCB(FL_OBJECT *, long);
46 static void ApplyCB(FL_OBJECT *, long);
47 static void CancelCB(FL_OBJECT *, long);
48 static void InputCB(FL_OBJECT *, long);
53 FormPrint(FormPrint &) : DialogBase() {}
55 /**@name Slot Methods */
57 /// Create the dialog if necessary, update it and display it.
61 /// Update the dialog.
65 /**@name Dialog internal methods */
74 FD_form_print * build_print();
75 /// Explicitly free the dialog.
79 /**@name Private Data */
81 /// Real GUI implementation.
82 FD_form_print * dialog_;
83 /// Which LyXView do we belong to?
86 /// Update connection.