- 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 redraw() { redrawView(); }
- void redrawView() {}
- void updateData(std::string const & data)
- {
- initialiseParams(data);
- updateView();
- }
- void partialUpdateView(int /*id*/) {}
- std::string name() const { return "paragraph"; }
-
-private:
- std::string name_;
-
- void showEvent(QShowEvent * e)
- {
- QSettings settings;
- std::string key = name_ + "/geometry";
- QDialog::restoreGeometry(settings.value(key.c_str()).toByteArray());
- QDialog::showEvent(e);
- }
-
- void closeEvent(QCloseEvent * e)
- {
- QSettings settings;
- std::string key = name_ + "/geometry";
- settings.setValue(key.c_str(), QDialog::saveGeometry());
- QDialog::closeEvent(e);
- }
+ ParagraphParameters const & params() const;
+ ///
+ bool haveMultiParSelection() const;
+ ///
+ bool canIndent() const;
+ ///
+ bool hasLabelwidth() const;
+ ///
+ LyXAlignment alignPossible() const;
+ ///
+ LyXAlignment alignDefault() const;