]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlParagraph.h
ws fixes, formatting and some other small changes
[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         void changedParagraph();
44 private:
45         /// Get changed parameters and Dispatch them to the kernel.
46         virtual void apply();
47         /// set the params before show or update.
48         virtual void setParams();
49
50         ///
51         boost::scoped_ptr<ParagraphParameters> pp_;
52         ///
53         bool ininset_;
54         ///
55         LyXAlignment alignpos_;
56 };
57
58 #endif // CONTROLPARAGRAPH_H