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
21 namespace frontend {
\r
23 class InsetDialog : public DialogView
\r
28 InsetDialog(GuiView & lv, InsetCode code,
\r
29 QString const & name, QString const & title);
\r
31 /// \name DialogView inherited methods
\r
35 void dispatchParams() {}
\r
36 bool isBufferDependent() const { return true; }
\r
37 bool canApply() const { return true; }
\r
41 void on_closePB_clicked();
\r
45 virtual void paramsToDialog(Inset const *) = 0;
\r
47 virtual docstring dialogToParams() const = 0;
\r
49 InsetCode const code_;
\r
52 } // namespace frontend
\r
55 #endif // INSET_DIALOG_H
\r