]> git.lyx.org Git - lyx.git/blob - src/FloatList.h
5d05702ba79b9ce5435a5915045b758fc71206c2
[lyx.git] / src / FloatList.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1998-2001 The LyX Team.
8  *
9  * ======================================================
10  */
11
12 #ifndef FLOATLIST_H
13 #define FLOATLIST_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include <map>
20
21 #include "LString.h"
22 #include "Floating.h"
23
24 ///
25 class FloatList {
26 public:
27         ///
28         typedef std::map<string, Floating> List;
29         ///
30         typedef List::const_iterator const_iterator;
31         ///
32         FloatList();
33         ///
34         const_iterator begin() const;
35         ///
36         const_iterator end() const;
37         ///
38         void newFloat(Floating const & fl);
39         ///
40         string const defaultPlacement(string const & t) const;
41         ///
42         bool typeExist(string const & t) const;
43         ///
44         Floating const & getType(string const & t) const;
45         ///
46         void erase(string const & t);
47         ///
48         const_iterator operator[](string const & t) const;
49 private:
50         ///
51         List list;
52 };
53
54 #endif