4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alejandro Aguilar Sierra
8 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS.
17 #include "GuiDialog.h"
18 #include "ui_IncludeUi.h"
20 #include "insets/InsetCommandParams.h"
26 class GuiInclude
: public GuiDialog
, public Ui::IncludeUi
31 GuiInclude(GuiView
& lv
);
34 void change_adaptor();
35 /// edit the child document, .lyx file will be opened in lyx
36 /// other formats will be edited by external applications.
41 void typeChanged(int v
);
42 /// AFAIK, QValidator only works for QLineEdit so
43 /// I have to validate listingsED (QTextEdit) manually.
44 /// This function displays a hint or error message returned by
45 /// validate_listings_params
46 void set_listings_msg();
50 bool initialiseParams(std::string
const & data
);
52 void paramsToDialog(InsetCommandParams
const & params_
);
54 void clearParams() { params_
.clear(); }
56 void dispatchParams();
58 bool isBufferDependent() const { return true; }
73 /// validate listings parameters and return an error message, if any
74 docstring
validate_listings_params();
80 void updateContents() {}
82 QString
browse(QString
const &, Type
) const;
86 InsetCommandParams params_
;
89 } // namespace frontend
92 #endif // GUIINCLUDE_H