]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiWrap.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiWrap.h
index 9fa79f2e5b1467b15b1b349268ece8d53ab6babf..2cb1265d8cb49775cedf4518d256948097cba545 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Jürgen Spitzmüller
+ * \author Jürgen Spitzmüller
  *
  * Full author contact details are available in file CREDITS.
  */
 #define GUIWRAP_H
 
 #include "GuiDialog.h"
-#include "ControlWrap.h"
 #include "ui_WrapUi.h"
 
+#include "insets/InsetWrap.h"
+
 namespace lyx {
 namespace frontend {
 
-class GuiWrapDialog : public GuiDialog, public Ui::WrapUi
+class GuiWrap : public GuiDialog, public Ui::WrapUi
 {
        Q_OBJECT
 
 public:
-       GuiWrapDialog(LyXView & lv);
+       GuiWrap(GuiView & lv);
 
 private Q_SLOTS:
        void change_adaptor();
 
 private:
-       void closeEvent(QCloseEvent * e);
-       /// parent controller
-       ControlWrap & controller();
-       /// Apply changes
+       /// Dialog inherited methods
+       //@{
        void applyView();
-       /// update
-       void updateContents();
+       void updateContents() {}
+       bool initialiseParams(std::string const & data);
+       void clearParams();
+       void dispatchParams();
+       bool isBufferDependent() const { return true; }
+       //@}
+
+       ///
+       void paramsToDialog(InsetWrapParams const & params);
+
+       ///
+       InsetWrapParams params_;
 };
 
 } // namespace frontend