]> git.lyx.org Git - lyx.git/blobdiff - src/FloatList.cpp
If a master is being created at loading the child, un-hide it.
[lyx.git] / src / FloatList.cpp
index 5725293c48970c05cc25ba2b7253fc5995e216c5..5b2d367dcd01e2a69d48841b5d2b4f5a658195b9 100644 (file)
@@ -48,6 +48,15 @@ string const FloatList::defaultPlacement(string const & t) const
 }
 
 
+string const FloatList::allowedPlacement(string const & t) const
+{
+       List::const_iterator cit = list.find(t);
+       if (cit != list.end())
+               return cit->second.allowedPlacement();
+       return string();
+}
+
+
 bool FloatList::typeExist(string const & t) const
 {
        List::const_iterator cit = list.find(t);
@@ -55,6 +64,24 @@ bool FloatList::typeExist(string const & t) const
 }
 
 
+bool FloatList::allowsWide(string const & t) const
+{
+       List::const_iterator cit = list.find(t);
+       if (cit != list.end())
+               return cit->second.allowsWide();
+       return false;
+}
+
+
+bool FloatList::allowsSideways(string const & t) const
+{
+       List::const_iterator cit = list.find(t);
+       if (cit != list.end())
+               return cit->second.allowsSideways();
+       return false;
+}
+
+
 Floating const & FloatList::getType(string const & t) const
 {
        // I wish we could use exceptions