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
16 #include "Layout.h" // for LyXAlignment
17 #include <boost/scoped_ptr.hpp>
21 class ParagraphParameters;
25 class ControlParagraph : public Controller {
28 ControlParagraph(Dialog &);
30 virtual bool initialiseParams(std::string const & data);
32 virtual void clearParams();
34 virtual void dispatchParams();
36 virtual bool isBufferDependent() const { return true; }
38 ParagraphParameters & params();
40 ParagraphParameters const & params() const;
42 bool haveMulitParSelection();
46 bool canIndent() const;
48 LyXAlignment alignPossible() const;
50 LyXAlignment alignDefault() const;
54 boost::scoped_ptr<ParagraphParameters> params_;
58 LyXAlignment alignpossible_;
60 LyXAlignment aligndefault_;
63 } // namespace frontend
66 #endif // CONTROLPARAGRAPH_H