- return browseRelFile(in_name, docpath, title, filters, false,
- qt_("Documents|#o#O"), toqstr(lyxrc.document_path));
-}
-
-
-void GuiInclude::edit(string const & file)
-{
- string const ext = support::getExtension(file);
- if (ext == "lyx")
- dispatch(FuncRequest(LFUN_BUFFER_CHILD_OPEN, file));
- else
- // tex file or other text file in verbatim mode
- formats.edit(buffer(),
- support::makeAbsPath(file, support::onlyPath(buffer().absFileName())),
- "text");
+ return browseRelToParent(in_name, docpath, title, filters, false,
+ qt_("D&ocuments"), toqstr(lyxrc.document_path));