]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlInclude.C
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlInclude.C
index eef0c3d23a401fbd103d8bad349034ceb772d643..b81f539ea5c185efbe4faf681003dd2ed0afba17 100644 (file)
 #pragma implementation
 #endif
 
+#include "ViewBase.h"
+#include "ButtonControllerBase.h"
 #include "ControlInclude.h"
 #include "buffer.h"
+#include "BufferView.h"
 #include "Dialogs.h"
 #include "LyXView.h"
+#include "lyxfunc.h"
 #include "gettext.h"
 
 #include "helper_funcs.h"
@@ -68,3 +72,9 @@ string const ControlInclude::Browse(string const & in_name, Type in_type)
        return browseFile(&lv_, in_name, title, pattern, dir1,
                          make_pair(string(), string()));
 }
+
+
+void ControlInclude::load(string const & file)
+{
+       lv_.getLyXFunc()->dispatch(LFUN_CHILDOPEN, file);
+}