]> git.lyx.org Git - lyx.git/blob - src/FloatList.h
Point fix, earlier forgotten
[lyx.git] / src / FloatList.h
1 // -*- C++ -*-
2 /**
3  * \file FloatList.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef FLOATLIST_H
13 #define FLOATLIST_H
14
15 #include <map>
16
17 #include "LString.h"
18 #include "Floating.h"
19
20 ///
21 class FloatList {
22 public:
23         ///
24         typedef std::map<string, Floating> List;
25         ///
26         typedef List::const_iterator const_iterator;
27         ///
28         FloatList();
29         ///
30         const_iterator begin() const;
31         ///
32         const_iterator end() const;
33         ///
34         void newFloat(Floating const & fl);
35         ///
36         string const defaultPlacement(string const & t) const;
37         ///
38         bool typeExist(string const & t) const;
39         ///
40         Floating const & getType(string const & t) const;
41         ///
42         void erase(string const & t);
43         ///
44         const_iterator operator[](string const & t) const;
45 private:
46         ///
47         List list;
48 };
49
50 #endif