]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiParagraph.h
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiParagraph.h
index 25c08240a3e4539353dcb3b637374455a79d457c..132e916509d77fab48ae2ecf745a7a47f4d688c3 100644 (file)
 #define GUIPARAGRAPH_H
 
 #include "DialogView.h"
-#include "GuiView.h"
-#include "qt_helpers.h"
 #include "ui_ParagraphUi.h"
 
-#include "Layout.h"
 #include "ParagraphParameters.h"
 
-#include <QDialog>
-#include <QSettings>
-#include <QShowEvent>
-#include <QGridLayout>
-
 #include <map>
 
 namespace lyx {
@@ -47,7 +39,7 @@ public:
        void enableView(bool enable);
        bool isBufferDependent() const { return true; }
        virtual FuncCode getLfun() const { return LFUN_PARAGRAPH_PARAMS_APPLY; }
-       void saveSession() const;
+       void saveSession(QSettings & settings) const;
        void restoreSession();
        //@}
 
@@ -65,6 +57,8 @@ private:
        ///
        bool canIndent() const;
        ///
+       bool hasLabelwidth() const;
+       ///
        LyXAlignment alignPossible() const;
        ///
        LyXAlignment alignDefault() const;
@@ -75,15 +69,9 @@ private Q_SLOTS:
        ///
        void on_synchronizedViewCB_toggled();
        ///
-       void on_restorePB_clicked();
-       ///
        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();
+       void on_buttonBox_clicked(QAbstractButton * button);
 
 private:
        ///