]> git.lyx.org Git - features.git/blobdiff - src/insets/insetinclude.C
patch from dekel
[features.git] / src / insets / insetinclude.C
index edba5fac3caa0a4a23365201f27d6794ba811cc7..78f32359a9375b0c3a83533e9cd6dba484786030 100644 (file)
@@ -25,6 +25,7 @@
 
 using std::ostream;
 using std::endl;
+using std::vector;
 
 extern BufferView * current_view;
 
@@ -419,36 +420,19 @@ void InsetInclude::Validate(LaTeXFeatures & features) const
 }
 
 
-string InsetInclude::getLabel(int) const
+vector<string> InsetInclude::getLabelList() const
 {
-    string label;
+    vector<string> l;
     string parentname;
-       
-       
+
     if (loadIfNeeded()) {
        Buffer * tmp = bufferlist.getBuffer(getFileName());
        tmp->setParentName(""); 
-       label =  tmp->getReferenceList('\n');
+       l = tmp->getLabelList();
        tmp->setParentName(getMasterFilename());
     }
 
-    return label;
-}
-
-
-int InsetInclude::GetNumberOfLabels() const
-{
-    string label;
-
-    if (loadIfNeeded()) {
-       Buffer * tmp = bufferlist.getBuffer(getFileName());
-       tmp->setParentName("");    
-       label = tmp->getReferenceList('\n');
-       tmp->setParentName(getMasterFilename());
-    }
-    int nl = (label.empty())? 0: 1;
-       
-    return nl;
+    return l;
 }