2000-06-28 13:35:52 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-23 00:17:00 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file FloatList.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 17:27:08 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
2000-06-28 13:35:52 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2000-06-28 13:35:52 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef FLOATLIST_H
|
|
|
|
|
#define FLOATLIST_H
|
|
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
|
2003-09-05 17:23:11 +00:00
|
|
|
|
#include "support/std_string.h"
|
2003-09-04 03:54:04 +00:00
|
|
|
|
|
|
|
|
|
class Floating;
|
2000-06-28 13:35:52 +00:00
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
class FloatList {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
typedef std::map<string, Floating> List;
|
|
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
|
typedef List::const_iterator const_iterator;
|
|
|
|
|
///
|
2000-07-04 19:16:35 +00:00
|
|
|
|
FloatList();
|
2000-06-28 13:35:52 +00:00
|
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
|
const_iterator begin() const;
|
|
|
|
|
///
|
|
|
|
|
const_iterator end() const;
|
|
|
|
|
///
|
2000-07-04 19:16:35 +00:00
|
|
|
|
void newFloat(Floating const & fl);
|
2000-06-28 13:35:52 +00:00
|
|
|
|
///
|
2000-09-14 17:53:12 +00:00
|
|
|
|
string const defaultPlacement(string const & t) const;
|
2000-07-15 23:51:46 +00:00
|
|
|
|
///
|
|
|
|
|
bool typeExist(string const & t) const;
|
|
|
|
|
///
|
|
|
|
|
Floating const & getType(string const & t) const;
|
2000-12-29 12:48:02 +00:00
|
|
|
|
///
|
2002-09-11 07:39:55 +00:00
|
|
|
|
void erase(string const & t);
|
|
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
|
const_iterator operator[](string const & t) const;
|
2000-06-28 13:35:52 +00:00
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
List list;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|