* 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