]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiParagraph.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiParagraph.h
index 54e2603cd85915e4f1b49b2b7ca9c2234d549785..408765bbe433c0472641b62ecd9ba28ad63e1f4a 100644 (file)
 #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 {
@@ -44,11 +40,14 @@ public:
 
        /// 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:
@@ -57,16 +56,16 @@ 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;
@@ -82,20 +81,21 @@ private Q_SLOTS:
        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