2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1998-2000 The LyX Team.
9 * ======================================================
28 typedef std::map<string, Floating> List;
31 // Insert the latex builtin float-types
40 list[table.type] = table;
42 figure.type = "figure";
43 figure.placement = "";
48 figure.builtin = true;
49 list[figure.type] = figure;
50 // And we add algorithm too since LyX has
51 // supported that for a long time
53 algorithm.type = "algorithm";
54 algorithm.placement = "htbp";
55 algorithm.ext = "loa";
56 algorithm.within = "";
57 algorithm.style = "ruled";
58 algorithm.name = "Algorithm";
59 algorithm.builtin = false;
60 list[algorithm.type] = algorithm;
63 void newFloat(Floating const & fl) {
67 string defaultPlacement(string const & t) const {
68 List::const_iterator cit = list.find(t);
69 if (cit != list.end())
70 return (*cit).second.placement;
79 extern FloatList floatList;