3 * \file InsetDialog.h
\r
4 * This file is part of LyX, the document processor.
\r
5 * Licence details can be found in the file COPYING.
\r
7 * \author Abdelrazak Younes
\r
9 * Full author contact details are available in file CREDITS.
\r
12 #ifndef INSET_DIALOG_H
\r
13 #define INSET_DIALOG_H
\r
15 #include "DialogView.h"
\r
17 #include "qt_i18n.h"
\r
23 namespace frontend {
\r
26 class InsetDialog : public DialogView
\r
31 InsetDialog(GuiView & lv, InsetCode code, FuncCode creation_code,
\r
32 char const * name, char const * display_name);
\r
34 /// \name DialogView inherited methods
\r
37 void dispatchParams() {}
\r
38 bool isBufferDependent() const { return true; }
\r
39 bool canApply() const { return true; }
\r
44 void on_newPB_clicked();
\r
45 void on_closePB_clicked();
\r
49 virtual void paramsToDialog(Inset const *) = 0;
\r
51 virtual docstring dialogToParams() const = 0;
\r
59 } // namespace frontend
\r
62 #endif // INSET_DIALOG_H
\r