2000-06-28 13:35:52 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
2002-03-21 17:27:08 +00:00
|
|
|
*
|
2000-06-28 13:35:52 +00:00
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2001-05-30 13:53:44 +00:00
|
|
|
* Copyright 1998-2001 The LyX Team.
|
2000-06-28 13:35:52 +00:00
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FLOATLIST_H
|
|
|
|
#define FLOATLIST_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
#include "Floating.h"
|
|
|
|
|
|
|
|
///
|
|
|
|
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
|
|
|
///
|
|
|
|
const_iterator operator[](string const & t) const;
|
2000-06-28 13:35:52 +00:00
|
|
|
private:
|
|
|
|
///
|
|
|
|
List list;
|
|
|
|
};
|
|
|
|
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
2000-06-28 13:35:52 +00:00
|
|
|
extern FloatList floatList;
|
|
|
|
|
|
|
|
#endif
|