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-04 10:36:36 +00:00
|
|
|
* Copyright 1998-2001 The LyX Team.
|
2000-06-28 13:35:52 +00:00
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FLOATING_H
|
|
|
|
#define FLOATING_H
|
|
|
|
|
2000-12-31 05:32:33 +00:00
|
|
|
#include "LString.h"
|
|
|
|
|
2000-07-15 23:51:46 +00:00
|
|
|
/** This is a "float layout" object. It contains the parameters for how to
|
|
|
|
handle the different kinds of floats, default ones and user created ones.
|
|
|
|
Objects of this class is stored in a container in FloatList. The different
|
|
|
|
InsetFloat(s) have a pointer/reference through the name of the Floating
|
|
|
|
so that it knows how the different floats should be handled.
|
|
|
|
*/
|
2000-06-28 13:35:52 +00:00
|
|
|
class Floating {
|
|
|
|
public:
|
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
Floating();
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
Floating(string const & type, string const & placement,
|
|
|
|
string const & ext, string const & within,
|
|
|
|
string const & style, string const & name,
|
2002-04-04 14:39:55 +00:00
|
|
|
string const & listName, bool builtin = false);
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
string const & type() const;
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
string const & placement() const;
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2001-03-11 03:20:44 +00:00
|
|
|
string const & ext() const;
|
|
|
|
///
|
|
|
|
string const & within() const;
|
|
|
|
///
|
|
|
|
string const & style() const;
|
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
string const & name() const;
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2002-04-04 14:39:55 +00:00
|
|
|
string const & listName() const;
|
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
bool builtin() const;
|
|
|
|
private:
|
2000-06-28 13:35:52 +00:00
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
string type_;
|
|
|
|
///
|
|
|
|
string placement_;
|
|
|
|
///
|
|
|
|
string ext_;
|
|
|
|
///
|
|
|
|
string within_;
|
|
|
|
///
|
|
|
|
string style_;
|
|
|
|
///
|
|
|
|
string name_;
|
|
|
|
///
|
2002-04-04 14:39:55 +00:00
|
|
|
string listName_;
|
|
|
|
///
|
2000-12-29 12:48:02 +00:00
|
|
|
bool builtin_;
|
2000-06-28 13:35:52 +00:00
|
|
|
};
|
2000-12-29 12:48:02 +00:00
|
|
|
|
2000-06-28 13:35:52 +00:00
|
|
|
#endif
|