]> git.lyx.org Git - features.git/blob - src/frontends/controllers/ControlParagraph.h
Remove warnings reported with gcc 4.3:
[features.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 <boost/scoped_ptr.hpp>
18
19 namespace lyx {
20
21 class ParagraphParameters;
22
23 namespace frontend {
24
25 class ControlParagraph : public Controller {
26 public:
27         ///
28         ControlParagraph(Dialog &);
29         ///
30         virtual bool initialiseParams(std::string const & data);
31         /// clean-up on hide.
32         virtual void clearParams();
33         ///
34         virtual void dispatchParams();
35         ///
36         virtual bool isBufferDependent() const { return true; }
37         ///
38         ParagraphParameters & params();
39         ///
40         ParagraphParameters const & params() const;
41         ///
42         bool haveMulitParSelection();
43         ///
44         bool inInset() const;
45         ///
46         bool canIndent() const;
47         ///
48         LyXAlignment alignPossible() const;
49         ///
50         LyXAlignment alignDefault() const;
51
52 private:
53         ///
54         boost::scoped_ptr<ParagraphParameters> params_;
55         ///
56         bool ininset_;
57         ///
58         LyXAlignment alignpossible_;
59         ///
60         LyXAlignment aligndefault_;
61 };
62
63 } // namespace frontend
64 } // namespace lyx
65
66 #endif // CONTROLPARAGRAPH_H