#define GUIPARAGRAPH_H
#include "DialogView.h"
-#include "GuiView.h"
-#include "qt_helpers.h"
#include "ui_ParagraphUi.h"
-#include "Layout.h"
#include "ParagraphParameters.h"
-#include "support/debug.h"
-
-#include <QDialog>
-#include <QSettings>
-#include <QShowEvent>
-#include <QGridLayout>
-
#include <map>
-#include <string>
namespace lyx {
namespace frontend {
/// Dialog inherited methods
//@{
+ void applyView();
void updateView();
void dispatchParams();
void enableView(bool enable);
bool isBufferDependent() const { return true; }
virtual FuncCode getLfun() const { return LFUN_PARAGRAPH_PARAMS_APPLY; }
+ void saveSession() const;
+ void restoreSession();
//@}
private:
///
void alignmentToRadioButtons(LyXAlignment align = LYX_ALIGN_LAYOUT);
///
- LyXAlignment getAlignmentFromDialog();
- ///
- ParagraphParameters & params();
+ LyXAlignment getAlignmentFromDialog() const;
///
ParagraphParameters const & params() const;
///
- bool haveMultiParSelection();
+ bool haveMultiParSelection() const;
///
bool canIndent() const;
///
+ bool hasLabelwidth() const;
+ ///
LyXAlignment alignPossible() const;
///
LyXAlignment alignDefault() const;
void on_linespacing_activated(int);
/// Apply changes
void on_applyPB_clicked();
+ /// Apply changes and close
+ void on_okPB_clicked();
+ /// Close/Cancel dialog
+ void on_closePB_clicked();
private:
///
typedef std::map<LyXAlignment, QRadioButton *> RadioMap;
///
- RadioMap radioMap;
- ///
- typedef std::map<LyXAlignment, docstring> AlignmentLabels;
- ///
- AlignmentLabels labelMap;
+ RadioMap radioMap_;
+
///
- QString const alignDefaultLabel;
+ QString alignDefaultLabel_;
///
- ParagraphParameters multiparsel_;
+ ParagraphParameters params_;
};
} // namespace frontend