2000-06-28 13:35:52 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1998-2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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-07-04 19:16:35 +00:00
|
|
|
FloatList();
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2000-07-04 19:16:35 +00:00
|
|
|
void newFloat(Floating const & fl);
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2000-07-04 19:16:35 +00:00
|
|
|
string 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-06-28 13:35:52 +00:00
|
|
|
private:
|
|
|
|
///
|
|
|
|
List list;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern FloatList floatList;
|
|
|
|
|
|
|
|
#endif
|