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"
22 #include "support/docstring.h"
28 class GuiInclude : public GuiCommand, public Ui::IncludeUi
33 GuiInclude(GuiView & lv);
36 void change_adaptor();
37 /// edit the child document, .lyx file will be opened in lyx
38 /// other formats will be edited by external applications.
43 void typeChanged(int v);
44 /// AFAIK, QValidator only works for QLineEdit so
45 /// I have to validate listingsED (QTextEdit) manually.
46 /// This function displays a hint or error message returned by
47 /// validate_listings_params
48 void set_listings_msg();
64 /// validate listings parameters and return an error message, if any
65 docstring validate_listings_params();
67 void edit(std::string const & file);
73 void updateContents();
75 bool isBufferDependent() const { return true; }
77 QString browse(QString const &, Type) const;
80 } // namespace frontend
83 #endif // GUIINCLUDE_H