]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlParagraph.h
Really dull and boring header shit
[lyx.git] / src / frontends / controllers / ControlParagraph.h
1 // -*- C++ -*-
2 /**
3  * \file ControlParagraph.h
4  * See the file COPYING.
5  *
6  * \author Edwin Leuven 
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef CONTROLPARAGRAPH_H
12 #define CONTROLPARAGRAPH_H
13
14 #include <boost/scoped_ptr.hpp>
15
16 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "ControlDialog_impl.h"
21 #include "layout.h" // for LyXAlignment
22
23 class ParagraphParameters;
24
25 /** A controller for Paragraph dialogs.
26  */
27 class ControlParagraph : public ControlDialogBD
28 {
29 public:
30         ///
31         ControlParagraph(LyXView &, Dialogs &);
32         /** Declaring this out of line allows us to forward declare
33             ParagraphParameters without upsetting boost::scoped_ptr. */
34         ~ControlParagraph();
35
36         ///
37         ParagraphParameters & params();
38         ///
39         bool inInset() const;
40         ///
41         LyXAlignment alignPossible() const;
42         ///
43         void changedParagraph();
44
45 private:
46         /// Get changed parameters and Dispatch them to the kernel.
47         virtual void apply();
48         /// set the params before show or update.
49         virtual void setParams();
50
51         ///
52         boost::scoped_ptr<ParagraphParameters> pp_;
53         ///
54         bool ininset_;
55         ///
56         LyXAlignment alignpos_;
57 };
58
59 #endif // CONTROLPARAGRAPH_H