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 void changedParagraph();
45 /// Get changed parameters and Dispatch them to the kernel.
47 /// set the params before show or update.
48 virtual void setParams();
51 boost::scoped_ptr<ParagraphParameters> pp_;
55 LyXAlignment alignpos_;
58 #endif // CONTROLPARAGRAPH_H