]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormPrint.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormPrint.h
1 // -*- C++ -*-
2 /**
3  * \file xforms/FormPrint.h
4  * Copyright 1999-2001 Allan Rae
5  * This file is part of LyX, the document processor.
6  * Licence details can be found in the file COPYING.
7  *
8  * \author Allan Rae
9  * \author Angus Leeming 
10  *
11  * Full author contact details are available in file CREDITS
12  */
13
14 #ifndef FORMPRINT_H
15 #define FORMPRINT_H
16
17
18 #ifdef __GNUG__
19 #pragma interface
20 #endif
21
22 #include "FormBase.h"
23 #include "RadioButtonGroup.h"
24
25 class ControlPrint;
26 struct FD_print;
27
28 /** This class provides an XForms implementation of the FormPrint Dialog.
29     The print dialog allows users to print their documents.
30  */
31 class FormPrint : public FormCB<ControlPrint, FormDB<FD_print> > {
32 public:
33         ///
34         FormPrint();
35 private:
36         /// Apply from dialog
37         virtual void apply();
38         /// Build the dialog
39         virtual void build();
40         /// Update the dialog.
41         virtual void update();
42
43         /// Filter the inputs on callback from xforms
44         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
45
46         /// print target
47         RadioButtonGroup target_;
48         /// all pages or from/to
49         RadioButtonGroup all_pages_;
50 };
51
52 #endif // FORMPRINT_H