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>
21 #include "ControlDialog_impl.h"
22 #include "layout.h" // for LyXAlignment
24 class ParagraphParameters;
26 /** A controller for Paragraph dialogs.
28 class ControlParagraph : public ControlDialogBD {
31 ControlParagraph(LyXView &, Dialogs &);
32 /** Declaring this out of line allows us to forward declare
33 ParagraphParameters without upsetting boost::scoped_ptr. */
37 ParagraphParameters & params();
41 LyXAlignment alignPossible() const;
43 LyXAlignment alignDefault() const;
45 void changedParagraph();
47 /// Get changed parameters and Dispatch them to the kernel.
49 /// set the params before show or update.
50 virtual void setParams();
53 boost::scoped_ptr<ParagraphParameters> pp_;
57 LyXAlignment alignpossible_;
59 LyXAlignment aligndefault_;
62 #endif // CONTROLPARAGRAPH_H