4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * \author Abdelrazak Younes
11 * Full author contact details are available in file CREDITS.
14 #ifndef GUIPARAGRAPH_H
15 #define GUIPARAGRAPH_H
17 #include "DialogView.h"
18 #include "ui_ParagraphUi.h"
20 #include "ParagraphParameters.h"
28 : public DialogView, public Ui::ParagraphUi
32 GuiParagraph(GuiView & lv);
34 /// Dialog inherited methods
38 void dispatchParams();
39 void enableView(bool enable);
40 bool isBufferDependent() const { return true; }
41 virtual FuncCode getLfun() const { return LFUN_PARAGRAPH_PARAMS_APPLY; }
42 void saveSession(QSettings & settings) const;
43 void restoreSession();
48 void checkAlignmentRadioButtons();
50 void alignmentToRadioButtons(LyXAlignment align = LYX_ALIGN_LAYOUT);
52 LyXAlignment getAlignmentFromDialog() const;
54 ParagraphParameters const & params() const;
56 bool haveMultiParSelection() const;
58 bool canIndent() const;
60 bool hasLabelwidth() const;
62 LyXAlignment alignPossible() const;
64 LyXAlignment alignDefault() const;
70 void on_synchronizedViewCB_toggled();
72 void on_linespacing_activated(int);
74 void on_buttonBox_clicked(QAbstractButton * button);
78 typedef std::map<LyXAlignment, QRadioButton *> RadioMap;
83 QString alignDefaultLabel_;
85 ParagraphParameters params_;
88 } // namespace frontend
91 #endif // QPARAGRAPH_H