]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlParagraph.h
Compilation fix.
[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 "layout.h" // for LyXAlignment
21
22 class ParagraphParameters;
23
24 /** A controller for Paragraph dialogs.
25  */
26 class ControlParagraph : public ControlDialogBD
27 {
28 public:
29         ///
30         ControlParagraph(LyXView &, Dialogs &);
31         /** Declaring this out of line allows us to forward declare
32             ParagraphParameters without upsetting boost::scoped_ptr. */
33         ~ControlParagraph();
34
35         ///
36         ParagraphParameters & params();
37         ///
38         bool inInset() const;
39         ///
40         LyXAlignment alignPossible() const;
41         ///
42         void changedParagraph();
43
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