3 * \file ControlParagraph.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
12 #ifndef CONTROLPARAGRAPH_H
13 #define CONTROLPARAGRAPH_H
15 #include <boost/scoped_ptr.hpp>
18 #include "ControlDialog_impl.h"
19 #include "layout.h" // for LyXAlignment
21 class ParagraphParameters;
23 /** A controller for Paragraph dialogs.
25 class ControlParagraph : public ControlDialogBD {
28 ControlParagraph(LyXView &, Dialogs &);
29 /** Declaring this out of line allows us to forward declare
30 ParagraphParameters without upsetting boost::scoped_ptr. */
34 ParagraphParameters & params();
38 LyXAlignment alignPossible() const;
40 LyXAlignment alignDefault() const;
42 void changedParagraph();
44 /// Get changed parameters and Dispatch them to the kernel.
46 /// set the params before show or update.
47 virtual void setParams();
50 boost::scoped_ptr<ParagraphParameters> pp_;
54 LyXAlignment alignpossible_;
56 LyXAlignment aligndefault_;
59 #endif // CONTROLPARAGRAPH_H