]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetinclude.C
pos=string::npos for regex not found, use handcoded transform in lstring.C, fix the...
[lyx.git] / src / insets / insetinclude.C
index b6cab06a4a9877e205294a1a9c61416f82482933..6bccf7dfd3fab885aa1ca31b93e28ffd12edb452 100644 (file)
@@ -7,8 +7,8 @@
 #endif
 
 #include FORMS_H_LOCATION 
-#include "filedlg.h" 
 #include "insetinclude.h"
+#include "filedlg.h" 
 #include "buffer.h"
 #include "bufferlist.h"
 #include "debug.h"
@@ -230,7 +230,7 @@ Inset * InsetInclude::Clone() const
 void InsetInclude::Edit(int, int)
 {
        if(current_view->buffer()->isReadonly())
-               WarnReadonly();
+               WarnReadonly(current_view->buffer()->fileName());
 
        if (!form) {
                 form = create_form_include();
@@ -452,14 +452,14 @@ int InsetInclude::GetNumberOfLabels() const
 }
 
 
-string InsetInclude::getKeys() const
+string InsetInclude::getKeys(char delim) const
 {
        string lst;
        
        if (loadIfNeeded()) {
                Buffer *tmp = bufferlist.getBuffer(getFileName());
                tmp->setParentName(""); 
-               lst =  tmp->getBibkeyList(',');
+               lst =  tmp->getBibkeyList(delim);
                tmp->setParentName(getMasterFilename());
        }