]> 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 949fcc868bee6d46d5d4f471e9cd1ff4a1ff2871..408765bbe433c0472641b62ecd9ba28ad63e1f4a 100644 (file)
@@ -23,7 +23,6 @@
 #include "ParagraphParameters.h"
 
 #include <QDialog>
-#include <QSettings>
 #include <QShowEvent>
 #include <QGridLayout>
 
@@ -41,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:
@@ -54,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;
@@ -79,6 +81,10 @@ 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:
        ///
@@ -89,7 +95,7 @@ private:
        ///
        QString alignDefaultLabel_;
        ///
-       ParagraphParameters multiparsel_;
+       ParagraphParameters params_;
 };
 
 } // namespace frontend