2000-08-14 09:44:53 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
/* FormPrint.h
|
|
|
|
* FormPrint Interface Class
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMPRINT_H
|
|
|
|
#define FORMPRINT_H
|
|
|
|
|
|
|
|
#include "DialogBase.h"
|
|
|
|
|
|
|
|
#include <gtk--/widget.h>
|
|
|
|
#include <gtk--/radiobutton.h>
|
|
|
|
#include <gtk--/checkbutton.h>
|
|
|
|
#include <gtk--/spinbutton.h>
|
|
|
|
#include <gnome--/entry.h>
|
|
|
|
#include <gnome--/file-entry.h>
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class LyXView;
|
|
|
|
class Dialogs;
|
|
|
|
|
|
|
|
/** This class provides an Gnome implementation of the FormPrint Dialog.
|
|
|
|
The print dialog allows users to print their documents.
|
|
|
|
*/
|
2001-03-08 12:58:40 +00:00
|
|
|
class FormPrint : public DialogBase {
|
2000-08-14 09:44:53 +00:00
|
|
|
public:
|
|
|
|
/**@name Constructors and Destructors */
|
|
|
|
//@{
|
|
|
|
/// #FormPrint x(LyXFunc ..., Dialogs ...);#
|
|
|
|
FormPrint(LyXView *, Dialogs *);
|
|
|
|
///
|
|
|
|
~FormPrint();
|
|
|
|
//@}
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
/**@name Slot Methods */
|
|
|
|
//@{
|
|
|
|
/// Create the dialog if necessary, update it and display it.
|
|
|
|
void show();
|
|
|
|
/// Hide the dialog.
|
|
|
|
void hide();
|
|
|
|
/// Update the dialog.
|
2000-10-30 11:33:05 +00:00
|
|
|
void update() { }
|
|
|
|
void updateSlot(bool = false);
|
2000-08-14 09:44:53 +00:00
|
|
|
/// Free memory
|
|
|
|
void free();
|
|
|
|
//@}
|
|
|
|
|
|
|
|
/**@name Dialog internal methods */
|
|
|
|
//@{
|
|
|
|
/// Apply from dialog
|
|
|
|
void apply();
|
|
|
|
//@}
|
|
|
|
|
|
|
|
/**@name Private Data */
|
|
|
|
//@{
|
|
|
|
/// Real GUI implementation.
|
|
|
|
Gtk::Widget * dialog_;
|
|
|
|
|
|
|
|
Gtk::RadioButton * print_all_;
|
|
|
|
Gtk::RadioButton * print_odd_;
|
|
|
|
Gtk::RadioButton * print_even_;
|
|
|
|
|
|
|
|
Gtk::CheckButton * print_pages_;
|
|
|
|
|
|
|
|
Gtk::SpinButton * print_from_;
|
|
|
|
Gtk::SpinButton * print_to_;
|
|
|
|
|
|
|
|
Gtk::RadioButton * order_normal_;
|
|
|
|
Gtk::RadioButton * order_reverse_;
|
|
|
|
|
|
|
|
Gtk::CheckButton * copies_unsorted_;
|
|
|
|
Gtk::SpinButton * copies_count_;
|
|
|
|
|
|
|
|
Gtk::RadioButton * printto_printer_;
|
|
|
|
Gtk::RadioButton * printto_file_;
|
|
|
|
|
|
|
|
Gnome::Entry * printto_printcommand_;
|
|
|
|
Gnome::FileEntry * printto_fileentry_;
|
|
|
|
|
|
|
|
/// Which LyXView do we belong to?
|
|
|
|
LyXView * lv_;
|
|
|
|
Dialogs * d_;
|
|
|
|
/// Update connection.
|
2001-03-15 18:21:56 +00:00
|
|
|
SigC::Connection u_;
|
2000-08-14 09:44:53 +00:00
|
|
|
/// Hide connection.
|
2001-03-15 18:21:56 +00:00
|
|
|
SigC::Connection h_;
|
2000-08-14 09:44:53 +00:00
|
|
|
//@}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|