mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 01:08:45 +00:00
8283e978f8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3803 a592a061-630c-0410-9148-cb99ea01b6c8
56 lines
949 B
C++
56 lines
949 B
C++
// -*- C++ -*-
|
|
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 1998-2001 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;
|
|
///
|
|
typedef List::const_iterator const_iterator;
|
|
///
|
|
FloatList();
|
|
///
|
|
const_iterator begin() const;
|
|
///
|
|
const_iterator end() const;
|
|
///
|
|
void newFloat(Floating const & fl);
|
|
///
|
|
string const defaultPlacement(string const & t) const;
|
|
///
|
|
bool typeExist(string const & t) const;
|
|
///
|
|
Floating const & getType(string const & t) const;
|
|
///
|
|
const_iterator operator[](string const & t) const;
|
|
private:
|
|
///
|
|
List list;
|
|
};
|
|
|
|
///
|
|
extern FloatList floatList;
|
|
|
|
#endif
|