]> git.lyx.org Git - lyx.git/blob - src/FloatList.h
Patch from John (figinset) and Dekel (RTL and spellchecker)
[lyx.git] / src / FloatList.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1998-2000 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         FloatList();
31         ///
32         void newFloat(Floating const & fl);
33         ///
34         string const defaultPlacement(string const & t) const;
35         ///
36         bool typeExist(string const & t) const;
37         ///
38         Floating const & getType(string const & t) const;
39 private:
40         ///
41         List list;
42 };
43
44 ///
45 extern FloatList floatList;
46
47 #endif