]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlParagraph.h
Overhaul the branches code.
[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 class ControlParagraph : public Dialog::Controller {
21 public:
22         ///
23         ControlParagraph(Dialog &);
24         ///
25         virtual bool initialiseParams(std::string const & data);
26         /// clean-up on hide.
27         virtual void clearParams();
28         /// clean-up on hide.
29         virtual void dispatchParams();
30         ///
31         virtual bool isBufferDependent() const { return true; }
32         ///
33         ParagraphParameters & params();
34         ///
35         ParagraphParameters const & params() const;
36         ///
37         bool inInset() const;
38         ///
39         LyXAlignment alignPossible() const;
40         ///
41         LyXAlignment alignDefault() const;
42
43 private:
44         ///
45         boost::scoped_ptr<ParagraphParameters> params_;
46         ///
47         bool ininset_;
48         ///
49         LyXAlignment alignpossible_;
50         ///
51         LyXAlignment aligndefault_;
52 };
53
54 #endif // CONTROLPARAGRAPH_H