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 /** This class provides an Gnome implementation of the FormPrint Dialog.
35 The print dialog allows users to print their documents.
37 class FormPrint : public DialogBase {
39 /**@name Constructors and Destructors */
41 /// #FormPrint x(LyXFunc ..., Dialogs ...);#
42 FormPrint(LyXView *, Dialogs *);
49 /**@name Slot Methods */
51 /// Create the dialog if necessary, update it and display it.
55 /// Update the dialog.
57 void updateSlot(bool = false);
62 /**@name Dialog internal methods */
68 /**@name Private Data */
70 /// Real GUI implementation.
71 Gtk::Widget * dialog_;
73 Gtk::RadioButton * print_all_;
74 Gtk::RadioButton * print_odd_;
75 Gtk::RadioButton * print_even_;
77 Gtk::CheckButton * print_pages_;
79 Gtk::SpinButton * print_from_;
80 Gtk::SpinButton * print_to_;
82 Gtk::RadioButton * order_normal_;
83 Gtk::RadioButton * order_reverse_;
85 Gtk::CheckButton * copies_unsorted_;
86 Gtk::SpinButton * copies_count_;
88 Gtk::RadioButton * printto_printer_;
89 Gtk::RadioButton * printto_file_;
91 Gnome::Entry * printto_printcommand_;
92 Gnome::FileEntry * printto_fileentry_;
94 /// Which LyXView do we belong to?
97 /// Update connection.