4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS.
13 #ifndef GUIPARAGRAPH_H
14 #define GUIPARAGRAPH_H
16 #include "ControlParagraph.h"
18 #include "ui_ParagraphUi.h"
27 class GuiParagraph : public QWidget, public Ui::ParagraphUi
31 GuiParagraph(ControlParagraph & controller, QWidget * parent = 0);
38 void checkAlignmentRadioButtons();
40 void alignmentToRadioButtons(LyXAlignment align = LYX_ALIGN_LAYOUT);
42 LyXAlignment getAlignmentFromDialog();
44 typedef std::map<LyXAlignment, QRadioButton *> RadioMap;
47 ControlParagraph & controller_;
49 QString const alignDefaultLabel;
54 void on_synchronizedViewCB_toggled();
56 void on_restorePB_clicked();
58 void on_linespacing_activated(int);
60 void on_applyPB_clicked();
63 } // namespace frontend
66 #endif // QPARAGRAPH_H