]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormParagraph.h
(Rob Lahaye): changes to the xforms paragraph dialog.
[lyx.git] / src / frontends / xforms / FormParagraph.h
1 // -*- C++ -*-
2 /**
3  * \file FormParagraph.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jürgen Vigna
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef FORM_PARAGRAPH_H
13 #define FORM_PARAGRAPH_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "FormBase.h"
20 #include "RadioButtonGroup.h"
21
22 struct FD_paragraph;
23 class ControlParagraph;
24
25 /** This class provides an XForms implementation of the FormParagraph dialog.
26  */
27 class FormParagraph
28         : public FormCB<ControlParagraph, FormDB<FD_paragraph> > {
29 public:
30         ///
31         FormParagraph();
32 private:
33         /// Build the dialog
34         virtual void build();
35         /// Apply from dialog
36         virtual void apply();
37         /// Update the dialog
38         virtual void update();
39
40         /// Filter the inputs on callback from xforms
41         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
42
43         /// alignment radio buttons
44         RadioButtonGroup alignment_;
45 };
46
47 #endif