11 // Insert the latex builtin float-types
14 table.placement = "htbp";
17 table.style = "plain";
20 list[table.type] = table;
22 figure.type = "figure";
23 figure.placement = "htbp";
26 figure.style = "plain";
27 figure.name = "Figure";
28 figure.builtin = true;
29 list[figure.type] = figure;
30 // And we add algorithm too since LyX has
31 // supported that for a long time
33 algorithm.type = "algorithm";
34 algorithm.placement = "htbp";
35 algorithm.ext = "loa";
36 algorithm.within = "";
37 algorithm.style = "ruled";
38 algorithm.name = "Algorithm";
39 algorithm.builtin = false;
40 list[algorithm.type] = algorithm;
44 void FloatList::newFloat(Floating const & fl)
50 string FloatList::defaultPlacement(string const & t) const
52 List::const_iterator cit = list.find(t);
53 if (cit != list.end())
54 return (*cit).second.placement;
59 bool FloatList::typeExist(string const & t) const
61 List::const_iterator cit = list.find(t);
62 return cit != list.end();
66 Floating const & FloatList::getType(string const & t) const
68 // I wish we could use exceptions
69 List::const_iterator cit = list.find(t);
70 if (cit != list.end())
72 #ifdef HAVE_EXCEPTIONS
73 throw UnknownFloatType(t);
75 static Floating empty_float;
80 // The global floatlist