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 "ParagraphParameters.h"
22 class ControlParagraph : public Controller
26 ControlParagraph(Dialog &);
28 virtual bool initialiseParams(std::string const & data);
30 virtual void clearParams();
32 virtual void dispatchParams();
34 virtual bool isBufferDependent() const { return true; }
36 ParagraphParameters & params() { return params_; }
38 ParagraphParameters const & params() const { return params_; }
40 bool haveMulitParSelection();
42 bool inInset() const { return ininset_; }
44 bool canIndent() const;
46 LyXAlignment alignPossible() const;
48 LyXAlignment alignDefault() const;
52 ParagraphParameters params_;
56 LyXAlignment alignpossible_;
58 LyXAlignment aligndefault_;
61 } // namespace frontend
64 #endif // CONTROLPARAGRAPH_H