]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormParagraph.h
get rid of broken_header.h and some unneeded tests
[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 #include "FormDialogView.h"
16 #include "RadioButtonGroup.h"
17
18 namespace lyx {
19 namespace frontend {
20
21 class ControlParagraph;
22 struct FD_paragraph;
23
24 /** This class provides an XForms implementation of the FormParagraph dialog.
25  */
26 class FormParagraph
27         : public FormController<ControlParagraph, FormView<FD_paragraph> > {
28 public:
29         ///
30         FormParagraph(Dialog &);
31 private:
32         /// Build the dialog
33         virtual void build();
34         /// Apply from dialog
35         virtual void apply();
36         /// Update the dialog
37         virtual void update();
38
39         /// Filter the inputs on callback from xforms
40         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
41
42         /// alignment radio buttons
43         RadioButtonGroup alignment_;
44 };
45
46 } // namespace frontend
47 } // namespace lyx
48
49 #endif