3 * \file ControlInclude.h
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
9 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS.
14 #ifndef CONTROLINCLUDE_H
15 #define CONTROLINCLUDE_H
19 #include "insets/InsetCommandParams.h"
21 #include "support/docstring.h"
26 /** A controller for the Include file dialog.
28 class ControlInclude : public Dialog::Controller {
42 ControlInclude(Dialog &);
45 virtual bool initialiseParams(std::string const & data);
47 virtual void clearParams();
49 virtual void dispatchParams();
51 virtual bool isBufferDependent() const { return true; }
54 InsetCommandParams const & params() const { return params_; }
56 void setParams(InsetCommandParams const &);
59 docstring const browse(docstring const &, Type) const;
61 /// edit the child document, .lyx file will be opened in lyx
62 /// other formats will be edited by external applications.
63 void edit(std::string const & file);
65 /// test if file exist
66 bool fileExists(std::string const & file);
69 InsetCommandParams params_;
72 } // namespace frontend
75 #endif // CONTROLINCLUDE_H