]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlParagraph.h
Edwin's Para MVC. Sorry for the delay !
[lyx.git] / src / frontends / controllers / ControlParagraph.h
1 // -*- C++ -*-
2 /**
3  * \file ControlParagraph.h
4  * Copyright 2002 The LyX Team.
5  * See the file COPYING.
6  *
7  * \author Edwin Leuven <leuven@fee.uva.nl>
8  */
9
10 #ifndef CONTROLPARAGRAPH_H
11 #define CONTROLPARAGRAPH_H
12
13 #include <boost/scoped_ptr.hpp>
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ControlDialog_impl.h"
20 #include "ParagraphParameters.h"
21
22 /** A controller for Paragraph dialogs.
23  */
24 class ControlParagraph : public ControlDialogBD
25 {
26 public:
27         ///
28         ControlParagraph(LyXView &, Dialogs &);
29
30         ///
31         ParagraphParameters & params();
32         ///
33         bool inInset() const;
34         ///
35         LyXAlignment alignPossible() const;
36
37 private:
38         /// Get changed parameters and Dispatch them to the kernel.
39         virtual void apply();
40         /// set the params before show or update.
41         virtual void setParams();
42
43         ///
44         boost::scoped_ptr<ParagraphParameters> pp_;
45         ///
46         bool ininset_;
47         ///
48         LyXAlignment alignpos_;
49 };
50
51 #endif // CONTROLPARAGRAPH_H
52