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 /**@name Constructors and Destructors */
42 /// #FormPrint x(LyXFunc ..., Dialogs ...);#
43 FormPrint(LyXView *, Dialogs *);
48 /**@name Real per-instance Callback Methods */
50 static int WMHideCB(FL_FORM *, void *);
51 static void OKCB(FL_OBJECT *, long);
52 static void ApplyCB(FL_OBJECT *, long);
53 static void CancelCB(FL_OBJECT *, long);
54 static void InputCB(FL_OBJECT *, long);
58 /**@name Slot Methods */
60 /// Create the dialog if necessary, update it and display it.
64 /// Update the dialog.
68 /**@name Dialog internal methods */
77 FD_form_print * build_print();
78 /// Explicitly free the dialog.
82 /**@name Private Data */
84 /// Real GUI implementation.
85 FD_form_print * dialog_;
86 /// Which LyXView do we belong to?
89 /// Update connection.