]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlParagraph.h
next one
[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 #include "ParagraphParameters.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlParagraph : public Controller
23 {
24 public:
25         ///
26         ControlParagraph(Dialog &);
27         ///
28         virtual bool initialiseParams(std::string const & /*data*/) { return true; }
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 haveMulitParSelection();
41         ///
42         bool canIndent() const;
43         ///
44         LyXAlignment alignPossible() const;
45         ///
46         LyXAlignment alignDefault() const;
47
48 private:
49         ParagraphParameters multiparsel_;
50 };
51
52 } // namespace frontend
53 } // namespace lyx
54
55 #endif // CONTROLPARAGRAPH_H