]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlParagraph.h
dont use pragma impementation and interface anymore
[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
18 #include "ControlDialog_impl.h"
19 #include "layout.h" // for LyXAlignment
20
21 class ParagraphParameters;
22
23 /** A controller for Paragraph dialogs.
24  */
25 class ControlParagraph : public ControlDialogBD {
26 public:
27         ///
28         ControlParagraph(LyXView &, Dialogs &);
29         /** Declaring this out of line allows us to forward declare
30             ParagraphParameters without upsetting boost::scoped_ptr. */
31         ~ControlParagraph();
32
33         ///
34         ParagraphParameters & params();
35         ///
36         bool inInset() const;
37         ///
38         LyXAlignment alignPossible() const;
39         ///
40         LyXAlignment alignDefault() const;
41         ///
42         void changedParagraph();
43 private:
44         /// Get changed parameters and Dispatch them to the kernel.
45         virtual void apply();
46         /// set the params before show or update.
47         virtual void setParams();
48
49         ///
50         boost::scoped_ptr<ParagraphParameters> pp_;
51         ///
52         bool ininset_;
53         ///
54         LyXAlignment alignpossible_;
55         ///
56         LyXAlignment aligndefault_;
57 };
58
59 #endif // CONTROLPARAGRAPH_H