]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QParagraph.h
Flatten the ButtonController tree by splitting it into a Controller and
[lyx.git] / src / frontends / qt2 / QParagraph.h
1 // -*- C++ -*-
2 /**
3  * \file QParagraph.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Edwin Leuven
8  * \author John Levon
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #ifndef QPARAGRAPH_H
14 #define QPARAGRAPH_H
15
16
17 #include "Qt2Base.h"
18 #include "LString.h"
19 #include <vector>
20
21 class ControlParagraph;
22 class QParagraphDialog;
23
24
25 class QParagraph
26         : public Qt2CB<ControlParagraph, Qt2DB<QParagraphDialog> >
27 {
28 public:
29         friend class QParagraphDialog;
30
31         QParagraph();
32 private:
33         /// Apply changes
34         virtual void apply();
35         /// update
36         virtual void update_contents();
37         /// build the dialog
38         virtual void build_dialog();
39
40         std::vector<string> units_;
41 };
42
43 #endif // QPARAGRAPH_H