2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ====================================================== */
11 * FormPrint Interface Class
17 #include "DialogBase.h"
19 #include <gtk--/widget.h>
20 #include <gtk--/radiobutton.h>
21 #include <gtk--/checkbutton.h>
22 #include <gtk--/spinbutton.h>
23 #include <gnome--/entry.h>
24 #include <gnome--/file-entry.h>
34 #ifdef SIGC_CXX_NAMESPACES
35 using SigC::Connection;
38 /** This class provides an Gnome implementation of the FormPrint Dialog.
39 The print dialog allows users to print their documents.
41 class FormPrint : public DialogBase {
43 /**@name Constructors and Destructors */
45 /// #FormPrint x(LyXFunc ..., Dialogs ...);#
46 FormPrint(LyXView *, Dialogs *);
53 /**@name Slot Methods */
55 /// Create the dialog if necessary, update it and display it.
59 /// Update the dialog.
61 void updateSlot(bool = false);
66 /**@name Dialog internal methods */
72 /**@name Private Data */
74 /// Real GUI implementation.
75 Gtk::Widget * dialog_;
77 Gtk::RadioButton * print_all_;
78 Gtk::RadioButton * print_odd_;
79 Gtk::RadioButton * print_even_;
81 Gtk::CheckButton * print_pages_;
83 Gtk::SpinButton * print_from_;
84 Gtk::SpinButton * print_to_;
86 Gtk::RadioButton * order_normal_;
87 Gtk::RadioButton * order_reverse_;
89 Gtk::CheckButton * copies_unsorted_;
90 Gtk::SpinButton * copies_count_;
92 Gtk::RadioButton * printto_printer_;
93 Gtk::RadioButton * printto_file_;
95 Gnome::Entry * printto_printcommand_;
96 Gnome::FileEntry * printto_fileentry_;
98 /// Which LyXView do we belong to?
101 /// Update connection.