]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlInclude.C
John's character.C patch (bug fix).
[lyx.git] / src / frontends / controllers / ControlInclude.C
index 5c0ccf545f0c93e7e41a8ca10e4a881e7d7961fe..b81f539ea5c185efbe4faf681003dd2ed0afba17 100644 (file)
@@ -22,6 +22,7 @@
 #include "BufferView.h"
 #include "Dialogs.h"
 #include "LyXView.h"
+#include "lyxfunc.h"
 #include "gettext.h"
 
 #include "helper_funcs.h"
@@ -71,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);
+}