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