2000-06-12 11:55:12 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
2001-03-27 10:43:10 +00:00
|
|
|
* Copyright 1995-2001 The LyX Team.
|
2000-06-12 11:55:12 +00:00
|
|
|
*
|
|
|
|
* This file copyright 1999-2000
|
|
|
|
* Allan Rae
|
2001-03-27 10:43:10 +00:00
|
|
|
*======================================================
|
|
|
|
*
|
|
|
|
* \file FormPrint.h
|
|
|
|
* \author Allan Rae, rae@lyx.org
|
|
|
|
* \author Angus Leeming, a.leeming@.ac.uk
|
2000-06-12 11:55:12 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMPRINT_H
|
|
|
|
#define FORMPRINT_H
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
#include <boost/smart_ptr.hpp>
|
2000-07-27 10:26:38 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
2000-06-12 11:55:12 +00:00
|
|
|
#endif
|
|
|
|
|
2001-03-27 10:43:10 +00:00
|
|
|
#include "FormBase.h"
|
2001-03-15 13:37:04 +00:00
|
|
|
#include "RadioButtonGroup.h"
|
|
|
|
|
2001-03-27 10:43:10 +00:00
|
|
|
class ControlPrint;
|
2000-07-19 15:54:35 +00:00
|
|
|
struct FD_form_print;
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
/** This class provides an XForms implementation of the FormPrint Dialog.
|
|
|
|
The print dialog allows users to print their documents.
|
|
|
|
*/
|
2001-03-27 10:43:10 +00:00
|
|
|
class FormPrint : public FormCB<ControlPrint, FormDB<FD_form_print> > {
|
2000-06-12 11:55:12 +00:00
|
|
|
public:
|
2001-03-27 10:43:10 +00:00
|
|
|
///
|
|
|
|
FormPrint(ControlPrint &);
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
/// Apply from dialog
|
2000-10-02 00:10:25 +00:00
|
|
|
virtual void apply();
|
2000-06-12 11:55:12 +00:00
|
|
|
/// Build the dialog
|
2000-10-02 00:10:25 +00:00
|
|
|
virtual void build();
|
2001-03-27 10:43:10 +00:00
|
|
|
/// Update the dialog.
|
|
|
|
virtual void update();
|
|
|
|
/// Filter the inputs on callback from xforms
|
|
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
|
|
|
|
|
|
/// Fdesign generated method
|
2000-06-12 11:55:12 +00:00
|
|
|
FD_form_print * build_print();
|
2001-03-27 10:43:10 +00:00
|
|
|
|
2000-10-02 00:10:25 +00:00
|
|
|
/// print target
|
|
|
|
RadioButtonGroup target_;
|
|
|
|
/// page order
|
|
|
|
RadioButtonGroup order_;
|
|
|
|
/// which pages
|
|
|
|
RadioButtonGroup which_;
|
2000-06-12 11:55:12 +00:00
|
|
|
};
|
|
|
|
|
2001-03-27 10:43:10 +00:00
|
|
|
#endif // FORMPRINT_H
|