2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2002-03-11 17:00:41 +00:00
|
|
|
/**
|
2002-03-11 22:47:41 +00:00
|
|
|
* \file xforms/FormPrint.h
|
2002-03-11 17:00:41 +00:00
|
|
|
* Copyright 1999-2001 Allan Rae
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Allan Rae
|
|
|
|
* \author Angus Leeming
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2000-06-12 11:55:12 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMPRINT_H
|
|
|
|
#define FORMPRINT_H
|
|
|
|
|
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;
|
2002-06-13 13:43:51 +00:00
|
|
|
struct FD_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.
|
|
|
|
*/
|
2002-06-13 13:43:51 +00:00
|
|
|
class FormPrint : public FormCB<ControlPrint, FormDB<FD_print> > {
|
2000-06-12 11:55:12 +00:00
|
|
|
public:
|
2002-03-21 21:21:28 +00:00
|
|
|
///
|
2002-08-12 14:28:43 +00:00
|
|
|
FormPrint();
|
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);
|
|
|
|
|
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
|