]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlParagraph.h
(Rob Lahaye): changes to the xforms paragraph dialog.
[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 <boost/scoped_ptr.hpp>
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "ControlDialog_impl.h"
22 #include "layout.h" // for LyXAlignment
23
24 class ParagraphParameters;
25
26 /** A controller for Paragraph dialogs.
27  */
28 class ControlParagraph : public ControlDialogBD {
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         LyXAlignment alignDefault() const;
44         ///
45         void changedParagraph();
46 private:
47         /// Get changed parameters and Dispatch them to the kernel.
48         virtual void apply();
49         /// set the params before show or update.
50         virtual void setParams();
51
52         ///
53         boost::scoped_ptr<ParagraphParameters> pp_;
54         ///
55         bool ininset_;
56         ///
57         LyXAlignment alignpossible_;
58         ///
59         LyXAlignment aligndefault_;
60 };
61
62 #endif // CONTROLPARAGRAPH_H