]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlParagraph.h
some support for pch
[lyx.git] / src / frontends / controllers / ControlParagraph.h
1 // -*- C++ -*-
2 /**
3  * \file ControlParagraph.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  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CONTROLPARAGRAPH_H
13 #define CONTROLPARAGRAPH_H
14
15 #include "Dialog.h"
16 #include "layout.h" // for LyXAlignment
17
18 class ParagraphParameters;
19
20 namespace lyx {
21 namespace frontend {
22
23 class ControlParagraph : public Dialog::Controller {
24 public:
25         ///
26         ControlParagraph(Dialog &);
27         ///
28         virtual bool initialiseParams(std::string const & data);
29         /// clean-up on hide.
30         virtual void clearParams();
31         ///
32         virtual void dispatchParams();
33         ///
34         virtual bool isBufferDependent() const { return true; }
35         ///
36         ParagraphParameters & params();
37         ///
38         ParagraphParameters const & params() const;
39         ///
40         bool inInset() const;
41         ///
42         LyXAlignment alignPossible() const;
43         ///
44         LyXAlignment alignDefault() const;
45
46 private:
47         ///
48         boost::scoped_ptr<ParagraphParameters> params_;
49         ///
50         bool ininset_;
51         ///
52         LyXAlignment alignpossible_;
53         ///
54         LyXAlignment aligndefault_;
55 };
56
57 } // namespace frontend
58 } // namespace lyx
59
60 #endif // CONTROLPARAGRAPH_H