// -*- C++ -*- /** * \file GuiParagraph.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Edwin Leuven * \author John Levon * * Full author contact details are available in file CREDITS. */ #ifndef GUIPARAGRAPH_H #define GUIPARAGRAPH_H #include "GuiDialog.h" #include "ControlParagraph.h" #include "Layout.h" #include "ui_ParagraphUi.h" #include namespace lyx { namespace frontend { class GuiParagraphDialog : public GuiDialog, public Ui::ParagraphUi { Q_OBJECT public: GuiParagraphDialog(LyXView & lv); /// void checkAlignmentRadioButtons(); /// void alignmentToRadioButtons(LyXAlignment align = LYX_ALIGN_LAYOUT); /// LyXAlignment getAlignmentFromDialog(); private: /// void closeEvent(QCloseEvent * e); /// typedef std::map RadioMap; RadioMap radioMap; /// typedef std::map AlignmentLabels; AlignmentLabels labelMap; private Q_SLOTS: /// void change_adaptor(); /// void enableLinespacingValue(int); /// parent controller ControlParagraph & controller() const; /// Apply changes void applyView(); /// update void update_contents(); }; } // namespace frontend } // namespace lyx #endif // QPARAGRAPH_H