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 //FIXME This could, and therefore probably should, inherit from
30 class GuiInclude : public GuiDialog, public Ui::IncludeUi
35 GuiInclude(LyXView & lv);
38 void change_adaptor();
39 /// edit the child document, .lyx file will be opened in lyx
40 /// other formats will be edited by external applications.
45 void typeChanged(int v);
46 /// AFAIK, QValidator only works for QLineEdit so
47 /// I have to validate listingsED (QTextEdit) manually.
48 /// This function displays a hint or error message returned by
49 /// validate_listings_params
50 void set_listings_msg();
53 void closeEvent(QCloseEvent * e);
56 /// validate listings parameters and return an error message, if any
57 docstring validate_listings_params();
59 void edit(std::string const & file);
66 void updateContents();
81 bool initialiseParams(std::string const & data);
85 void dispatchParams();
87 bool isBufferDependent() const { return true; }
90 docstring browse(docstring const &, Type) const;
94 InsetCommandParams params_;
97 } // namespace frontend
100 #endif // GUIINCLUDE_H