- typedef std::map<LyXAlignment, QRadioButton *> RadioMap;
- RadioMap radioMap;
- typedef std::map<LyXAlignment, docstring> AlignmentLabels;
- AlignmentLabels labelMap;
-
- QString const alignDefaultLabel;
-
- void applyView() {}
- void hideView()
- {
- clearParams();
- QDialog::hide();
- }
- void showData(std::string const & data)
- {
- initialiseParams(data);
- showView();
- }
- void showView()
- {
- updateView(); // make sure its up-to-date
- QDialog::show();
- raise();
- activateWindow();
- }
- bool isVisibleView() const { return QDialog::isVisible(); }
- void checkStatus() { updateView(); }
- void updateData(std::string const & data)
- {
- initialiseParams(data);
- updateView();
- }
- std::string name() const { return "paragraph"; }
-
-private:
- QString name_;
-
- void showEvent(QShowEvent * e)
- {
- QSettings settings;
- QString key = name_ + "/geometry";
- QDialog::restoreGeometry(settings.value(key).toByteArray());
- QDialog::showEvent(e);
- }
-
- void closeEvent(QCloseEvent * e)
- {
- QSettings settings;
- QString key = name_ + "/geometry";
- settings.setValue(key, QDialog::saveGeometry());
- QDialog::closeEvent(e);
- }
+ ParagraphParameters const & params() const;
+ ///
+ bool haveMultiParSelection() const;
+ ///
+ bool canIndent() const;
+ ///
+ bool hasLabelwidth() const;
+ ///
+ LyXAlignment alignPossible() const;
+ ///
+ LyXAlignment alignDefault() const;