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 "GuiCommand.h"
19 #include "ui_IncludeUi.h"
25 class GuiInclude : public GuiCommand, public Ui::IncludeUi
30 GuiInclude(GuiView & lv);
33 void change_adaptor();
34 /// edit the child document, .lyx file will be opened in lyx
35 /// other formats will be edited by external applications.
40 void typeChanged(int v);
41 /// AFAIK, QValidator only works for QLineEdit so
42 /// I have to validate listingsED (QTextEdit) manually.
43 /// This function displays a hint or error message returned by
44 /// validate_listings_params
45 void set_listings_msg();
61 /// validate listings parameters and return an error message, if any
62 docstring validate_listings_params();
64 void edit(std::string const & file);
70 void updateContents();
72 bool isBufferDependent() const { return true; }
74 QString browse(QString const &, Type) const;
77 } // namespace frontend
80 #endif // GUIINCLUDE_H