]> git.lyx.org Git - lyx.git/blobdiff - src/FloatList.h
Point fix, earlier forgotten
[lyx.git] / src / FloatList.h
index aed0dfa79b7f92f7766a1e5136a494c5cc6614e0..40611c6464f5e7f213d3d3a30627670f20546fd6 100644 (file)
@@ -1,21 +1,17 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
- * 
- *           LyX, The Document Processor
+/**
+ * \file FloatList.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           Copyright 1998-2000 The LyX Team.
+ * \author Lars Gullik Bjønnes
  *
- * ======================================================
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef FLOATLIST_H
 #define FLOATLIST_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include <map>
 
 #include "LString.h"
@@ -27,21 +23,28 @@ public:
        ///
        typedef std::map<string, Floating> List;
        ///
+       typedef List::const_iterator const_iterator;
+       ///
        FloatList();
        ///
+       const_iterator begin() const;
+       ///
+       const_iterator end() const;
+       ///
        void newFloat(Floating const & fl);
        ///
-       string defaultPlacement(string const & t) const;
+       string const defaultPlacement(string const & t) const;
        ///
        bool typeExist(string const & t) const;
        ///
        Floating const & getType(string const & t) const;
+       ///
+       void erase(string const & t);
+       ///
+       const_iterator operator[](string const & t) const;
 private:
        ///
        List list;
 };
 
-///
-extern FloatList floatList;
-
 #endif