]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiParagraph.h
Compil fix.
[lyx.git] / src / frontends / qt4 / GuiParagraph.h
index ee9a06bf9976b29ae22822c3f26253d753384515..429284fc4dacda794336b6170bf86cae5a9968ab 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 +41,14 @@ public:
 
        /// Dialog inherited methods
        //@{
+       void applyView();
        void updateView();
        void dispatchParams();
        void enableView(bool enable);
        bool isBufferDependent() const { return true; }
-       virtual kb_action getLfun() const { return LFUN_PARAGRAPH_PARAMS_APPLY; }
+       virtual FuncCode getLfun() const { return LFUN_PARAGRAPH_PARAMS_APPLY; }
+       void saveSession() const;
+       void restoreSession();
        //@}
 
 private:
@@ -82,18 +82,19 @@ 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_;
 };