]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiPrintNomencl.h
Account for old versions of Pygments
[lyx.git] / src / frontends / qt4 / GuiPrintNomencl.h
index 930cf7ce3640158e9ce3d0f9b463d8aebc0e67de..6d5de973200d7a9bb6c8c68abb6fd57ef1d1d07a 100644 (file)
 #ifndef GUIPRINTNOMENCL_H
 #define GUIPRINTNOMENCL_H
 
-#include "GuiDialog.h"
+#include "InsetParamsWidget.h"
 #include "ui_PrintNomenclUi.h"
 
-#include "insets/InsetCommandParams.h"
+namespace lyx {
 
+class InsetCommandParams;
 
-namespace lyx {
 namespace frontend {
 
-class GuiPrintNomencl : public GuiDialog, public Ui::PrintNomenclUi
+class GuiPrintNomencl : public InsetParamsWidget, public Ui::PrintNomenclUi
 {
        Q_OBJECT
 
 public:
-       GuiPrintNomencl(GuiView & lv);
+       GuiPrintNomencl(QWidget * parent = 0);
 
 private Q_SLOTS:
-       void change_adaptor();
        void on_setWidthCO_activated(int);
 
 private:
-       /// Apply changes
-       void applyView();
-       /// Update dialog before showing it
-       void updateContents();
-       ///
-       bool initialiseParams(std::string const & data);
-       ///
-       void paramsToDialog(InsetCommandParams const & icp);
-       ///
-       void clearParams() { params_.clear(); }
-       ///
-       void dispatchParams();
-       ///
-       bool isBufferDependent() const { return true; }
-
-       ///
-       InsetCommandParams params_;
+       /// \name InsetParamsWidget inherited methods
+       //@{
+       InsetCode insetCode() const { return NOMENCL_PRINT_CODE; }
+       FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+       void paramsToDialog(Inset const *);
+       void paramsToDialog(InsetCommandParams const &);
+       docstring dialogToParams() const;
+       bool checkWidgets(bool readonly) const;
+       //@}
 };
 
 } // namespace frontend