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 "GuiDialog.h"
17 #include "ControlParagraph.h"
19 #include "ui_ParagraphUi.h"
26 class GuiParagraphDialog : public GuiDialog, public Ui::ParagraphUi
30 GuiParagraphDialog(LyXView & lv);
32 void checkAlignmentRadioButtons();
34 void alignmentToRadioButtons(LyXAlignment align = LYX_ALIGN_LAYOUT);
36 LyXAlignment getAlignmentFromDialog();
39 void closeEvent(QCloseEvent * e);
41 typedef std::map<LyXAlignment, QRadioButton *> RadioMap;
44 typedef std::map<LyXAlignment, docstring> AlignmentLabels;
45 AlignmentLabels labelMap;
49 void change_adaptor();
51 void enableLinespacingValue(int);
53 ControlParagraph & controller();
57 void updateContents();
60 } // namespace frontend
63 #endif // QPARAGRAPH_H