1 // -*- C++ -*-
2 /**
3  * \file GuiWrap.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jürgen Spitzmüller
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11 
12 #ifndef GUIWRAP_H
13 #define GUIWRAP_H
14 
15 #include "GuiDialog.h"
16 #include "ui_WrapUi.h"
17 
18 #include "insets/InsetWrap.h"
19 
20 namespace lyx {
21 namespace frontend {
22 
23 class GuiWrap : public GuiDialog, public Ui::WrapUi
24 {
25 	Q_OBJECT
26 
27 public:
28 	GuiWrap(GuiView & lv);
29 
30 private Q_SLOTS:
31 	void change_adaptor();
32 
33 private:
34 	/// Dialog inherited methods
35 	//@{
36 	void applyView();
updateContents()37 	void updateContents() {}
38 	bool initialiseParams(std::string const & data);
39 	void clearParams();
40 	void dispatchParams();
isBufferDependent()41 	bool isBufferDependent() const { return true; }
42 	//@}
43 
44 	///
45 	void paramsToDialog(InsetWrapParams const & params);
46 
47 	///
48 	InsetWrapParams params_;
49 };
50 
51 } // namespace frontend
52 } // namespace lyx
53 
54 #endif // GUIWRAP_H
55